/* ============================================================================
   Trip Chronicle — shared chrome for the document pages
   (privacy / terms / support / child-safety).

   Same world as the marketing homepage (home.css): canvas #090612, ink panels,
   hairline borders, dragonfruit accents, Oswald wordmark / Sora headings /
   Inter body. Deliberately NO painted art behind the long-form text — these are
   trust and review surfaces, so the reading column stays a clean document.
   Every text/background pair below is contrast-checked against the brightest
   point of the atmosphere gradient, not just flat canvas.
   ========================================================================= */

@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('./fonts/inter-400.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('./fonts/inter-500.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('./fonts/inter-600.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('./fonts/inter-700.woff2') format('woff2');}
@font-face{font-family:'Sora';font-style:normal;font-weight:600;font-display:swap;src:url('./fonts/sora-600.woff2') format('woff2');}
@font-face{font-family:'Sora';font-style:normal;font-weight:700;font-display:swap;src:url('./fonts/sora-700.woff2') format('woff2');}
@font-face{font-family:'Oswald';font-style:normal;font-weight:600;font-display:swap;src:url('./fonts/oswald-600.woff2') format('woff2');}

:root{
  --canvas:#090612;
  --panel:#171126;
  --panel-alt:#21163A;

  --hairline:rgba(255,255,255,.07);
  --hairline-strong:rgba(255,255,255,.13);

  --dragonfruit:#FF4696;
  --dragonfruit-hi:#FF68AA;
  --violet:#6E4BFF;
  --lavender:#A57CFF;
  --mint:#B8F7E4;
  --gold:#FFD56F;

  /* Text ramp lifted verbatim from home.css. --text-faint replaces the old
     #7E6F9E, which only reached 4.45:1 on canvas — this one clears 4.5:1 even
     over the brightest pixel of the atmosphere gradient. */
  --text-display:#FFFFFF;
  --text:#F4F1F9;
  --text-body:#DBD2EC;
  --text-muted:#B4A8CC;
  --text-faint:#9A8BB8;

  --display:'Sora',ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --wordmark:'Oswald',ui-sans-serif,system-ui,'Segoe UI',Roboto,sans-serif;
  --body:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;

  --doc:min(820px,100%);
  --r-lg:32px; --r-md:22px; --r-sm:14px;

  --ease:cubic-bezier(.32,.72,0,1);
  --lift:0 22px 56px rgba(4,2,12,.55);
}

*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth;}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto;}}

body{
  margin:0;
  background:var(--canvas);
  color:var(--text-body);
  font-family:var(--body);
  font-size:17px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  /* The same fixed atmosphere the homepage floats in — gradients only, so the
     document never sits on a flat black rectangle, and never on painted art. */
  background-image:
    radial-gradient(1100px 720px at 50% -12%,rgba(110,75,255,.20),transparent 66%),
    radial-gradient(760px 620px at 92% 34%,rgba(255,70,150,.075),transparent 70%),
    radial-gradient(900px 700px at 4% 74%,rgba(110,75,255,.10),transparent 70%);
  background-attachment:fixed;
  background-repeat:no-repeat;
  overflow-x:hidden;
}

/* Film grain, same recipe as the homepage. Fixed, pointer-transparent and far
   too faint to touch text legibility. */
body::before{
  content:"";position:fixed;inset:0;z-index:3;pointer-events:none;opacity:.04;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode:overlay;
}

img{display:block;max-width:100%;height:auto;}
a{color:var(--dragonfruit); text-decoration:none;}
a:hover{color:var(--dragonfruit-hi); text-decoration:underline; text-underline-offset:3px;}
:focus-visible{outline:2px solid var(--dragonfruit); outline-offset:4px; border-radius:10px;}
::selection{background:rgba(255,70,150,.3); color:#fff;}

/* ------------------------------------------------------------------ topbar */
.topbar{
  position:sticky; top:0; z-index:10;
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  background:rgba(11,7,23,.72);
  border-bottom:1px solid var(--hairline-strong);
}
.topbar .inner{
  width:var(--doc); margin:0 auto; padding:14px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
/* Wordmark language matched to the homepage nav mark: city-ring emblem with a
   violet glow, then Oswald in caps with wide tracking. */
.brand{display:inline-flex; align-items:center; min-height:40px;}
/* Beats the generic a:hover — the wordmark never turns pink or underlines. */
.brand:hover,.brand:hover b{color:#fff; text-decoration:none;}
/* NOTE: margin-right, not flex gap — a gap here once split the two-word
   wordmark, and the &nbsp; in the markup is the other half of that fix. */
.brand img{width:auto; height:26px; margin-right:13px; filter:drop-shadow(0 5px 14px rgba(110,75,255,.55));}
.brand,.brand b{
  font-family:var(--wordmark); font-weight:600; text-transform:uppercase;
  letter-spacing:.15em; font-size:15px; color:#fff; white-space:nowrap;
}
.back{
  display:inline-flex; align-items:center; gap:7px;
  min-height:40px; padding:0 15px; border-radius:999px;
  font-family:var(--body); font-size:13.5px; font-weight:500; color:var(--text-muted);
  transition:color .45s var(--ease), background-color .45s var(--ease);
}
.back:hover{color:#fff; background:rgba(255,255,255,.07); text-decoration:none;}
.back svg{width:16px; height:16px; flex:none;}
@media (max-width:420px){
  .topbar .inner{padding-inline:18px;}
  .brand,.brand b{font-size:13px;}
  .brand img{height:23px; margin-right:10px;}
}

/* ---------------------------------------------------------- reading column */
main{width:var(--doc); margin:0 auto; padding:64px 24px 44px;}
.doc-head{margin-bottom:44px; padding-bottom:32px; border-bottom:1px solid var(--hairline-strong);}

/* Editorial eyebrow — the homepage motif: a short hairline, then caps. */
.eyebrow{
  font-family:var(--display); font-weight:600; font-size:11px;
  text-transform:uppercase; letter-spacing:.3em; color:var(--text-faint);
  display:inline-flex; align-items:center; gap:12px; margin:0 0 16px;
}
.eyebrow::before{content:""; width:26px; height:1px; background:var(--hairline-strong);}

h1{
  font-family:var(--display); font-weight:700; color:var(--text-display);
  font-size:clamp(34px,6vw,52px); line-height:1.06; margin:0; letter-spacing:-.025em;
  text-wrap:balance;
}
.updated{margin-top:16px; font-size:14px; color:var(--text-faint);}
.intro{font-size:18px; color:var(--text); margin-top:22px;}

h2{
  font-family:var(--display); font-weight:700; color:var(--text-display);
  font-size:clamp(23px,3vw,27px); letter-spacing:-.02em; line-height:1.2;
  margin:56px 0 16px; scroll-margin-top:92px;
}
h3{font-family:var(--display); font-weight:600; color:var(--text); font-size:19px; letter-spacing:-.015em; margin:30px 0 10px;}
p{margin:0 0 16px;}
ul,ol{margin:0 0 16px; padding-left:22px;}
li{margin-bottom:9px;}
li::marker{color:var(--text-faint);}
strong{color:var(--text); font-weight:600;}
em{color:var(--text);}

/* Tinted notes reuse the homepage's mint "fiction note" and gold "award chip"
   families so nothing here invents a colour the homepage doesn't already use. */
.lead-note{
  border:1px solid rgba(184,247,228,.20); background:rgba(184,247,228,.05);
  padding:18px 22px; border-radius:var(--r-sm); margin:0 0 26px; color:var(--text-body);
}
.callout{
  border:1px solid rgba(201,169,106,.30); background:rgba(201,169,106,.10);
  padding:18px 22px; border-radius:var(--r-sm); margin:26px 0; color:var(--text-body);
}
.callout strong{color:var(--gold);}

/* --------------------------------------------------- panels (bezel "core") */
.table-wrap,.toc{
  border:1px solid var(--hairline); border-radius:var(--r-md);
  background:linear-gradient(180deg,rgba(33,22,58,.72),rgba(15,10,30,.86));
  box-shadow:var(--lift), inset 0 1px 1px rgba(255,255,255,.075);
}
.table-wrap{overflow-x:auto; padding:6px 20px; margin:18px 0 26px;}
table.summary{width:100%; border-collapse:collapse; margin:0; font-size:15.5px;}
table.summary th,table.summary td{text-align:left; padding:14px 16px; border-bottom:1px solid var(--hairline); vertical-align:top;}
table.summary th{font-family:var(--display); text-transform:uppercase; letter-spacing:.14em; font-size:11px; color:var(--text-faint); font-weight:600;}
table.summary thead th{border-bottom:1px solid var(--hairline-strong);}
table.summary tbody tr:last-child td{border-bottom:0;}

.toc{padding:24px 28px; margin:0 0 40px;}
/* The homepage's star-rule: caps flanked by hairlines that fade out. */
.toc h4{
  display:flex; align-items:center; gap:16px;
  font-family:var(--display); font-weight:600; text-transform:uppercase;
  letter-spacing:.28em; font-size:11px; color:var(--text-faint); margin:0 0 18px;
}
.toc h4::before,.toc h4::after{content:""; height:1px; flex:1; background:linear-gradient(90deg,transparent,var(--hairline-strong),transparent);}
.toc ol{margin:0; padding-left:20px; columns:2; column-gap:32px;}
.toc a{color:var(--text-muted); font-weight:500;}
.toc a:hover{color:var(--dragonfruit-hi);}
@media (max-width:560px){ .toc ol{columns:1;} }

/* ------------------------------------------------------------------ footer */
/* Same structure as the homepage footer: mark, then the legal nav, then the
   13+ / entertainment-only line. */
footer{border-top:1px solid var(--hairline); background:rgba(9,6,18,.6); margin-top:72px; position:relative; z-index:1;}
.foot{
  width:var(--doc); margin-inline:auto; padding:44px 24px 52px;
  display:flex; flex-direction:column; gap:24px; align-items:center; text-align:center;
}
.foot-mark{display:flex; align-items:center;}
.foot-mark img{width:auto; height:30px; margin-right:12px; filter:drop-shadow(0 6px 16px rgba(110,75,255,.45));}
.foot-mark span{
  font-family:var(--wordmark); font-weight:600; text-transform:uppercase;
  letter-spacing:.17em; font-size:15px; color:#fff;
}
.foot-links{display:flex; gap:8px; flex-wrap:wrap; justify-content:center;}
.foot-links a{
  display:inline-flex; align-items:center; min-height:48px; padding:0 16px; border-radius:12px;
  font-size:14.5px; font-weight:500; color:var(--text-muted);
  transition:color .45s var(--ease), background-color .45s var(--ease);
}
.foot-links a:hover{color:var(--dragonfruit-hi); background:rgba(255,255,255,.05); text-decoration:none;}
.foot-legal{font-size:13.5px; color:var(--text-faint); max-width:62ch; margin:0;}
/* 13+ stays green — it is a compliance signal, not a brand accent. */
.foot-legal .age{color:var(--mint); font-weight:700;}
