:root {
  --paper: #fff;
  --surface-soft: #edf3f8;
  --ink: #142238;
  --ink-soft: #44546a;
  --muted: #647084;
  --blue: #2f6fa6;
  --blue-deep: #214e78;
  --blue-pale: #dceaf5;
  --red: #c04a50;
  --line: #d7e0e9;
  --line-strong: #bdcad7;
  --shadow-soft: 0 12px 34px rgba(20, 34, 56, .08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-deep); text-underline-offset: .18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.update-skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 30;
  padding: .7rem 1rem;
  background: var(--blue-deep);
  color: #fff;
}
.update-skip:focus { top: 1rem; }

.update-top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.update-top__inner,
.update-shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.update-top__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.update-brand {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
}
.update-brand span { color: var(--red); }

.update-top nav { display: flex; flex-wrap: wrap; gap: .45rem 1rem; }
.update-top nav a { color: var(--ink-soft); font-size: .9rem; font-weight: 700; text-decoration: none; }
.update-top nav a[aria-current="page"] { color: var(--blue-deep); }

.update-main { padding: 2.2rem 0 5rem; }

.update-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  padding: 2.4rem 0 2rem;
  border-bottom: 1px solid var(--line-strong);
}

.update-eyebrow {
  margin: 0 0 .45rem;
  color: var(--red);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.update-hero h1,
.update-document h1 {
  max-width: 920px;
  margin: 0;
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: .98;
}

.update-hero__intro {
  max-width: 760px;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.update-latest,
.update-publication-date {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}

.update-latest { margin: .7rem 0 0; }
.update-publication-date { margin: -.3rem 0 1.35rem; }
.update-latest time,
.update-publication-date time { color: var(--ink-soft); font-weight: 650; }

.update-count {
  min-width: 155px;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--blue);
  background: #fff;
}
.update-count strong { display: block; font-family: 'EB Garamond', Georgia, serif; font-size: 2.2rem; line-height: 1; }
.update-count span { color: var(--muted); font-size: .82rem; font-weight: 700; }

.update-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  margin: 1.5rem 0;
}
.update-search label { display: block; margin-bottom: .4rem; font-size: .82rem; font-weight: 800; }
.update-search input {
  width: 100%;
  min-height: 48px;
  padding: .75rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.update-result { margin: 0; color: var(--muted); font-size: .88rem; }

.update-subject-nav {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding: 0 0 1rem;
  scrollbar-width: thin;
}
.update-subject-nav a {
  flex: 0 0 auto;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--blue-deep);
  font-size: .83rem;
  font-weight: 750;
  text-decoration: none;
}

.update-subjects { display: grid; gap: .8rem; margin-top: .5rem; }
.update-subject {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.update-subject[open] { border-top: 4px solid var(--blue); }
.update-subject summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
}
.update-subject summary::-webkit-details-marker { display: none; }
.update-subject summary::after { content: '+'; color: var(--red); font-size: 1.5rem; font-weight: 500; }
.update-subject[open] summary::after { content: '−'; }
.update-subject summary strong { display: block; font-family: 'EB Garamond', Georgia, serif; font-size: 1.45rem; line-height: 1.1; }
.update-subject summary span { color: var(--muted); font-size: .84rem; }

.update-materials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  padding: 0 1.15rem 1.15rem;
}
.update-material {
  min-width: 0;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.update-material--map { background: var(--surface-soft); }
.update-material a { display: block; color: var(--ink); font-weight: 750; line-height: 1.35; text-decoration: none; }
.update-material a:hover { color: var(--blue-deep); text-decoration: underline; }
.update-material span { display: block; margin-top: .35rem; color: var(--muted); font-size: .78rem; }
.update-material time { display: block; margin-top: .3rem; color: var(--muted); font-size: .72rem; }
.update-material[hidden], .update-subject[hidden] { display: none; }

.update-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  margin: 0 0 1.3rem;
  color: var(--muted);
  font-size: .85rem;
}
.update-breadcrumbs a { color: var(--blue-deep); }

.update-document {
  width: min(900px, 100%);
  margin-inline: auto;
}
.update-document__head {
  padding: 1.7rem 0 1.5rem;
  border-bottom: 1px solid var(--line-strong);
}
.update-document h1 { font-size: clamp(2.1rem, 6vw, 4.3rem); line-height: 1.02; }
.update-document__meta { margin: .8rem 0 0; color: var(--muted); font-size: .88rem; font-weight: 700; }

.update-content {
  padding: 1.2rem 0 2.4rem;
  color: var(--ink);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.12rem;
}
.update-content h1,
.update-content h2,
.update-content h3,
.update-content h4 {
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  line-height: 1.12;
  scroll-margin-top: 6rem;
}
.update-content h1 { font-size: 2.35rem; }
.update-content h2 { margin-top: 2.1rem; font-size: 1.95rem; }
.update-content h3 { margin-top: 1.7rem; font-size: 1.55rem; }
.update-content h4 { margin-top: 1.4rem; font-size: 1.25rem; }
.update-content p { margin: .8rem 0; }
.update-content ul,
.update-content ol { padding-left: 1.35rem; }
.update-content li + li { margin-top: .32rem; }
.update-content blockquote {
  margin: 1.4rem 0;
  padding: .8rem 1rem;
  border-left: 4px solid var(--red);
  background: var(--surface-soft);
}
.update-content hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--line-strong); }
.update-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-family: 'Instrument Sans', sans-serif;
  font-size: .88rem;
}
.update-content th,
.update-content td { min-width: 150px; padding: .65rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.update-content th { background: var(--surface-soft); }
.update-content code { padding: .1rem .28rem; border-radius: 4px; background: var(--surface-soft); font-family: ui-monospace, monospace; font-size: .9em; }
.update-content pre { overflow-x: auto; padding: 1rem; border-radius: 8px; background: #142238; color: #fff; }
.update-content pre code { padding: 0; background: transparent; color: inherit; }

.update-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-strong);
}
.update-pager a {
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}
.update-pager a:last-child { text-align: right; }

.update-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}
.update-footer__inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: .82rem;
}
.update-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }

@media (max-width: 760px) {
  .update-top { position: static; }
  .update-top__inner { align-items: flex-start; flex-direction: column; padding: .8rem 0; }
  .update-hero { grid-template-columns: 1fr; }
  .update-count { width: 100%; }
  .update-toolbar { grid-template-columns: 1fr; }
  .update-materials, .update-pager { grid-template-columns: 1fr; }
  .update-pager a:last-child { text-align: left; }
  .update-footer__inner { flex-direction: column; }
}

@media print {
  .update-top, .update-footer, .update-pager, .update-breadcrumbs { display: none !important; }
  .update-main { padding: 0; }
  .update-content { font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
}
