/*
 * No :root here. This file redeclared the same five tokens shared.css defines, plus
 * --border which shared.css did not have — so the front page had a border token and every
 * other page had the literal. Both now live in shared.css, which every page loading this
 * one already loads first.
 */

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
}

.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

/* Navigation lives in app/shared.css — every page renders the same header. */

/* Hero */
.hero-section {
  background: linear-gradient(135deg, var(--brand-ground) 0%, var(--paper) 55%, #fff 100%);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  overflow-x: clip;
}

.hero-section .row > [class*="col-"] {
  min-width: 0;
  max-width: 100%;
}

.hero-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
}

.hero-subhead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36rem;
}

.hero-image-wrap {
  width: 100%;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 12px 40px rgba(31, 41, 51, 0.08);
  overflow: hidden;
  line-height: 0;
}

.hero-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #e9f6ee;
  color: #17603c;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-note::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #248456;
}

.hero-actions {
  align-items: center;
}

.hero-actions .btn-lg {
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
}

.hero-actions .hero-alt-btn {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: #fff;
}

.hero-actions .hero-alt-btn:hover,
.hero-actions .hero-alt-btn:focus-visible {
  border-color: var(--brand-dark);
  background: var(--brand-ground);
  color: var(--brand-dark);
}

/* Featured templates — cards use app/shared.css (.template-card) */
.featured-templates-loading,
.featured-templates-empty {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 1rem;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 14px;
}

/* Feature cards */
.feature-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.card {
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(31, 41, 51, 0.05);
}

/* Secondary features, kept out of the four-card grid. */
.feature-also {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Shared step cards also appear on the Dropbox page. */
.step-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.step-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 1.25rem;
  height: 100%;
}

/* The three-step product story directly below the hero. */
.home-journey {
  --journey-ink: #172b4a;
  --journey-blue: #175cd3;
  color: var(--journey-ink);
}

.home-journey-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.home-journey-heading h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}

.home-journey-heading > p {
  max-width: 23rem;
  margin: 0 0 0.2rem;
  color: var(--muted);
  line-height: 1.5;
}

.home-journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.home-journey .step-card {
  min-width: 0;
  position: relative;
  overflow: visible;
  padding: 0;
  border: 1px solid #d9e3f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(23, 43, 74, 0.05);
}

.home-journey .step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 84px;
  right: -1.6rem;
  width: 1.25rem;
  height: 1.25rem;
  border-top: 2px solid #8aa9d4;
  border-right: 2px solid #8aa9d4;
  transform: rotate(45deg);
  background: transparent;
}

.home-journey .step-graphic {
  height: 145px;
  padding: 0.45rem 0.7rem;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(145deg, #edf4ff, #f9fbff);
  border-bottom: 1px solid #e1eaf5;
}

.home-journey .step-template .step-graphic {
  background: linear-gradient(145deg, #f2efff, #faf9ff);
}

.home-journey .step-result .step-graphic {
  background: linear-gradient(145deg, #fff4e8, #fffbf6);
}

.home-journey .step-article .step-graphic,
.home-journey .step-template .step-graphic {
  position: relative;
  overflow: hidden;
}

.home-journey .article-preview-label {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  z-index: 1;
  padding: 0.2rem 0.45rem;
  border: 1px solid #cad7e9;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #39526f;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.home-journey .article-preview-window {
  width: 90%;
  height: 126px;
  margin: 0.5rem auto 0;
  overflow: hidden;
  border: 1px solid #bed0e6;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: 0 9px 18px rgba(23, 43, 74, 0.13);
  transform: rotate(-2deg);
}

.home-journey .article-preview-browser {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  height: 17px;
  padding-left: 0.6rem;
  border-bottom: 1px solid #e4e9f2;
  background: #f7f9fc;
}

.home-journey .article-preview-browser i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9db2cf;
}

.home-journey .article-preview-window img {
  display: block;
  width: 100%;
  height: calc(100% - 17px);
  object-fit: cover;
  object-position: center top;
}

.home-journey .template-preview-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  align-items: end;
  width: 100%;
  height: 100%;
  padding: 0.35rem 0.15rem 0.45rem;
}

.home-journey .template-preview-tile {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d1d7ec;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(27, 29, 73, 0.13);
}

.home-journey .template-preview-tile:nth-child(2) {
  transform: translateY(-10px);
  border-color: #7364c8;
  box-shadow: 0 8px 16px rgba(55, 37, 140, 0.19);
}

.home-journey .template-preview-tile img {
  display: block;
  width: 100%;
  height: 71px;
  object-fit: cover;
}

.home-journey .template-preview-tile span {
  display: flex;
  align-items: center;
  min-height: 29px;
  padding: 0.18rem 0.3rem;
  color: #263653;
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1.15;
}

.home-journey .step-graphic svg {
  display: block;
  width: 100%;
  height: 100%;
}

.home-journey .step-graphic svg > circle:not(.graphic-accent),
.home-journey .graphic-bar,
.home-journey .graphic-tag {
  fill: #c8d9ee;
}

.home-journey .graphic-sheet {
  fill: #fff;
  stroke: #b9cce5;
  stroke-width: 1.5;
  filter: drop-shadow(0 5px 7px rgba(23, 43, 74, 0.08));
}

.home-journey .graphic-raised {
  stroke: #7364c8;
  stroke-width: 2;
}
.home-journey .graphic-image {
  fill: #e1edfb;
}
.home-journey .graphic-lines {
  stroke: #8ba9cf;
  stroke-width: 3;
  stroke-linecap: round;
}
.home-journey .graphic-accent {
  fill: var(--journey-blue);
}
.home-journey .step-template .graphic-accent {
  fill: #6854c6;
}
.home-journey .step-result .graphic-accent {
  fill: #d87925;
}
.home-journey .graphic-white-line {
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-journey .graphic-check {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-journey .step-content {
  padding: 1.2rem 1.2rem 1.35rem;
}
.home-journey .step-num {
  display: inline-block;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  margin-bottom: 0.65rem;
  color: var(--journey-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.home-journey .step-template .step-num {
  color: #6753bd;
}
.home-journey .step-result .step-num {
  color: #b66320;
}
.home-journey .step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.55rem;
}
.home-journey .step-content p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 991.98px) {
  .home-journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-journey .step-card::after {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .home-journey-heading {
    display: block;
  }
  .home-journey-heading > p {
    margin-top: 0.6rem;
  }
  .home-journey-grid {
    grid-template-columns: 1fr;
  }
  .home-journey .step-graphic {
    height: 130px;
  }
  .home-journey .article-preview-window {
    height: 116px;
  }
}

/* Footer styles live in app/shared.css — every page renders the same footer. */

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--brand);
  color: #fff;
  z-index: 2000;
  border-radius: 4px;
}

/*
 * The extension's launch status in the hero.
 *
 * A link, not a button: until the Chrome Web Store listing exists this is
 * information rather than an action, and a third large button next to the two
 * real ones would compete with them for a click that does nothing yet.
 * render_chrome_cta() turns it into a proper button again on its own the day a
 * store URL is configured — this only styles the coming-soon state.
 */
.hero-status-link {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.hero-status-link:hover,
.hero-status-link:focus-visible {
  color: var(--brand-dark);
}

/* Generic summary vs personal impact brief. */
.compare-card {
  border: 1px solid var(--border);
}

.compare-card-generic {
  background: #fcfcfd;
}

.compare-card-personal {
  border-color: #b2ddff;
  background: #f5faff;
}

.compare-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.compare-list li + li {
  margin-top: 0.35rem;
}

/*
 * The vocabulary, as <details>. Collapsed so the page does not open with three
 * definitions. The native disclosure remains keyboard and screen-reader
 * accessible; home.js synchronizes cards that share a visible row.
 */
.term-card {
  height: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #fff;
}

.term-card > summary {
  cursor: pointer;
  font-size: 0.95rem;
}

.term-card > summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.term-card[open] > summary {
  margin-bottom: 0.25rem;
}

/*
 * The demo video.
 *
 * aspect-ratio on the wrapper rather than a fixed height: the poster and the video
 * both fill it, so the space is reserved before either has loaded and the page does
 * not jump when they arrive. object-fit: contain because a screen recording is not
 * always exactly 16:9 — letterboxing is better than cropping the UI out of frame.
 */
.demo-video-wrap {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

/* In the hero the film takes the screenshot's place, so it takes its frame too. */
.hero-video .demo-video-wrap {
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(31, 41, 51, 0.12);
}

.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Dropboxes callout on the home page. Reuses the brand tokens and the same numbered
   -step treatment as "How it works", so it reads as part of the same page. */
.dropbox-cta {
  border: none;
  background: linear-gradient(135deg, var(--brand-ground) 0%, var(--paper) 60%, #fff 100%);
}
.dropbox-cta-steps {
  list-style: none;
  counter-reset: dropbox-step;
  padding: 0;
  margin: 0;
}
.dropbox-cta-steps li {
  counter-increment: dropbox-step;
  position: relative;
  padding: 0.5rem 0 0.5rem 2.5rem;
}
.dropbox-cta-steps li::before {
  content: counter(dropbox-step);
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}
/*
 * "Add SoWhatify to Claude in one link" band, above the fold of the main content.
 *
 * Server-rendered and static: the MCP URL is a constant and the OAuth flow needs
 * no token, so the whole band is markup. The copy buttons reuse the shared
 * .copy-field-wrap / .copy-field-btn wiring (bound in home-mcp.js).
 */
.home-claude-band {
  border: 1px solid var(--border-cool);
  border-radius: 18px;
  /* Brand wash in the top-left corner fading to white, so it reads as a highlight
     without turning the whole block a flat colour. */
  background: radial-gradient(135% 160% at 0% 0%, var(--brand-ground) 0%, #fff 62%);
  box-shadow: 0 12px 44px rgba(23, 92, 211, 0.1);
  overflow: hidden;
}

.home-claude-band-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.75rem;
  align-items: center;
  padding: 1.9rem 2.1rem;
}

@media (max-width: 767.98px) {
  .home-claude-band-inner {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1.5rem 1.35rem;
  }
}

.home-claude-eyebrow {
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.home-claude-title {
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  font-weight: 700;
  line-height: 1.2;
}

.home-claude-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 34rem;
}

.home-claude-field-label {
  display: block;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--muted-strong);
  margin-bottom: 0.35rem;
}

/* Bigger, calmer field than the config textarea — this is the one thing to copy. */
.home-claude-field .form-control {
  padding: 0.72rem 6.5rem 0.72rem 0.85rem;
  height: auto;
  font-size: 0.95rem;
  background: #fff;
  border-color: var(--border-cool);
}

/* The single-line field is taller than the button, so centre it rather than pin
   it to the top the way the multi-line config panel does. */
.home-claude-field .copy-field-btn {
  top: 50%;
  transform: translateY(-50%);
}

/*
 * Bootstrap's own `.form-control:focus` / `.btn:focus` win over the sitewide
 * a/button/input/select/textarea/[tabindex]:focus-visible ring in shared.css by
 * specificity — two classes beat one class plus one type selector — and what they
 * substitute is a box-shadow that transitions in over 150ms, so a keyboard user
 * tabbing through sees nothing at the instant focus lands. Match the sitewide ring
 * here, at a specificity that wins, so it shows immediately instead.
 */
.home-claude-field .form-control:focus-visible,
.home-claude-cli .btn-outline-secondary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.home-claude-cli {
  margin-top: 0.95rem;
}

.home-claude-cli > summary {
  cursor: pointer;
  width: fit-content;
  font-size: 0.85rem;
  color: var(--brand-dark);
  font-weight: 600;
}

.home-claude-cli > summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.home-claude-clients {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Front-page "Start using now" MCP widget (home-mcp.js). */
.home-mcp-reveal {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 0.85rem;
}

.home-mcp-lede {
  font-weight: 600;
}

/* Room for the absolutely-positioned copy button so it never overlaps text. */
.home-mcp-reveal .copy-field-wrap .form-control {
  padding-right: 5.25rem;
}

.home-mcp-config {
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}

/* Copy button as an icon plus a short label. */
.home-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.home-copy-icon {
  flex: 0 0 auto;
}

.home-mcp-details summary {
  cursor: pointer;
}

.home-mcp-note a {
  white-space: nowrap;
}

/*
 * The worked example: one article, four readings.
 *
 * Radio inputs drive it, and CSS reveals the matching panel — no JavaScript, so
 * it works with the keyboard, works with a screen reader, and works before any
 * script parses. Same reasoning as .term-card above.
 */
/*
 * Choosing the article, above choosing the reader.
 *
 * Same mechanics as the perspective row below: the radio is moved off-screen
 * rather than hidden, because display:none would take it off the tab order and
 * hand the whole control to the mouse. The label carries the focus ring.
 *
 * Unlike the perspective row, one of these starts checked. The argument the
 * section makes is about who is reading, so that choice is left to the visitor
 * and its placeholder stays; which article is on screen is just scaffolding, and
 * an empty stage would make the section look broken rather than expectant.
 */
.sample-articles {
  border: 0;
  padding: 0;
  margin: 0;
}

.sample-articles legend {
  float: none;
  width: auto;
  padding: 0;
}

.sample-article-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.6rem;
}

.sample-article-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sample-article-btn {
  display: block;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  background: #fff;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.sample-article-btn:hover {
  border-color: #b2ddff;
}

.sample-article-name {
  display: block;
  font-weight: 650;
  font-size: 0.93rem;
  line-height: 1.35;
}

.sample-article-pub {
  display: block;
  color: var(--muted, #667085);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.sample-article-input:checked + .sample-article-btn {
  border-color: var(--brand);
  background: #f5faff;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.sample-article-input:focus-visible + .sample-article-btn {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Revealed by the per-article rule the section emits. */
.sample-source {
  display: none;
}

.sample-article-source {
  font-size: 0.85rem;
}

/*
 * Said plainly, in the section rather than a footnote. These readings were
 * written in advance, and a page arguing that this product states what it does
 * not know cannot be coy about that.
 */
.sample-provenance {
  color: var(--muted, #667085);
  font-size: 0.85rem;
  line-height: 1.5;
}

.sample-article {
  border-left: 3px solid var(--brand);
  padding: 0.75rem 0 0.75rem 1rem;
  background: #fcfcfd;
}

.sample-article-title {
  font-weight: 650;
  font-size: 1.05rem;
}

.sample-article-summary {
  color: var(--muted, #667085);
  font-size: 0.95rem;
}

.sample-perspectives {
  border: 0;
  padding: 0;
  margin: 0;
}

.sample-perspectives legend {
  float: none;
  width: auto;
  padding: 0;
}

.sample-perspective-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}

/*
 * Off-screen rather than display:none — a hidden radio is not focusable, which
 * would take the whole control away from the keyboard.
 */
.sample-perspective-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sample-perspective-btn {
  display: block;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  background: #fff;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.sample-perspective-btn:hover {
  border-color: #b2ddff;
}

.sample-perspective-label {
  display: block;
  font-weight: 650;
  font-size: 0.97rem;
}

.sample-perspective-blurb {
  display: block;
  color: var(--muted, #667085);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.sample-perspective-input:checked + .sample-perspective-btn {
  border-color: var(--brand);
  background: #f5faff;
  box-shadow: inset 0 0 0 1px var(--brand);
}

/* The focus ring has to follow the label, since the input itself is off-screen. */
.sample-perspective-input:focus-visible + .sample-perspective-btn {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.sample-panel {
  display: none;
  border: 1px solid #b2ddff;
  border-radius: 12px;
  background: #f5faff;
  padding: 1.15rem 1.25rem;
}

/*
 * Nothing is shown until the visitor picks somebody.
 *
 * A sibling combinator cannot reach these — the inputs sit inside the fieldset,
 * the panels are its uncle — so the match is made on the section, which also
 * means the two blocks can be reordered without the rules following them.
 * shared.css already drives .analyze-scope-chip this way.
 */
.sample-placeholder {
  margin: 0;
  padding: 1.15rem 1.25rem;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted, #667085);
  font-size: 0.95rem;
}

#worked-example:has(.sample-perspective-input:checked) .sample-placeholder {
  display: none;
}

/*
 * The per-panel reveal rules are emitted by worked-examples.php, not written
 * here: there is one per article-and-reading pair and that count comes from the
 * recording, so a list kept by hand would fall out of step the first time an
 * article was added.
 */

/*
 * Without :has() no panel would ever appear and the placeholder would sit there
 * for good, which makes the content unreachable rather than merely unswitchable.
 * Show all four instead: stacked and not selectable, but readable.
 */
@supports not selector(:has(*)) {
  .sample-placeholder {
    display: none;
  }

  /*
   * With four articles, showing every panel would be sixteen readings stacked.
   * The first article's source block and its own readings are shown instead:
   * still not selectable, but the point of the section survives and the page
   * does not turn into a wall.
   */
  .sample-source:first-of-type {
    display: block;
  }

  .sample-panel[class*="sample-panel-"]:nth-of-type(-n + 5) {
    display: block;
  }

  .sample-panel + .sample-panel {
    margin-top: 0.75rem;
  }
}

.sample-heading {
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brand-dark, #175cd3);
  margin: 1.1rem 0 0.3rem;
}

.sample-panel > .sample-heading:first-of-type {
  margin-top: 0;
}

.sample-body {
  margin: 0;
  font-size: 0.95rem;
}

.sample-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.sample-list li + li {
  margin-top: 0.3rem;
}

/* Set apart, because stating it is the point rather than a caveat at the end. */
.sample-heading-uncertain {
  color: #b54708;
}

.sample-uncertain {
  color: #7a5215;
  background: #fffaeb;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

@media (max-width: 575.98px) {
  .sample-perspective-row {
    grid-template-columns: 1fr;
  }

  .sample-panel {
    padding: 1rem;
  }
}

/* Full-bleed feature band, with its content aligned to the page container. */
.home-band {
  background: #142f50;
  box-shadow: 0 0 0 100vmax #142f50;
  clip-path: inset(0 -100vmax);
}

.home-band-inner {
  padding: 2.75rem 0;
}

.home-band h2 {
  color: #fff;
}

.home-band .card {
  border-color: #dce5ee;
  box-shadow: 0 10px 28px rgba(5, 18, 35, 0.16);
}

.home-band .feature-also {
  color: #d9e7f5;
}

@media (max-width: 575.98px) {
  .home-band-inner {
    padding: 2rem 0;
  }
}

/* "Latest market reports" on the front page: the newest stories from the daily
   market videos, each linking to its written report (market-reports.php). */
.home-reports-card {
  display: block;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid #e5e0d8;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.home-reports-card:hover,
.home-reports-card:focus-visible {
  border-color: #175cd3;
}
.home-reports-card__title {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.home-reports-card__signal {
  font-size: 0.9rem;
  color: #92400e;
  margin-bottom: 8px;
}
.home-reports-card__meta {
  font-size: 0.8rem;
  color: #6b7280;
}
