/* Both pages inherit the public site's type, navigation, spacing and palette. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.archive-hero {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 37%);
  align-items: center;
  gap: 24px;
  padding-left: clamp(24px, 5vw, 68px);
  margin-top: 10px;
  background: var(--blue);
  border-radius: 22px;
  overflow: hidden;
}

.archive-cover {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: contain;
}

.breadcrumbs, .return-link {
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  gap: 9px;
  margin-bottom: 14px;
}

.breadcrumbs a, .return-link a, .archive-footer a {
  text-decoration: none;
}

.breadcrumbs a:hover, .return-link a:hover, .archive-footer a:hover {
  text-decoration: underline;
}

.archive-hero h1 { font-size: clamp(42px, 6vw, 72px); }
.archive-lead { margin-top: 8px; }
.browse-section { padding-block: 32px 48px; }

.browse-heading, .archive-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.browse-heading h2 { font-size: clamp(21px, 3vw, 27px); }

.search-box {
  display: flex;
  gap: 9px;
  align-items: center;
  padding-inline: 14px;
  width: min(240px, 45%);
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fffdf9;
}

.search-box svg {
  flex: none;
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.search-box:focus-within { outline: 2px solid currentColor; }

.filter-row {
  padding-block: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.filter-chip, .empty-state button {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.filter-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fffdf9;
  text-decoration: none;
  transition: transform .2s, border-color .2s;
}

.article-card::after {
  content: '→';
  position: absolute;
  right: 15px;
  bottom: 14px;
}

.story-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card-copy { padding: 15px 36px 20px 17px; }

.article-category {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.card-copy h3 {
  margin-top: 6px;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.22;
}

.empty-state { padding-block: 40px; text-align: center; }
.empty-state button { margin-top: 12px; }

.archive-footer {
  min-height: 70px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}

.archive-footer .footer-logo { display: grid; place-items: center; width: 90px; }
.archive-footer .footer-logo img { width: 90px; height: auto; filter: none; }

.return-link { margin-block: 12px 20px; }
.return-link a { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; }

.reading-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 40%);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.reading-title h1 {
  margin-top: 12px;
  max-width: 15ch;
  font-size: clamp(42px, 4.8vw, 68px);
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.reading-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 18px;
}

.reading-text {
  max-width: 66ch;
  margin: 30px auto 54px;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.75;
}

.opening { font-size: 1.13em; line-height: 1.6; }
.reading-text > p:first-child { font-size: 1.13em; line-height: 1.6; }
.reading-text > h2 { margin-top: 1.5em; }
.reading-text > figure { margin: 1.5em 0; }
.reading-text > figure img { width: 100%; height: auto; border-radius: 12px; }
.reading-text figcaption { margin-top: .5em; color: var(--muted); font-size: .85em; }
.reading-text :is(ul, ol) { padding-inline-start: 1.5em; }
.reading-text li + li { margin-top: .45em; }
.reading-text section { margin-top: 28px; }

.reading-text h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.2;
}

.read-next {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.read-next p { color: var(--muted); font-size: 13px; }
.read-next a { display: inline-block; padding-block: 6px; font-weight: 600; }

@media (hover: hover) and (pointer: fine) {
  .article-card:hover { transform: translateY(-3px); border-color: var(--ink); }
  .filter-chip:hover { border-color: var(--ink); }
}

@media (max-width: 950px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .archive-hero { grid-template-columns: 1fr 38%; gap: 8px; padding-left: 19px; border-radius: 15px; }
  .archive-hero-copy { padding-block: 16px; }
  .breadcrumbs { margin-bottom: 5px; font-size: 11px; }
  .archive-hero h1 { font-size: 39px; }
  .archive-lead { margin-top: 4px; font-size: 13px; }
  .browse-section { padding-block: 24px 34px; }
  .filter-row { margin-bottom: 12px; }
  .filter-chip { min-height: 40px; padding: 7px 11px; font-size: 12px; }
  .article-grid { grid-template-columns: 1fr; gap: 10px; }
  .article-card { display: grid; grid-template-columns: 34% minmax(0, 1fr); align-items: center; border-radius: 12px; }
  .story-cover { height: 100%; min-height: 76px; }
  .card-copy { padding: 10px 24px 10px 12px; }
  .card-copy h3 { margin-top: 3px; font-size: 16px; }
  .article-category { font-size: 10px; }
  .article-card::after { bottom: 50%; right: 8px; transform: translateY(50%); font-size: 13px; }
  .return-link { margin-block: 0 10px; }
  .reading-intro { grid-template-columns: 1fr; gap: 17px; padding-bottom: 0; border: 0; }
  .reading-title h1 { margin-top: 6px; font-size: clamp(34px, 8vw, 45px); }
  .reading-cover { max-width: 450px; border-radius: 12px; }
  .reading-text { margin: 20px 0 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .article-card { transition: none; }
  .article-card:hover { transform: none; }
}

.story-link { display: block; flex: 1; text-decoration: none; color: inherit; }
.article-card::after { pointer-events: none; }
.translated { margin: 0 16px 12px; align-self: start; font-size: 12px; }
@media (max-width: 700px) {
  .article-grid .article-card { display: flex; align-items: stretch; }
  .article-card .story-link { display: grid; grid-template-columns: 34% minmax(0, 1fr); align-items: center; }
  .article-card .translated { margin-left: calc(34% + 12px); }
}

/* Keep the editorial comparison table within the existing reading column. */
.reading-text .table-scroll { max-width: 100%; overflow-x: auto; }
.reading-text table { width: 100%; border-collapse: collapse; }
.reading-text th, .reading-text td { padding: 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.reading-text blockquote { margin: 1em 0; padding-left: 18px; border-left: 2px solid var(--line); }

.editorial-page .reading-text h3{margin:28px 0 12px}
