/* ==========================================================================
   v10.css — the elevation layer
   ----------------------------------------------------------------------------
   Loaded last on every page. It does four jobs and nothing else:

     1. corrections   things that were visibly wrong before v10
     2. accessibility focus rings, skip link, touch targets, contrast
     3. refinement    typography, rhythm, buttons, tables, forms, motion
     4. new work      the video-consultation surfaces outside the room

   Nothing here renames or removes an existing class, so every earlier layer
   keeps working exactly as it did.
   ========================================================================== */

/* ==========================================================================
   0 · TOKENS
   The palette is unchanged. What is added is the vocabulary the older layers
   kept re-inventing inline: elevation, radius, a real focus colour.
   ========================================================================== */
:root{
  --r-sm:8px;
  --r-md:14px;
  --r-lg:20px;
  --r-pill:999px;

  --e-1:0 1px 2px rgba(20,18,16,.05), 0 1px 1px rgba(20,18,16,.04);
  --e-2:0 4px 14px rgba(20,18,16,.07), 0 1px 3px rgba(20,18,16,.05);
  --e-3:0 14px 40px rgba(20,18,16,.11), 0 3px 10px rgba(20,18,16,.06);
  --e-4:0 30px 70px rgba(20,18,16,.16);

  --focus:#0B63C5;
  --ok:#2E7D52;
  --warn:#8A5E17;

  --t-fast:.18s;
  --t-mid:.34s;
}

/* ==========================================================================
   1 · ACCESSIBILITY
   ========================================================================== */

/* A visible focus ring on everything reachable by keyboard. The site had
   none, which made the whole of it unusable without a mouse. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible{
  outline:2px solid var(--focus);
  outline-offset:3px;
  border-radius:4px;
}
.band--dark a:focus-visible,.band--dark button:focus-visible,
.tix a:focus-visible,.dpf a:focus-visible,.vidx a:focus-visible,
.foot a:focus-visible,.menu a:focus-visible,.vipm a:focus-visible,
.vidh a:focus-visible,.mdx a:focus-visible,.khero a:focus-visible{
  outline-color:#9CC6F5;
}

/* Skip link — the first tab stop on every page. */
.skip{
  position:fixed;top:12px;left:12px;z-index:999;
  transform:translateY(-160%);
  display:inline-flex;align-items:center;height:44px;padding:0 20px;
  border-radius:var(--r-pill);background:var(--ink);color:var(--paper);
  font-family:var(--sans);font-size:.85rem;font-weight:600;
  transition:transform var(--t-fast) var(--ease);
}
.skip:focus{transform:translateY(0)}

/* Never below 44px of touch target on a touch device. */
@media (pointer:coarse){
  .nav__links a,.foot a,.menu a,.mini,.chip,.slot,.day{min-height:44px;
    display:inline-flex;align-items:center}
}

/* Text selection, in the brand's own colour rather than the browser's blue. */
::selection{background:var(--rust);color:#fff}

/* ==========================================================================
   2 · CORRECTIONS
   Each of these was a real fault, not a preference.
   ========================================================================== */

/* --- 2.1 Treatment tiles: the label and heading sat on bare photograph.
   A single bottom gradient was not enough where the image was bright at the
   top, so the scrim now runs from both edges and the picture is calmer. --- */
.tcard::after{
  background:
    linear-gradient(180deg,rgba(12,11,10,.62) 0%,rgba(12,11,10,.12) 34%,
      rgba(12,11,10,.72) 76%,rgba(12,11,10,.93) 100%);
}
.tcard img{opacity:.44}
@media (hover:hover){ .tcard:hover img{opacity:.62} }
.tcard__n{color:#EE9A85;text-shadow:0 1px 12px rgba(0,0,0,.55)}
.tcard h3{text-shadow:0 1px 16px rgba(0,0,0,.5)}
.tcard p{color:rgba(242,239,233,.76)}
.tcard__go{opacity:.9}

/* the nine-tile grid left one orphan on the last row; the tenth cell is now
   a text tile that closes the shape */
.tix__grid{grid-auto-flow:dense}

/* --- 2.2 Nav now carries eight links; it needs to breathe rather than
   wrap onto two lines on a laptop. --- */
.nav__links{gap:clamp(15px,1.7vw,28px);font-size:clamp(.82rem,.96vw,.92rem)}
.nav{gap:clamp(12px,2vw,24px)}
@media (max-width:1180px){
  .nav__links a:nth-last-child(-n+2){display:none}   /* Media, Contact live in the menu */
}
@media (max-width:1040px){
  .nav__end .btn--line{display:none}
}

/* --- 2.3 The demo pill sat over the hero figures. --- */
.pill{z-index:75}
@media (max-width:900px){ .pill{bottom:88px} }

/* --- 2.4 Long words and code no longer push a column sideways. --- */
p,li,dd,td,th,figcaption,.lede,.small{overflow-wrap:break-word}

/* ==========================================================================
   3 · REFINEMENT
   ========================================================================== */

/* --- 3.1 Type. Fraunces is variable here, so the optical size can actually
   track the point size instead of being frozen at 90. --- */
/* v12: Fraunces optical-size settings removed — the display face is Archivo */
.t-mega,.t-xl{text-wrap:balance}
.t-lg,.t-md{text-wrap:balance}
.lede{text-wrap:pretty}
body{font-feature-settings:"kern" 1,"liga" 1;text-rendering:optimizeLegibility}
/* tabular figures wherever numbers are compared down a column */
.tbl td,.vcompare td,.kpi b,.srow span:last-child,.stotal span:last-child,
.vjoin__grid b,.rm-spec dd{font-variant-numeric:tabular-nums}

/* --- 3.2 Buttons: a press state, and a solid button that lifts. --- */
.btn{box-shadow:var(--e-1)}
.btn--solid:hover{box-shadow:var(--e-2);transform:translateY(-1px)}
.btn:active{transform:translateY(1px) scale(.985)}
.kbtn:active,.mini:active,.vjoin__go:active,.rm-join:active{transform:scale(.98)}
.btn,.kbtn,.mini,.chip,.slot,.day,.opt{-webkit-tap-highlight-color:transparent}

/* --- 3.3 Panels and cards: one elevation language instead of five. --- */
.panel{border-radius:var(--r-md);box-shadow:var(--e-1);
  transition:box-shadow var(--t-mid) var(--ease)}
.panel:hover{box-shadow:var(--e-2)}
.kpi{border-radius:var(--r-md)}
.qact{border-radius:var(--r-md);transition:transform var(--t-fast) var(--ease),
  box-shadow var(--t-fast) var(--ease),background var(--t-fast) ease}
.qact:hover{transform:translateY(-2px);box-shadow:var(--e-2)}

/* --- 3.4 Tables: sticky heads, and rows that respond. --- */
.tbl thead th{position:sticky;top:0;z-index:2;background:var(--paper)}
.tbl tbody tr{transition:background var(--t-fast) ease}
.tbl tbody tr:hover{background:var(--paper-2)}
.vcompare tbody tr:hover{background:var(--paper-2)}
.vcompare td.yes{font-family:var(--disp);font-weight:600;white-space:nowrap}

/* --- 3.5 Forms: a focus state that is not the browser default. --- */
.field input,.field select,.field textarea{
  transition:border-color var(--t-fast) ease,box-shadow var(--t-fast) ease}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--ink);box-shadow:0 0 0 3px rgba(20,18,16,.08)}
.field input:invalid:not(:placeholder-shown){border-color:var(--rust)}

/* --- 3.6 A holding colour under photographs, so a slow image is a warm
   rectangle rather than a white flash. Deliberately NOT on every img: the
   logo and the avatars are transparent PNGs and would gain a sand square
   in their corners on any dark surface. --- */
.tcard img,.jcard__img img,.art__lead img,.prax__fig img,.gal img,
.mdx img,.dpf__f img,.dif__img img,.vshow__body>img,.phero img,
.jfeat__img img,.rec img,.tile img,.mtile img{background-color:var(--sand)}

/* --- 3.7 Scrollbars, on the surfaces that have them. --- */
.rm-panel__b,.rm-chat,.panel__b,.cx__b,.cx__list{scrollbar-width:thin}
.rm-panel__b::-webkit-scrollbar,.rm-chat::-webkit-scrollbar{width:9px}
.rm-panel__b::-webkit-scrollbar-thumb,.rm-chat::-webkit-scrollbar-thumb{
  background:rgba(242,239,233,.16);border-radius:9px}

/* ==========================================================================
   4 · HOMEPAGE — the video consultation band (.vidh)
   Petrol, so it reads as a sibling of VIP OPD rather than a repeat of it.
   ========================================================================== */
.vidh{position:relative;background:var(--petrol);color:var(--paper);
  padding:clamp(56px,7.5vw,116px) 0;overflow:hidden;isolation:isolate}
.vidh::before{content:"";position:absolute;top:0;left:0;right:0;height:1px;
  background:var(--rust)}
.vidh::after{content:"";position:absolute;right:-16%;top:-24%;width:56%;padding-top:56%;
  border-radius:50%;background:radial-gradient(circle,rgba(184,140,74,.2),transparent 68%);
  z-index:-1;pointer-events:none}

.vidh__top{display:flex;align-items:baseline;justify-content:space-between;gap:20px;
  flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid rgba(242,239,233,.16)}
.vidh__n{font-family:var(--sans);font-size:10.5px;font-weight:600;letter-spacing:.24em;
  text-transform:uppercase;color:var(--rust)}
.vidh__meta{font-family:var(--sans);font-size:10.5px;font-weight:600;letter-spacing:.2em;
  text-transform:uppercase;color:rgba(242,239,233,.42)}

.vidh__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.92fr);
  gap:clamp(28px,4.6vw,72px);align-items:center;padding-top:clamp(30px,4vw,58px)}
.vidh__tx{min-width:0}
.vidh__h{margin:0 0 18px;font-family:var(--disp);font-weight:600;
  font-size:clamp(2rem,4.2vw,3.4rem);line-height:1.03;letter-spacing:-.035em;color:var(--paper)}
.vidh__h em{font-style:italic;color:var(--mint)}
.vidh__lede{margin:0 0 26px;font-size:clamp(1rem,1.2vw,1.14rem);line-height:1.62;
  color:rgba(242,239,233,.68);max-width:46ch}

.vidh__l{display:grid;grid-template-columns:1fr 1fr;gap:0 clamp(18px,2.4vw,34px);
  margin:0 0 30px;border-top:1px solid rgba(242,239,233,.14)}
.vidh__l li{display:grid;grid-template-columns:24px 1fr;gap:12px;align-items:start;
  padding:14px 0;border-bottom:1px solid rgba(242,239,233,.14)}
.vidh__l i{font-style:normal;font-size:13px;line-height:1.4;color:var(--rust)}
.vidh__l b{display:block;font-family:var(--sans);font-size:13.5px;font-weight:600;
  margin-bottom:3px;color:var(--paper)}
.vidh__l span{font-family:var(--sans);font-size:12.5px;line-height:1.5;
  color:rgba(242,239,233,.55)}

.vidh__foot{display:flex;align-items:center;justify-content:space-between;gap:22px;
  flex-wrap:wrap;padding-top:22px;border-top:1px solid rgba(242,239,233,.16)}
.vidh__price{display:flex;align-items:baseline;gap:12px;margin:0}
.vidh__price b{font-family:var(--disp);font-weight:600;
  font-size:clamp(1.9rem,3.1vw,2.7rem);letter-spacing:-.03em;line-height:1;color:var(--paper)}
.vidh__price span{font-family:var(--sans);font-size:12.5px;color:rgba(242,239,233,.5)}
.vidh__price i{font-style:normal}
.vidh__acts{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.vidh__btn{display:inline-flex;align-items:center;gap:10px;height:52px;padding:0 26px;
  border-radius:var(--r-pill);background:var(--paper);color:var(--ink);
  font-family:var(--sans);font-size:12px;font-weight:600;letter-spacing:.13em;
  text-transform:uppercase;transition:background var(--t-fast) ease,color var(--t-fast) ease}
.vidh__btn i{font-style:normal;transition:transform var(--t-mid) var(--ease)}
.vidh__btn:hover{background:var(--rust);color:#fff}
.vidh__btn:hover i{transform:translateX(5px)}
.vidh__alt{font-family:var(--sans);font-size:12.5px;color:rgba(242,239,233,.66);
  border-bottom:1px solid rgba(242,239,233,.28);padding-bottom:2px}
.vidh__alt:hover{color:var(--paper)}

@media (max-width:1000px){
  .vidh__grid{grid-template-columns:1fr;gap:32px}
}
@media (max-width:620px){
  .vidh__l{grid-template-columns:1fr}
  .vidh__foot{flex-direction:column;align-items:flex-start;gap:18px}
}

/* ==========================================================================
   5 · BOOKING WIZARD — the video option
   ========================================================================== */
.opt{position:relative;padding-top:38px !important}
.opt__mode{position:absolute;top:14px;left:16px;display:inline-flex;align-items:center;
  gap:6px;height:22px;padding:0 9px;border-radius:var(--r-pill);
  background:var(--sand);font-family:var(--sans);font-size:9.5px;font-weight:600;
  letter-spacing:.13em;text-transform:uppercase;color:var(--stone)}
.opt__mode--vid{background:var(--rust-soft);color:var(--rust)}
.opt.on .opt__mode{background:rgba(242,239,233,.16);color:rgba(242,239,233,.8)}

.wnote{margin-top:20px;padding:16px 18px;border-radius:var(--r-md);
  background:var(--paper-2);border-left:2px solid var(--line);
  font-size:13.5px;line-height:1.65;color:var(--stone)}
.wnote b{color:var(--ink);font-weight:600}
.wnote a{color:var(--rust);border-bottom:1px solid currentColor;white-space:nowrap}
.wnote--vid{background:var(--rust-soft);border-left-color:var(--rust)}
.wnote--vid,.wnote--vid b{color:#6E2C1E}

/* ==========================================================================
   6 · PORTAL & CONSOLE — the lists that support the video pages
   ========================================================================== */
/* Deliberately not display:grid. A grid container blockifies every child
   element, so <b> and the text after it would become two separate items and
   each tip would break across two rows. Padding plus an absolute counter
   keeps the whole tip as one paragraph. */
.vtips{counter-reset:vt}
.vtips li{position:relative;counter-increment:vt;padding:13px 0 13px 30px;
  border-bottom:1px solid var(--line);font-size:13.5px;line-height:1.6;color:var(--stone)}
.vtips li:last-child{border-bottom:0;padding-bottom:0}
.vtips li::before{content:"0" counter(vt);position:absolute;left:0;top:15px;
  font-family:var(--disp);font-weight:600;font-size:12px;color:var(--rust)}
.vtips b{color:var(--ink);font-weight:600}

.vfacts{display:grid;gap:0}
.vfacts li{padding:13px 0;border-bottom:1px solid var(--line)}
.vfacts li:last-child{border-bottom:0;padding-bottom:0}
.vfacts b{display:block;font-family:var(--sans);font-size:13.5px;font-weight:600;
  color:var(--ink);margin-bottom:2px}
.vfacts span{font-size:12.5px;line-height:1.55;color:var(--stone)}

.vkeys{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:9px 16px}
.vkeys div{display:flex;align-items:center;gap:10px}
.vkeys kbd{display:grid;place-items:center;width:26px;height:26px;flex:none;
  border-radius:6px;background:var(--paper-2);border:1px solid var(--line);
  border-bottom-width:2px;font-family:var(--sans);font-size:11px;font-weight:600;
  color:var(--ink)}
.vkeys span{font-size:12.5px;color:var(--stone)}

/* the video pages sit inside .app, where .vjoin needs a little air */
.app .vjoin{margin-bottom:0}

/* ==========================================================================
   7 · MOTION
   ========================================================================== */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  .marq__row{animation:none !important}
}

/* ==========================================================================
   8 · PRINT
   A consultation summary, a booking confirmation or a fee table is going to
   be printed by somebody. Give them a page worth having.
   ========================================================================== */
@media print{
  .nav,.menu,.burger,.foot,.pill,.prog,.tabbar,.side,.toast,
  .cta,.marq,.rm-ctls,.rm-bar,.skip,.cursor{display:none !important}
  body{background:#fff;color:#000;font-size:11pt}
  .wrap,.main{max-width:none;padding:0}
  .band,.app{padding:0}
  a{color:#000;text-decoration:underline}
  a[href^="http"]::after{content:" (" attr(href) ")";font-size:9pt;color:#555}
  .panel,.vrow,.vqrow{break-inside:avoid;box-shadow:none;border:1px solid #ccc}
  h1,h2,h3{break-after:avoid}
  img{max-width:100% !important}
}

/* ==========================================================================
   9 · THE INVERTED NAVIGATION
   The nav was only inverted on the home page, so on every other page with a
   dark opening section — VIP OPD, Practice, Films, Video consultation — the
   links were ink on ink and effectively invisible. Pages now declare
   data-hero="dark" on <body> and the rule keys off that instead.
   ========================================================================== */
body[data-hero="dark"] .nav:not(.stuck){color:#fff}
body[data-hero="dark"] .nav:not(.stuck) .nav__brand{color:#fff}
body[data-hero="dark"] .nav:not(.stuck) .nav__brand img{filter:brightness(0) invert(1);opacity:.94}
body[data-hero="dark"] .nav:not(.stuck) .nav__brand span{color:rgba(255,255,255,.62)}
body[data-hero="dark"] .nav:not(.stuck) .nav__links a{color:rgba(255,255,255,.86)}
body[data-hero="dark"] .nav:not(.stuck) .nav__links a:hover{color:#fff}
body[data-hero="dark"] .nav:not(.stuck) .burger{border-color:rgba(255,255,255,.34);color:#fff}
body[data-hero="dark"] .nav:not(.stuck) .nav__end .btn--line,
body[data-hero="dark"] .nav:not(.stuck) .nav__end .btn--solid{
  border:1px solid rgba(255,255,255,.34);color:#fff;background:transparent;box-shadow:none}
body[data-hero="dark"] .nav:not(.stuck) .nav__end .btn--solid:hover{
  background:#fff;color:var(--ink)}

/* ==========================================================================
   10 · SMALL CORRECTIONS FOUND IN TESTING
   ========================================================================== */

/* [hidden] must win over a display rule, or a panel opens itself */
[hidden]{display:none !important}

/* the room's device pickers, when the browser reports no labels yet */
.rm-devices select option{color:var(--rm-txt);background:#0E1115}

/* The logo is a gold mark on a black disc. brightness(0) invert(1) flattened
   it into a white blob on every dark hero — the mark reads perfectly as it is. */
body[data-hero="dark"] .nav:not(.stuck) .nav__brand img,
body[data-page="home"] .nav:not(.stuck) .nav__brand img{filter:none;opacity:1}

/* ==========================================================================
   11 · SECOND PASS — things the screenshots caught
   ========================================================================== */

/* base.css only removes the marker from <ul>; the tips list is an <ol> and
   was showing the browser's numbers next to its own. */
.vtips,.vsteps,.vfacts,.vfit__c ul,.vidx__pts,.vidh__l{list-style:none;padding-left:0;margin:0}
.vtips li,.vfacts li,.vfit__c li,.vidx__pts li,.vidh__l li{list-style:none}

/* The console queue row let the patient line run underneath the status badge. */
.vqrow__p{min-width:0}
.vqrow__p>div{min-width:0;overflow:hidden}
.vqrow__p b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vqrow__p span{max-width:none}
.vqrow .vbadge{justify-self:end}

/* The device check has no picture until it is started; say so rather than
   showing an empty black rectangle. */
.vcheck__vid::before{content:"Camera preview";position:absolute;inset:0;display:grid;
  place-items:center;font-family:var(--sans);font-size:11.5px;letter-spacing:.14em;
  text-transform:uppercase;color:rgba(242,239,233,.26)}
.vcheck__vid video{position:relative;z-index:1;background:transparent}

/* The pictogram column in the homepage video band reads too small at 13px. */
.vidh__l i{font-size:15px;line-height:1.25;opacity:.9}

/* the eyebrow sits high on the tile, where the old scrim was thinnest */
.tcard__in{position:relative;z-index:2}
.tcard::after{
  background:
    linear-gradient(180deg,rgba(12,11,10,.74) 0%,rgba(12,11,10,.34) 26%,
      rgba(12,11,10,.16) 42%,rgba(12,11,10,.74) 78%,rgba(12,11,10,.94) 100%);
}
/* the tenth tile is a statement, not a photograph */
.tcard--txt{background:var(--petrol)}
.tcard--txt .tcard__n{color:var(--mint);text-shadow:none}
.tcard--txt h3{text-shadow:none}
.tcard--txt p{color:rgba(242,239,233,.68)}
