/* ==========================================================================
   Context Visualised · "What you get" lens pages (Risk, Controls, Processes,
   Incidents, Complaints) · October 2026
   Loaded after site.css and team.css; uses their tokens and the team dashboard
   frame, tabs, accordions and detail sheet. New classes only, prefixed "l".
   ========================================================================== */

/* ---- Click / Tap to explore ---- */
.lhint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.lhint .explore-hint { white-space: nowrap; }
.lhint-more { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); flex: 1 1 260px; min-width: 0; }

/* ---- Shared rows that open a sheet ---- */
.lrows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lrows > li + li { border-top: 1px solid var(--border); }
.lrow { font: inherit; width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 8px; min-height: var(--tap); border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.lrow:hover, .lrow[aria-expanded="true"] { background: var(--surface-2); }
.lrow:focus-visible { outline-offset: -2px; }
.lrow .main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lrow .t { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.lrow .t .id { margin-right: 6px; }
.lrow .m { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); font-variant-numeric: var(--tabular); }
.lrow .side { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: none; }
.lrow .chev { color: var(--ink-2); }
.lnote { color: var(--ink); font-weight: 600; }

/* ---- In-place drill panel (a class, a team) ---- */
.lpanels:empty { display: none; }
.lpanel { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--cc, var(--ink)); border-radius: 16px; padding: 14px 20px 20px; }
.lpanel[hidden] { display: none; }
.lpanel .tback { align-self: flex-start; }
.lpanel-head { display: flex; flex-direction: column; gap: 8px; }
.lpanel .tmini { max-width: 520px; }
.tmini li.is-weak { background: var(--ink); border-color: var(--ink); }
.tmini li.is-weak .num { color: var(--lemon); }
.tmini li.is-weak .cap { color: var(--on-ink-body); }
.ldriver { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14.5px; line-height: 1.5; padding: 10px 12px; border-radius: var(--radius-chip); background: var(--surface-2); border: 1px solid var(--border); }

/* ---- Risk: class cards ---- */
.lclasses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
.lclass { display: flex; min-width: 0; }
.lclass-btn { font: inherit; width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 12px; border: 1px solid var(--border); border-top: 6px solid var(--cc); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; min-height: var(--tap); }
.lclass-btn:hover { border-color: var(--ink); border-top-color: var(--cc); }
.lclass-btn[aria-expanded="true"] { border: 2px solid var(--ink); border-top: 6px solid var(--cc); background: var(--surface-2); }
.lclass-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.lclass-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lclass-name b { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.lclass-name .m { font-size: 12.5px; color: var(--ink-2); }
.lclass-top .chev { color: var(--ink-2); margin-top: 2px; }
.lclass-scr { display: flex; flex-direction: column; gap: 6px; }
.lclass-scr .v { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.lclass-scr .v b { color: var(--ink); font-weight: 700; }
.lclass-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; margin-top: auto; }
.lclass-app { display: inline-flex; align-items: center; gap: 6px; }
.lclass-app .m { font-size: 12.5px; color: var(--ink-2); }
.lxb { display: inline-flex; gap: 8px; font-size: 13px; font-weight: 700; font-variant-numeric: var(--tabular); color: var(--ink); }
.lxb-i { color: var(--fail-text); }
.lxb.is-none { font-weight: 500; color: var(--ink-2); }
.lsubs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.lsub { border: 1px solid var(--border); border-radius: 12px; background: var(--ground); padding: 10px 10px 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lsub-head { display: flex; flex-direction: column; gap: 2px; padding: 2px 8px 6px; }
.lsub-head b { font-size: 15px; font-weight: 700; }
.lsub-head .m { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.lsub .lrows > li + li { border-top-color: var(--muted); }

/* KRI cards: the risks each KRI watches open the risk sheet */
.lkri { background: var(--ground); }
.lkri-risks { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--border); padding-top: 8px; }
.lkri-risks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lrisk-link { font: inherit; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0; border: 0; background: none; color: var(--accent-deep); font-size: 14px; font-weight: var(--w-ui); text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lrisk-link .id { color: var(--ink); text-decoration: none; }
.lrisk-link:hover, .lrisk-link[aria-expanded="true"] { color: var(--ink); }

/* Sheet: score tiles and facts */
.lgn .ltext { font-size: 15px; font-weight: 700; line-height: 1.3; }
.lgn .m { font-size: 12px; color: var(--ink-2); font-variant-numeric: var(--tabular); }
.lgn .is-net .m { color: var(--on-ink-body); }
.lfacts { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.lfacts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.lfacts dt { font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.45; }
.lfacts dd { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink); }

/* ---- Risk: emerging radar and list ---- */
.lemg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.lrad { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lrad-box { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; }
.lrad-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lrad-ring { font-family: var(--font-text); font-size: 3px; font-weight: 600; fill: var(--ink-2); }
.lrad-sec { position: absolute; max-width: 30%; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.lrad-tr { top: 0; right: 0; text-align: right; }
.lrad-r { top: 50%; right: 0; transform: translateY(-300%); text-align: right; }
.lrad-br { bottom: 0; right: 0; text-align: right; }
.lrad-bl { bottom: 0; left: 0; }
.lrad-l { top: 50%; left: 0; transform: translateY(-300%); }
.lrad-tl { top: 0; left: 0; }
.lbub { position: absolute; width: var(--d); min-width: 26px; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0; font: inherit; font-size: 12px; font-weight: 700; font-variant-numeric: var(--tabular); cursor: pointer; }
.lbub:hover, .lbub[aria-expanded="true"] { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.lbub-reg { background: var(--ink); color: var(--surface); border: 1.5px solid var(--ink); }
.lbub-watch { background: var(--accent-deep); color: var(--surface); border: 1.5px solid var(--accent-deep); }
.lbub-hor { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); }
.lbub-key { width: 12px; height: 12px; border-radius: 99px; display: inline-block; }
.lemg-list { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lemg-group { display: flex; flex-direction: column; gap: 4px; }
.lemg-n { width: 28px; height: 28px; flex: none; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; font-variant-numeric: var(--tabular); }

/* ---- Controls: team cards ---- */
.lteams { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.lteam { display: flex; min-width: 0; }
.lteam-btn { font: inherit; position: relative; width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.lteam.is-weak .lteam-btn { border-left: 5px solid var(--ink); }
.lteam-btn:hover { border-color: var(--ink); }
.lteam-btn[aria-expanded="true"] { border: 2px solid var(--ink); background: var(--surface-2); }
.lteam.is-weak .lteam-btn[aria-expanded="true"] { border-left-width: 5px; }
.lteam-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding-right: 22px; }
.lteam-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lteam-name b { font-size: 16px; font-weight: 700; }
.lteam-name .m, .lteam-btn > .m { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.lteam-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.lteam-score .pill { margin-left: auto; align-self: center; }
.lteam-score .num { font-size: calc(28px * var(--num-scale)); }
.lteam-score .m { font-size: 12.5px; color: var(--ink-2); }
.lteam-btn .chev { position: absolute; top: 14px; right: 12px; color: var(--ink-2); }
.lteam-btn .stackbar { height: 12px; }

/* ---- Processes ---- */
.lproc { display: flex; flex-direction: column; gap: 14px; }
.lmap { display: flex; flex-direction: column; gap: 12px; }
/* Hotspots (.thot, absolute in team.css) sit in % of the map: the box is their positioned parent and grows with the SVG's min-width. */
.lmap .tube-box { position: relative; min-width: 860px; }
.lmap .tube-box .tube { display: block; }
.lmap .thot { transform: none; } /* lens_pages hot() gives each hotspot as a top-left box, not a centre point */
.lflows:empty { display: none; }
.llines { display: flex; flex-direction: column; gap: 8px; }

/* ---- Incidents: filter chips and cards ---- */
.lchips { display: flex; flex-wrap: wrap; gap: 8px; }
.lchip { font: inherit; display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-size: 14.5px; font-weight: var(--w-ui); cursor: pointer; }
.lchip:hover { background: var(--surface); }
.lchip[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.lchip-n { font-variant-numeric: var(--tabular); font-weight: 700; opacity: 0.85; }
.lcount { margin: -4px 0 0; }
.lincs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.linc { display: flex; min-width: 0; }
.linc[hidden] { display: none; }
.linc-btn { font: inherit; position: relative; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 40px 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.linc.is-open .linc-btn { border-left: 5px solid var(--ink); }
.linc-btn:hover { border-color: var(--ink); }
.linc-btn[aria-expanded="true"] { border: 2px solid var(--ink); background: var(--surface-2); }
.linc.is-open .linc-btn[aria-expanded="true"] { border-left-width: 5px; }
.linc-btn .chev { position: absolute; top: 14px; right: 12px; color: var(--ink-2); }
.linc-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; width: 100%; }
.linc-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.linc-btn .t { font-size: 15px; font-weight: 600; line-height: 1.35; }
.linc-btn .m { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.lcauses li { gap: 0; }
.lcause { font: inherit; width: calc(100% + 20px); margin: 0 -10px; display: flex; flex-direction: column; gap: 5px; padding: 10px; min-height: var(--tap); border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.lcause:hover { background: var(--surface-2); }
.lcause .top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.lcause .top b { font-weight: 600; }
.lcause .small { text-decoration: underline; text-underline-offset: 3px; color: var(--accent-deep); font-weight: 600; }

/* ---- Complaints: monthly columns, outcome split ---- */
.lcols { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 8px; height: 190px; }
.lcols li { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lcol-v { font-size: 13px; font-weight: 700; color: var(--ink); }
.lcol-track { flex: 1 1 auto; width: 100%; display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
.lcol-bar { width: 72%; max-width: 48px; display: flex; flex-direction: column; justify-content: flex-end; background: #9EC0CC; border-radius: 5px 5px 0 0; overflow: hidden; }
.lcol-up { display: block; width: 100%; background: var(--ink); }
.lcol-m { font-size: 12.5px; color: var(--ink-2); }
.loutcome { display: flex; height: 12px; border-radius: 99px; overflow: hidden; gap: 2px; }
.loutcome span { height: 100%; }

/* ---- Who uses this view ---- */
.lwho { display: flex; flex-direction: column; gap: 16px; padding-top: 72px; padding-bottom: 72px; }
.lwho-head { display: flex; flex-direction: column; gap: 6px; }
.lwho-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.lwho-link { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
.lwho-link b { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.lwho-link .chev { margin-left: auto; color: var(--ink-2); }
a.lwho-link:hover { border-color: var(--ink); }
.lwho-link.is-soon .chev { display: none; }
.lwho-link.is-soon .soon { margin-left: auto; }

/* ---- Breakpoints ---- */
@media (max-width: 959px) {
  .lemg { grid-template-columns: minmax(0, 1fr); }
  .lrad-box { margin: 0 auto; }
  .lsubs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .lpanel { padding: 12px 12px 16px; }
  .lclasses { grid-template-columns: minmax(0, 1fr); }
  .lteams { grid-template-columns: minmax(0, 1fr); }
  .lincs { grid-template-columns: minmax(0, 1fr); }
  .lmap { display: none; }
  .llines { order: 1; }
  .lflows { order: 2; }
  .lfacts > div { grid-template-columns: minmax(0, 1fr); }
  .lrow { flex-wrap: wrap; }
  .lrow .side { justify-content: flex-start; }
  .lrad-sec { font-size: 11px; }
  .lrad-r, .lrad-l { transform: translateY(-330%); }
  .lcols { gap: 4px; height: 170px; }
  .lcol-v, .lcol-m { font-size: 11.5px; }
  .lwho-list { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Final copy layout (decks): pull quote, static summary, callouts, what's in it,
   how it works, who uses this view with descriptions, controls radar
   ========================================================================== */
.lquote { margin: 4px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--ink); max-width: 40em; display: flex; flex-direction: column; gap: 6px; }
.lquote blockquote { margin: 0; }
.lquote blockquote p { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; color: var(--ink); }
.lquote figcaption { font-size: 14px; color: var(--ink-2); }
.lsummary { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 60em; margin: 0; }
.lcallouts { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lthink-line { max-width: 46em; margin: 0; }
.lwhats { display: grid; gap: 14px; }
.lwhats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lwhats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lwhat { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.lwhat-lead { font-size: 16px; font-weight: 600; color: var(--ink); }
.lwhat-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.lwhat-list b { color: var(--ink); font-weight: 600; }
.lsteps li { position: relative; }
.lstep-n { width: 32px; height: 32px; border-radius: 99px; background: var(--ink); color: var(--lemon); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-data); font-size: 15px; font-weight: 700; }
.lwho-link { align-items: flex-start; }
.lwho-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lwho-d { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.lwho-link .chev { flex: none; margin-top: 2px; }
.lwho-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.lwho-link.is-soon .soon { margin-left: 0; align-self: flex-start; }

/* Controls radar */
.lcradar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.lcradar-fig { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lcradar-svg { width: 100%; max-width: 520px; height: auto; overflow: visible; }
.lrad-lab { font-family: var(--font-text); font-size: 3.1px; font-weight: 600; fill: var(--ink); }
.lrad-scale { font-size: 2.6px; fill: var(--ink-2); font-weight: 500; }
.lctable td, .lctable th { font-variant-numeric: var(--tabular); }
@media (max-width: 959px) {
  .lwhats-2, .lwhats-3 { grid-template-columns: minmax(0, 1fr); }
  .lcradar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .lquote blockquote p { font-size: 19px; }
  .lwho-list { grid-template-columns: minmax(0, 1fr); }
  .lrad-lab { font-size: 3.6px; }
}

/* ---- Round 2 (13 Oct 2026): bridge line under the callouts; footer CTA who-we-are line ---- */
.lbridge { font-weight: 600; color: var(--ink); max-width: 46em; }
.cta-follow { margin-top: 14px; }
