@import url('https://fonts.googleapis.com/css2?family=Young+Serif&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* "The evening of an aurora hunt": blue hour at the top of a page, night below,
   cabin-light amber for anything you can act on. Aurora green is for data only. */
:root {
  color-scheme: dark;
  --dusk: #283a6a;
  --dusk-deep: #1a2649;
  --night: #0f1629;
  --sheet: #182240;
  --snow: #f3f5f9;
  --frost: #b8c4da;
  --rule: #2c3a60;
  --amber: #f2b45f;
  --aurora: #199e70;       /* validated >= 3:1 on --night and --sheet */
  --display: 'Young Serif', Georgia, serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--snow); font: 400 1.075rem/1.7 var(--body); background: var(--night); }
img { max-width: 100%; display: block; }
a { color: var(--amber); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--snow); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--sheet); padding: .5rem 1rem; z-index: 20; }

/* header floats over the hero photo */
.site-head { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.site-head.solid { position: static; border-bottom: 1px solid var(--rule); background: var(--dusk-deep); }
.site-head nav { max-width: 72rem; margin: 0 auto; padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; align-items: baseline; font: 500 .95rem/1.3 var(--body); }
.site-head a { color: var(--snow); text-decoration: none; opacity: .85; padding-block: .6rem; display: inline-block; }
.site-head a:hover, .site-head a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 6px; }
.site-head .brand { font: 400 1.15rem/1 var(--display); opacity: 1; margin-right: auto; }
.nav-links { display: contents; }
.nav-toggle { display: none; }

/* hero: full-bleed photograph fading into blue hour */
.hero { position: relative; min-height: min(86vh, 52rem); display: flex; align-items: flex-end; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,22,41,.55) 0, rgba(15,22,41,0) 22%, rgba(26,38,73,0) 45%, var(--night) 100%); }
.hero .inner { position: relative; z-index: 2; width: 100%; max-width: 72rem; margin: 0 auto; padding: 5.5rem 1.25rem 2.5rem; text-shadow: 0 1px 14px rgba(15,22,41,.75); }
.hero.article .inner { max-width: 44rem; }
.hero.article::after { background: linear-gradient(180deg, rgba(15,22,41,.55) 0, rgba(15,22,41,.1) 25%, rgba(15,22,41,.45) 55%, var(--night) 100%); }
.hero h1 { max-width: 16ch; }
.hero .lede { max-width: 38rem; }
.credit { font: 400 .78rem/1.4 var(--body); color: var(--frost); margin-top: 1.4rem; }
.credit a { color: var(--frost); display: inline-block; padding-block: .3rem; }
.credit b { color: var(--snow); font-weight: 600; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 7vw, 4.4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 3.5rem 0 .8rem; }
h3 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
p, li { max-width: 66ch; }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.55; color: var(--frost); margin: 0 0 1.5rem; }
.lede strong { color: var(--snow); font-weight: 600; }

main { max-width: 44rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
main.wide { max-width: 72rem; }
.crumbs { font-size: .9rem; color: var(--frost); margin: 0 0 1rem; }
.crumbs a { color: var(--frost); }
.meta { font-size: .9rem; color: var(--frost); margin: 0 0 1.2rem; }

.btn { display: inline-block; background: var(--amber); color: var(--night); font: 600 1rem/1 var(--body); padding: .85rem 1.3rem; border-radius: 999px; text-decoration: none; }
.btn:hover { background: var(--snow); color: var(--night); }
.btn.ghost { background: transparent; color: var(--snow); box-shadow: inset 0 0 0 1px var(--frost); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--snow); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.5rem 0 0; }

/* three quick answers */
.answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 0 0 1rem; }
.answer-tile { background: var(--sheet); border-top: 3px solid var(--frost); border-radius: 4px 4px 10px 10px; padding: 1.3rem 1.3rem 1.2rem; }
.answer-tile .q { font: 600 .85rem/1.3 var(--body); color: var(--frost); margin: 0 0 .5rem; }
.answer-tile .a { font: 400 1.55rem/1.15 var(--display); margin: 0 0 .5rem; }
.answer-tile p { font-size: .98rem; margin: 0; color: var(--frost); }

/* the answer on content pages */
.answer { font: 400 clamp(1.8rem, 5vw, 2.6rem)/1.15 var(--display); margin: 0 0 .6rem; }

/* destination cards */
.dests { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; margin: 1.5rem 0; }
.dest { position: relative; border-radius: 10px; overflow: hidden; background: var(--sheet); display: flex; flex-direction: column; }
.dest img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; height: auto; }
.dest .body { padding: 1rem 1.2rem 1.2rem; }
.dest h3 { margin: 0 0 .3rem; }
.dest h3 a { color: var(--snow); text-decoration: none; }
.dest h3 a::after { content: ""; position: absolute; inset: 0; }
.dest h3 a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.dest p { margin: 0; font-size: .98rem; color: var(--frost); }
.dest .status { font: 600 .78rem/1 var(--body); color: var(--night); background: var(--snow); padding: .3rem .55rem; border-radius: 999px; position: absolute; top: .8rem; left: .8rem; }
.dest .status.soon { background: var(--frost); }

/* odds card */
.odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border-radius: 10px; overflow: hidden; margin: 1.5rem 0; }
.odds div { background: var(--sheet); padding: 1rem 1.1rem; }
.odds .k { font: 600 .8rem/1.3 var(--body); color: var(--frost); display: block; }
.odds .v { font: 400 1.6rem/1.2 var(--display); display: block; margin-top: .3rem; }

/* chart (single series, aurora green) */
.chart { background: var(--sheet); border-radius: 10px; padding: 1.3rem 1.1rem .8rem; margin: 1.8rem 0 1rem; }
.chart h2 { font: 600 1.05rem/1.3 var(--body); margin: 0 0 .2rem; }
.chart .sub { font-size: .88rem; line-height: 1.45; color: var(--frost); margin: 0 0 1.1rem; }
.plot { position: relative; margin-top: 1.6rem; height: 14rem; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; align-items: end; border-bottom: 1px solid var(--frost); margin-left: 2.3rem; }
.plot .grid { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--rule); font-size: .75rem; line-height: 1; color: var(--frost); }
.plot .grid span { position: absolute; left: -2.3rem; top: -.45rem; width: 2rem; text-align: right; }
.col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar { width: min(70%, 2.6rem); background: var(--aurora); border-radius: 4px 4px 0 0; }
.col .lab { position: absolute; font: 700 .85rem/1 var(--body); color: var(--snow); transform: translateY(-1.3rem); }
.col .tip { display: none; position: absolute; top: .3rem; left: 50%; transform: translateX(-50%); background: var(--night); border: 1px solid var(--rule); border-radius: 6px; padding: .45rem .65rem; font-size: .8rem; line-height: 1.35; white-space: nowrap; z-index: 3; }
.col:hover .tip, .col:focus .tip { display: block; }
.col:hover .bar, .col:focus .bar { filter: brightness(1.2); }
.col:nth-child(4) .tip, .col:nth-child(5) .tip { left: 0; transform: none; }
.col:nth-last-child(-n+2) .tip { left: auto; right: 0; transform: none; }
.months { display: grid; grid-template-columns: repeat(8, 1fr); margin-left: 2.3rem; font: 600 .8rem/2 var(--body); color: var(--frost); text-align: center; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--rule); }
th { color: var(--frost); font-weight: 600; }
td.n, th.n { text-align: right; }
tr.best td { font-weight: 700; }
tr.best td:first-child { box-shadow: inset 3px 0 0 var(--aurora); }

.note { background: var(--sheet); border-left: 3px solid var(--frost); padding: 1rem 1.2rem; border-radius: 4px; margin: 1.6rem 0; }
.note p:first-child { margin-top: 0; } .note p:last-child { margin-bottom: 0; }
.small { font-size: .9rem; color: var(--frost); }

/* inline figure with honest caption */
figure.photo { margin: 2rem 0; }
figure.photo img { border-radius: 10px; height: auto; }
figure.photo figcaption { font-size: .82rem; color: var(--frost); margin-top: .5rem; }

details { border-bottom: 1px solid var(--rule); padding: .8rem 0; }
summary { cursor: pointer; font: 600 1.05rem/1.4 var(--body); }
details p { margin: .6rem 0 .2rem; color: var(--frost); }

.principles { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.principles li { border-left: 2px solid var(--rule); padding: .2rem 0 .2rem 1rem; color: var(--frost); }
.principles strong { display: block; color: var(--snow); font-weight: 600; margin-bottom: .2rem; }

.site-foot { border-top: 1px solid var(--rule); margin-top: 2rem; }
.site-foot a { color: var(--frost); }

@media (max-width: 560px) {
  .hero { min-height: 78svh; }
  .odds { grid-template-columns: 1fr; }
  .plot { height: 11rem; }
  .col .lab { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.dest p.exp { font-size: .78rem; margin-top: .5rem; color: var(--frost); opacity: .85; }

/* ---- generated-page components ---- */
.cards-x { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.1rem; margin: 1.2rem 0 1.6rem; }
.card-x { background: var(--sheet); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.card-x img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; height: auto; }
.card-x .body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-x h3 { margin: 0; font-size: 1.2rem; }
.card-x h3 a { color: var(--snow); text-decoration: none; }
.card-x h3 a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.card-x p { margin: 0; font-size: .97rem; color: var(--frost); }
.facts { font: 600 .82rem/1.4 var(--body) !important; color: var(--snow) !important; opacity: .9; }
.book { display: inline-block; margin-top: auto; align-self: flex-start; background: var(--amber); color: var(--night); font: 600 .92rem/1 var(--body); padding: .7rem 1.05rem; border-radius: 999px; text-decoration: none; }
.card-x .book { margin-top: .7rem; }
.book:hover { background: var(--snow); color: var(--night); }
.tour { display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.5rem; align-items: start; border-top: 1px solid var(--rule); padding: 1.2rem 0; }
.tour h3 { margin: 0 0 .2rem; }
.tour p { margin: .3rem 0; }
.tour-book { text-align: right; min-width: 10rem; }
.tour-book .price { font: 400 1.3rem/1.2 var(--display); margin: 0 0 .6rem; color: var(--snow); }
.steps-x { list-style: none; counter-reset: day; padding: 0; margin: 1rem 0; }
.steps-x li { counter-increment: day; border-left: 2px solid var(--rule); padding: .2rem 0 1.2rem 1.4rem; position: relative; }
.steps-x li::before { content: counter(day); position: absolute; left: -.8rem; top: .1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--sheet); border: 1px solid var(--frost); font: 600 .8rem/1.5rem var(--body); text-align: center; }
.steps-x h3 { margin: 0 0 .3rem; }
.related { padding-left: 1.1rem; }
.related li { margin: .3rem 0; }
.sources li { margin: .25rem 0; word-break: break-word; }
.disclosure { font-size: .85rem; color: var(--frost); border-left: 2px solid var(--rule); padding-left: .8rem; margin: 1.2rem 0; }
.disclosure a { color: var(--frost); }
@media (max-width: 560px) { .tour { grid-template-columns: 1fr; } .tour-book { text-align: left; } }

/* ---- two-column article layout (desktop): article left, sticky sidebar right ---- */
.page-grid { max-width: 72rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.page-grid > main.content { max-width: none; margin: 0; padding: 0; }
.page-grid .side { display: none; }
.hero.wide-hero .inner { max-width: 72rem; }
@media (min-width: 1024px) {
  .page-grid { grid-template-columns: minmax(0, 1fr) 17rem; }
  .page-grid .side { display: block; }
  .page-grid .glance-inline { display: none; }
  .side-inner { position: sticky; top: 1.5rem; display: flex; flex-direction: column; gap: 1.2rem; }
  .side .odds { grid-template-columns: 1fr; margin: 0; }
  .side .odds .v { font-size: 1.25rem; }
  .toc { background: var(--sheet); border-radius: 10px; padding: 1rem 1.1rem; }
  .toc-h { font: 600 .8rem/1.3 var(--body); color: var(--frost); margin: 0 0 .5rem; }
  .toc ol { list-style: none; margin: 0; padding: 0; }
  .toc li { margin: 0; max-width: none; }
  .toc a { display: block; padding: .35rem 0; color: var(--snow); text-decoration: none; font-size: .92rem; line-height: 1.35; border-top: 1px solid var(--rule); }
  .toc li:first-child a { border-top: 0; }
  .toc a:hover { color: var(--amber); }
}


/* ---- varied content blocks ---- */
.bul, .check, .num { margin: .8rem 0 1.2rem; padding-left: 0; list-style: none; }
.bul li, .check li { position: relative; padding-left: 1.4rem; margin: .45rem 0; }
.bul li::before { content: ""; position: absolute; left: .3rem; top: .72em; width: .42rem; height: .42rem; border-radius: 50%; background: var(--frost); }
.check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--aurora); font-weight: 700; }
.num { counter-reset: n; }
.num li { counter-increment: n; position: relative; padding-left: 2.1rem; margin: .6rem 0; }
.num li::before { content: counter(n); position: absolute; left: 0; top: .05rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--sheet); border: 1px solid var(--rule); font: 600 .8rem/1.5rem var(--body); text-align: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1px; background: var(--rule); border-radius: 10px; overflow: hidden; margin: 1.2rem 0 1.6rem; }
.stat { background: var(--sheet); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .25rem; }
.stat-v { font: 400 1.9rem/1.1 var(--display); color: var(--snow); }
.stat-k { font-size: .92rem; line-height: 1.4; color: var(--frost); }
.stat-n { font-size: .78rem; color: var(--frost); opacity: .8; }
.pc { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.2rem 0 1.6rem; }
.pc > div { background: var(--sheet); border-radius: 10px; padding: 1rem 1.2rem; }
.pc-pro { border-top: 3px solid var(--aurora); }
.pc-con { border-top: 3px solid var(--frost); }
.pc-h { font: 600 .9rem/1.3 var(--body); margin: 0 0 .5rem; }
.pc ul { margin: 0; padding-left: 1.1rem; }
.pc li { margin: .35rem 0; font-size: .97rem; }
.cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1.2rem 0 1.6rem; }
.cmp-col { background: var(--sheet); border-radius: 10px; padding: 1rem 1.2rem; }
.cmp-h { font: 400 1.25rem/1.2 var(--display); margin: 0 0 .2rem; }
.cmp-sub { font-size: .88rem; color: var(--frost); margin: 0 0 .5rem; }
.cmp ul { margin: 0; padding-left: 1.1rem; }
.cmp li { margin: .35rem 0; font-size: .97rem; }
.note-t { font: 600 1rem/1.3 var(--body); margin: 0 0 .4rem !important; }
.note.tip { border-left-color: var(--aurora); }
.note.warn { border-left-color: #e66767; }

/* sources: collapsed by default, one quiet line at the end of the article */
.sources-box { margin-top: 2.5rem; border-top: 1px solid var(--rule); border-bottom: 0; padding: .7rem 0 0; }
.sources-box summary { font: 500 .9rem/1.4 var(--body); color: var(--frost); }
.sources-box[open] summary { margin-bottom: .4rem; }

/* options: one full-width row per kind of tour or stay */
.opts { display: grid; gap: 1rem; margin: 1.2rem 0 1.8rem; }
.opt { display: grid; grid-template-columns: 13rem 1fr; background: var(--sheet); border-radius: 12px; overflow: hidden; }
.opt.no-img { grid-template-columns: 1fr; }
.opt-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.opt-body { padding: 1.1rem 1.4rem 1.2rem; }
.opt h3 { margin: 0; }
.opt-sub { color: var(--frost); font-size: .92rem; margin: .15rem 0 .7rem; }
.opt-specs { display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; margin: 0 0 .5rem; padding: .6rem 0; border-block: 1px solid var(--rule); }
.opt-specs dt { font-size: .76rem; color: var(--frost); }
.opt-specs dd { margin: 0; font-weight: 600; font-size: .95rem; }
.opt ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.opt li { margin: .3rem 0; font-size: .98rem; }
.opt-catch { margin: .8rem 0 0; padding: .55rem .8rem; background: rgba(230, 103, 103, .1); border-left: 3px solid #e66767; border-radius: 4px; font-size: .95rem; }
.opt-catch b { display: block; font-size: .76rem; color: #f0a0a0; font-weight: 600; }
@media (max-width: 640px) { .opt { grid-template-columns: 1fr; } .opt-img img { aspect-ratio: 16 / 9; height: auto; } }

/* tickets: tour listings with a torn-off price stub */
.tickets { display: grid; gap: 1rem; margin: 1.2rem 0; }
.ticket { position: relative; display: grid; grid-template-columns: 1fr 14.5rem; background: var(--sheet); border-radius: 12px; }
.ticket::before, .ticket::after { content: ""; position: absolute; right: 14.5rem; width: 1.1rem; height: 1.1rem; margin-right: -.55rem; border-radius: 50%; background: var(--night); }
.ticket::before { top: -.55rem; } .ticket::after { bottom: -.55rem; }
.t-main { padding: 1.1rem 1.4rem 1.2rem; }
.t-kind { margin: 0 0 .25rem; font: 600 .78rem/1.3 var(--body); color: var(--frost); }
.t-main h3 { margin: 0 0 .3rem; }
.t-main p { margin: .3rem 0; }
.t-facts { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: .7rem 0 0; padding: 0; }
.t-facts li { font-size: .82rem; color: var(--frost); border: 1px solid var(--rule); border-radius: 999px; padding: .15rem .65rem; }
.t-stub { display: flex; flex-direction: column; justify-content: center; padding: 1.1rem 1.2rem; border-left: 2px dashed var(--rule); background: var(--dusk-deep); border-radius: 0 12px 12px 0; }
.t-from, .t-basis { margin: 0; font-size: .8rem; color: var(--frost); }
.t-price { margin: 0; font: 400 1.75rem/1.15 var(--display); color: var(--snow); }
.t-stub .book { margin-top: .8rem; text-align: center; width: 100%; }
.t-via { margin: .35rem 0 0; font-size: .78rem; color: var(--frost); text-align: center; width: 100%; }
@media (max-width: 640px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { display: none; }
  .t-stub { border-left: 0; border-top: 2px dashed var(--rule); border-radius: 0 0 12px 12px; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 .5rem; }
  .t-stub .book { flex-basis: 100%; }
}

/* analytics-cookie choice: one quiet card, bottom-left, until answered */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 30; max-width: 26rem; background: var(--dusk-deep); border: 1px solid var(--rule); border-radius: 12px; padding: 1rem 1.1rem; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.consent p { margin: 0 0 .8rem; font-size: .92rem; line-height: 1.5; color: var(--frost); }
.consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent .btn { font-size: .88rem; padding: .6rem 1rem; }

/* /sitemap/: a plain list, grouped */
ul.sitemap { list-style: none; padding: 0; margin: 0 0 2rem; }
ul.sitemap li { padding: .55rem 0; border-top: 1px solid var(--rule); max-width: none; }
ul.sitemap li .small { display: block; color: var(--frost); font-size: .82rem; }

/* phone menu: brand + one button; the links drop down as a panel */
@media (max-width: 760px) {
  .site-head nav { flex-wrap: nowrap; align-items: center; padding: .6rem 1.25rem; position: relative; }
  .site-head .brand { font-size: 1.05rem; padding-block: .5rem; white-space: nowrap; }
  @media (max-width: 340px) { .site-head .brand { font-size: .95rem; } }
  .nav-toggle { flex: none; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; margin: 0; padding: 0 10px; border: 0; border-radius: 10px; background: rgba(15,22,41,.45); cursor: pointer; }
  .site-head.solid .nav-toggle { background: transparent; }
  .nav-toggle span { display: block; height: 2px; width: 100%; background: var(--snow); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .site-head.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-head.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-head.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--dusk-deep); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); box-shadow: 0 18px 40px rgba(0,0,0,.45); padding: .4rem 0 .6rem; z-index: 20; }
  .site-head.open .nav-links { display: block; }
  .nav-links a { display: block; padding: .85rem 1.5rem; font-size: 1.08rem; opacity: 1; }
  .nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 6px; }
  .nav-links a + a { border-top: 1px solid var(--rule); }
  @media (prefers-reduced-motion: reduce) { .nav-toggle span { transition: none; } }
}

/* home: link cards to every guide */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem; margin: 1rem 0 1.5rem; }
.lcard { display: flex; flex-direction: column; gap: .3rem; padding: 0 0 1rem; overflow: hidden; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; color: var(--snow); text-decoration: none; transition: border-color .15s, transform .15s; }
.lcard:hover { border-color: var(--amber); color: var(--snow); transform: translateY(-2px); }
.lc-t { font: 400 1.12rem/1.25 var(--display); }
.lc-d { font-size: .9rem; line-height: 1.45; color: var(--frost); }
.see-all { font: 500 .9rem/1 var(--body); margin-left: .6rem; white-space: nowrap; }
.answer-tile .q a { color: var(--frost); text-decoration: none; }
.answer-tile .q a:hover { color: var(--snow); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .lcard { transition: none; } .lcard:hover { transform: none; } }

/* author page */
.author-card { display: flex; gap: 1.5rem; align-items: center; margin: 1rem 0 1.5rem; }
.author-card img { width: 9rem; height: 9rem; border-radius: 50%; object-fit: cover; border: 3px solid var(--rule); flex: none; }
.author-card h1 { margin: 0 0 .3rem; }
.author-role { margin: 0 0 .6rem; color: var(--frost); }
.author-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.author-links a { padding: .35rem .8rem; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.author-links a:hover { border-color: var(--amber); }
.meta a { color: var(--snow); }
@media (max-width: 560px) { .author-card { flex-direction: column; align-items: flex-start; } .author-card img { width: 7rem; height: 7rem; } }

.lcard .lc-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; margin-bottom: .6rem; }
.lcard .lc-t, .lcard .lc-d { padding: 0 1.1rem; }
.lcard:hover .lc-img { filter: brightness(1.08); }

/* footer */
.site-foot { background: var(--dusk-deep); border-top: 1px solid var(--rule); margin-top: 3rem; color: var(--frost); font-size: .92rem; }
.foot-top, .foot-bottom { max-width: 72rem; margin: 0 auto; padding: 2.5rem 1.25rem 1.5rem; }
.foot-top { display: grid; grid-template-columns: minmax(15rem, 1.1fr) 3fr; gap: 2rem 3rem; }
.fbrand p { margin: .6rem 0; max-width: 26rem; }
.fbrand-name { display: inline-flex; align-items: center; gap: .6rem; color: var(--snow); text-decoration: none; font: 400 1.2rem/1.2 var(--display); }
.fbrand-name img { border-radius: 10px; }
.fsocial { display: flex; gap: .5rem; flex-wrap: wrap; }
.fsocial a { padding: .3rem .75rem; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--frost); }
.fsocial a:hover { border-color: var(--amber); color: var(--snow); }
.fcols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.fcol { display: flex; flex-direction: column; gap: .15rem; }
.fcol .fh { margin: 0 0 .4rem; font-weight: 600; color: var(--snow); font-size: .85rem; }
.fcol a { color: var(--frost); text-decoration: none; padding: .3rem 0; }
.fcol a:hover { color: var(--snow); text-decoration: underline; text-decoration-color: var(--amber); }
.foot-bottom { border-top: 1px solid var(--rule); padding-top: 1.2rem; padding-bottom: 2.5rem; font-size: .82rem; }
.foot-bottom p { margin: .4rem 0; max-width: none; }
.site-foot a { color: var(--frost); }
.fcredits { opacity: .8; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fcols { grid-template-columns: repeat(2, 1fr); } .fcol a { padding: .5rem 0; } }

/* search */
.nav-search { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: .4rem; border-radius: 10px; color: var(--snow); opacity: .85; }
.nav-search:hover { opacity: 1; background: rgba(15,22,41,.35); }
@media (max-width: 760px) { .nav-search { order: 2; flex: none; width: 44px; height: 44px; margin-left: auto; margin-right: .3rem; background: rgba(15,22,41,.45); } .site-head.solid .nav-search { background: transparent; } .nav-toggle { order: 3; } .site-head .brand { margin-right: 0; } }
#search { --pagefind-ui-scale: 1; --pagefind-ui-primary: #f2b45f; --pagefind-ui-text: #f3f5f9; --pagefind-ui-background: #182240; --pagefind-ui-border: #2c3a60; --pagefind-ui-tag: #1a2649; --pagefind-ui-border-width: 1px; --pagefind-ui-border-radius: 10px; --pagefind-ui-font: 'Instrument Sans', system-ui, sans-serif; margin: 1.5rem 0 3rem; }
#search .pagefind-ui__result-link { color: #f2b45f; }
#search .pagefind-ui__result-excerpt, #search .pagefind-ui__message { color: #b8c4da; }
#search mark { background: rgba(242,180,95,.25); color: #f3f5f9; }
