:root {
  --cream: #f4f0e8;
  --paper: #fffdf8;
  --navy: #062c4a;
  --navy-deep: #041f35;
  --teal: #0a7d78;
  --teal-dark: #075e5b;
  --coral: #e35439;
  --ink: #0d2740;
  --muted: #5d6b76;
  --line: #c9d0cf;
  --display: "Anton", sans-serif;
  --sans: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1420px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: #fff; color: var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #f6b242; outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(244,240,232,.98); border-bottom: 1px solid var(--line); }
.nav-row { min-height: 100px; display: flex; align-items: center; gap: 34px; }
.brand { width: 292px; display: grid; grid-template-columns: max-content 1fr; grid-template-rows: 24px 42px 18px; text-decoration: none; align-items: center; }
.brand-first { grid-column: 1; grid-row: 1; padding: 1px 10px 2px; color: #fff; background: var(--teal); font-size: 15px; font-weight: 800; letter-spacing: .33em; text-transform: uppercase; }
.brand-last { grid-column: 1 / -1; grid-row: 2; font-family: var(--display); color: var(--navy); font-size: 45px; line-height: .9; text-transform: uppercase; }
.brand-office { grid-column: 1 / -1; grid-row: 3; color: var(--teal-dark); font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.site-nav { flex: 1; display: flex; justify-content: center; align-items: center; gap: clamp(18px, 2vw, 34px); }
.site-nav a { position: relative; padding: 14px 0; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 7px; height: 3px; background: var(--teal); }
.site-nav a:hover::after, .site-nav a.is-active::after { right: 0; }
.header-action { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 9px; background: var(--coral); color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--navy); border-radius: 8px; background: transparent; color: var(--navy); }

.agenda-intro { padding: 30px 0 24px; background: var(--paper); color: var(--ink); }
.intro-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 36px; align-items: center; }
.back-link { display: none; }
.eyebrow { margin: 0 0 6px; color: var(--teal-dark); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.agenda-intro h1 { max-width: none; margin: 0; font-family: var(--display); color: var(--navy); font-size: clamp(32px, 2.5vw, 36px); line-height: 1; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; }
.meeting-meta { margin: 13px 0 0; color: var(--muted); font-size: 14px; }
.official-callout { display: grid; grid-template-columns: 48px 1fr; gap: 15px; padding: 18px 20px; border: 1px solid var(--line); background: #f7f5ef; }
.source-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); font-size: 20px; }
.official-callout strong { color: var(--navy); font-size: 14px; }
.official-callout p { margin: 4px 0 8px; color: var(--muted); font-size: 12px; }
.official-callout a { color: var(--teal-dark); font-size: 12px; font-weight: 800; }

.agenda-tools { padding: 16px 0 12px; background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-row { display: grid; grid-template-columns: minmax(300px, 1.7fr) repeat(4, minmax(150px, .65fr)); gap: 10px; }
.search-field { position: relative; }
.search-field i { position: absolute; left: 15px; top: 17px; color: var(--teal-dark); }
.search-field input { width: 100%; height: 54px; padding: 0 15px 0 44px; border: 1px solid #8d9a9e; border-radius: 8px; background: #fff; }
.filter-field { display: grid; gap: 5px; }
.filter-field span { color: var(--teal-dark); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.filter-field select { width: 100%; height: 34px; padding: 0 8px; border: 1px solid #8d9a9e; border-radius: 6px; background: #fff; color: var(--ink); font-size: 12px; }
.quick-row { min-height: 42px; display: flex; align-items: center; gap: 18px; }
.david-toggle { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800; cursor: pointer; }
.david-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track { width: 42px; height: 24px; padding: 3px; border-radius: 14px; background: #9ba8aa; transition: background 150ms ease; }
.toggle-track span { display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 150ms ease; }
.david-toggle input:checked + .toggle-track { background: var(--teal); }
.david-toggle input:checked + .toggle-track span { transform: translateX(18px); }
.david-toggle input:focus-visible + .toggle-track { outline: 3px solid #f6b242; outline-offset: 3px; }
#reset-filters { padding: 6px 0; border: 0; background: transparent; color: var(--teal-dark); font-size: 12px; font-weight: 800; cursor: pointer; }
#result-count { margin: 0 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 700; }

.agenda-workspace { padding: 0 0 62px; }
.section-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid #9ba8aa; scrollbar-width: thin; }
.section-tabs button { min-width: max-content; padding: 12px 15px 10px; border: 0; border-bottom: 4px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.section-tabs button.is-active { border-color: var(--teal); color: var(--navy); }
.section-tabs .tab-count { margin-left: 5px; color: var(--teal-dark); }
.reader-shell { height: min(680px, calc(100vh - 420px)); min-height: 540px; display: grid; grid-template-columns: minmax(330px, .68fr) minmax(0, 1.32fr); overflow: hidden; border: 1px solid var(--line); border-top: 0; background: var(--paper); }
.item-browser { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #f7f5ef; }
.list-heading { min-height: 52px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--teal-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.list-heading strong { min-width: 32px; padding: 3px 8px; border-radius: 12px; background: var(--navy); color: #fff; text-align: center; }
.item-list { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; }
.agenda-card { width: 100%; padding: 17px 18px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 13px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.agenda-card:hover { background: #edf5f4; }
.agenda-card.is-selected { background: #dfeeed; box-shadow: inset 5px 0 0 var(--teal); }
.agenda-number { padding-top: 1px; font-family: var(--display); color: var(--navy); font-size: 24px; line-height: 1; }
.agenda-card-copy { min-width: 0; }
.agenda-card-copy h3 { margin: 0 0 7px; font-size: 14px; line-height: 1.35; }
.agenda-card-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); font-size: 10px; }
.agenda-card-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.david-mark { color: var(--teal-dark); font-weight: 800; }
.empty-list { padding: 36px 22px; color: var(--muted); text-align: center; }

.item-detail { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; background: #fff; }
.detail-inner { padding: 32px clamp(28px, 4vw, 58px) 46px; }
.detail-topline { display: flex; justify-content: space-between; align-items: start; gap: 22px; }
.detail-ident { display: flex; align-items: center; gap: 12px; }
.detail-number { font-family: var(--display); color: var(--navy); font-size: 38px; line-height: 1; }
.detail-type { color: var(--teal-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status-badge { padding: 6px 9px; border: 1px solid #93b8b5; color: var(--teal-dark); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.detail-inner h2 { max-width: 900px; margin: 18px 0 8px; color: var(--navy); font-size: clamp(27px, 3vw, 42px); line-height: 1.12; letter-spacing: -.02em; }
.detail-section { margin: 0; color: var(--muted); font-size: 12px; }
.resident-overview { margin: 25px 0; padding: 18px 20px; border-left: 5px solid var(--teal); background: #edf6f5; }
.resident-overview span { display: block; margin-bottom: 5px; color: var(--teal-dark); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.resident-overview p { margin: 0; font-size: 15px; font-weight: 600; }
.detail-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-fact { min-height: 92px; padding: 17px 14px 15px 0; border-right: 1px solid var(--line); }
.detail-fact + .detail-fact { padding-left: 18px; }
.detail-fact:last-child { border-right: 0; }
.detail-fact span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-fact strong { display: block; margin-top: 5px; color: var(--navy); font-size: 13px; }
.sponsors-section { margin-top: 28px; }
.detail-label { margin: 0 0 12px; color: var(--teal-dark); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.sponsor-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.sponsor-card { min-width: 180px; padding: 10px 14px 10px 10px; display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; }
.sponsor-card img { width: 58px; height: 58px; object-fit: cover; object-position: top center; border-radius: 50%; background: var(--cream); }
.sponsor-card strong { display: block; color: var(--navy); font-size: 12px; line-height: 1.2; }
.sponsor-card span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.department-sponsors { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.department-sponsors strong { color: var(--navy); }
.official-record { margin-top: 28px; padding: 21px; display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; border: 1px solid #9cb5bd; border-top: 4px solid var(--navy); background: #f2f6f7; }
.official-record > i { color: var(--navy); font-size: 28px; }
.official-record strong { display: block; color: var(--navy); }
.official-record p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.official-record a { padding: 10px 12px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.details-stack { margin-top: 18px; border-top: 1px solid var(--line); }
.details-stack details { border-bottom: 1px solid var(--line); }
.details-stack summary { padding: 15px 2px; display: flex; justify-content: space-between; align-items: center; color: var(--navy); font-size: 13px; font-weight: 800; cursor: pointer; list-style: none; }
.details-stack summary::-webkit-details-marker { display: none; }
.details-stack summary::after { content: "+"; font-size: 20px; font-weight: 500; }
.details-stack details[open] summary::after { content: "−"; }
.details-body { padding: 0 2px 18px; color: var(--muted); font-size: 13px; }
.details-body p { margin: 0 0 10px; }
.details-body a { color: var(--teal-dark); font-weight: 800; }
.empty-detail { min-height: 100%; display: grid; align-content: center; justify-items: center; padding: 40px; color: var(--muted); text-align: center; }
.empty-detail i { color: #8bb6b2; font-size: 42px; }
.empty-detail h2 { margin: 14px 0 4px; color: var(--navy); }
.empty-detail p { max-width: 430px; margin: 0; }

.site-footer { padding: 30px 0; background: var(--navy); color: #fff; }
.footer-row { display: grid; grid-template-columns: .8fr 1.5fr auto; align-items: center; gap: 30px; }
.footer-brand { font-family: var(--display); font-size: 28px; text-transform: uppercase; }
.footer-brand span { display: block; font-family: var(--sans); color: #64d0ca; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.footer-row p { margin: 0; color: #c4d1d7; font-size: 12px; }
.footer-row > a { color: #fff; font-size: 12px; font-weight: 800; }

@media (max-width: 1120px) {
  .brand { width: 235px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 12px; }
  .search-row { grid-template-columns: minmax(260px, 1.4fr) repeat(2, 1fr); }
  .search-field { grid-row: span 2; }
  .reader-shell { grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr); }
  .agenda-intro h1 { white-space: normal; }
}

@media (max-width: 860px) {
  .site-header { position: relative; }
  .nav-row { min-height: 86px; }
  .brand { margin-right: auto; }
  .menu-toggle { display: block; order: 3; }
  .header-action { display: none; }
  .site-nav { position: absolute; left: 0; right: 0; top: 86px; display: none; padding: 14px 24px 20px; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 0; }
  .site-nav a::after { display: none; }
  .intro-layout { grid-template-columns: 1fr; gap: 24px; }
  .reader-shell { height: auto; min-height: 0; grid-template-columns: 1fr; overflow: visible; }
  .item-browser { max-height: 520px; border-right: 0; border-bottom: 1px solid var(--line); }
  .item-detail { overflow: visible; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1420px); }
  .brand { width: 205px; grid-template-rows: 19px 34px 15px; }
  .brand-first { font-size: 11px; }
  .brand-last { font-size: 36px; }
  .brand-office { font-size: 8px; }
  .agenda-intro { padding-top: 28px; }
  .agenda-intro h1 { font-size: 48px; }
  .search-row { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; grid-row: auto; }
  .quick-row { align-items: start; flex-wrap: wrap; padding-top: 12px; }
  #result-count { width: 100%; margin-left: 0; }
  .agenda-workspace { padding-bottom: 40px; }
  .agenda-card { grid-template-columns: 50px minmax(0, 1fr); padding-inline: 14px; }
  .detail-inner { padding: 25px 18px 34px; }
  .detail-topline { align-items: start; flex-direction: column; gap: 10px; }
  .detail-facts { grid-template-columns: 1fr; }
  .detail-fact, .detail-fact + .detail-fact { min-height: 0; padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-fact:last-child { border-bottom: 0; }
  .sponsor-card { flex: 1 1 100%; }
  .official-record { grid-template-columns: 36px 1fr; }
  .official-record a { grid-column: 1 / -1; text-align: center; }
  .footer-row { grid-template-columns: 1fr; gap: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
