@font-face {
  font-family: "UnifrakturCook";
  src: url("/fonts/unifrakturcook-bold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  --ink: #16201d;
  --ink-soft: #53605b;
  --paper: #f5f1e8;
  --paper-deep: #ece5d7;
  --surface: #fffdf8;
  --line: #d6d0c4;
  --accent: #f0643a;
  --accent-dark: #b93618;
  --mint: #b8f2d1;
  --error: #a72b25;
  --shadow: 0 18px 50px rgb(35 45 41 / 9%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 4%, rgb(184 242 209 / 42%), transparent 26rem),
    radial-gradient(circle at 94% 22%, rgb(240 100 58 / 12%), transparent 24rem),
    var(--paper);
}

button, input { font: inherit; }
button { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.page-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  box-shadow: 3px 3px 0 var(--ink);
}

.status-pill, .hint {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 253 248 / 72%);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #21a667;
  box-shadow: 0 0 0 3px rgb(33 166 103 / 14%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, .6fr);
  gap: 56px;
  align-items: end;
  padding: 82px 0 64px;
}

.eyebrow, .section-number {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6.3vw, 78px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .98;
}

.intro {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.6;
}

.endpoint-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: #f8f5ed;
  box-shadow: 6px 6px 0 var(--mint);
  overflow: hidden;
}

.endpoint-card code {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.method {
  flex: none;
  padding: 4px 6px;
  border-radius: 5px;
  background: var(--mint);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 900;
}

.request-panel, .inspection-section {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgb(255 253 248 / 88%);
  box-shadow: var(--shadow);
}

.request-panel { padding: 30px; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -.03em;
}

form > label {
  display: block;
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 750;
}

.request-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input[type="url"] {
  width: 100%;
  min-width: 0;
  padding: 16px 17px;
  border: 1px solid #aaa399;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  transition: border-color .18s, box-shadow .18s;
}

input[type="url"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(240 100 58 / 14%);
}

.primary-button, .secondary-button, .examples button {
  border: 0;
  cursor: pointer;
}

.primary-button {
  display: inline-flex;
  min-width: 156px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 13%);
  transition: background .18s, transform .18s;
}

.primary-button:hover { background: #dd4c25; transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .72; transform: none; }

.button-loader {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgb(255 255 255 / 38%);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.is-loading .button-loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
}

.check-control {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 13px;
}

.check-control input { width: 16px; height: 16px; accent-color: var(--accent); }

.examples { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; }
.examples button { padding: 5px 8px; border-radius: 6px; background: var(--paper-deep); font-size: 12px; }
.examples button:hover { background: var(--mint); }

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgb(167 43 37 / 32%);
  border-radius: 11px;
  background: #fff1ed;
  color: var(--error);
  font-size: 14px;
}

.empty-state {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  gap: 24px;
  color: var(--ink-soft);
  text-align: center;
}

.empty-orbit {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: spin 8s linear infinite;
}

.empty-orbit::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translate(34px); }
.empty-orbit span { position: absolute; width: 28px; height: 28px; border-radius: 8px; background: var(--mint); }

.results { padding: 62px 0 80px; }
.result-heading { margin-bottom: 18px; }
.section-intro { margin: 7px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.preview-gallery { display: grid; gap: 42px; }

.edition {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #fffdf8;
  color: var(--ink);
}

.edition h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.052em;
  line-height: .95;
  overflow-wrap: anywhere;
}

.edition-image { position: relative; overflow: hidden; background: var(--paper-deep); }
.edition-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.edition-image > div {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 220px;
  place-items: center;
  padding: 28px;
  color: var(--ink-soft);
  font: 700 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
  text-transform: uppercase;
}

.edition-source {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  font: 800 11px/1.3 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.edition-favicon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 1px solid currentColor;
  background: #fff;
}

.edition-favicon img { width: 18px; height: 18px; object-fit: contain; }
.edition-link { display: block; overflow: hidden; color: var(--accent-dark); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.edition-link:hover, .portrait-source a:hover { text-decoration-thickness: 2px; }

.edition-gazette { border-width: 2px; }
.edition-header { padding: 22px 28px 0; }
.gazette-header { text-align: center; }
.edition-kicker { margin-bottom: 10px; color: var(--accent-dark); font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; }
.edition-name { padding: 9px 0 13px; border-top: 1px solid var(--ink); border-bottom: 4px double var(--ink); font: 500 clamp(40px, 6vw, 72px)/.9 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.edition-meta { display: flex; justify-content: space-between; gap: 18px; padding: 10px 2px; border-bottom: 1px solid var(--ink); font: 700 10px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; text-transform: uppercase; }
.gazette-layout { display: grid; gap: 24px; padding: 28px; }
.gazette-story { display: flex; min-width: 0; flex-direction: column; justify-content: center; }
.story-flag, .extra-flag { margin: 0 0 14px; color: var(--accent-dark); font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; }
.gazette-story h3 { max-width: 1030px; font-size: clamp(58px, 8.6vw, 110px); }
.story-deck { max-width: 880px; margin: 18px 0; color: var(--ink-soft); font: 22px/1.35 Georgia, "Times New Roman", serif; }
.gazette-story .edition-link { margin-top: 13px; }
.gazette-image { min-height: 360px; border-top: 1px solid var(--ink); }
.gazette-footer { display: flex; justify-content: space-between; gap: 20px; padding: 12px 28px; border-top: 1px solid var(--ink); background: var(--mint); font: 800 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; text-transform: uppercase; }

.edition-extra { padding: 22px; border: 5px double #241e16; background: #eee2c9; color: #241e16; }
.extra-header { display: grid; grid-template-columns: 145px 1fr 145px; gap: 18px; align-items: center; padding-bottom: 12px; border-bottom: 4px double currentColor; }
.extra-box { padding: 12px 8px; border: 2px solid currentColor; font: 700 11px/1.45 Georgia, "Times New Roman", serif; text-align: center; text-transform: uppercase; }
.extra-name { font: 800 clamp(38px, 5.7vw, 70px)/.82 "Times New Roman", Georgia, serif; letter-spacing: -.04em; text-align: center; text-transform: uppercase; }
.extra-name span { display: inline-block; margin-right: 8px; font-size: .5em; font-style: italic; transform: rotate(-7deg); }
.extra-name b { display: inline-block; padding: 6px 10px 3px; border: 2px solid currentColor; font-size: .7em; }
.extra-meta { display: flex; justify-content: space-between; gap: 14px; padding: 9px 2px; border-bottom: 2px solid currentColor; font: 700 11px/1.2 Georgia, "Times New Roman", serif; letter-spacing: .03em; text-transform: uppercase; }
.extra-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); gap: 22px; padding-top: 22px; }
.extra-story { padding-right: 22px; border-right: 1px solid currentColor; }
.extra-story h3 { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(54px, 8vw, 104px); font-weight: 900; letter-spacing: -.035em; line-height: .86; text-transform: uppercase; }
.extra-deck { margin: 16px 0; padding: 12px 0; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; font: 700 19px/1.2 Georgia, "Times New Roman", serif; }
.extra-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.extra-columns p { margin: 0; font: 15px/1.35 Georgia, "Times New Roman", serif; }
.extra-columns .edition-source { align-self: end; }
.extra-image { min-height: 390px; border: 1px solid currentColor; }
.extra-image img { filter: grayscale(1) contrast(1.25); mix-blend-mode: multiply; }
.image-caption { margin: 7px 0 16px; padding-bottom: 8px; border-bottom: 1px solid currentColor; font: italic 12px/1.35 Georgia, "Times New Roman", serif; }
.edition-extra .edition-link { color: currentColor; }
.mono-favicon img { filter: grayscale(1) contrast(1.6); mix-blend-mode: multiply; }

.portrait-heading { padding-top: 14px; border-top: 1px solid var(--line); }
.portrait-heading .section-number { margin-bottom: 8px; }
.portrait-heading h3 { margin: 0; font: 500 clamp(30px, 4vw, 48px)/1 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.portrait-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.portrait-edition { display: flex; min-height: 790px; flex-direction: column; padding: 20px; border-width: 2px; }
.portrait-header { padding-bottom: 12px; border-top: 4px double currentColor; border-bottom: 4px double currentColor; text-align: center; }
.portrait-name { padding: 14px 0 10px; font: 500 clamp(38px, 5vw, 64px)/.9 Georgia, "Times New Roman", serif; letter-spacing: -.05em; }
.portrait-name-blackletter { font-family: "Times New Roman", Georgia, serif; font-weight: 800; letter-spacing: -.04em; }
.portrait-meta { display: flex; justify-content: space-between; gap: 10px; font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; text-transform: uppercase; }
.portrait-image { min-height: 320px; margin-top: 16px; border-bottom: 1px solid currentColor; }
.portrait-copy { padding: 19px 5px 16px; }
.portrait-copy h3 { font-size: clamp(48px, 5.4vw, 72px); }
.portrait-copy p { margin: 15px 0 0; padding-top: 14px; border-top: 3px solid var(--accent); font: 21px/1.28 Georgia, "Times New Roman", serif; }
.portrait-source { margin-top: auto; padding: 13px 5px 2px; border-top: 1px solid currentColor; }
.portrait-source a { min-width: 0; overflow: hidden; color: currentColor; text-overflow: ellipsis; white-space: nowrap; }
.portrait-headline-first .portrait-lead-copy { padding-bottom: 18px; }
.portrait-headline-first .portrait-image { margin-top: 0; }
.portrait-description { padding-top: 0; }
.portrait-description p { margin-top: 14px; }
.edition-mono { background: #f1eee7; color: #171717; }
.edition-mono .portrait-header { border-top-width: 5px; }
.edition-mono .portrait-image img { filter: grayscale(1) contrast(1.5); mix-blend-mode: multiply; }
.edition-mono .portrait-copy p { border-top-color: currentColor; }
.edition-mono .edition-favicon { background: #f1eee7; }

.newsstand-heading { padding-top: 28px; }
.newsstand-heading > p:last-child { max-width: 650px; margin: 12px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.newsstand-grid { display: grid; width: min(860px, 100%); gap: 36px; justify-self: center; }
.dense-edition { padding: 18px; border: 2px solid #211c15; background: #eee2c9; color: #211c15; }
.dense-masthead { display: grid; grid-template-columns: 108px 1fr 108px; gap: 15px; align-items: center; padding-bottom: 10px; border-bottom: 3px double currentColor; text-align: center; }
.dense-masthead p { margin: 0 0 5px; font: 800 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; text-transform: uppercase; }
.dense-paper-name { font: 700 clamp(38px, 5vw, 56px)/.9 "UnifrakturCook", "Old English Text MT", "Apple Chancery", Georgia, serif; letter-spacing: -.035em; white-space: nowrap; }
.dense-edition-box { padding: 10px 5px; border: 1px solid currentColor; font: 900 11px/1.25 Georgia, "Times New Roman", serif; letter-spacing: .08em; text-transform: uppercase; }
.dense-meta { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid currentColor; font: 800 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; text-transform: uppercase; }
.dense-headline { padding: 17px 0 12px; border-bottom: 3px double currentColor; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important; font-size: clamp(62px, 8.5vw, 104px); font-weight: 900 !important; letter-spacing: -.035em !important; line-height: .87 !important; text-align: center; text-transform: uppercase; }
.dense-deck { margin: 0; padding: 11px 5px; border-bottom: 1px solid currentColor; font: 700 clamp(18px, 2.8vw, 28px)/1.08 Georgia, "Times New Roman", serif; text-align: center; }
.dense-story-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; grid-template-areas: "left center right"; gap: 11px; padding: 12px 0; border-bottom: 1px solid currentColor; }
.dense-story-grid > .filler-column:first-child { grid-area: left; }
.dense-story-grid > .dense-center { grid-area: center; }
.dense-story-grid > .filler-column:last-child { grid-area: right; }
.filler-column { display: grid; align-content: start; }
.filler-column:first-child { padding-right: 10px; border-right: 1px solid currentColor; }
.filler-column:last-child { padding-left: 10px; border-left: 1px solid currentColor; }
.filler-column section { padding: 0 0 11px; margin-bottom: 11px; border-bottom: 1px solid rgb(33 28 21 / 55%); }
.filler-column section:last-child { margin-bottom: 0; border-bottom: 0; }
.filler-column h4, .dense-bottom-grid h4, .tabloid-fillers h4, .archive-columns h4 { margin: 0 0 7px; font: 800 14px/1.08 Georgia, "Times New Roman", serif; text-align: center; text-transform: uppercase; }
.filler-column p, .dense-bottom-grid p, .tabloid-fillers p, .archive-columns p { margin: 0; font: 12px/1.32 Georgia, "Times New Roman", serif; }
.filler-lines { display: grid; gap: 4px; margin-top: 8px; }
.filler-lines span { display: block; width: 100%; border-bottom: 2px solid rgb(33 28 21 / 22%); }
.filler-lines span:nth-child(2n) { width: 84%; }
.filler-lines span:nth-child(3n) { width: 67%; }
.dense-center { min-width: 0; }
.dense-image { min-height: 525px; border: 1px solid currentColor; }
.dense-image-mono img { filter: grayscale(1) contrast(1.55); mix-blend-mode: multiply; }
.dense-caption { margin: 5px 0 0; font: italic 10px/1.3 Georgia, "Times New Roman", serif; text-align: center; }
.dense-bottom-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid currentColor; }
.dense-bottom-grid section { padding: 12px; border-right: 1px solid currentColor; }
.dense-bottom-grid section:last-child { border-right: 0; }
.dense-source { display: grid; grid-template-columns: auto minmax(0, auto) 1fr; gap: 10px; align-items: center; padding: 13px 4px 2px; }
.dense-source div { display: grid; gap: 2px; font: 800 11px/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.dense-source div span { font-size: 9px; }
.dense-source a { min-width: 0; overflow: hidden; color: currentColor; font: 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }

.dense-tabloid { background: #f5efe3; }
.tabloid-ribbon { display: grid; grid-template-columns: 1fr auto 1fr; gap: 15px; align-items: center; margin-bottom: 9px; color: #bf342d; font: 900 clamp(28px, 5vw, 54px)/1 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; letter-spacing: .02em; text-align: center; text-transform: uppercase; }
.tabloid-ribbon span { border-top: 8px double currentColor; }
.tabloid-masthead { border-bottom-style: solid; }
.tabloid-headline { padding-top: 15px; border-bottom: 0; font-size: clamp(68px, 10vw, 116px); }
.tabloid-image { min-height: 470px; }
.tabloid-deck { border-top: 1px solid currentColor; font-size: clamp(20px, 3vw, 31px); }
.tabloid-standfirst { padding: 9px 20px; border-bottom: 1px solid currentColor; color: rgb(33 28 21 / 74%); font: 700 12px/1.35 Georgia, "Times New Roman", serif; text-align: center; }
.tabloid-footer { display: grid; grid-template-columns: 210px 1fr; border-bottom: 1px solid currentColor; }
.tabloid-source { align-content: center; padding: 14px 12px; border-right: 1px solid currentColor; }
.tabloid-source a { grid-column: 1 / -1; }
.tabloid-fillers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tabloid-fillers section { padding: 12px; border-right: 1px solid currentColor; }
.tabloid-fillers section:last-child { border-right: 0; }
.tabloid-signoff, .archive-signoff { padding: 8px 0 0; font: 900 12px/1.2 Georgia, "Times New Roman", serif; letter-spacing: .11em; text-align: center; text-transform: uppercase; }

.dense-archive { border-width: 3px; background: #e8d6b5; }
.archive-headline { font-size: clamp(60px, 8vw, 96px); }
.archive-deck { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(20px, 3vw, 30px); font-weight: 400; letter-spacing: .01em; text-transform: uppercase; }
.archive-image { min-height: 590px; }
.archive-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 3px double currentColor; }
.archive-columns section { padding: 12px; border-right: 1px solid currentColor; }
.archive-columns section:last-child { border-right: 0; }
.archive-source { border-bottom: 1px solid currentColor; }

.inspection-section { margin-top: 72px; padding: 30px; }
.secondary-button { padding: 10px 13px; border: 1px solid var(--ink); border-radius: 9px; background: transparent; font-size: 12px; font-weight: 750; }
.secondary-button:hover { background: var(--ink); color: white; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .7fr); gap: 18px; }
.detail-list, .warnings-panel { margin: 0; border: 1px solid var(--line); border-radius: 14px; background: white; }
.detail-list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--ink-soft); font-size: 12px; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.5; }

.warnings-panel { padding: 17px; }
.warnings-panel h3 { margin: 0 0 12px; font-size: 13px; }
.warnings-panel ul { margin: 0; padding-left: 18px; color: #845216; font-size: 12px; line-height: 1.55; }
.quiet { margin: 0; color: var(--ink-soft); font-size: 12px; }

.data-panels { display: grid; gap: 12px; margin-top: 18px; }
details { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
summary { display: flex; align-items: center; gap: 9px; padding: 15px 17px; cursor: pointer; font-size: 13px; font-weight: 800; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; color: var(--ink-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
details[open] summary::after { content: "−"; }
.count-badge { padding: 2px 6px; border-radius: 999px; background: var(--mint); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.raw-note { color: var(--ink-soft); font-size: 10px; font-weight: 500; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 11px 16px; border-bottom: 1px solid #ece8df; text-align: left; vertical-align: top; }
th { color: var(--ink-soft); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
td:first-child { width: 210px; color: var(--accent-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
td:last-child { overflow-wrap: anywhere; }
.panel-empty { padding: 18px; }
pre { max-height: 470px; margin: 0; padding: 18px; overflow: auto; border-top: 1px solid var(--line); background: #17201d; color: #d9f7e4; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.6; tab-size: 2; }

footer { display: flex; justify-content: space-between; padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }
footer a { color: inherit; }

[hidden] { display: none !important; }

@media (max-width: 800px) {
  .page-shell { width: min(100% - 24px, 1160px); }
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 60px 0 46px; }
  .endpoint-card { max-width: 360px; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .extra-layout { grid-template-columns: 1fr; }
  .gazette-image { min-height: 360px; }
  .extra-story { padding-right: 0; padding-bottom: 20px; border-right: 0; border-bottom: 1px solid currentColor; }
  .extra-header { grid-template-columns: 1fr; }
  .extra-box { display: none; }
  .portrait-grid { grid-template-columns: 1fr; }
  .portrait-edition { min-height: 0; }
  .newsstand-grid { width: 100%; }
  .dense-story-grid { grid-template-columns: 130px minmax(0, 1fr) 130px; }
  .dense-image { min-height: 460px; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .status-pill { display: none; }
  .request-panel, .inspection-section { padding: 20px; border-radius: 17px; }
  .request-row { grid-template-columns: 1fr; }
  .primary-button { min-height: 51px; }
  .examples { flex-wrap: wrap; }
  .section-heading { align-items: flex-start; }
  .detail-list > div { grid-template-columns: 1fr; gap: 5px; }
  .edition-header, .gazette-layout, .gazette-footer { padding-right: 17px; padding-left: 17px; }
  .edition-meta, .gazette-footer, .extra-meta { align-items: flex-start; flex-direction: column; }
  .edition-extra { padding: 14px; }
  .extra-columns { grid-template-columns: 1fr; }
  .extra-story h3 { font-size: clamp(48px, 17vw, 74px); }
  .portrait-edition { padding: 14px; }
  .portrait-image { min-height: 250px; }
  .dense-edition { padding: 11px; }
  .dense-masthead { grid-template-columns: 1fr; }
  .dense-masthead .dense-edition-box { display: none; }
  .dense-paper-name { font-size: clamp(35px, 11vw, 50px); white-space: normal; }
  .dense-meta { align-items: flex-start; flex-direction: column; }
  .dense-headline, .archive-headline, .tabloid-headline { font-size: clamp(48px, 15vw, 72px); }
  .dense-story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "center center" "left right"; }
  .filler-column:first-child { padding: 10px 8px 0 0; border-top: 1px solid currentColor; border-right: 1px solid currentColor; }
  .filler-column:last-child { padding: 10px 0 0 8px; border-top: 1px solid currentColor; border-left: 0; }
  .dense-image { min-height: 310px; }
  .dense-bottom-grid { grid-template-columns: 1fr; }
  .dense-bottom-grid section { border-right: 0; border-bottom: 1px solid currentColor; }
  .dense-bottom-grid section:last-child { border-bottom: 0; }
  .dense-source { grid-template-columns: auto 1fr; }
  .dense-source a { grid-column: 1 / -1; }
  .tabloid-ribbon { font-size: clamp(25px, 10vw, 42px); }
  .tabloid-footer { grid-template-columns: 1fr; }
  .tabloid-source { border-right: 0; border-bottom: 1px solid currentColor; }
  .tabloid-fillers { grid-template-columns: 1fr; }
  .tabloid-fillers section { border-right: 0; border-bottom: 1px solid currentColor; }
  .tabloid-fillers section:last-child { border-bottom: 0; }
  .archive-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-columns section:nth-child(2n) { border-right: 0; }
  .archive-columns section:nth-child(-n + 2) { border-bottom: 1px solid currentColor; }
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tbody tr { padding: 12px 14px; border-bottom: 1px solid #ece8df; }
  tbody tr:last-child { border-bottom: 0; }
  td { padding: 0; border: 0; }
  td:first-child { width: auto; margin-bottom: 5px; }
  footer { gap: 12px; flex-direction: column; }
}

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