/* Dolvero v2 shared design system.
   Cached 30 days immutable by .htaccess, so bump the ?v= stamp in _head.php on
   every edit here or the change never reaches a returning browser. */

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}

:root{
  --bg:#070b13; --panel:#0b1120; --panel2:#0f1626; --raise:#141d31;
  --line:rgba(147,184,255,.10); --line2:rgba(147,184,255,.18);
  /* PROMOTED FROM THE PAGE SHEETS. --hairline was defined in fifteen files under
     assets/pages/ and in none of the shared ones, so a page that used it without
     carrying its own copy resolved to an invalid value and the border silently
     vanished. checkout.css did exactly that: its order-summary dividers were
     never drawn at all. A token more than one page uses belongs here. */
  --hairline:rgba(147,184,255,.05);
  --text:#eaf0fb; --muted:rgba(226,234,250,.56); --faint:rgba(226,234,250,.34);
  --accent:#4f7df0; --accent2:#2554d4; --soft:#93b8ff;
  --buy:#10b981; --sell:#ef4444; --warn:#f59e0b;
  /* The white-wash overlays used for hover and inset surfaces. They were only
     ever written as inline fallbacks - var(--w1,rgba(255,255,255,.03)) - and
     never actually defined, so they could not be themed and painted white on
     white in light mode. Named here, overridden below. */
  --w1:rgba(255,255,255,.03); --w2:rgba(255,255,255,.055); --w3:rgba(255,255,255,.09);
  --nav-h:52px; --bar-h:44px;
  --r:12px;
}

/* ---------------------------------------------------------------------------
   THE LIGHT PALETTE. This block did not exist.

   Every token above was declared once, in dark, and this file's only
   [data-theme="light"] rule was a logo filter. So on a light page anything
   styled with a SHARED token - and that is most of the design system: nav links,
   segmented controls, card headings, hints, table labels - painted near-white
   text on a near-white ground and simply disappeared.

   It looked page-specific rather than global because the pages that define their
   own palette (rules.css, dashboard.css, the sign-in page) each carry a full
   light block of their own and were partly immune. What was left faint on those
   pages was exactly the parts drawn with the shared tokens: the page title, the
   card headings, the inactive segment options, the Search button.

   The values below are not invented. They are the light values this app has
   already settled on elsewhere - rules.css, index.php and v2-bg.css all use
   #0a1020 ink, rgba(10,16,32,.72) muted and rgba(20,45,110,.14) lines - so this
   makes the shared layer agree with the pages rather than introducing a third
   opinion.

   buy / sell / warn deliberately keep their dark values: they are signal
   colours, and v2-bg.css already supplies contrast-checked --buy-text and
   --sell-text for the cases where they are read as words rather than seen.
   --------------------------------------------------------------------------- */
:root[data-theme="light"]{
  --bg:#eef3fd; --panel:#ffffff; --panel2:#f7f9fc; --raise:#eef2f9;
  --hairline:rgba(20,45,110,.10);
  --line:rgba(20,45,110,.14); --line2:rgba(20,45,110,.24);
  --text:#0a1020; --muted:rgba(10,16,32,.72); --faint:rgba(10,16,32,.55);
  --accent:#2554d4; --accent2:#1c3f9e; --soft:#3f6fd8;
  --w1:rgba(16,32,72,.04); --w2:rgba(16,32,72,.07); --w3:rgba(16,32,72,.11);
}

html,body{height:100%}
body{background:var(--bg);color:var(--text);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  -webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
/* Named .mono for history only - it is NOT a monospace face and must never
   become one again. Mono buys column alignment and costs legibility; Inter
   with tabular figures buys the same alignment and keeps the page clean.
   v2-bg.css also asserts this at higher specificity; this is the source. */
.mono{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;font-variant-numeric:tabular-nums lining-nums}
::-webkit-scrollbar{width:9px;height:9px}
::-webkit-scrollbar-thumb{background:rgba(147,184,255,.16);border-radius:9px}
::-webkit-scrollbar-track{background:transparent}

/* ---------- top nav ----------
   The ONE nav. Every v2 page renders _nav.php and takes its appearance from
   here, so a change lands on all of them at once. Pages used to carry a private
   copy of this block, which is precisely why the nav differed page to page.

   The right-hand cluster is theme toggle, then notifications, then avatar - all
   real flex children of this bar. Nothing floats over it, so there is no
   reserved gutter to keep in sync. */
.tnav{display:flex;align-items:center;gap:8px;height:var(--nav-h);padding:0 14px;
  background:var(--panel);border-bottom:1px solid var(--bg-glass-line,var(--line));position:sticky;top:0;z-index:40;
  -webkit-backdrop-filter:blur(16px) saturate(1.3);backdrop-filter:blur(16px) saturate(1.3)}
/* THE REAL LOCKUP, not a rebuild of it.
   This used to be a 24px square showing fulllogo.png at `auto 100%`, with the
   word DOLVERO typed out beside it in CSS at 800 weight and .14em tracking.
   fulllogo.png is 2394x561 - the whole lockup, mark AND wordmark - so the
   square cropped it, and the wordmark was then drawn a second time in a
   typeface and at a spacing the brand file does not use. Michal called the
   result the wrong size, and it was: the rebuild spanned about 165px where the
   brand lockup at the same cap height is 77px, and no CSS reconstruction can
   hold the mark-to-wordmark proportion the artwork defines.
   So the artwork is used as artwork. `contain` keeps its 4.267:1 ratio at any
   height, which makes the size one number to change rather than three. */
.tnav__mark{width:77px;height:18px;flex:none;
  background:url('/fulllogo.png') left center / contain no-repeat}
/* fulllogo.png is white ink for the dark ground; there is a real dark-ink file
   for the light one, so the old invert/brightness/saturate hack is gone. */
:root[data-theme="light"] .tnav__mark{background-image:url('/fulllogo-dark.png')}
.tnav__word{font-weight:800;letter-spacing:.14em;font-size:13px;margin-right:14px;
  display:flex;align-items:center}
.tnav a.lnk{padding:7px 11px;border-radius:8px;font-size:13.5px;font-weight:500;color:var(--muted);white-space:nowrap}
.tnav a.lnk:hover{color:var(--text);background:var(--w2,rgba(255,255,255,.04))}
.tnav a.lnk.is-on{color:var(--text);font-weight:600;background:rgba(79,125,240,.14)}
.tag{margin-left:6px;font-size:9px;font-weight:800;letter-spacing:.06em;padding:2px 5px;border-radius:4px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff}
.tnav__sp{flex:1}
.searchbtn{display:flex;align-items:center;gap:8px;height:32px;padding:0 11px;min-width:210px;
  border:1px solid var(--line);border-radius:9px;background:var(--w1,rgba(255,255,255,.03));
  color:var(--faint);font-family:inherit;font-size:13px;cursor:pointer}
.searchbtn:hover{border-color:var(--line2);color:var(--muted)}
.searchbtn kbd{margin-left:auto;font-family:inherit;font-size:10.5px;padding:2px 5px;border-radius:4px;
  border:1px solid var(--line2);color:var(--faint)}
.iconbtn{width:32px;height:32px;flex:none;display:flex;align-items:center;justify-content:center;border-radius:8px;
  border:1px solid var(--line);background:var(--w1,rgba(255,255,255,.03));color:var(--muted);cursor:pointer}
.iconbtn:hover{color:var(--text);border-color:var(--line2)}
/* The avatar is filled with the accent gradient in both schemes, so its ink is
   named rather than inherited: the light scheme's --text is near black and
   would be unreadable on it. */
.avatar{width:30px;height:30px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;font-size:11.5px;font-weight:700}
/* With a picture the mark IS the picture: it fills the circle and is cropped to
   it, so a square 256px file and a 30px round slot agree. The gradient stays
   underneath as the ground for the initials, and as what shows while the file
   is still loading. */
.avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
/* ---------- the bar at small widths ----------
   Measured, not guessed: at a 390px viewport the bar's contents came to 427px,
   and every page using this nav scrolled sideways by exactly that 37px.

   Two separate faults sat behind it. The bar kept Trade and Evaluations at
   their intrinsic width next to five controls, which is the overflow; and the
   1120px rule below hides six section links with nothing to replace them,
   which meant Support and Metrics were unreachable on a phone. The sections
   menu in _nav.php fixes the second, and hiding the last two links at 560px
   fixes the first without costing any reachability, because that menu is
   already carrying them by then. */
/* SCOPED TO .tnav ON PURPOSE, and it must stay that way.
   `.navsec{display:none}` alone is a single class, 0-1-0, and so is
   `.navmenu{...display:flex...}` further down this file. The sections button
   carries BOTH classes, so at equal specificity the later rule wins and the
   hamburger showed at every width including full desktop. Ordering fixed it
   only until the next time these blocks moved, which is exactly what happened
   when five packages were merged into this file. `.tnav .navsec` is 0-2-0 and
   beats `.navmenu` wherever either one sits. The 1120px rule below is scoped
   the same way for the same reason. */
.tnav .navsec{display:none}
.navpop--l{left:0;right:auto}
.navpop__a.is-on{color:var(--text);font-weight:600;background:rgba(79,125,240,.14)}
@media (max-width:1120px){.tnav .lnk.opt{display:none}.searchbtn{min-width:44px}.searchbtn span,.searchbtn kbd{display:none}
  .tnav .navsec{display:flex}}
@media (max-width:700px){.tnav__word{display:none}}
@media (max-width:560px){.tnav .lnk{display:none}.tnav{gap:6px;padding:0 10px}}

/* ---------- shared components ---------- */
.demo{font-size:9.5px;font-weight:800;letter-spacing:.07em;padding:2px 6px;border-radius:4px;
  background:rgba(245,158,11,.15);color:var(--warn);border:1px solid rgba(245,158,11,.35)}
.live{font-size:9.5px;font-weight:800;letter-spacing:.07em;padding:2px 6px;border-radius:4px;
  background:rgba(16,185,129,.15);color:var(--buy);border:1px solid rgba(16,185,129,.3)}
.up{color:var(--buy)}.down{color:var(--sell)}

.card{background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.012));
  border:1px solid var(--line);border-radius:var(--r)}

.btn{border:1px solid transparent;border-radius:9px;cursor:pointer;font-family:inherit;font-weight:600;
  transition:background .15s ease,box-shadow .15s ease,transform .12s ease}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.btn--primary{color:#fff;background:linear-gradient(135deg,var(--accent),var(--accent2));
  box-shadow:0 8px 22px -10px rgba(37,84,212,.9)}
.btn--ghost{color:var(--muted);background:rgba(255,255,255,.04);border-color:var(--line)}
.btn--ghost:hover{color:var(--text);border-color:var(--line2)}

.seg{display:inline-flex;padding:3px;gap:3px;border-radius:10px;
  background:rgba(255,255,255,.04);border:1px solid var(--line)}
.seg button{padding:7px 14px;border:none;border-radius:8px;background:none;cursor:pointer;
  font-family:inherit;font-size:13px;font-weight:600;color:var(--muted)}
.seg button:hover:not(:disabled):not(.is-on){color:var(--text);background:rgba(255,255,255,.05)}
.seg button.is-on{background:#fff;color:#0b1120}

table{width:100%;border-collapse:collapse;font-size:12.5px}
th{position:sticky;top:0;background:var(--bg);text-align:left;padding:8px 12px;
  font-size:10.5px;font-weight:600;color:var(--faint);border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:9px 12px;border-bottom:1px solid rgba(147,184,255,.05);white-space:nowrap}
tr:hover td{background:rgba(255,255,255,.02)}
.tablewrap{overflow-x:auto}

.wrap{max-width:1320px;margin:0 auto;padding:26px 20px 70px}

/* ---------- nav menus: notifications and account ----------
   Both hang off .tnav. Colours come from the shared tokens so the light scheme
   re-skins them for free, and every one has a base definition - nothing here is
   declared only under the light selector. */
.navmenu{position:relative;flex:none;display:flex;align-items:center}
.iconbtn__n{position:absolute;top:-3px;right:-3px;min-width:15px;height:15px;padding:0 3px;
  border-radius:8px;background:var(--sell);color:#fff;font-size:9.5px;font-weight:800;
  line-height:15px;text-align:center;pointer-events:none}
.navpop{position:absolute;top:calc(100% + 8px);right:0;z-index:80;
  min-width:266px;max-width:min(330px,calc(100vw - 24px));
  background:var(--sticky,var(--panel2));border:1px solid var(--line2);border-radius:12px;
  box-shadow:0 18px 44px -22px rgba(0,0,0,.65);overflow:hidden;
  -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.navpop[hidden]{display:none}
.navpop__h{padding:10px 13px 8px;font-size:10.5px;font-weight:800;letter-spacing:.09em;
  text-transform:uppercase;color:var(--faint);border-bottom:1px solid var(--line)}
.navpop__e{padding:16px 13px;font-size:13px;color:var(--faint)}
.navpop__i{display:flex;gap:9px;align-items:baseline;padding:9px 13px;
  border-bottom:1px solid var(--line)}
.navpop__i:last-child{border-bottom:none}
.navpop__i.is-new{background:rgba(79,125,240,.10)}
.navpop__t{flex:1;min-width:0;font-size:12.5px;line-height:1.45;color:var(--text)}
.navpop__d{flex:none;font-size:11px;color:var(--faint);font-variant-numeric:tabular-nums}
.navpop__who{padding:11px 13px;border-bottom:1px solid var(--line);display:flex;
  flex-direction:column;gap:2px;min-width:0}
.navpop__nm{font-size:13.5px;font-weight:700;color:var(--text);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.navpop__em{font-size:11.5px;color:var(--faint);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.navpop__a{display:block;width:100%;padding:9px 13px;font-size:13px;font-weight:500;
  color:var(--muted);background:none;border:none;text-align:left;cursor:pointer;
  font-family:inherit}
.navpop__a:hover{background:var(--w2);color:var(--text)}
.navpop__a:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.navpop__a--out{color:var(--sell-text,var(--sell));font-weight:600}
.navpop__f{margin:0;border-top:1px solid var(--line)}

/* "Dolvero Edge" lockup. EDGE hangs off the parent wordmark rather than sitting
   beside it as an equal: at 13px in a 52px bar two full-weight words compete and
   neither reads. Lighter, tracked, and in the accent so it registers as a
   sub-brand instead of a second company. */
/* The EDGE half of the wordmark. It was .78em at .18em tracking in --soft at
   92% opacity: the opacity on an already-soft colour read as muddy rather than
   secondary, and tracking wider than DOLVERO's own made the two words drift
   apart instead of locking up. Now it is full-strength --soft, tracked to match
   DOLVERO exactly, and divided by a hairline so the pair reads as ONE mark. */
.tnav__sub,.anav__sub{margin-left:9px;padding-left:9px;
  border-left:1px solid var(--line2);
  font-weight:600;font-size:.8em;letter-spacing:.14em;color:var(--soft)}

/* Dolvero Supply. Sized as a twin of .adminbtn and .iconbtn so the right-hand
   cluster stays one row of equal controls.

   "Subtly HD": the shine is a single specular sweep across the garment on hover,
   masked to the icon and gone in 700ms - not a permanent gradient and not a
   loop. At rest it is an ordinary quiet icon, which is what keeps it subtle;
   the polish only appears when the pointer says you are interested. */
.supplybtn{position:relative;width:32px;height:32px;flex:none;overflow:hidden;
  display:inline-flex;align-items:center;justify-content:center;border-radius:8px;
  color:var(--muted);background:var(--w1);border:1px solid var(--line);
  transition:color .16s ease,border-color .16s ease,transform .16s ease}
.supplybtn:hover{color:var(--text);border-color:var(--line2);transform:translateY(-1px)}
.supplybtn:focus-visible{outline:2px solid var(--soft);outline-offset:2px}
.supplybtn svg{position:relative;z-index:1}
/* The sweep. A narrow highlight travelling left to right, clipped by the button,
   so it reads as light moving over fabric rather than the button changing colour. */
.supplybtn::after{content:"";position:absolute;inset:-40%;z-index:2;pointer-events:none;
  background:linear-gradient(105deg,transparent 42%,rgba(255,255,255,.55) 50%,transparent 58%);
  transform:translateX(-120%);opacity:0}
.supplybtn:hover::after{animation:supplySheen .7s ease-out}
@keyframes supplySheen{
  0%{transform:translateX(-120%);opacity:0}
  35%{opacity:1}
  100%{transform:translateX(120%);opacity:0}
}
:root[data-theme="light"] .supplybtn::after{
  background:linear-gradient(105deg,transparent 42%,rgba(37,84,212,.28) 50%,transparent 58%)}
@media (prefers-reduced-motion:reduce){.supplybtn:hover::after{animation:none}
  .supplybtn:hover{transform:none}}
/* The word is carried by the tooltip, like its neighbours. */
.supplybtn span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Admin entry in the trader nav. It used to be an amber pill with the word
   ADMIN in it, matching the admin shell's session band - the reasoning being
   that leaving the trader app for a console that can change real accounts is a
   mode switch and should look like one.

   In practice it shouted. The nav's right-hand cluster is a row of quiet 32px
   controls (theme, notifications, avatar) and a saturated amber pill in the
   middle of them read as a warning about something being wrong rather than as a
   door. It is now the fourth member of that row: same size, same weight, named
   by its tooltip. The authority colour survives where it is actually doing work
   - inside the console itself. */
/* .setbtn is the Settings gear, which left the link row for the control
   cluster. It shares every rule here because it is the same component: a 32px
   icon button that leaves the current view. Only its active state is its own -
   the gear is now the sole indicator that you are on Settings, so it needs the
   same "you are here" tint the nav links carry. */
.adminbtn,.setbtn{width:32px;height:32px;flex:none;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:8px;
  color:var(--muted);background:var(--w1,rgba(255,255,255,.03));
  border:1px solid var(--line)}
.adminbtn:hover,.setbtn:hover{color:var(--text);border-color:var(--line2)}
.adminbtn:focus-visible,.setbtn:focus-visible{outline:2px solid var(--soft);outline-offset:2px}
.adminbtn svg,.setbtn svg{flex:none}
.setbtn.is-on{color:var(--text);border-color:rgba(79,125,240,.45);background:rgba(79,125,240,.14)}

/* ---------- nav instrument search: a full-screen command palette ----------
   On the terminal the same-looking button is #openPicker and terminal.js opens
   an in-page picker. This is the other half, off the terminal only.

   OPACITY IS A CORRECTNESS REQUIREMENT HERE, NOT POLISH. This palette opens
   over pages showing money. A first cut used --panel2 and account figures read
   straight through the results - "+$253.53" legible behind a list of
   instruments. The cause is not a local rule: FIFTEEN page stylesheets under
   assets/pages/ redefine --panel2 as translucent, and anything at body level
   inherits whichever page it happens to be on. So this surface owns dedicated
   tokens that no page sheet touches, and they are opaque hex, never rgba.
   Do not "simplify" these back to --panel/--panel2. */
:root{ --nsurf:#0b1120; --nsurf-2:#121b2d; --nscrim:rgba(4,8,18,.72); }
:root[data-theme="light"]{ --nsurf:#ffffff; --nsurf-2:#f2f6fd; --nscrim:rgba(16,32,72,.42); }

.navsearch{position:relative;display:flex;align-items:center}

/* The overlay is the scrim. Translucency is fine HERE - it is over the page,
   not under the text being read. */
.navsearch__pop{position:fixed;inset:0;z-index:200;
  display:flex;align-items:flex-start;justify-content:center;
  padding:12vh 16px 16px;background:var(--nscrim)}
.navsearch__pop[hidden]{display:none}
@supports (backdrop-filter:blur(2px)){
  .navsearch__pop{backdrop-filter:blur(3px)}
}
/* Solid first, glass only on top: where blur is unsupported or unwanted the
   result is a MORE opaque scrim, never unreadable text. */
@media (prefers-reduced-transparency:reduce){
  .navsearch__pop{backdrop-filter:none;background:var(--nsurf)}
}

.navsearch__box{width:100%;max-width:680px;
  background:var(--nsurf);border:1px solid var(--line2);border-radius:14px;
  box-shadow:0 30px 80px -24px rgba(0,0,0,.55);overflow:hidden;
  display:flex;flex-direction:column;max-height:76vh}

.navsearch__in{width:100%;flex:none;padding:18px 20px;border:0;
  border-bottom:1px solid var(--line);
  background:var(--nsurf);color:var(--text);
  font-family:inherit;font-size:17px;outline:none}
.navsearch__in::placeholder{color:var(--faint)}

.navsearch__list{flex:1;min-height:0;overflow-y:auto;background:var(--nsurf);
  scrollbar-width:thin;scrollbar-color:var(--line2) transparent}
.navsearch__list::-webkit-scrollbar{width:6px}
.navsearch__list::-webkit-scrollbar-thumb{background:var(--line2);border-radius:3px}
.navsearch__list::-webkit-scrollbar-track{background:transparent}

.navsearch__r{display:flex;align-items:center;gap:14px;padding:12px 20px;
  color:var(--muted);font-size:14px;cursor:pointer}
.navsearch__r:hover,.navsearch__r.is-on{background:var(--nsurf-2);color:var(--text)}
/* The symbol is what gets scanned, so it is fixed and narrow; the name takes
   the rest rather than truncating mid-word next to empty space. */
.navsearch__sym{flex:none;min-width:96px;font-weight:700;color:var(--text);
  font-variant-numeric:tabular-nums;letter-spacing:.01em}
.navsearch__nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.navsearch__mkt{flex:none;font-size:9.5px;font-weight:700;letter-spacing:.07em;
  text-transform:uppercase;color:var(--faint);
  border:1px solid var(--line2);border-radius:999px;padding:3px 8px}
.navsearch__msg{padding:22px 20px;color:var(--muted);font-size:13.5px;line-height:1.65}
.navsearch__hint{color:var(--faint);font-size:12.5px}
.navsearch__lnk{display:inline-block;margin-top:9px;color:var(--accent);
  font-size:13px;font-weight:600}
.navsearch__lnk:hover{text-decoration:underline}
@media (max-width:700px){.navsearch__pop{padding:6vh 12px 12px}
  .navsearch__box{max-height:86vh}
  .navsearch__sym{min-width:82px}}
/* The word is carried by the tooltip now, so it never renders at any width. */
.adminbtn span,.setbtn span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* ---------- the EDGE lockup, 28 Aug ----------
   It was flat --soft next to a full-weight DOLVERO, which read as a caption
   rather than a sub-brand. Now it carries a gradient drawn from the brand blue,
   a slightly heavier weight, and a hairline divider that fades at both ends so
   the two halves lock up instead of being separated by a hard rule.

   background-clip:text needs a transparent fill to show through; the plain
   colour above it is the fallback for anything that cannot clip (and is why
   the colour is still declared). */
.tnav__sub,.anav__sub{
  font-weight:750;
  background:linear-gradient(96deg,var(--accent) 0%,#7fa4ff 48%,var(--accent) 100%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;
  /* A soft bloom behind the letters rather than a text-shadow on them, which
     would smear the gradient it sits under. */
  filter:drop-shadow(0 1px 6px rgba(79,125,240,.34));
  border-left:0;                      /* the hard rule is replaced below */
  position:relative;padding-left:11px;margin-left:11px}

/* The divider, as a fading hairline instead of a solid border. */
.tnav__sub::before,.anav__sub::before{
  content:'';position:absolute;left:0;top:8%;bottom:8%;width:1px;
  background:linear-gradient(180deg,transparent,var(--line2) 22%,var(--line2) 78%,transparent)}

/* Light theme: the mid-stop lifts too pale on white, so the ramp is darkened
   at both ends to keep the contrast honest. */
:root[data-theme="light"] .tnav__sub,
:root[data-theme="light"] .anav__sub{
  background:linear-gradient(96deg,#2a4fd0 0%,#5b86f0 48%,#2a4fd0 100%);
  -webkit-background-clip:text;background-clip:text;
  filter:drop-shadow(0 1px 4px rgba(42,79,208,.20))}

/* No gradient text for anyone who has asked for less: background-clip:text is
   fine, but the drop-shadow bloom is decoration. */
@media (prefers-reduced-motion:reduce){
  .tnav__sub,.anav__sub{filter:none}
}

/* ---------- the legal footer, 8 Sep ----------
   The band _foot.php renders under the document-shaped pages. Quiet on purpose:
   a hairline, two sizes of text and three links. Every colour is a shared token,
   so it follows the theme with no light-mode block of its own.

   position:relative with z-index:1 rather than trusting the background layer to
   stay behind everything: v2-bg.css paints a fixed aurora under the page, and a
   static footer would depend on a promotion rule defined in another file.

   The inner container repeats .v2wrap's 1320px and 20px gutter instead of
   reusing the class, because .v2wrap carries page padding this does not want and
   evaluations.css redefines it as a fixed-height frame at desk sizes. */
.v2foot{position:relative;z-index:1;border-top:1px solid var(--line)}
.v2foot__in{max-width:1320px;margin:0 auto;padding:18px 20px 30px;
  display:flex;flex-direction:column;gap:10px}
.v2foot__links{display:flex;flex-wrap:wrap;align-items:center;gap:6px 20px;font-size:13px}

/* THE SENTENCE A CUSTOMER IS AGREEING TO. Used by the footer risk line and by
   the consent line above the pay button, which previously would have inherited
   .ck__note: 10.5px in --faint, about 3.8:1 on the light ground and the faintest
   text on the page that takes the money. 12.5px in --muted is 8:1 light and 7:1
   dark. 80ch keeps a single sentence from running the full 1320px on a wide
   monitor, where a line that width is genuinely hard to track back from. */
.legalnote{margin:12px 0 0;max-width:80ch;font-size:12.5px;line-height:1.55;
  color:var(--muted);text-wrap:pretty}
/* Inside the footer the flex gap already provides the spacing. */
.v2foot .legalnote{margin:0}

/* The treatment for a link to a legal document, in the footer and at checkout.
   Underlined deliberately: a colour change alone is not enough for something a
   customer has to find without hunting. --accent rather than --soft because
   --soft is only 4.2:1 on the light ground and this is body-size text. */
a.legallink{color:var(--accent);text-decoration:underline;text-underline-offset:2px;font-weight:500}
a.legallink:hover{color:var(--text)}
a.legallink:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}

@media (max-width:560px){
  .v2foot__in{padding:16px 16px 26px}
  .v2foot__links{gap:6px 14px}
}

/* Keep shared Edge navigation inside small phone viewports. Settings remains
   available from the account menu when its duplicate toolbar icon is hidden. */
@media(max-width:360px){.tnav .setbtn{display:none}.tnav{gap:5px;padding-inline:8px}}
@media(max-width:560px){
 .tnav .navpop{position:fixed;top:calc(var(--nav-h) + 8px);left:12px;right:12px;width:auto;min-width:0;max-width:none;max-height:calc(100dvh - var(--nav-h) - 24px);overflow-y:auto;overscroll-behavior:contain}
 .tnav .navpop__a{min-height:44px;display:flex;align-items:center;box-sizing:border-box}
}
