/* lane-publication.css
   Editorial components for the Journal: hero, kicker, lede,
   byline, meta lines, source panel, corrections, article prose extras
   (drop cap, figures), author block, article endcap, card titles,
   section nav, glossary (list, A-Z index, groups, crosslinks),
   newsletter CTA, share links, featured article, list rows,
   market-brief data, centered card flow, download cards, resources
   empty state.
   Token values only: colors, spacing, fonts and measure come from
   css/01-settings.css :root (--space-*, --brand-*, --font-*,
   --hairline, --muted, --ink, --surface, --radius, --shadow,
   --measure, --text-*, --leading-*). No token is redefined here. Literals remain only where custom properties cannot
   reach or the system defines no token: 1px hairlines, letter-spacing,
   and the 640px and 768px media queries (the plan breakpoints; @media
   cannot read var()). Wrapped in the components layer below; loaded per
   lane via extra_head after manifest.css declares the layer order. */

@layer components {

/* --- Journal hero (Times register: ruled band, serif headline) ---------- */

.pub-hero {
  background: var(--surface);
  border-top: var(--space-1) solid var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding-block: var(--space-8) var(--space-7);
}

@media (max-width: 40rem) {
  .pub-hero {
    padding-block: var(--space-6) var(--space-5);
  }
}

.pub-hero__kicker {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin: 0 0 var(--space-3);
}

.pub-hero__title {
  max-width: var(--measure);
}

.pub-hero__lede {
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  line-height: var(--leading-body);
  color: var(--muted);
  max-width: var(--measure);
  margin: var(--space-4) 0 0;
}

.pub-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* --- Meta line (tag, dates, kind) --------------------------------------- */

.pub-meta {
  font-size: var(--text-small);
  color: var(--muted);
  margin: 0 0 var(--space-2);
}

.pub-meta--card {
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Byline (author, dates under the headline) -------------------------- */

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  padding-block: var(--space-3);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-size: var(--text-small);
  color: var(--muted);
}

/* --- Source / methodology panel ----------------------------------------- */

.source-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: var(--space-1) solid var(--brand-700);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-small);
  max-width: var(--measure);
}

.source-panel__title {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-2);
}

.source-panel p {
  font-size: var(--text-small);
}

/* --- Correction history -------------------------------------------------- */

.corrections {
  border-top: 1px solid var(--hairline);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  max-width: var(--measure);
}

.corrections__title {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-3);
}

.corrections__item time {
  font-weight: 600;
}

.corrections__item p {
  font-size: var(--text-small);
  color: var(--muted);
}

/* --- Article prose extras (drop cap, figures) ---------------------------- */

.prose > p:first-of-type::first-letter {
  float: left;
  padding: var(--space-1) var(--space-2) 0 0;
  font-family: var(--font-serif);
  font-size: var(--text-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--ink);
}

.prose figure {
  margin: var(--space-6) 0;
}

.prose figcaption {
  max-width: var(--measure);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--hairline);
  font-size: var(--text-small);
  color: var(--muted);
}

/* --- Article endcap (related stories, newsletter, one primary CTA) ------- */

.article-endcap {
  border-top: var(--space-1) solid var(--ink);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
}

.article-endcap__stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}

@media (max-width: 768px) {
  .article-endcap__stories {
    grid-template-columns: 1fr;
  }
}

.article-endcap__newsletter {
  max-width: var(--measure);
  margin: var(--space-6) auto 0;
  text-align: center;
  color: var(--muted);
}

/* --- Card title link ------------------------------------------------------ */

.pub-card__title {
  margin: 0 0 var(--space-2);
}

.pub-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.pub-card__title a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

.pub-card__summary {
  font-size: var(--text-small);
  color: var(--muted);
  margin: 0;
}

/* --- Glossary --------------------------------------------------------------- */

.glossary-list {
  margin: 0;
}

.glossary-list > div {
  border-top: 1px solid var(--hairline);
  padding-block: var(--space-4);
}

.glossary-list dt {
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  font-weight: 600;
}

.glossary-list dt a {
  color: var(--ink);
  text-decoration: none;
}

.glossary-list dt a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

.glossary-list dd {
  margin: var(--space-2) 0 0;
  color: var(--muted);
  max-width: var(--measure);
}

/* --- Newsletter callout band ------------------------------------------------- */

.pub-cta {
  border-top: var(--space-1) solid var(--ink);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  text-align: center;
}

.pub-cta__body {
  color: var(--muted);
  max-width: var(--measure);
  margin-inline: auto;
}

/* --- Featured article (publication index lead story) --------------------- */

.pub-featured__title {
  max-width: var(--measure);
  margin: 0 0 var(--space-3);
}

.pub-featured__title a {
  color: var(--ink);
  text-decoration: none;
}

.pub-featured__title a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

.pub-featured__summary {
  font-size: var(--text-h3);
  line-height: var(--leading-body);
  color: var(--muted);
  max-width: var(--measure);
  margin: 0;
}

/* --- Section front: compact signpost, local lead and dense article list -- */

.pub-section {
  padding-block: var(--space-6) var(--space-8);
}

.pub-section__header {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding-block: var(--space-3) var(--space-4);
}

.pub-section__signpost {
  margin: 0 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pub-section__signpost a {
  color: var(--brand-700);
  text-decoration: none;
}

.pub-section__signpost a:hover {
  text-decoration: underline;
}

.pub-section__title {
  margin: 0;
  font-size: var(--text-h1);
}

.pub-section__description {
  max-width: var(--measure);
  margin: var(--space-2) 0 0;
  color: var(--muted);
}

.pub-section__grid {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-5);
}

.pub-section__lead,
.pub-section__item {
  min-width: 0;
}

.pub-section__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin: 0 0 var(--space-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pub-section__meta > * + *::before {
  content: "·";
  margin-right: var(--space-3);
  color: var(--hairline);
}

.pub-section__lead-title,
.pub-section__headline {
  margin: 0;
}

.pub-section__lead-title {
  max-width: var(--measure);
  font-size: var(--text-h2);
  line-height: var(--leading-tight);
}

.pub-section__headline {
  font-size: var(--text-h4);
  line-height: var(--leading-tight);
}

.pub-section__lead-title a,
.pub-section__headline a {
  color: var(--ink);
  text-decoration: none;
}

.pub-section__lead-title a:hover,
.pub-section__headline a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

.pub-section__lead-standfirst,
.pub-section__standfirst {
  max-width: var(--measure);
  margin: var(--space-3) 0 0;
  color: var(--muted);
}

.pub-section__lead-standfirst {
  font-family: var(--font-serif);
  font-size: var(--text-h4);
  line-height: var(--leading-body);
}

.pub-section__standfirst {
  font-size: var(--text-small);
}

.pub-section__list,
.pub-list {
  max-width: var(--measure);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-section__item {
  border-top: 1px solid var(--hairline);
  padding-block: var(--space-4);
}

.pub-section__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.pub-list__item + .pub-list__item {
  border-top: 1px solid var(--hairline);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
}

.pub-list__content {
  min-width: 0;
}

.pub-list__time {
  font-family: var(--font-mono);
}

@media (min-width: 64rem) {
  .pub-section__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-7);
  }

  .pub-section__lead {
    grid-column: span 7;
  }

  .pub-section__list {
    grid-column: span 5;
    max-width: none;
  }
}

@media (max-width: 40rem) {
  .pub-section {
    padding-block: var(--space-5) var(--space-7);
  }

  .pub-section__header {
    padding-block: var(--space-3);
  }

  .pub-section__grid {
    gap: var(--space-5);
    margin-top: var(--space-4);
  }

  .pub-section__list {
    max-width: none;
  }

  .pub-section__item:first-child {
    padding-top: var(--space-4);
    border-top: 1px solid var(--hairline);
  }
}

/* --- Glossary A-Z index --------------------------------------------------- */

.glossary-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  margin: var(--space-5) 0 var(--space-6);
  padding: var(--space-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}

.glossary-index__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--space-6);
  height: var(--space-6);
  padding-inline: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--brand-600);
  font-family: var(--font-serif);
  font-weight: 600;
  text-decoration: none;
}

.glossary-index__link:hover {
  background: var(--brand-50);
  border-color: var(--hairline);
  color: var(--brand-700);
  text-decoration: none;
}

.glossary-group {
  margin-bottom: var(--space-6);
  scroll-margin-top: var(--space-6);
}

.glossary-group__letter {
  margin: 0 0 var(--space-1);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Glossary term cross-links ------------------------------------------- */

.glossary-crosslinks {
  max-width: var(--measure);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--hairline);
}

.glossary-crosslinks__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.glossary-crosslinks__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.glossary-crosslinks__link {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-small);
  text-decoration: none;
}

.glossary-crosslinks__link:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: var(--surface);
  text-decoration: none;
}

/* --- Market brief: expiry badge + key data ------------------------------- */

.pub-hero__badge {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
}

.brief-data {
  max-width: var(--measure);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brief-data__title {
  margin: 0;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--hairline);
  background: var(--brand-50);
  font-size: var(--text-h4);
}

.brief-data__list {
  margin: 0;
  padding: var(--space-2) var(--space-5);
}

.brief-data__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--hairline);
  font-size: var(--text-small);
}

.brief-data__row:last-child {
  border-bottom: 0;
}

.brief-data dt {
  font-weight: 600;
  color: var(--muted);
}

.brief-data dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .brief-data__row {
    gap: var(--space-2);
    padding-block: var(--space-3);
  }
}

/* Two-column label/value transition at the 768 plan breakpoint; the
   label gutter is token-derived (2.5 x --space-8) pending a dedicated
   data-column token in 01-settings.css. */
@media (min-width: 768px) {
  .brief-data__row {
    grid-template-columns: calc(var(--space-8) * 2.5) 1fr;
    gap: var(--space-4);
    padding-block: var(--space-2);
  }
}

/* --- Newsletter centered card flow ---------------------------------------- */

/* Token-derived 30rem (7.5 x --space-8) pending a dedicated flow-width
   token in 01-settings.css. */
.pub-flow {
  max-width: calc(var(--space-8) * 7.5);
  margin-inline: auto;
}

.pub-flow .card {
  margin-top: var(--space-4);
}

/* --- Resource download cards ---------------------------------------------- */

.pub-download-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.pub-download-card__title {
  margin: 0;
}

.pub-download-card__meta {
  margin: var(--space-1) 0 0;
  color: var(--muted);
  font-size: var(--text-small);
}

/* --- Resources empty state (spans the card grid) -------------------------- */

.resources__empty {
  grid-column: 1 / -1;
}

/* --- Journal landing composition ----------------------------------------- */

/* The only horizontal scrolling surfaces are the labelled section nav and
   market board. Contain their wide children at the Journal page boundary. */
body:has(.pub-hero--landing) {
  overflow-x: clip;
}

body:has(.pub-hero--landing) main > .o-wrap,
.pub-hero--landing .o-wrap { width: min(calc(100% - 48px), 1152px); }

body:has(.pub-hero--landing) .site-header .o-wrap {
  min-height: 72px;
  padding-block: 0;
}

/* Landing hero modifier: centered editorial masthead with a ruled
   dateline. Reduced token padding, no action row. */

.pub-hero--landing {
  min-height: 150px;
  padding-block: 20px 16px;
  text-align: center;
}

.pub-hero--landing .pub-hero__kicker {
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pub-hero--landing .pub-hero__title {
  max-width: 1280px;
  margin-inline: auto;
  font-size: 64px;
  line-height: 64px;
  font-weight: 600;
  text-wrap: balance;
}

.pub-hero--landing .pub-hero__lede {
  max-width: 760px;
  margin-inline: auto;
  font-size: 18px;
  line-height: 28px;
}

.pub-hero__dateline {
  max-width: none;
  margin: 16px auto 0;
  padding-block: 8px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

@media (max-width: 40rem) {
  .pub-hero--landing {
    padding-block: 20px 16px;
  }

  .pub-hero--landing .pub-hero__title {
    font-size: 32px;
    line-height: 34px;
  }
}

@media (min-width: 40.01rem) and (max-width: 63.99rem) {
  .pub-hero--landing .pub-hero__title {
    font-size: 38px;
    line-height: 40px;
  }
}

/* Journal section navigation: one touch-scroll row, one-line links,
   visible focus, no page-level overflow. The existing .pub-section-nav
   hairline and link type rules continue to apply. */

.pub-section-nav__list {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  scrollbar-width: none;
  max-width: 100%;
  overscroll-behavior-x: contain;
}

.pub-section-nav__list::-webkit-scrollbar { display: none; }

.pub-section-nav {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
}

.pub-section-nav__item {
  margin: 0;
  white-space: nowrap;
}

.pub-section-nav__link {
  display: inline-block;
  min-height: 44px;
  padding-block: 12px 9px;
  border-bottom: 3px solid transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  text-transform: uppercase;
}

.pub-section-nav__link:hover {
  color: var(--brand-700);
  border-bottom-color: var(--brand-300);
  text-decoration: none;
}

.pub-section-nav__link--active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  text-decoration: none;
}

/* Data-dense market board: five equal quotes on desktop and a labelled,
   touch-scroll strip on mobile. */
.markets-strip {
  margin-top: 24px;
  padding-block: 16px 24px;
  border-top: 4px solid var(--ink);
}

.markets-strip__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.markets-strip__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
}

.markets-strip__all {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.markets-strip__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.markets-strip__item {
  min-width: 0;
  padding-inline: 16px;
  border-left: 1px solid var(--hairline);
}

.markets-strip__item:first-child { padding-left: 0; border-left: 0; }
.markets-strip__item:last-child { padding-right: 0; }

.markets-strip__link {
  display: flex;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  flex-direction: column;
}

.markets-strip__name {
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.markets-strip__quote {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 8px;
  white-space: nowrap;
}

.markets-strip__value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 28px;
}

.markets-strip__unit {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
}

.markets-strip__change {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
}

.markets-strip__date {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

.index-change--flat,
.index-change--new,
.index-change--partial { color: var(--muted); }

@media (max-width: 47.99rem) {
  .markets-strip__viewport {
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .markets-strip__viewport::-webkit-scrollbar { display: none; }
  .markets-strip__list {
    grid-template-columns: repeat(5, calc((100vw - 32px) / 1.25));
    width: max-content;
  }
}

.pub-section-nav__link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Lead story package: one dominant lead and a ruled secondary rail.
   The package opens with a strong ink rule; the rail is separated by a
   column hairline at desktop and hairlines between rows below. */

.pub-front-package {
  margin-top: 32px;
  border-top: 2px solid var(--ink);
}

.pub-front-package__lead {
  padding-top: 12px;
}

.pub-front-package__lead-media {
  --media-ratio: 16 / 9;
}

.pub-front-package__media { display: block; }

.pub-front-package__kicker {
  margin-bottom: 7px;
}

.pub-front-package .pub-featured__title {
  max-width: 22ch;
  margin-bottom: 12px;
  font-size: 46px;
  font-weight: 600;
  line-height: 48px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.pub-front-package .pub-featured__summary {
  max-width: 680px;
  margin: 12px 0 0;
  font-size: 19px;
  line-height: 27px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.pub-front-package__figure {
  max-width: var(--measure);
  margin: 16px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.pub-front-package__figure strong {
  color: var(--ink);
  font-weight: 600;
}

.pub-front-package__source,
.pub-front-package__desk {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.pub-front-package__secondary {
  margin-top: var(--space-6);
}

.pub-front-package__secondary-item {
  padding-block: 16px;
}

.pub-front-package__secondary-media { display: block; margin-bottom: 12px; aspect-ratio: 3 / 2; overflow: hidden; }
.pub-front-package__secondary-media img { width: 100%; height: 100%; object-fit: cover; }

.pub-front-package__secondary-item .pub-card__title {
  font-size: 24px;
  line-height: 27px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.pub-front-package__secondary-item .pub-card__summary {
  margin-top: 8px;
  font-size: 14px;
  line-height: 21px;
}

.pub-front-package__secondary-item .pub-card__summary,
.pub-section-front__supporting .pub-card__summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.pub-front-package__secondary-item + .pub-front-package__secondary-item {
  border-top: 1px solid var(--hairline);
}

.pub-front-package__secondary-item:first-child {
  padding-top: 0;
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .pub-front-package__secondary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  .pub-front-package__secondary-item {
    padding-block: 16px 0;
  }

  .pub-front-package__secondary-item + .pub-front-package__secondary-item {
    border-top: 0;
  }

  .pub-front-package__secondary-item:first-child {
    padding-top: var(--space-4);
  }
}

@media (min-width: 75rem) {
  .pub-front-package {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 74px));
    gap: 24px;
  }

  .pub-front-package__lead {
    grid-column: 1 / span 7;
  }

  .pub-front-package__secondary {
    grid-column: span 5;
    margin-top: 16px;
    padding-top: 0;
    border-left: 1px solid var(--hairline);
    padding-left: 23px;
  }

  .pub-front-package__secondary-item:first-child {
    padding-top: 0;
  }
}

/* Latest briefs: a ruled stream with a compact date gutter, desk and
   date meta, headline weight, standfirst, and hairline row separation. */

#latest {
  margin-top: 48px;
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}

.pub-latest__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: var(--space-3);
}

.pub-latest__title {
  margin: 0;
  font-size: 22px;
  line-height: 26px;
}

.pub-latest__grid { margin-top: 20px; }

.pub-list--latest {
  max-width: none;
}

.pub-list--latest .pub-list__item {
  display: grid;
  gap: var(--space-2) var(--space-4);
  padding-block: 16px;
  min-height: 144px;
}

.pub-list__thumbnail { display: block; width: 192px; height: 112px; overflow: hidden; }
.pub-list__thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.pub-list--latest .pub-list__item + .pub-list__item {
  border-top: 1px solid var(--hairline);
  margin-top: 0;
  padding-top: var(--space-4);
}

.pub-list__time {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.pub-list__kicker {
  margin: 0 0 var(--space-1);
}

.pub-list--latest .pub-card__title {
  font-size: 21px;
  line-height: 25px;
}

.pub-list--latest .pub-card__summary {
  margin-top: 8px;
  font-size: 15px;
  line-height: 21px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pub-list__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 19px;
  color: var(--muted);
}

.pub-list__source {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.pub-latest__feed {
  margin: var(--space-3) 0 0;
  font-size: var(--text-small);
}

.pub-most-read__title {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
  font-size: 22px;
  line-height: 26px;
}

.pub-most-read__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-most-read__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}

.pub-most-read__number {
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 32px;
}

.pub-most-read__headline {
  margin: 0;
  font-size: 17px;
  line-height: 21px;
}

.pub-most-read__headline a {
  color: var(--ink);
  text-decoration: none;
}
.pub-most-read__headline a:hover { text-decoration: underline; }

@media (min-width: 48rem) {
  .pub-list--latest .pub-list__item {
    grid-template-columns: minmax(0, 1fr) 192px;
    column-gap: 20px;
  }

  .pub-list__time {
    grid-column: 1 / -1;
  }
}

@media (min-width: 75rem) {
  .pub-latest__grid { display: grid; grid-template-columns: 760px 368px; gap: 24px; }
  .pub-most-read { border-left: 1px solid var(--hairline); padding-left: 24px; }
}

/* Section front: a compact signpost restarts attention. Ink rule above,
   title and View all on one baseline, hairline below the header, one
   dominant lead and a dense ruled supporting list. Absent sections never
   render, so no empty state exists here. */

.pub-section-front {
  margin-top: 48px;
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}

.pub-section-front__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: var(--space-3);
}

.pub-section-front__title {
  margin: 0;
  font-size: 22px;
  line-height: 26px;
}

.pub-section-front__link {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.pub-section-front__grid {
  margin-top: 20px;
}

.pub-section-front__lead .pub-featured__title {
  font-size: 34px;
  line-height: 38px;
}

.pub-section-front__lead .pub-featured__summary {
  font-size: var(--text-h4);
  line-height: var(--leading-body);
}

.pub-section-front__lead > .o-media__figure {
  --media-ratio: 16 / 9;
}

.pub-analysis-grid {
  display: grid;
  gap: 24px;
  margin-top: 20px;
}

.pub-analysis-card .o-media__figure {
  --media-ratio: 4 / 5;
  margin-bottom: 12px;
}

@media (min-width: 48rem) {
  .pub-analysis-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pub-section-front__supporting {
  margin-top: var(--space-5);
  max-width: none;
}

.pub-section-front__supporting .pub-list__item {
  padding-block: var(--space-3);
}

.pub-section-front__supporting .pub-list__item + .pub-list__item {
  border-top: 1px solid var(--hairline);
  margin-top: 0;
  padding-top: var(--space-3);
}

.pub-section-front__supporting .pub-list__item:first-child {
  padding-top: 0;
}

@media (min-width: 75rem) {
  .pub-section-front__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 74px));
    gap: 24px;
  }

  .pub-section-front__lead {
    grid-column: 1 / span 8;
  }

  .pub-section-front__supporting {
    grid-column: span 4;
    margin-top: 0;
    padding-top: var(--space-3);
    border-left: 1px solid var(--hairline);
    padding-left: 23px;
  }

  .pub-section-front__supporting .pub-list__item:first-child {
    padding-top: 0;
  }
}

/* Inline newsletter capture: a ruled editorial band composed like a
   section front, not a bolted-on callout. The partial classes stay
   unchanged; the inline modifier stacks the email control and button
   full width at 360px with consent and privacy text directly below. */

.pub-cta--inline {
  margin-top: 64px;
  text-align: left;
}

.pub-cta__kicker {
  margin: 0 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.pub-cta__title {
  margin: 0 0 var(--space-3);
}

.pub-cta--inline .pub-cta__body {
  margin: 0 0 var(--space-4);
}

.pub-cta--inline .newsletter-form {
  margin-top: var(--space-4);
}

.pub-cta--inline .newsletter-form__label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--text-small);
  font-weight: 600;
}

.pub-cta--inline .newsletter-form__field {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.pub-cta--inline .newsletter-form__input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  font: inherit;
}

.pub-cta--inline .newsletter-form__input:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.pub-cta--inline .newsletter-form__note,
.pub-cta--inline .newsletter-form__privacy {
  margin: var(--space-2) 0 0;
  font-size: var(--text-caption);
  color: var(--muted);
}

@media (max-width: 40rem) {
  .pub-cta--inline .newsletter-form__field {
    flex-direction: column;
    align-items: stretch;
  }

  .pub-cta--inline .newsletter-form__input,
  .pub-cta--inline .newsletter-form__submit {
    width: 100%;
  }

  .pub-front-package {
    margin-top: 32px;
  }

  .pub-front-package .pub-featured__title {
    font-size: 34px;
    line-height: 37px;
  }

  #latest,
  .pub-section-front,
  .pub-provenance {
    margin-top: 36px;
  }

  .pub-section-front__supporting {
    margin-top: var(--space-4);
  }

  .pub-list--latest .pub-list__item,
  .pub-section-front__supporting .pub-list__item {
    padding-block: var(--space-3);
  }
}

@media (max-width: 47.99rem) {
  body:has(.pub-hero--landing) main > .o-wrap,
  .pub-hero--landing .o-wrap { width: calc(100% - 32px); }
  .pub-latest__grid { display: flex; flex-direction: column; gap: 36px; }
  .pub-most-read { order: 2; }
  .pub-list__thumbnail { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .pub-front-package .pub-featured__title {
    font-size: 36px;
    line-height: 39px;
  }
}

.newsletter-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Journal provenance: one text column with a wrapped link list. */

.pub-provenance {
  margin-top: 64px;
  border-top: var(--space-1) solid var(--ink);
  padding-top: var(--space-5);
}

.pub-provenance__title {
  margin: 0;
}

.pub-provenance__body {
  max-width: var(--measure);
  margin: var(--space-3) 0 0;
  color: var(--muted);
}

.pub-provenance__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-small);
  font-weight: 600;
}

.pub-provenance__links a {
  color: var(--ink);
}

/* House ad slots: self-serve placeholders linking to the lane advertise
   page. Quiet ruled cards in the editorial register, tokens only. The
   landing slot sits between sections as a direct child of the wrap; the
   article slot lives inside the rail and is spaced by the rail. */

.o-wrap > .house-ad {
  margin-block: var(--space-7);
}

.house-ad__label {
  margin: 0 0 var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--muted);
}

.house-ad__card {
  display: flex;
  align-items: center;
  width: min(970px, 100%);
  min-height: 90px;
  margin-inline: auto;
  padding: 20px 32px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.house-ad__card:hover,
.house-ad__card:focus-visible {
  background: var(--brand-50);
}

.house-ad__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  color: var(--ink);
}

.house-ad__cta {
  margin-left: auto;
  display: inline-block;
  margin-top: 0;
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: var(--space-1);
}

@media (max-width: 40rem) {
  .house-ad__card {
    min-height: 100px;
    padding: 18px 20px;
    flex-direction: column;
  }

  .house-ad__cta { margin: var(--space-3) 0 0; }
}
