/* BoğaziçiMUN 2027 — shared styles for every page.
   Plain and quiet: cold navy, thin rules, no shouting. Inter for reading; headings borrow
   Cormorant Garamond from the Secretariat's letter. */
:root {
  --bg: #0c1734;          /* club navy (main) */
  --surface: #131f3d;     /* club navy (shadows, panels) */
  --surface-2: #172850;   /* club navy (lighter areas) */
  --text: #edf1f6;
  --quiet: #a8b4c6;
  --faint: #7b889e;
  --rule: #1d2f5c;
  --rule-strong: #c6cfdb;
  --brand: #e7ecf3;
  --brand-hover: #ffffff;
  --on-brand: #0c1734;
  --emblem: #dfe5ee;
  --sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --wrap: 1200px;
  --header: 64px;
  color-scheme: dark;
}
:root[data-bmun="light"] {
  --bg: #e9edf3; --surface: #f3f5f9; --surface-2: #dde3ec; --text: #0f1a2b; --quiet: #4a5468; --faint: #5f6a7e;
  --rule: #cbd3df; --rule-strong: #0f1f3a; --brand: #0f1f3a; --brand-hover: #07122a; --on-brand: #ffffff; --emblem: #0f1f3a;
  color-scheme: light;
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; }
p, dd, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.emblem { display: inline-block; aspect-ratio: 576 / 455; background: var(--emblem); -webkit-mask: url(../img/laurel.png) center / contain no-repeat; mask: url(../img/laurel.png) center / contain no-repeat; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
h2 { margin: 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.05; }
.lead { margin: 14px 0 0; max-width: 44em; color: var(--quiet); font-size: 17px; }
section { padding-block: 88px 0; }
section.tight { padding-top: 64px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 32px; }
.sec-head .lead { margin: 10px 0 0; }
.more { font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.more::after { content: " \2192"; }
.more:hover { text-decoration: underline; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font: 600 15px var(--sans); background: var(--brand); color: var(--on-brand); cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s; }
.btn:hover { background: var(--brand-hover); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--rule-strong); }
.btn.ghost:hover { background: var(--surface); }
.btn.small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.follow svg { width: 16px; height: 16px; flex: none; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: var(--header); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand .emblem { width: 30px; }
.nav { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--quiet); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.tools { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 16px; height: 16px; }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .menu-btn { display: inline-grid; }
  .tools { margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px max(24px, env(safe-area-inset-left, 0px)) 16px; background: var(--bg); border-bottom: 1px solid var(--rule); }
  .top.open .nav { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-top: 1px solid var(--rule); font-size: 17px; color: var(--text); }
  .nav a[aria-current="page"] { background: none; font-weight: 700; }
}
@media (max-width: 420px) { .top .follow { width: 38px; padding: 0; } .top .follow span { display: none; } }
@media (max-width: 360px) { .top .wrap { gap: 12px; padding-inline: 16px; } .tools { gap: 6px; } }

/* page header for inner pages */
.page-head { padding: 72px 0 8px; }
.page-head h1 { margin: 0; font-size: clamp(46px, 7vw, 84px); line-height: 1; letter-spacing: -.015em; }
.subnav { position: sticky; top: var(--header); z-index: 20; margin-top: 36px; background: var(--bg); border-bottom: 1px solid var(--rule); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav a { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--rule); text-decoration: none; font-size: 14px; color: var(--quiet); }
.subnav a:hover, .subnav a.on { color: var(--text); border-color: var(--rule-strong); }

/* home hero */
.hero { padding: 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 72px; align-items: center; padding-block: 80px 72px; }
.hero h1 { margin: 0; font-size: clamp(60px, 9.5vw, 128px); line-height: .92; letter-spacing: -.02em; font-weight: 500; }
.hero h1 .yr { display: flex; align-items: center; gap: .28em; }
/* on small phones the name sizes itself to the screen so it stays on one line */
@media (max-width: 400px) { .hero h1 { font-size: calc((100vw - 48px) / 6.2); } .hero h1 .yr { gap: .2em; } .hero h1 .mark { font-size: 10px; letter-spacing: .16em; padding: .5em .75em; } }
/* the letter's rubber stamp, pressed next to the year */
.hero h1 .mark { display: inline-block; padding: .55em .9em; border: 3px double currentColor; color: var(--quiet); font: 700 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; transform: rotate(-8deg); }
/* the one motion on the page: the stamp presses down once the letter is out of the way */
.hero h1 .mark { animation: press .55s cubic-bezier(.16, 1, .3, 1) .35s both; }
.letter-open .hero h1 .mark { animation-play-state: paused; }
@keyframes press { from { opacity: 0; transform: rotate(-14deg) scale(1.5); } to { opacity: 1; transform: rotate(-8deg); } }
.hero .intro { margin: 32px 0 0; max-width: 33em; font-size: 18px; color: var(--quiet); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-photo { margin: 0; justify-self: end; width: min(100%, 340px); }
.hero-photo .frame { overflow: hidden; border-radius: 4px; background: var(--surface); }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.hero-photo:hover img { transform: scale(1.04); }
.hero-photo figcaption { margin-top: 10px; font-size: 13px; color: var(--faint); }

.facts { border-block: 1px solid var(--rule); }
.facts .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts div { padding: 22px 24px; }
.facts div + div { border-left: 1px solid var(--rule); }
.facts b { display: block; font-weight: 600; font-size: 15px; }
.facts span { font-size: 14px; color: var(--quiet); }

/* committee preview cards (home) */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; margin: 0; padding: 0; list-style: none; }
.card { display: block; text-decoration: none; }
.card .ph { overflow: hidden; border-radius: 4px; background: var(--surface); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s; filter: saturate(.85); }
.card:hover img { transform: scale(1.05); filter: saturate(1); }
.card b { display: block; margin-top: 12px; font-size: 17px; font-weight: 600; }
.card span { display: block; font-size: 14px; color: var(--quiet); line-height: 1.4; }
.card .lvl { margin-top: 8px; }
.card em { display: block; margin-top: 8px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--faint); transition: color .2s; }
.card:hover em { color: var(--text); }

/* photo grid */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gallery li { position: relative; overflow: hidden; border-radius: 4px; background: var(--surface); }
.gallery li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery li.wide { grid-column: span 2; }
.gallery img[src$="omer.jpg"] { object-position: 50% 28%; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gallery li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 10, 20, .75), transparent 55%); opacity: .0; transition: opacity .3s; }
.gallery figcaption { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; font-size: 13px; line-height: 1.35; color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.gallery figcaption b { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.gallery li:hover img { transform: scale(1.05); }
.gallery li:hover::after, .gallery li:focus-within::after { opacity: 1; }
.gallery li:hover figcaption, .gallery li:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .gallery li::after { opacity: 1; } .gallery figcaption { opacity: 1; transform: none; } }

.band { margin-top: 96px; background: var(--surface); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 48px; }
.band h2 { font-size: clamp(30px, 3.4vw, 42px); }
.band p { margin: 6px 0 0; color: var(--quiet); }

/* committees page */
.guides { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.guides a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 14px; font-weight: 500; transition: background-color .2s; }
.guides a:hover { background: var(--surface-2); }
.guides a::before { content: "\2193"; color: var(--faint); }
.group { padding-top: 64px; }
.group > h2 { font-size: 30px; padding-bottom: 14px; border-bottom: 1px solid var(--rule-strong); }
.cm { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px 32px; padding: 28px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: calc(var(--header) + 72px); }
.cm .ph { overflow: hidden; border-radius: 4px; background: var(--surface); align-self: start; }
.cm .ph img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.cm:hover .ph img { transform: scale(1.04); }
.cm h3 { margin: 0; font-size: 24px; line-height: 1.2; }
.cm .full { margin: 2px 0 0; color: var(--quiet); font-size: 15px; }
/* experience level: one quiet pill, the same on committee rows and home cards */
.lvl { display: inline-block; margin: 10px 0 0; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--rule); font-size: 12.5px; font-weight: 600; line-height: 1.5; color: var(--quiet); }
/* the first-timer key on the committees page */
.glossary { margin-top: 24px; max-width: 68ch; border-block: 1px solid var(--rule); }
.glossary summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
.glossary dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 0; padding: 4px 0 20px; font-size: 15px; }
.glossary dt { font-weight: 600; }
.glossary dd { margin: 0; color: var(--quiet); }
@media (max-width: 560px) { .glossary dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .glossary dd { margin-bottom: 10px; } }
.cm .agenda { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: ai; display: grid; gap: 4px; }
.cm .agenda li { counter-increment: ai; display: grid; grid-template-columns: 22px minmax(0, 1fr); }
.cm .agenda li::before { content: counter(ai) "."; color: var(--faint); font-variant-numeric: tabular-nums; }
.cm .one { margin: 14px 0 0; }
.cm .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rm-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule-strong); background: transparent; color: var(--text); font: 600 14px var(--sans); cursor: pointer; }
.rm-btn:hover { background: var(--surface); }
.rm-btn::after { content: "+"; font-weight: 400; font-size: 18px; line-height: 1; color: var(--faint); }
.rm-btn[aria-expanded="true"]::after { content: "\2013"; }
.cm .detail { grid-column: 2; max-width: 68ch; color: var(--quiet); }
.cm .detail p { margin: 16px 0 0; }
.dl { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--brand); color: var(--on-brand); text-decoration: none; font: 600 14px var(--sans); }
.dl:hover { background: var(--brand-hover); }
.dl.alt { background: var(--surface-2); color: var(--text); }
.dl.alt:hover { background: var(--rule); }

/* conference + about: two-column blocks */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 64px; }
.split > :first-child p { margin: 12px 0 0; color: var(--quiet); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 22px; border-radius: 6px; background: var(--surface); }
.tile .label { display: block; margin-bottom: 6px; }
.tile b { display: block; font-size: 19px; font-weight: 600; line-height: 1.3; }
.tile p { margin: 6px 0 0; font-size: 14.5px; color: var(--quiet); }
/* undecided facts read like the letter: sealed, not missing */
.tile.tba b, .note-card b { font: italic 400 24px/1.2 var(--serif); letter-spacing: 0; }
.list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-strong); }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.list li span { color: var(--quiet); text-align: right; }
.faq { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--quiet); max-width: 62ch; }

.statement { margin: 0; max-width: 22em; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -.025em; font-weight: 500; }
.statement span { color: var(--faint); }
.about-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; margin-top: 40px; color: var(--quiet); font-size: 17px; }
.about-cols p { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--rule-strong); }
.stats div { padding: 22px 20px 0 0; }
.stats b { display: block; font-size: clamp(34px, 4vw, 52px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.stats span { display: block; margin-top: 8px; font-size: 14px; color: var(--quiet); }
.strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin: 56px 0 0; padding: 0; list-style: none; }
.strip li { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; background: var(--surface); }
.strip li:first-child { aspect-ratio: auto; }
.strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.strip li:hover img { transform: scale(1.05); }
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 16px; margin: 0; padding: 0; list-style: none; }
.board img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--surface); }
.board b { display: block; margin-top: 12px; font-size: 16px; font-weight: 600; }
.board span { display: block; font-size: 13.5px; color: var(--quiet); }
@media (max-width: 900px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.note-card { padding: 28px; border-radius: 6px; border: 1px dashed var(--rule-strong); color: var(--quiet); }
.note-card b { display: block; color: var(--text); margin-bottom: 6px; }

/* archive */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filters button { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--quiet); font: 500 14px var(--sans); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.timeline { position: relative; margin: 48px 0 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 119px; top: 8px; bottom: 8px; width: 1px; background: var(--rule-strong); opacity: .35; }
.ed { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 48px; padding-bottom: 28px; }
.ed[hidden] { display: none; }
.ed .yr { padding-top: 18px; text-align: right; font-size: 28px; font-weight: 600; letter-spacing: -.03em; color: var(--text); }
.ed .yr.dim { color: transparent; }
.ed::before { content: ""; position: absolute; left: 114px; top: 30px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--rule-strong); }
.ed.annual::before { background: var(--rule-strong); }
.ed .box { padding: 22px 24px; border-radius: 6px; background: var(--surface); transition: background-color .2s, transform .2s; }
.ed .box:hover { background: var(--surface-2); }
.ed .tag { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--surface-2); color: var(--quiet); }
.ed h2 { margin: 0; font-size: 28px; line-height: 1.15; }
.ed dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; margin: 16px 0 0; }
.ed dt { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ed dd { margin: 2px 0 0; font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.chips li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--rule); font-size: 13px; color: var(--quiet); }
.ed .shot { margin: 16px 0 0; }
.ed .shot img { display: block; width: 100%; max-width: 520px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.ed .shot figcaption { margin-top: 6px; font-size: 13px; color: var(--quiet); }
.ed .note { margin: 14px 0 0; font-size: 14px; color: var(--quiet); }

/* footer */
footer { margin-top: 120px; border-top: 1px solid var(--rule); background: var(--surface); }
/* The home page ends on the "Applications" band, which already shares the footer colour. */
body:has(main > .band:last-child) footer { margin-top: 0; }
main > .band:last-child { margin-bottom: 0; }
footer .wrap { padding-block: 56px 28px; }
.foot { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr)); gap: 32px 40px; }
.foot .brand { margin-bottom: 14px; }
.foot p { margin: 0 0 18px; max-width: 32ch; color: var(--quiet); font-size: 14.5px; }
.foot .status { margin: 0; color: var(--text); font-weight: 500; }
.foot h4 { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.foot a { text-decoration: none; color: var(--quiet); }
.foot a:hover { color: var(--text); text-decoration: underline; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--rule-strong); color: var(--text); }
.socials a:hover { background: var(--bg); text-decoration: none; }
.socials svg { width: 16px; height: 16px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--quiet); cursor: pointer; text-align: left; }
.linklike:hover { color: var(--text); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--faint); }
.to-top { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule-strong); background: transparent; color: var(--text); font: 600 13px var(--sans); cursor: pointer; }
.to-top:hover { background: var(--bg); }

/* dialogs (legal, credits) */
dialog { width: min(720px, calc(100% - 32px)); max-height: min(86vh, 900px); padding: 0; border: 1px solid var(--rule); border-radius: 8px; background: var(--bg); color: var(--text); }
dialog::backdrop { background: rgba(4, 9, 18, .6); }
.dlg-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; background: var(--bg); border-bottom: 1px solid var(--rule); }
.dlg-head h2 { font-size: 22px; }
.dlg-body { padding: 8px 24px 28px; font-size: 15px; line-height: 1.65; }
.dlg-body h3 { margin: 24px 0 6px; font-size: 16px; }
.dlg-body p, .dlg-body ul { margin: 0 0 .8em; }
.dlg-body ul { padding-left: 20px; }
.dlg-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dlg-body th, .dlg-body td { padding: 10px 8px 10px 0; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; font-weight: 400; }
.close-btn { height: 34px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--text); font: 500 13px var(--sans); cursor: pointer; }


@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-block: 48px 56px; }
  .hero-photo { justify-self: stretch; width: 100%; }
  .hero-photo img { aspect-ratio: 16 / 10; }
  .guides { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -24px; padding-inline: 24px; }
  .guides::-webkit-scrollbar { display: none; }
  .guides a { flex: none; }
  .foot ul { gap: 0; }
  .foot ul a, .foot ul .linklike { display: inline-block; padding-block: 8px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
  .gallery li.wide { grid-column: span 1; }
  .gallery { grid-auto-flow: dense; }
  .gallery li.mwide { grid-column: span 2; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot > :first-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
}
@media (max-width: 640px) {
  section { padding-top: 64px; }
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .facts div:nth-child(3) { grid-column: span 2; }
  .facts div { padding: 18px 20px; }
  .cm { grid-template-columns: 96px minmax(0, 1fr); gap: 14px 16px; }
  .cm h3 { font-size: 20px; }
  .cm .body { display: contents; }
  .cm .head { grid-column: 2; }
  .cm .rest, .cm .detail { grid-column: 1 / -1; }
  .tiles, .about-cols { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip li:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .timeline::before { left: 5px; }
  .ed { grid-template-columns: minmax(0, 1fr); padding-left: 28px; }
  .ed::before { left: 0; top: 24px; }
  .ed .yr { text-align: left; padding: 0 0 8px; font-size: 22px; }
  .ed .yr.dim { display: none; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .list li { flex-direction: column; gap: 2px; }
  .list li span { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, ::view-transition-old(root), ::view-transition-new(root) { transition: none !important; animation: none !important; } }
