/* Traviva visual refresh, phase 1 (PREVIEW trial). Loaded ONLY on pages whose <body> has class "refresh".
   Every rule is scoped to body.refresh. Sticky bars (.sticky-*) are deliberately not restyled. */
body.refresh{
  --ground:#FBF8F3;--surface:#FFFFFF;--surface-2:#F3EEE5;
  --ink:#1D2A33;--ink-2:#4A5A66;--ink-3:#6B7882;
  --rule:#ECE5D9;--rule-2:#D8CFBF;
  --accent:#1F7F73;--accent-hot:#28998B;--accent-soft:#DDF0EC;
  --teal:#1F7F73;--teal-soft:#DDF0EC;
  --amber:#8A5A00;--amber-soft:#FCEFD3;--alert:#B03A2E;--alert-soft:#FBE3DA;
  --shadow:0 2px 4px rgba(29,42,51,.05),0 18px 40px -26px rgba(29,42,51,.35);
  background:var(--ground);color:var(--ink)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) body.refresh{
  --ground:#14181B;--surface:#1D2327;--surface-2:#262D32;--ink:#EEF0EE;--ink-2:#B9C2C4;--ink-3:#949FA3;
  --rule:#2E363B;--rule-2:#46525A;--accent:#5CC2B3;--accent-hot:#7AD3C6;--accent-soft:#163430;--teal:#5CC2B3;--teal-soft:#163430;
  --amber:#E2B45A;--amber-soft:#3A2E14;--alert:#EE8A7A;--alert-soft:#3A1F1A;--shadow:0 2px 4px rgba(0,0,0,.4),0 18px 40px -26px rgba(0,0,0,.9)}}
:root[data-theme="dark"] body.refresh{--ground:#14181B;--surface:#1D2327;--surface-2:#262D32;--ink:#EEF0EE;--ink-2:#B9C2C4;--ink-3:#949FA3;--rule:#2E363B;--rule-2:#46525A;--accent:#5CC2B3;--accent-hot:#7AD3C6;--accent-soft:#163430;--teal:#5CC2B3;--teal-soft:#163430}

/* Photo hero with scrim */
body.refresh .hero{position:relative;background:#22313A var(--rimg,none) center/cover no-repeat;padding:72px 0 64px}
body.refresh .hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(12,24,30,.30) 0%,rgba(12,24,30,.55) 55%,rgba(12,24,30,.78) 100%);z-index:0}
body.refresh .hero.has-pick{padding:44px 0 40px}
body.refresh .hero .heroglow{display:none}
body.refresh .hero .wrap{position:relative;z-index:1}
body.refresh .hero h1{color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.35)}
body.refresh .hero .lede{color:#F1F5F4;text-shadow:0 1px 10px rgba(0,0,0,.45)}
body.refresh .hero .eyebrow{display:inline-block;background:rgba(255,255,255,.92);color:#1F7F73;border-radius:999px;padding:5px 12px;letter-spacing:.08em}
body.refresh .hero .crumbs,body.refresh .hero .crumbs a,body.refresh .hero .crumbs [aria-current="page"]{color:#E8EEEC}
body.refresh .hero .crumbs .sep{color:rgba(255,255,255,.6)}
body.refresh .rcredit{position:absolute;top:8px;right:12px;z-index:2;margin:0;font-size:.68rem;color:rgba(255,255,255,.88);text-shadow:0 1px 4px rgba(0,0,0,.6)}
body.refresh .rcredit a{color:inherit}

/* Solid panels: anything commercial or small-print that sits on a photo gets an opaque background (WCAG AA). */
body.refresh .pickbox{background:var(--surface);border:0;border-top:5px solid var(--accent);border-radius:18px;box-shadow:0 20px 50px -20px rgba(0,0,0,.55);padding:12px 18px 14px}
body.refresh .hero .codebox,body.refresh .codebox{background:var(--surface);border:1.5px dashed var(--accent);border-radius:12px;color:var(--ink-2)}
body.refresh .hero .codebox code,body.refresh .codebox code{color:var(--ink)}
body.refresh .hero .cta-disc{background:var(--surface);color:var(--ink-2);border-radius:10px;padding:6px 10px}
body.refresh .hero .cta-disc a{color:var(--ink-2)}
body.refresh .pickbox .cta-disc{padding:0;background:none}
body.refresh .cta-disc{color:var(--ink-2)}
body.refresh .cta-disc a{color:var(--ink-2)}

/* Pills and cards */
body.refresh .cta{border-radius:999px}
body.refresh .code-copy{border-radius:999px}
body.refresh .callout{background:var(--surface);border:1px solid var(--rule);border-left:5px solid var(--accent);border-radius:18px;box-shadow:var(--shadow)}
body.refresh .callout.warn{border-left-color:#F2B544}
body.refresh .callout.alert{border-left-color:#E26D4F}
body.refresh .card{border-radius:20px;border:1px solid var(--rule);box-shadow:var(--shadow)}
body.refresh .pill{border-radius:999px}
body.refresh .badge{border-radius:999px;padding:2px 8px;background:#F2B544;color:#2B1D00}
body.refresh .citebox{border-radius:16px}
body.refresh .tablewrap{border-radius:18px;border:1px solid var(--rule);overflow:hidden;overflow-x:auto}
body.refresh table thead th{background:var(--surface-2);color:var(--ink-2)}
body.refresh tr.is-pick th,body.refresh tr.is-pick td{background:var(--accent-soft)}
body.refresh main section{scroll-margin-top:80px}
body.refresh .sechead .eyebrow{color:var(--accent)}

/* Mobile: comparison tables become stacked cards (labels come from data-label, added at build time) */
@media (max-width:640px){
  body.refresh .tablewrap.rcards{border:0;background:none;box-shadow:none;overflow:visible}
  body.refresh .rcards table,body.refresh .rcards tbody,body.refresh .rcards tr,body.refresh .rcards td,body.refresh .rcards tbody th{display:block;width:100%}
  body.refresh .rcards table.wide{min-width:0}
  body.refresh .rcards thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  body.refresh .rcards tr{background:var(--surface);border:1px solid var(--rule);border-radius:18px;box-shadow:var(--shadow);margin:0 0 14px;padding:12px 14px;overflow:hidden}
  body.refresh .rcards tbody th{font-size:1.05rem;padding:2px 0 8px;border:0;background:none!important}
  body.refresh .rcards td{display:flex;gap:12px;justify-content:space-between;align-items:baseline;padding:7px 0;border:0;border-top:1px solid var(--rule);text-align:right;background:none!important}
  body.refresh .rcards td::before{content:attr(data-label);flex:0 0 38%;text-align:left;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);font-weight:700}
  body.refresh .rcards td[data-label=""]::before{display:none}
  body.refresh .rcards td[data-label=""]{justify-content:flex-start;text-align:left}
  body.refresh .rcards tr.is-pick{border:2px solid var(--accent)}
}
