/* The story page: opening and interactive teaser, players, share bars and the article measure.
 * Values are the token table's; the structure is the live site's story hub. */

.story { padding-top: var(--space-2); }

/* The measure is on the body, not the article, so a wide player can run the width of the page. */
.hub-body { max-width: var(--col-text); margin-inline: auto; }

/* Links in reading text carry the blue underline. */
.hub-meta a,
.measure a {
  color: var(--ink-1);
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.hub-meta a:hover,
.measure a:hover { color: var(--blue-deep); text-decoration-color: var(--blue-deep); }

/* Opening ------------------------------------------------------------------ */

.hub-header { padding-top: var(--space-5); }
.hub-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3) var(--space-5);
}
.hub-eyebrow .chip {
  font: var(--text-kicker);
  line-height: 1.5;
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  color: var(--tone-ink, var(--ink-2));
  text-decoration: none;
}
.hub-eyebrow .chip:hover,
.hub-eyebrow .chip:focus-visible { text-decoration: underline; }
.hub-topics { font: var(--text-caption); color: var(--ink-2); }
.hub-header h1 {
  margin: var(--space-5) 0 0;
  font: var(--text-display);
  letter-spacing: -0.035em;
}
.hub-header .lede {
  margin: var(--space-5) 0 0;
  font: var(--text-dek);
  color: var(--ink-2);
  text-wrap: pretty;
}
.hub-meta {
  display: grid;
  gap: var(--space-2);
  margin: 28px 0 var(--space-7);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
}
.hub-meta p { margin: 0; font: var(--text-ui-sm); color: var(--ink-2); }
.hub-meta .byline { color: var(--ink-1); font-weight: 500; }
.hub-opening--flush .hub-meta { margin-bottom: 0; }

/* The interactive teaser beside the headline. */
.interactive-teaser {
  min-width: 0;
  margin-bottom: var(--space-5);
  padding: var(--space-5);
  background: var(--paper-0);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-deep);
  overflow-wrap: anywhere;
}
.interactive-artwork {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: var(--space-4);
  background: var(--paper-2);
}
.interactive-label {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font: var(--text-caption);
  color: var(--blue-deep);
}
.interactive-label::before {
  content: "";
  width: 1em;
  height: 1em;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h7v7H3zM14 3h7v7h-7zM3 14h7v7H3z'/%3E%3Cpath d='M17.5 14v7M14 17.5h7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h7v7H3zM14 3h7v7h-7zM3 14h7v7H3z'/%3E%3Cpath d='M17.5 14v7M14 17.5h7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.interactive-teaser h2 { margin: var(--space-3) 0; font: var(--text-card); color: var(--ink-1); }
.interactive-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  margin-top: var(--space-3);
  padding: 10px 14px;
  background: var(--blue-deep);
  color: var(--field-ink);
  font: var(--text-ui-sm);
  text-decoration: none;
}
.interactive-action:hover,
.interactive-action:focus-visible { color: var(--field-ink); text-decoration: underline; }

@media (min-width: 900px) {
  .hub-body--interactive { max-width: none; }
  .hub-body--interactive > :not(.hub-opening) { max-width: var(--col-text); margin-inline: auto; }
  .hub-body--interactive > .hub-opening--interactive {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: var(--space-7);
    align-items: start;
  }
  .hub-body--interactive .interactive-teaser { margin-top: var(--space-5); }
}

/* Share bar ---------------------------------------------------------------- */

.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.share-bar--top { margin-top: 0; border-top: 0; }
.share-bar .kicker { margin: 0 var(--space-1) 0 0; }
.share-bar .share-target {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-1);
  font: 600 0.8125rem/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.share-bar .share-target:hover,
.share-bar .share-target:focus-visible { background: var(--paper-2); color: var(--blue-deep); }
/* The glyph is drawn by CSS so the site script can relabel the button without losing it. */
.share-copy::before {
  content: "";
  width: 1em;
  height: 1em;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 8h12v13H8z'/%3E%3Cpath d='M16 8V3H3v13h5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 8h12v13H8z'/%3E%3Cpath d='M16 8V3H3v13h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Video -------------------------------------------------------------------- */

/* A player is bounded by its width; the height follows the video's own shape. */
.player { max-width: min(100%, 138vh); margin-inline: auto; }
.hub-body > .player { margin-top: var(--space-7); }
/* A video after the article body is the next package on the old site, ruled off from the text. */
.measure + .player { padding-top: var(--space-7); border-top: 1px solid var(--line); }
.player-frame { overflow: hidden; background: var(--ink-1); }
.player-frame video { display: block; width: 100%; background: var(--ink-1); object-fit: contain; }
/* A vertical short keeps its shape rather than stretching across the grid. */
.player--tall { width: 100%; max-width: min(24rem, 45svh); }
.player-caption {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin: var(--space-3) 0 0;
  font: var(--text-mono);
  color: var(--ink-2);
}

.hub-hero-wide { margin-bottom: var(--space-7); }
.hub-hero-short {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}
.hub-hero-short-text { min-width: 0; max-width: var(--col-text); }
/* The live rule's higher specificity keeps the display tracking here, not the headline's -0.035em. */
.hub-hero-short .hub-header h1 {
  font: 600 clamp(1.85rem, 4.4vw, 2.75rem) / 1.08 var(--font-display);
  letter-spacing: var(--ls-display);
}

@media (max-width: 900px) {
  .hub-hero-short { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
}

/* Stacked on a tablet, a short is sized against the viewport's height so the headline shows. */
@media (min-width: 545px) and (max-width: 900px) and (min-height: 720px) {
  .player--tall { max-width: min(24rem, 32vh); }
}

/* Article ------------------------------------------------------------------ */

.measure { margin-top: var(--space-5); }
/* The live site's package section (48px) and its content well (24px) collapse to one margin. */
.share-bar--top + .measure { margin-top: var(--space-7); }
.measure p { margin: 0 0 28px; font: var(--text-body); text-wrap: pretty; }
.measure h2,
.measure h3 { margin: var(--space-8) 0 var(--space-4); letter-spacing: -0.01em; }
.measure h2 { font: var(--text-h2); }
.measure h3 { font: var(--text-h3); }

/* The blue period again, this time as the bullet. */
.article-list { margin: 0 0 28px; padding-left: 1.2rem; font: var(--text-body); }
.article-list li::marker { color: var(--blue); }
.article-list li + li { margin-top: var(--space-2); }

/* A figure breaks the measure: the picture is wider than the column it sits in. */
.article-figure { margin: var(--space-7) -60px; }
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  background: var(--paper-2);
}
.article-figure figcaption {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 10px 60px 0;
  font: var(--text-caption);
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.article-figure figcaption p { margin: 0; font: inherit; }
.image-attribution { display: flex; flex-wrap: wrap; gap: 0.25em 0.75em; }
.measure .image-attribution a { color: inherit; text-decoration-thickness: 1px; }
.article-figure .article-image-unavailable {
  margin: 0;
  padding: 2rem;
  background: var(--paper-2);
  font: var(--text-caption);
  color: var(--ink-2);
}

/* The pull quote sits between a blue rule and a hairline. */
.pull-quote {
  margin: var(--space-7) 0;
  padding: var(--space-6) 0;
  border-top: 2px solid var(--blue);
  border-bottom: 1px solid var(--line);
  font: italic 500 clamp(1.75rem, 3vw, 2.5rem) / 1.2 var(--font-display);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

@media (max-width: 864px) {
  .article-figure { margin-inline: 0; }
  .article-figure figcaption { margin-inline: 0; }
}

@media (max-width: 736px) {
  .story { padding-top: 0; }
  .hub-header h1 { margin-top: var(--space-4); }
  .hub-header h1,
  .interactive-teaser h2 { overflow-wrap: anywhere; }
}

@media (max-width: 600px) {
  .hub-opening .interactive-artwork { display: none; }
  .hub-opening .interactive-teaser { padding: var(--space-4); }
  .hub-opening .interactive-teaser h2 { font-size: 1.4rem; }
}

@media print {
  .masthead, .footer, .share-bar { display: none; }
  .article-figure { break-inside: avoid; }
}
