/* ==========================================================================
   Sovereign Terminal — editorial finance edition
   Warm paper, deep green, serif display type, thin rules.

   1.  Tokens
   2.  Base
   3.  Shared atoms — icons, buttons, links, tags, dates, media, ticket cut
   4.  Masthead, menu panel, search panel
   5.  Price tape
   6.  Section scaffolding
   7.  Home — top stories
   8.  Home — editor's picks
   9.  Home — just in
   10. Home — market board
   11. Desks — index, trio, band, ledger, numbered
   12. Newsletter + Contact Form 7
   13. Footer
   14. Single post
   15. Sidebar
   16. Archive, search, pagination
   17. Pages, 404
   18. Responsive
   ========================================================================== */

/* -- 1. Tokens ------------------------------------------------------------- */
:root {
  --paper: #ebe9e4;
  --paper-2: #e1ded6;
  --paper-3: #f4f2ee;
  --ink: #151a16;
  --ink-2: #3a413c;
  --muted: #575c56;
  --line: #d2cec5;
  --line-2: #b8b3a8;

  --green: #1f4a33;
  --green-2: #163826;
  --green-3: #2b6145;
  --on-green: #edf0e8;
  --on-green-muted: rgba(237, 240, 232, 0.74);
  --on-green-line: rgba(237, 240, 232, 0.32);

  --up: #1c7a45;
  --down: #b13a2a;
  --up-light: #9fe3b8;
  --down-light: #ffb7a8;

  --serif: "Source Serif 4", "Georgia", "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1280px;
  --gutter: 24px;
  --radius: 4px;
  --notch: 14px;
  --section-gap: 80px;

  /* Contextual colours — green surfaces override these. */
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-muted: var(--muted);
  --rule: var(--line-2);
}

/* Every green surface flips the contextual colours in one place. */
.t-ticket,
.t-mini--green,
.t-pair,
.feature,
.desk--band,
.brief__panel,
.side-panel--green,
.feed-lead__panel,
.row--green .row__link,
.quote--green {
  --fg: var(--on-green);
  --fg-2: var(--on-green-muted);
  --fg-muted: var(--on-green-muted);
  --rule: var(--on-green-line);
  --tag-hover-ink: var(--green);
  background: var(--green);
  color: var(--on-green);
}

/* -- 2. Base --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Sticky footer: main grows to fill the window, so the footer sits at the
   bottom even on an empty page. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

body.has-menu-open {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 650;
  font-optical-sizing: auto;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

/* Serif used outside headings keeps the same sturdy weight. */
.row__title,
.site-logo,
.nav-menu__pitch,
.gauge__val,
.quote__name,
.footer-post__title,
.story-nav__title,
.ranked__n,
.ranked__title,
.no-results__title,
.single .entry-content > p:first-of-type::first-letter {
  font-weight: 650;
}

.footer-top__line,
.num-card__n,
.nav-menu .nav-list--big a {
  font-weight: 750;
}

.entry-content blockquote {
  font-weight: 500;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--green-3);
  outline-offset: 2px;
}

::selection {
  background: var(--green);
  color: var(--on-green);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 10px 16px;
  z-index: 1000;
  background: var(--green);
  color: var(--on-green);
  text-decoration: none;
  border-radius: 999px;
}

.no-posts {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* -- 3. Shared atoms ------------------------------------------------------- */
.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* "( ⟶ )" */
.paren-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-family: var(--sans);
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

.paren-arrow .icon {
  width: 1.5em;
  transition: transform 0.2s ease;
}

a:hover .paren-arrow .icon {
  transform: translateX(3px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--green {
  background: var(--green);
  color: var(--on-green);
}

.btn--green:hover {
  background: var(--green-2);
}

.btn--sm {
  padding: 0.55rem 1.05rem;
  font-size: 0.75rem;
}

.btn--paren::before {
  content: "(";
  font-weight: 400;
}

.btn--paren::after {
  content: ")";
  font-weight: 400;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  font-size: 22px;
  transition: border-color 0.2s, background-color 0.2s;
}

.icon-btn:hover,
.icon-btn[aria-expanded="true"] {
  border-color: var(--line-2);
  background: var(--paper-3);
}

/* Text link with "( ⟶ )" */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  white-space: nowrap;
}

.arrow-link:hover {
  color: var(--green);
}

.arrow-link--light,
.arrow-link--light:hover {
  color: var(--on-green);
}

/* Tag pills */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag {
  display: inline-block;
  padding: 0.2em 0.75em;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--fg-2);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

a.tag:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--tag-hover-ink, var(--paper));
}

.tag--light {
  --rule: var(--on-green-line);
  color: var(--on-green);
}

/* Dates */
.stamp {
  display: block;
  color: var(--fg-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* Card titles */
:where(.t-lead, .t-ticket, .t-mini, .t-pair, .t-plain, .pick, .ruled-card, .side-card, .feature, .band-card, .ledger, .num-card, .feed-lead) h2 a,
:where(.t-lead, .t-ticket, .t-mini, .t-pair, .t-plain, .pick, .ruled-card, .side-card, .feature, .band-card, .ledger, .num-card, .feed-lead) h3 a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s ease;
}

:where(.t-lead, .t-ticket, .t-mini, .t-pair, .t-plain, .pick, .ruled-card, .side-card, .feature, .band-card, .ledger, .num-card, .feed-lead) h2 a:hover,
:where(.t-lead, .t-ticket, .t-mini, .t-pair, .t-plain, .pick, .ruled-card, .side-card, .feature, .band-card, .ledger, .num-card, .feed-lead) h3 a:hover {
  background-size: 100% 1px;
}

/* Image frames — the frame sets the ratio, the image covers it. Ratios stay
   between 2:1 and 4:3 so the mostly-16:9 originals keep their subject. */
.media {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
  aspect-ratio: 16 / 10;
}

.media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.media:hover .media__img {
  transform: scale(1.035);
}

.media__img.is-placeholder {
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(31, 74, 51, 0.06) 10px 11px),
    var(--paper-2);
}

.media--wide {
  aspect-ratio: 16 / 9;
}

.media--photo {
  aspect-ratio: 5 / 3;
}

/* Arched frame (editor's picks) */
.media--arch {
  aspect-ratio: 4 / 3;
  border-radius: 999px 999px var(--radius) var(--radius);
}

/* Ticket cut — concave notches in all four corners. Four full-size layers,
   each punching one corner, intersected — no tiles, so no seams. */
.ticket {
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 0, #0000 calc(100% - 0.5px), #000 100%),
    radial-gradient(circle var(--notch) at 100% 0, #0000 calc(100% - 0.5px), #000 100%),
    radial-gradient(circle var(--notch) at 0 100%, #0000 calc(100% - 0.5px), #000 100%),
    radial-gradient(circle var(--notch) at 100% 100%, #0000 calc(100% - 0.5px), #000 100%);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle var(--notch) at 0 0, #0000 calc(100% - 0.5px), #000 100%),
    radial-gradient(circle var(--notch) at 100% 0, #0000 calc(100% - 0.5px), #000 100%),
    radial-gradient(circle var(--notch) at 0 100%, #0000 calc(100% - 0.5px), #000 100%),
    radial-gradient(circle var(--notch) at 100% 100%, #0000 calc(100% - 0.5px), #000 100%);
  mask-composite: intersect;
}

/* Live dot + status chip */
.live-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  flex-shrink: 0;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--up);
  opacity: 0;
  animation: st-pulse 2.4s ease-out infinite;
}

@keyframes st-pulse {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Price direction (set by main.js) */
.intel-row__pct--up,
.ticker-item__pct.is-up {
  color: var(--up);
}

.intel-row__pct--down,
.ticker-item__pct.is-down {
  color: var(--down);
}

.quote--green .intel-row__pct--up {
  color: var(--up-light);
}

.quote--green .intel-row__pct--down {
  color: var(--down-light);
}

/* Shared: index-style rows "02.10  Headline  ( ⟶ )" */
.rows {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row__link {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.row__link:hover {
  border-color: var(--ink);
  background: var(--paper-3);
}

.row--green .row__link {
  border-color: var(--green);
}

.row--green .row__link:hover {
  background: var(--green-2);
}

.row__date {
  color: var(--fg-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.row__title {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row__link .paren-arrow {
  font-size: 0.75rem;
}

/* Shared: ruled trio of photo cards */
.ruled-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.ruled-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 20px 22px;
  min-width: 0;
}

.ruled-trio > .ruled-card + .ruled-card {
  border-left: 1px solid var(--line-2);
}

.ruled-trio > .ruled-card:first-child {
  padding-left: 0;
}

.ruled-trio > .ruled-card:last-child {
  padding-right: 0;
}

.ruled-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
}

.ruled-card__top .stamp {
  white-space: nowrap;
}

.ruled-card__title {
  font-size: 1.1875rem;
  line-height: 1.2;
}

.ruled-card__excerpt {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* -- 4. Masthead ----------------------------------------------------------- */
.masthead {
  position: relative;
  z-index: 60;
  background: var(--paper);
}

.masthead__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 84px;
  border-bottom: 1px solid var(--ink);
}

.masthead__side {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.masthead__side--right {
  justify-content: flex-end;
}

.masthead__date {
  color: var(--ink-2);
  font-size: 0.75rem;
  white-space: nowrap;
}

.masthead__brand {
  display: flex;
  justify-content: center;
}

.masthead__brand .custom-logo-link,
.footer-brand .custom-logo-link {
  display: block;
}

.masthead__brand .custom-logo {
  width: auto;
  max-height: 46px;
}

.site-logo {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* Menu button + panel exist only below the desktop breakpoint (see 18.). */
.nav-toggle,
.nav-menu {
  display: none;
}

.nav-toggle .nav-toggle__close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

/* Desk row */
.masthead__nav {
  border-bottom: 1px solid var(--line);
}

.masthead__nav .nav-list {
  display: flex;
  justify-content: center;
  gap: 4px 32px;
  list-style: none;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.masthead__nav .nav-list::-webkit-scrollbar {
  display: none;
}

.masthead__nav .nav-list a {
  position: relative;
  display: block;
  padding: 2px 0;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.masthead__nav .nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.masthead__nav .nav-list a:hover::after,
.masthead__nav .current-menu-item > a::after,
.masthead__nav .current-category-ancestor > a::after,
.masthead__nav .current-post-ancestor > a::after {
  transform: scaleX(1);
}

.masthead__nav .current-menu-item > a,
.masthead__nav .current-post-ancestor > a {
  color: var(--green);
}

/* Search panel */
.search-panel {
  border-bottom: 1px solid var(--line);
  background: var(--paper-3);
  padding: 18px 0;
}

.search-panel[hidden] {
  display: none;
}

.search-panel__form {
  display: flex;
  gap: 10px;
}

.search-panel__field {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 1rem;
  -webkit-appearance: none;
}

.search-panel__field:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 74, 51, 0.18);
}

.search-panel__form--page {
  max-width: 640px;
  margin: 28px auto 0;
}

/* Menu panel (positioned by main.js, under the masthead) */
.nav-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 55;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 30px 60px -30px rgba(21, 26, 22, 0.35);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.nav-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav-menu__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-block: 36px 44px;
}

.nav-menu__label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-menu .nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-menu .nav-list a {
  text-decoration: none;
  font-size: 0.9375rem;
}

.nav-menu .nav-list a:hover {
  color: var(--green);
}

.nav-menu .nav-list--big {
  gap: 2px;
}

.nav-menu .nav-list--big a {
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--green);
}

.nav-menu .nav-list--big a:hover {
  color: var(--ink);
}

.nav-menu .nav-list--small {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.nav-menu .nav-list--small a {
  font-size: 0.875rem;
  color: var(--ink-2);
}

.nav-menu__col--cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.nav-menu__pitch {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
}

/* -- 5. Price tape --------------------------------------------------------- */
.tape {
  border-bottom: 1px solid var(--line);
}

.tape__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 42px;
}

.tape__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tape__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: st-tape 70s linear infinite;
}

.tape:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes st-tape {
  to { transform: translateX(-50%); }
}

.ticker-list {
  display: flex;
  list-style: none;
}

.ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 22px;
  border-right: 1px solid var(--line);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ticker-item__sym {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ticker-item__val {
  color: var(--ink-2);
}

.ticker-item__pct {
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
  .tape__viewport {
    overflow-x: auto;
  }
}

/* -- 6. Section scaffolding ------------------------------------------------ */
.section {
  margin-top: var(--section-gap);
}

.display {
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 9.5vw, 7rem);
  font-weight: 750;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: 24px;
}

.sec-head__main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.sec-title {
  color: var(--green);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 750;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}

.desk--band .sec-title {
  color: var(--on-green);
}

.sec-intro {
  max-width: 560px;
  color: var(--fg-2);
  font-size: 0.875rem;
}

/* -- 7. Top stories -------------------------------------------------------- */
.top__head {
  padding: 36px 0 22px;
  text-align: center;
}

.top__strap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.top__strap-sep {
  width: 28px;
  height: 1px;
  background: var(--ink-2);
}

.top__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  grid-template-areas:
    "lead   ticket stack"
    "pair   plain  stack";
  gap: 22px 20px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.t-lead {
  grid-area: lead;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.t-lead__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.t-lead__title {
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  line-height: 1.08;
}

.t-lead__excerpt {
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.t-ticket {
  grid-area: ticket;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 14px 20px;
}

.t-ticket__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-inline: 4px;
}

.t-ticket__title {
  font-size: 1.4rem;
  line-height: 1.15;
}

.t-ticket__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--on-green-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.t-ticket__body .stamp {
  margin-top: auto;
  padding-top: 6px;
}

.t-stack {
  grid-area: stack;
  display: flex;
  flex-direction: column;
}

.t-mini {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-2);
}

.t-mini:last-child {
  margin-bottom: 0;
}

.t-mini--green {
  padding: 12px 12px 20px;
  border-bottom: 0;
}

.t-mini__title {
  font-size: 1.0625rem;
  line-height: 1.22;
}

.t-pair {
  grid-area: pair;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  padding: 14px;
  align-self: start;
}

.t-pair__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 16px;
  border-right: 1px solid var(--on-green-line);
}

.t-pair__card-title {
  font-size: 1.0625rem;
  line-height: 1.22;
}

.t-pair__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 18px;
}

.t-pair__title {
  font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  line-height: 1.1;
}

.t-pair__excerpt {
  color: var(--on-green-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.t-pair__text .stamp {
  margin-top: auto;
}

.t-plain {
  grid-area: plain;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-2);
  align-self: start;
}

.t-plain__title {
  font-size: 1.25rem;
  line-height: 1.18;
}

.t-plain__excerpt {
  color: var(--muted);
  font-size: 0.875rem;
}

/* -- 8. Editor's picks ----------------------------------------------------- */
.sec-head--tabs {
  align-items: flex-end;
}

.tabs,
.desk-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tabs__tab {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.tabs__tab:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.tabs__tab[aria-selected="true"],
.tabs__tab[aria-current="page"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-green);
}

.round-nav {
  display: flex;
  gap: 8px;
}

.round-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  font-size: 17px;
  transition: background-color 0.2s, color 0.2s;
}

.round-nav__btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-green);
}

.picks__panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  animation: st-fade 0.35s ease;
}

.picks__panel[hidden] {
  display: none;
}

@keyframes st-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.pick {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 4px 22px;
  min-width: 0;
}

.pick + .pick {
  border-left: 1px solid var(--line-2);
}

.pick:first-child {
  padding-left: 0;
}

.pick:last-child {
  padding-right: 0;
}

.pick__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pick__title {
  font-size: 1.125rem;
  line-height: 1.18;
}

.pick__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* -- 10. Market board ------------------------------------------------------ */
.board__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.board__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.board__lede {
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.5;
}

.gauges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 10px 0 0;
}

.gauge {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}

.gauge dd {
  margin: 0;
}

.gauge__label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gauge__val {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.gauge__note {
  color: var(--muted);
  font-size: 0.75rem;
}

.quotes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quote {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto 84px;
  align-items: center;
  gap: 14px;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.quote--green {
  border-color: var(--green);
}

.quote__sym {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.quote__name {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.2;
  min-width: 0;
}

.quote__name small {
  display: inline-block;
  margin-left: 10px;
  color: var(--fg-muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.quote__val {
  font-size: 1rem;
  font-weight: 600;
}

.quote__pct {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: right;
}

.board__note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.75rem;
}

/* -- 11. Desks ------------------------------------------------------------- */

/* Index (politics) */
.index {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 28px 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.index__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.index__lede {
  max-width: 34ch;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.desk--index .ruled-trio {
  margin-top: 36px;
}

/* Trio (business) */
.trio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.trio--solo {
  grid-template-columns: minmax(0, 1fr);
}

.side-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.side-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.side-card__meta .stamp {
  white-space: nowrap;
}

.side-card__title {
  font-size: 1.1875rem;
  line-height: 1.2;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 18px;
  padding: 18px;
}

.feature__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 2px 4px;
}

.feature__title {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.12;
}

.feature__excerpt {
  color: var(--on-green-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.feature__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.feature__media {
  align-self: start;
}

/* Band (crypto) */
.desk--band {
  padding-block: 64px 72px;
}

.desk--band .sec-head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--on-green-line);
}

.band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.band-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.band-card .media {
  background: var(--green-2);
}

.band-card__title {
  font-size: 1.1875rem;
  line-height: 1.2;
}

.band-card .stamp {
  margin-top: auto;
}

/* Ledger (investing) */
.ledger {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: start;
}

.ledger__lead {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ledger__lead .media {
  margin-bottom: 4px;
}

.ledger__title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.1;
}

.ledger__excerpt {
  max-width: 64ch;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.ledger__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
}

.line-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}

.line-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.line-card__title {
  font-size: 1.0625rem;
  line-height: 1.22;
}

/* Numbered (stocks) */
.numbered {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.num-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.num-card__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}

.num-card__n {
  color: var(--green);
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.num-card__title {
  font-size: 1.0625rem;
  line-height: 1.22;
}

.num-card__excerpt {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* -- 12. Newsletter + Contact Form 7 -------------------------------------- */
.brief {
  margin-bottom: 8px;
}

.brief__panel {
  --notch: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px 56px;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
}

.brief__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.brief__title {
  font-size: clamp(2.2rem, 4.6vw, 3.75rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.brief__sub {
  max-width: 50ch;
  color: var(--on-green-muted);
  font-size: 0.9375rem;
}

.brief__points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 10px 28px;
  margin-top: 4px;
  font-size: 0.875rem;
}

.brief__points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brief__points .icon {
  font-size: 16px;
  color: var(--up-light);
}

.brief__form {
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
}

.brief__form-title {
  color: var(--green);
  font-size: 1.75rem;
  text-transform: uppercase;
}

.brief__form-desc {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* CF7 */
.newsletter-form-shell .wpcf7-form p {
  margin: 0;
}

.newsletter-form-shell .hidden-fields-container {
  display: none;
}

.newsletter-form-shell .form-fields p {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.newsletter-form-shell .form-fields p br {
  display: none;
}

.newsletter-form-shell .wpcf7-form-control-wrap {
  display: block;
}

.newsletter-form-shell .wpcf7-email {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.newsletter-form-shell .wpcf7-email::placeholder {
  color: var(--muted);
}

.newsletter-form-shell .wpcf7-email:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 74, 51, 0.18);
}

.newsletter-form-shell .wpcf7-email.wpcf7-not-valid {
  border-color: var(--down);
}

.newsletter-form-shell .wpcf7-submit {
  position: relative;
  width: 100%;
  padding: 0.95rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--on-green);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s;
  -webkit-appearance: none;
}

.newsletter-form-shell .wpcf7-submit:hover {
  background: var(--green-2);
}

.newsletter-form-shell .wpcf7-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.newsletter-form-shell .wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.newsletter-form-shell .wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.4rem;
  padding-left: 1.1rem;
  color: var(--down);
  font-size: 0.75rem;
  font-weight: 600;
}

.form-privacy {
  margin-top: 14px;
}

.newsletter-form-shell .wpcf7-list-item {
  display: block;
  margin: 0;
}

.newsletter-form-shell .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.75rem;
  line-height: 1.55;
  cursor: pointer;
}

.newsletter-form-shell .form-privacy .wpcf7-list-item-label {
  color: var(--muted);
}

.newsletter-form-shell .wpcf7-list-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 0.15em;
  flex-shrink: 0;
  accent-color: var(--green);
  cursor: pointer;
}

.newsletter-form-shell .wpcf7-list-item-label a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.newsletter-form-shell .wpcf7-response-output {
  width: 100%;
  margin: 14px 0 0 !important;
  padding: 10px 14px;
  border: 1px solid transparent !important;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

/* CF7 6.x keeps aria-hidden="true" on this element at all times — go by
   content rather than by the attribute. */
.newsletter-form-shell .wpcf7-response-output:empty {
  display: none;
}

.newsletter-form-shell .wpcf7-form.sent .wpcf7-response-output {
  background: rgba(28, 122, 69, 0.1);
  border-color: rgba(28, 122, 69, 0.35) !important;
  color: var(--up);
}

.newsletter-form-shell .wpcf7-form.invalid .wpcf7-response-output,
.newsletter-form-shell .wpcf7-form.unaccepted .wpcf7-response-output,
.newsletter-form-shell .wpcf7-form.spam .wpcf7-response-output,
.newsletter-form-shell .wpcf7-form.failed .wpcf7-response-output {
  background: rgba(177, 58, 42, 0.08);
  border-color: rgba(177, 58, 42, 0.35) !important;
  color: var(--down);
}

/* Form on a green panel (sidebar) */
.newsletter-form-shell--dark .wpcf7-email {
  border-color: var(--on-green-line);
  background: rgba(237, 240, 232, 0.08);
  color: var(--on-green);
}

.newsletter-form-shell--dark .wpcf7-email::placeholder {
  color: var(--on-green-muted);
}

.newsletter-form-shell--dark .wpcf7-email:focus {
  border-color: var(--on-green);
  box-shadow: none;
}

.newsletter-form-shell--dark .wpcf7-submit {
  background: var(--paper);
  color: var(--green);
}

.newsletter-form-shell--dark .wpcf7-submit:hover {
  background: #fff;
}

.newsletter-form-shell--dark .form-privacy .wpcf7-list-item-label,
.newsletter-form-shell--dark .wpcf7-list-item-label a {
  color: var(--on-green-muted);
}

.newsletter-form-shell--dark .wpcf7-list-item input[type="checkbox"] {
  accent-color: var(--paper);
}

.newsletter-form-shell--dark .wpcf7-not-valid-tip {
  color: var(--down-light);
}

.newsletter-form-shell--dark .wpcf7-form.sent .wpcf7-response-output {
  color: var(--up-light);
  border-color: var(--on-green-line) !important;
}

.newsletter-form-shell--dark .wpcf7-form.invalid .wpcf7-response-output,
.newsletter-form-shell--dark .wpcf7-form.unaccepted .wpcf7-response-output,
.newsletter-form-shell--dark .wpcf7-form.spam .wpcf7-response-output,
.newsletter-form-shell--dark .wpcf7-form.failed .wpcf7-response-output {
  color: var(--down-light);
  border-color: var(--on-green-line) !important;
}

/* Contact block under each form */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--fg-muted);
  font-size: 0.75rem;
  font-style: normal;
  line-height: 1.55;
}

.brief__form .contact-block {
  --rule: var(--line);
  --fg-muted: var(--muted);
}

.contact-block-name {
  color: var(--fg);
  font-weight: 600;
}

.brief__form .contact-block-name {
  color: var(--ink);
}

.contact-block a {
  color: inherit;
  text-underline-offset: 3px;
}

.contact-block a:hover {
  color: var(--fg);
}

/* -- 13. Footer ------------------------------------------------------------ */
.site-footer {
  margin-top: var(--section-gap);
  background: var(--paper-2);
  border-top: 1px solid var(--ink);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line-2);
}

.footer-top__line {
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.footer-top__line em {
  color: var(--ink-2);
  font-style: normal;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 40px;
  padding: 40px 0;
}

.footer-brand .custom-logo,
.footer-logo-img {
  width: auto;
  max-height: 40px;
}

.footer-col__desc {
  max-width: 36ch;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.footer-col__heading {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col__list a {
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-col__list a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-posts {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.footer-post {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}

.footer-post:first-child {
  padding-top: 0;
}

.footer-post__date {
  padding-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.footer-post__title {
  font-family: var(--serif);
  font-size: 0.9375rem;
  line-height: 1.3;
  text-decoration: none;
}

.footer-post__title:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 0.75rem;
}

/* -- 14. Single post ------------------------------------------------------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 0;
  height: 3px;
  background: var(--green);
}

.story-head {
  max-width: 1040px;
  padding-block: 36px 32px;
  text-align: center;
}

.crumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--green);
}

.story-head__title {
  font-size: clamp(2.1rem, 4.8vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
}

.story-head__dek {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--ink-2);
  font-size: 1.125rem;
  line-height: 1.55;
}

.story-head__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}

.story-head__meta .tags {
  justify-content: center;
}

.story-head__facts {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

.story-head__facts .stamp {
  display: inline;
  font-size: inherit;
}

.story-hero {
  margin: 0 auto 48px;
}

.story-hero__img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  border-radius: var(--radius);
}

.story-hero__caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.75rem;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 340px;
  justify-content: space-between;
  gap: 56px;
  align-items: start;
}

.story-side {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Article body */
.entry-content {
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.entry-content > * + * {
  margin-top: 1.25em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--ink);
  margin-top: 1.8em;
}

.entry-content h2 { font-size: 1.85rem; line-height: 1.15; }
.entry-content h3 { font-size: 1.45rem; line-height: 1.2; }
.entry-content h4 { font-size: 1.2rem; }

.entry-content h2 + *,
.entry-content h3 + *,
.entry-content h4 + * {
  margin-top: 0.6em;
}

.entry-content a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: var(--ink);
}

.entry-content strong {
  color: var(--ink);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.3em;
}

.entry-content li + li {
  margin-top: 0.45em;
}

.entry-content li::marker {
  color: var(--green);
}

.entry-content blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--green);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.35;
}

.entry-content blockquote p + p {
  margin-top: 0.6em;
}

.entry-content blockquote cite {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-style: normal;
}

.entry-content figure {
  margin-inline: 0;
}

.entry-content img {
  border-radius: var(--radius);
}

.entry-content figcaption,
.entry-content .wp-caption-text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.entry-content th,
.entry-content td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
}

.entry-content th {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.entry-content hr {
  border: 0;
  border-top: 1px solid var(--line-2);
  margin: 2.2em 0;
}

.entry-content iframe,
.entry-content video {
  max-width: 100%;
}

.entry-content pre {
  overflow-x: auto;
  padding: 16px;
  background: var(--paper-2);
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.single .entry-content > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--green);
  font-family: var(--serif);
  font-size: 3.7em;
  line-height: 0.82;
}

.page-links {
  display: flex;
  gap: 8px;
  font-size: 0.875rem;
}

.story-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.story-tags__label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.story-nav__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.story-nav__link:hover {
  border-color: var(--ink);
  background: var(--paper-3);
}

.story-nav__link--next {
  grid-column: 2;
  text-align: right;
  align-items: flex-end;
}

.story-nav__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-nav__label .icon {
  font-size: 16px;
}

.story-nav__title {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.25;
}

/* -- 15. Sidebar ----------------------------------------------------------- */
.side-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}

.side-panel--green {
  align-items: flex-start;
  border: 0;
  padding: 24px;
}

.side-panel--green .newsletter-form-shell,
.side-panel--green .contact-block {
  width: 100%;
}

.side-panel__title {
  font-size: 1.6rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.side-panel__desc {
  color: var(--on-green-muted);
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.side-panel__heading {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  color: var(--green);
  font-size: 1.45rem;
  line-height: 1;
  text-transform: uppercase;
}

.side-panel .arrow-link {
  align-self: flex-start;
  margin-top: 4px;
}

.ranked {
  list-style: none;
}

.ranked__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ranked__item:first-child {
  padding-top: 2px;
}

.ranked__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ranked__n {
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
}

.ranked__title {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.28;
  text-decoration: none;
}

.ranked__title:hover {
  color: var(--green);
}

/* Related */
.related .ruled-trio {
  border-top-color: var(--ink);
}

/* -- 16. Archive, search, pagination -------------------------------------- */
.page-title {
  padding: 40px 0 32px;
  text-align: center;
}

.page-title__kicker {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 16px;
  color: var(--ink-2);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-title__sep {
  width: 28px;
  height: 1px;
  background: var(--ink-2);
}

.page-title__desc {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.desk-switch {
  justify-content: center;
  margin-bottom: 32px;
}

.feed-lead {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.feed-lead__media {
  aspect-ratio: 16 / 10;
}

.feed-lead__panel {
  --notch: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 3vw, 36px);
}

.feed-lead__title {
  font-size: clamp(1.6rem, 2.7vw, 2.4rem);
  line-height: 1.08;
}

.feed-lead__excerpt {
  color: var(--on-green-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.feed-lead__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--on-green-line);
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
  border-top: 1px solid var(--ink);
}

.feed-grid > .ruled-card {
  padding: 16px 20px 26px;
  border-bottom: 1px solid var(--line-2);
}

.feed-grid > .ruled-card:not(:nth-child(3n + 1)) {
  border-left: 1px solid var(--line-2);
}

.feed-grid > .ruled-card:nth-child(3n + 1) {
  padding-left: 0;
}

.feed-grid > .ruled-card:nth-child(3n) {
  padding-right: 0;
}

.navigation.pagination {
  margin-top: 40px;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.pagination a.page-numbers:hover {
  border-color: var(--ink);
}

.pagination .page-numbers.current {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-green);
}

.pagination .page-numbers.dots {
  border-color: transparent;
}

.pagination .prev,
.pagination .next {
  padding: 0 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pagination .icon {
  font-size: 16px;
}

.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 56px 0 24px;
  border-top: 1px solid var(--ink);
  color: var(--ink-2);
  text-align: center;
}

.no-results__title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.75rem;
}

/* -- 17. Pages, 404 -------------------------------------------------------- */
.display--page {
  font-size: clamp(2.4rem, 6.5vw, 5rem);
}

.static-page .story-hero {
  max-width: 1040px;
}

.page-body {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--ink);
}

.error-page {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}

.error-page .page-title {
  padding-bottom: 0;
}

.error-page .search-panel__form--page {
  margin-top: 0;
  width: 100%;
  max-width: none;
}

.error-page > .btn {
  align-self: center;
}

/* -- 18. Responsive -------------------------------------------------------- */
@media (max-width: 1180px) {
  .top__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "lead   lead"
      "ticket plain"
      "pair   pair"
      "stack  stack";
  }

  .t-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--line-2);
  }

  .t-mini {
    margin: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .t-mini--green {
    padding-bottom: 18px;
  }

  .picks__panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .pick,
  .pick:first-child,
  .pick:last-child {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 22px;
    padding: 18px 0;
  }

  .pick + .pick {
    border-left: 0;
    border-top: 1px solid var(--line-2);
  }

  .board__grid,
  .index {
    grid-template-columns: minmax(0, 1fr);
  }

  .gauges {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .trio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trio .feature {
    grid-column: 1 / -1;
    order: -1;
  }

  .band,
  .numbered {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .ledger {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 808px;
  }

  .story-side {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .story-side .side-panel--green {
    grid-column: 1 / -1;
  }

  .feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-grid > .ruled-card,
  .feed-grid > .ruled-card:not(:nth-child(3n + 1)) {
    border-left: 0;
    padding: 16px 20px 26px;
  }

  .feed-grid > .ruled-card:nth-child(odd) {
    padding-left: 0;
  }

  .feed-grid > .ruled-card:nth-child(even) {
    padding-right: 0;
    border-left: 1px solid var(--line-2);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-menu__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-menu__col--cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  :root {
    --section-gap: 60px;
  }

  /* Phones and tablets: one desk list only — the one in the menu panel. */
  .masthead__date,
  .masthead__nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: block;
  }

  .masthead__bar {
    min-height: 76px;
  }

  .top__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "lead"
      "ticket"
      "plain"
      "pair"
      "stack";
  }

  .t-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  .t-mini {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-2);
  }

  .t-mini--green {
    border-bottom: 0;
  }

  .t-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .t-pair__card {
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--on-green-line);
  }

  .t-pair__text {
    padding: 0;
  }

  .gauges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ruled-trio {
    grid-template-columns: minmax(0, 1fr);
    border-bottom: 0;
  }

  .ruled-trio > .ruled-card,
  .ruled-trio > .ruled-card:first-child,
  .ruled-trio > .ruled-card:last-child {
    padding: 16px 0 22px;
    border-bottom: 1px solid var(--line-2);
  }

  .ruled-trio > .ruled-card + .ruled-card {
    border-left: 0;
  }

  .trio {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature__media {
    order: -1;
  }

  .brief__panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .feed-lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    padding: 32px 0;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
    --notch: 11px;
  }

  .masthead__cta {
    display: none;
  }

  .masthead__side {
    gap: 6px;
  }

  .nav-menu__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .nav-menu .nav-list--big a {
    font-size: 1.75rem;
  }

  .pick,
  .pick:first-child,
  .pick:last-child {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .media--arch {
    aspect-ratio: 16 / 10;
    border-radius: 200px 200px var(--radius) var(--radius);
  }

  .quote {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 0.65rem 1.1rem;
    border-radius: 22px;
  }

  .quote__name small {
    display: none;
  }

  .quote__pct {
    grid-column: 3;
    grid-row: 2;
  }

  .quote__val {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
  }

  .quote__sym {
    grid-row: 1 / span 2;
  }

  .quote__name {
    grid-row: 1 / span 2;
  }

  .row__link {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding: 0.6rem 0.9rem;
    border-radius: 18px;
  }

  .row__title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .band,
  .numbered,
  .feed-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feed-grid > .ruled-card,
  .feed-grid > .ruled-card:nth-child(odd),
  .feed-grid > .ruled-card:nth-child(even) {
    padding: 16px 0 24px;
    border-left: 0;
  }

  .line-card {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 12px;
  }

  .brief__points {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-head__dek {
    font-size: 1rem;
  }

  .story-hero {
    margin-bottom: 32px;
  }

  .story-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-nav__link--next {
    grid-column: auto;
  }

  /* Desks and The company share a row; brand and latest posts span it. */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .footer-col--brand,
  .footer-col--posts {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
