/* =================================================================
   NTXMUN — stylesheet
   Design concept: a "diplomatic dossier" — deep navy + brass gold,
   flat document-like surfaces (no drop-shadow card kit), a serif
   for headline/quote moments, a technical sans for everything else.
   ================================================================= */

:root {
  --ink: #10203B;
  --ink-2: #182A47;
  --paper: #EEF0F2;
  --surface: #FFFFFF;
  --gold: #C99A3A;
  --gold-deep: #96721F;
  --red: #A33B2E;
  --text: #1B2430;
  --text-soft: #55627A;
  --line: #D7DBE0;
  --line-on-ink: rgba(255, 255, 255, 0.16);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 72rem;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.2rem; font-weight: 600; font-family: var(--sans); color: var(--ink); margin-bottom: 0.6em; }
p { margin: 0 0 1.1em; max-width: 62ch; }
p.wide { max-width: none; }
a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.25em; }
dl { margin: 0; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
  position: absolute; left: 1rem; top: -3.5rem;
  background: var(--gold); color: var(--ink); padding: 0.6em 1em;
  z-index: 100; transition: top 0.15s ease; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* =================================================================
   Header / nav
   ================================================================= */
.site-header { background: var(--ink); border-bottom: 3px solid var(--gold); position: relative; z-index: 30; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; position: relative; }

.brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; }
.brand:hover { color: var(--gold); }
.brand-mark {
  width: 2rem; height: 2rem; border: 1.5px solid var(--gold); display: grid; place-items: center;
  color: var(--gold); font-family: var(--serif); font-style: italic; flex: none;
}
.brand-name { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.01em; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-on-ink); color: #fff;
  width: 2.5rem; height: 2.5rem; cursor: pointer; position: relative; flex: none;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 25%; right: 25%; height: 2px; background: #fff;
}
.nav-toggle-bar { top: 50%; transform: translateY(-50%); }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

.site-nav > ul { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.site-nav a, .site-nav summary {
  color: #E7E9EE; text-decoration: none; font-size: 0.96rem; padding: 0.4em 0.1em;
  border-bottom: 2px solid transparent; cursor: pointer; list-style: none; display: inline-block;
}
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav > ul > li > a:hover,
.site-nav > ul > li > a[aria-current="page"],
.site-nav summary:hover,
.site-nav summary.current { color: #fff; border-bottom-color: var(--gold); }

.has-dropdown { position: relative; }
.has-dropdown summary::after { content: "\25BE"; margin-left: 0.35em; font-size: 0.7em; }
.has-dropdown .dropdown {
  list-style: none; margin: 0; padding: 0.5rem 0;
  position: absolute; top: 100%; left: 0; min-width: 16rem;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 24px rgba(16, 32, 59, 0.18);
  z-index: 20;
}
.has-dropdown .dropdown a {
  display: block; padding: 0.55em 1.1em; color: var(--text); text-decoration: none; font-size: 0.93rem; border-bottom: none;
}
.has-dropdown .dropdown a:hover,
.has-dropdown .dropdown a[aria-current="page"] { background: var(--paper); color: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); border-top: 1px solid var(--line-on-ink);
    max-height: 80vh; overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0; }
  .site-nav > ul > li > a, .site-nav summary {
    display: block; padding: 0.9em clamp(1.25rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line-on-ink);
  }
  .has-dropdown .dropdown { position: static; box-shadow: none; border: none; background: var(--ink-2); padding: 0; }
  .has-dropdown .dropdown a { color: #D7DBE0; padding: 0.75em clamp(1.25rem, 4vw, 2.5rem) 0.75em calc(clamp(1.25rem, 4vw, 2.5rem) + 1rem); border-bottom: 1px solid var(--line-on-ink); }
  .has-dropdown .dropdown a:hover { background: var(--ink); color: #fff; }
}

/* =================================================================
   Hero
   ================================================================= */
.hero { background: var(--ink); color: #fff; padding-block: clamp(3.5rem, 9vw, 7rem); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -12% -65% auto; width: 42rem; height: 42rem;
  border: 1px solid var(--line-on-ink); border-radius: 50%; pointer-events: none;
}
.hero-inner { position: relative; max-width: 46rem; }
.hero blockquote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.35rem); line-height: 1.35; margin: 0 0 1rem; color: #fff; max-width: none;
}
.hero cite { display: block; font-style: normal; color: var(--gold); font-size: 1rem; margin-bottom: 2.25rem; }
.hero-rule { border: none; border-top: 2px solid var(--gold); width: 4rem; margin: 0 0 1.5rem; }
.hero-kicker { color: #C7CCD8; margin-bottom: 1.75rem; max-width: 42ch; }

.button-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn {
  display: inline-block; padding: 0.75em 1.5em; font-family: var(--sans); font-size: 0.96rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #E0B75A; color: var(--ink); }
.btn-outline { border-color: var(--line-on-ink); color: #fff; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* =================================================================
   Page head (non-hero interior pages)
   ================================================================= */
.page-head { background: var(--ink); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { color: #fff; }
.page-head p { color: #C7CCD8; max-width: 56ch; }
.crumb { font-size: 0.85rem; color: #A9B1C2; margin-bottom: 1rem; }
.crumb a { color: #C7CCD8; }
.crumb a:hover { color: var(--gold); }

/* =================================================================
   Sections
   ================================================================= */
.section { padding-block: clamp(2.75rem, 7vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }

.story-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--gap); align-items: start; }
@media (max-width: 780px) { .story-grid { grid-template-columns: 1fr; } }

.fact-panel { background: var(--ink); color: #fff; padding: 1.75rem; border-top: 3px solid var(--gold); }
.fact-panel dt { color: var(--gold); font-size: 0.8rem; margin-top: 1.1rem; }
.fact-panel dt:first-child { margin-top: 0; }
.fact-panel dd { margin: 0.15rem 0 0; font-family: var(--serif); font-size: 1.15rem; }

/* =================================================================
   Timeline (chronological — a real sequence, so numbering earns its keep)
   ================================================================= */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 2.25rem 2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 0.3rem; width: 12px; height: 12px;
  background: var(--gold); border: 2px solid var(--paper); border-radius: 50%;
}
.timeline .tl-date { color: var(--text-soft); font-size: 0.87rem; }
.timeline h3 { margin: 0.15rem 0 0.35rem; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }

/* =================================================================
   Committees grid (flat "placard" tiles — not the rounded-card kit)
   ================================================================= */
.placard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.placard {
  background: var(--surface); padding: 1.5rem; text-decoration: none; color: var(--text);
  border-top: 3px solid var(--ink); transition: border-color 0.15s ease, background 0.15s ease;
}
.placard:hover { border-top-color: var(--gold); background: var(--paper); }
.placard .p-acr { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.placard .p-name { display: block; font-size: 0.87rem; color: var(--text-soft); margin-top: 0.35rem; }

/* =================================================================
   Pending-content notice (used on pages awaiting real copy)
   ================================================================= */
.pending { border: 1.5px dashed var(--gold-deep); padding: 1.5rem; background: rgba(201, 154, 58, 0.07); color: var(--text-soft); font-style: italic; }
.pending strong { color: var(--ink); font-style: normal; }
.pending + .pending { margin-top: 1.25rem; }

.stack-lg > * + * { margin-top: 2.5rem; }
.stack > * + * { margin-top: 1.5rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

/* =================================================================
   Footer
   ================================================================= */
.site-footer { background: var(--ink); color: #C7CCD8; padding-block: 3rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-inner .brand-name { color: #fff; font-family: var(--serif); font-size: 1.2rem; margin: 0 0 0.35rem; }
.footer-about { color: #97A0B3; }
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { color: #C7CCD8; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.fine-print { width: 100%; border-top: 1px solid var(--line-on-ink); margin-top: 2rem; padding-top: 1.5rem; font-size: 0.85rem; color: #8891A3; }

/* =================================================================
   Misc
   ================================================================= */
.center { text-align: center; }
.center p { margin-inline: auto; }
