@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/instrument-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/newsreader.woff2') format('woff2');
}

:root {
  /* Blue and white, lifted from the brand: #0b206b is the IBN royal blue */
  --blue-900: #071547;
  --blue-800: #0b206b;
  --blue-700: #12308c;
  --blue-600: #1c46b8;
  --blue-500: #2f6df6;
  --sky: #4db2ec;
  --sky-wash: #eaf4fd;
  --blue-wash: #f2f6ff;

  --white: #ffffff;
  --page: #fbfcff;
  --surface: #ffffff;
  --line: #e3e9f5;
  --line-strong: #cdd8ec;

  --ink: #0c1730;
  --ink-2: #3a4a68;
  --muted: #6b7c99;
  --signal: #ff5a1f;

  --sans: 'Instrument Sans', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --display: 'Instrument Sans', 'Inter', sans-serif;
  --serif: 'Newsreader', Georgia, serif;

  --shell: 1260px;
  --gap: clamp(1rem, 2.2vw, 1.75rem);
  --r-sm: 2px;
  --r: 3px;
  --r-lg: 4px;
  --shadow-sm: none;
  --shadow: none;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 640;
  letter-spacing: -0.021em;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
}

::selection {
  background: var(--blue-600);
  color: #fff;
}

:focus-visible {
  outline: 2.5px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 3px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--blue-800);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  z-index: 100;
}
.skip-link:focus {
  top: 0.75rem;
}

/* ---------- type ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.byline {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  align-items: center;
  font-family: var(--sans);
}
.byline .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
  display: inline-block;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--ink);
}
.section-head h2 {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  font-weight: 680;
  letter-spacing: -0.018em;
  line-height: 1.1;
}
.section-head a {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--blue-700);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--blue-500) 40%, transparent);
  text-underline-offset: 4px;
}
.section-head a:hover {
  color: var(--blue-500);
  text-decoration-color: currentColor;
}

/* ---------- top bar ---------- */
.topbar {
  background: var(--blue-800);
  color: #d7e3ff;
  font-family: var(--sans);
  font-size: 0.75rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a {
  color: #d7e3ff;
}
.topbar a:hover {
  color: #fff;
}
.topbar-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.market-note {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}
.market-note strong {
  font-weight: 650;
  color: #fff;
}
.market-note span span {
  color: #9fb6e8;
}

/* ---------- masthead ---------- */
.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: clamp(0.85rem, 1.8vw, 1.15rem);
}
.masthead-meta {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
}
.masthead-meta strong {
  color: var(--ink);
  font-weight: 600;
}
.masthead-meta.right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}
.wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* real wordmark art: 272 x 82 */
.wordmark img {
  width: clamp(148px, 14vw, 176px);
  height: auto;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  background: var(--blue-800);
  color: #fff;
}
.btn:hover {
  background: var(--blue-800);
  transform: translateY(-1px);
}
.btn.ghost {
  background: #fff;
  color: var(--blue-800);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn.ghost:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
  background: var(--blue-wash);
}
.btn.small {
  padding: 0.4rem 0.8rem;
  font-size: 0.76rem;
}

/* ---------- nav ---------- */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  overflow-x: auto;
  scrollbar-width: none;
  min-height: 50px;
  position: relative;
}
.nav-inner::-webkit-scrollbar {
  display: none;
}
.nav-link {
  font-family: var(--sans);
  padding: 0.45rem 0.62rem;
  font-size: 0.84rem;
  font-weight: 550;
  white-space: nowrap;
  color: var(--ink-2);
  border-radius: 999px;
  transition: background 150ms ease, color 150ms ease;
}
.nav-link:hover {
  background: var(--blue-wash);
  color: var(--blue-700);
}
.nav-link.active {
  background: var(--blue-800);
  color: #fff;
}
.nav-spacer {
  flex: 1;
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: none;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-2);
  flex: none;
}
.icon-btn:hover {
  background: var(--blue-wash);
  color: var(--blue-700);
}

/* ---------- home lead ---------- */
.home-top {
  padding-top: clamp(1.2rem, 2.4vw, 1.9rem);
}
.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.2vw, 1.75rem);
  padding-bottom: clamp(1rem, 2vw, 1.4rem);
  align-items: stretch;
}
.lead-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(430px, 36vw, 540px);
  border-radius: 2px;
  overflow: hidden;
  background: var(--blue-900);
  isolation: isolate;
}
.lead-figure {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.lead-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lead-story:hover .lead-figure img {
  transform: scale(1.03);
}
.lead-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4, 12, 38, 0.94) 0%,
    rgba(4, 12, 38, 0.72) 38%,
    rgba(4, 12, 38, 0.18) 68%,
    rgba(4, 12, 38, 0.05) 100%
  );
}
.lead-body {
  position: relative;
  padding: clamp(1.1rem, 2.2vw, 1.8rem);
  max-width: 46ch;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.lead-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.lead-title {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 22ch;
}
.lead-dek {
  font-family: var(--sans);
  font-size: 0.94rem;
  color: #cfdcff;
  max-width: 52ch;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lead-body .byline {
  color: #a9bdec;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--sky-wash);
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
}
.tag.signal {
  color: #fff;
  background: var(--signal);
}
.tag.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

/* briefing card */
.brief {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.05rem 1.1rem 0.95rem;
  min-width: 0;
}
.brief-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}
.brief-head h2 {
  font-size: 1.05rem;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}
.live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.brief-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.brief-item + .brief-item {
  border-top: 1px solid var(--line);
}
.brief-item a {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0.7rem;
  padding: 0.62rem 0;
  align-items: start;
  border-radius: 6px;
}
.brief-date {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--blue-500);
  padding-top: 0.18rem;
  font-variant-numeric: tabular-nums;
}
.brief-title {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 550;
  line-height: 1.35;
  color: var(--ink);
  display: block;
}
.brief-item a:hover .brief-title {
  color: var(--blue-600);
}
.brief-cat {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.22rem;
}
.brief-more {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--blue-500) 40%, transparent);
}
.brief-more:hover {
  background: var(--sky-wash);
  color: var(--blue-800);
}

/* ---------- market band ---------- */
.risk-band {
  margin-block: clamp(1.4rem, 2.6vw, 2rem) clamp(1.8rem, 3vw, 2.6rem);
  background: var(--blue-800);
  color: #dbe6ff;
  position: relative;
  padding-inline: clamp(1rem, 2vw, 1.75rem);
}
.risk-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 2.15fr);
  gap: clamp(1rem, 3vw, 2.6rem);
  padding: clamp(1.05rem, 2.2vw, 1.5rem) 0;
  align-items: center;
}
.risk-intro h2 {
  color: #fff;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  max-width: 22ch;
}
.risk-intro p {
  color: #9db2e0;
  font-family: var(--sans);
  font-size: 0.76rem;
  margin-top: 0.35rem;
  max-width: 40ch;
  line-height: 1.45;
}
.risk-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.risk-stat {
  padding: 0.1rem clamp(0.7rem, 1.4vw, 1.1rem);
  min-width: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.risk-stat:first-child {
  border-left: 0;
  padding-left: 0;
}
.risk-stat .num {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 660;
  color: #fff;
  display: block;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.risk-stat .lbl {
  font-family: var(--sans);
  font-size: 0.68rem;
  color: #9db2e0;
  line-height: 1.35;
  display: block;
  margin-top: 0.4rem;
}

/* ---------- home body ---------- */
.desked {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 306px;
  gap: clamp(1.2rem, 2.4vw, 2rem);
  padding-bottom: clamp(1.8rem, 3vw, 2.6rem);
}
.story-stack {
  display: flex;
  flex-direction: column;
}
.story-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.85rem;
  padding: 0.8rem 0;
  align-items: start;
  border-bottom: 1px solid var(--line);
}
.story-stack > .story-row:first-child {
  padding-top: 0;
}
.story-row:last-child {
  border-bottom: 0;
}
.story-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: var(--sky-wash);
}
.story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}
.story-row:hover .story-thumb img {
  transform: scale(1.05);
}
.story-row h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 600;
  margin-top: 0.2rem;
  letter-spacing: -0.005em;
}
.story-row:hover h3 {
  color: var(--blue-600);
}
.story-row .byline {
  margin-top: 0.35rem;
  font-size: 0.73rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  transition: border-color 180ms ease;
}
.feature-card:hover {
  border-color: var(--ink);
}
.feature-card figure {
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: var(--sky-wash);
}
.feature-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.feature-body h3 {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.38rem);
  line-height: 1.16;
  font-weight: 560;
}
.feature-body p {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.feature-body .byline {
  margin-top: auto;
  padding-top: 0.5rem;
}

.quote-card {
  margin: 1rem 0 0;
  background: var(--blue-wash);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sky);
  border-radius: var(--r);
  padding: 1rem 1.05rem;
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.4;
  font-weight: 480;
  color: var(--blue-900);
}
.quote-card cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
}

/* ---------- rail ---------- */
.rail {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.rail-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1rem 1.05rem;
}
.rail-block h2 {
  font-size: 1rem;
  margin-bottom: 0.55rem;
}
.most-read {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rank;
}
.most-read li {
  counter-increment: rank;
}
.most-read li + li {
  border-top: 1px solid var(--line);
}
.most-read a {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.55rem;
  padding: 0.55rem 0;
  align-items: baseline;
}
.most-read a::before {
  content: counter(rank);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--blue-500);
  font-variant-numeric: tabular-nums;
}
.most-read span {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 500;
}
.most-read a:hover span {
  color: var(--blue-600);
}

.newsletter {
  background: var(--blue-800);
  color: #fff;
  border-radius: 2px;
  padding: 1.15rem;
  position: relative;
}
.newsletter > * {
  position: relative;
  z-index: 1;
}
.newsletter h2 {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.18;
}
.newsletter p {
  font-family: var(--sans);
  font-size: 0.79rem;
  color: #c6d6fb;
  margin-top: 0.4rem;
  line-height: 1.45;
}
.newsletter form {
  display: flex;
  margin-top: 0.85rem;
  background: #fff;
  border-radius: 999px;
  padding: 3px;
}
.newsletter input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  outline: none;
}
.newsletter input::placeholder {
  color: var(--muted);
}
.newsletter button {
  border: 0;
  background: var(--blue-700);
  color: #fff;
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
}
.newsletter button:hover {
  background: var(--blue-500);
}
.form-note {
  font-size: 0.67rem;
  color: #a9bdec;
  margin-top: 0.45rem;
}
.form-success {
  margin-top: 0.85rem;
  font-family: var(--sans);
  font-size: 0.83rem;
  line-height: 1.4;
  color: #fff;
}

.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.topic-cloud a {
  font-family: var(--sans);
  font-size: 0.75rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  background: #fff;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.topic-cloud a:hover {
  border-color: var(--blue-500);
  color: var(--blue-700);
  background: var(--blue-wash);
}

/* ---------- desk grid ---------- */
.sectors {
  padding-bottom: clamp(1.8rem, 3vw, 2.6rem);
}
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(0.9rem, 1.8vw, 1.4rem);
}
.sector {
  background: transparent;
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: border-color 160ms ease;
}
.sector:hover {
  border-color: var(--ink);
}
.sector h3 {
  font-size: 0.98rem;
  font-weight: 620;
}
.sector span {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}
.sector em {
  font-family: var(--sans);
  font-style: normal;
  margin-top: 0.45rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-500);
}

/* ---------- article ---------- */
.article-wrap {
  padding-block: clamp(1.2rem, 2.6vw, 2rem);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-700);
  margin-bottom: 1rem;
}
.back-link:hover {
  color: var(--blue-500);
}
.article-head {
  max-width: 52rem;
}
.article-head h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
  font-weight: 560;
  margin-block: 0.6rem 0.8rem;
}
.article-dek {
  font-family: var(--sans);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46rem;
}
.article-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.article-actions .spacer {
  flex: 1;
}
.share-note {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--blue-600);
  font-weight: 600;
}
.article-hero {
  margin-block: 1.2rem 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--sky-wash);
  box-shadow: var(--shadow-sm);
}
.article-hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  margin-top: clamp(1.3rem, 2.6vw, 2rem);
  align-items: start;
}
.prose {
  max-width: 44rem;
  font-family: var(--serif);
  font-size: 1.13rem;
  line-height: 1.66;
  color: #182646;
}
.prose > p + p {
  margin-top: 1em;
}
.prose > p:first-of-type::first-letter {
  float: left;
  font-size: 3.2em;
  line-height: 0.84;
  padding: 0.05em 0.08em 0 0;
  font-weight: 600;
  color: var(--blue-600);
}
.prose-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- archive ---------- */
.page-head {
  padding-block: clamp(1.3rem, 2.6vw, 2rem) 1.1rem;
}
.page-head .kicker {
  display: inline-block;
  background: var(--sky-wash);
  padding: 0.22rem 0.5rem;
  border-radius: 5px;
  margin-bottom: 0.6rem;
}
.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  letter-spacing: -0.024em;
  font-weight: 560;
}
.page-head p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-family: var(--sans);
  max-width: 52ch;
  font-size: 0.92rem;
}
.filter-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.4rem;
  align-items: center;
}
.chip {
  font-family: var(--sans);
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 2px;
  padding: 0.28rem 0.66rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-2);
  transition: all 150ms ease;
}
.chip:hover {
  border-color: var(--blue-500);
  color: var(--blue-700);
}
.chip[aria-pressed='true'] {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: #fff;
}
.result-count {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--muted);
  margin-left: auto;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-bottom: 2rem;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 180ms ease;
}
.card:hover {
  border-color: var(--ink);
}
.card-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sky-wash);
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.card:hover .card-thumb img {
  transform: scale(1.03);
}
.card-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.card h2,
.card h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.18;
  font-weight: 560;
}
.card:hover h2,
.card:hover h3 {
  color: var(--blue-700);
}
.card p {
  font-family: var(--sans);
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .byline {
  margin-top: auto;
  padding-top: 0.55rem;
  font-size: 0.72rem;
}
.card .kicker {
  font-size: 0.62rem;
}

.empty {
  padding: 3rem 0 4rem;
  max-width: 40ch;
}
.empty h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.empty p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- search ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(7, 21, 71, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  padding: 10vh 1rem 1rem;
  animation: fade 160ms ease-out;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.search-panel {
  background: #fff;
  width: min(640px, 100%);
  border-radius: 16px;
  height: fit-content;
  max-height: 76vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px -20px rgba(7, 21, 71, 0.55);
  overflow: hidden;
  border: 1px solid var(--line);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--blue-600);
}
.search-field input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.98rem;
  outline: none;
  color: var(--ink);
}
.search-field kbd {
  font-family: var(--sans);
  font-size: 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 0.1rem 0.35rem;
  color: var(--muted);
}
.search-results {
  overflow-y: auto;
  padding: 0.4rem;
}
.search-hit {
  display: block;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
}
.search-hit:hover,
.search-hit:focus-visible {
  background: var(--blue-wash);
}
.search-hit .kicker {
  font-size: 0.6rem;
}
.search-hit strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0.12rem;
}
.search-hint {
  padding: 0.8rem 1rem 0.95rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- footer ---------- */
.footer {
  background: var(--blue-900);
  color: #b8c8f0;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  padding-block: clamp(1.8rem, 3.4vw, 2.6rem) 1.3rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  padding-bottom: 1.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer .wordmark {
  justify-content: flex-start;
}
.footer .wordmark img {
  width: 156px;
}
.footer-blurb {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-top: 0.9rem;
  max-width: 34ch;
}
.footer h3 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer li a {
  font-family: var(--sans);
  font-size: 0.82rem;
}
.footer li a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: #8497c7;
}
.footer-bottom a:hover {
  color: #fff;
}
.footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ---------- extras ---------- */
.fallback-mark {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  height: 100%;
  min-height: 150px;
  padding: 0.75rem;
  font-family: var(--display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
  background: linear-gradient(145deg, var(--blue-wash), var(--sky-wash));
}

.signal-text {
  color: var(--signal);
}

/* ================================================================== */
/* Advertising                                                        */
/* ================================================================== */

.ad-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 auto;
  width: 100%;
}

.ad-flag {
  font-family: var(--sans);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #a8b3c7;
  order: -1;
}

.ad-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--blue-wash);
  border: 1px solid var(--line);
  padding: 0.8rem 1rem;
  transition: border-color 170ms ease, background-color 170ms ease;
}

.ad-card:hover {
  border-color: var(--blue-500);
  background: var(--sky-wash);
}

.ad-body {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
  flex: 1;
}

.ad-eyebrow {
  font-family: var(--sans);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-500);
}

.ad-headline {
  font-family: var(--display);
  font-weight: 660;
  letter-spacing: -0.018em;
  line-height: 1.2;
  color: var(--blue-800);
  font-size: 0.97rem;
}

.ad-copy {
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 0.3rem;
  text-wrap: pretty;
}

.ad-cta {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--blue-700);
  white-space: nowrap;
  flex: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.ad-card:hover .ad-cta {
  color: var(--blue-500);
}

/* tall units stack */
.ad-tall .ad-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.95rem 1rem 1rem;
}

.ad-tall .ad-headline {
  font-size: 1.02rem;
  line-height: 1.18;
}

.ad-tall .ad-cta {
  margin-top: 0.2rem;
}

.ad-billboard .ad-headline {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
}

.ad-top {
  margin-block: 0.4rem 1.3rem;
  max-width: 970px;
}

.ad-inline {
  margin-block: 1.7rem;
}

/* in-article units align to the text column */
.prose .ad-slot {
  font-family: var(--sans);
  margin-inline: 0;
}
.prose .ad-copy,
.prose .ad-headline,
.prose .ad-cta,
.prose .ad-eyebrow {
  margin: 0;
}

/* footer inventory sits on blue */
.ad-footer {
  margin-bottom: 1.8rem;
}
.ad-footer .ad-card {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);
}
.ad-footer .ad-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
}
.ad-footer .ad-headline {
  color: #fff;
}
.ad-footer .ad-copy {
  color: #b8c8f0;
}
.ad-footer .ad-cta {
  color: #fff;
}
.ad-footer .ad-flag {
  color: #6d80ac;
}

.ad-desk {
  margin-block: 0.2rem 0.8rem;
}
.ad-desk-foot {
  margin-block: 0.8rem 1.8rem;
}
.ad-desk-side,
.ad-story-rail,
.ad-rail {
  margin: 0;
}

/* ================================================================== */
/* GAIP InsureTek promotion                                           */
/* ================================================================== */

.gaip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.4rem, 3.2vw, 2.6rem);
  align-items: center;
  background: var(--blue-800);
  border-radius: 3px;
  padding: clamp(1.1rem, 2.4vw, 1.5rem);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.gaip-main {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.gaip-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.gaip-logo {
  width: 168px;
  height: auto;
  /* the partner mark is dark-on-transparent: knock it out to white */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.gaip-tag {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bfe0fb;
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  padding-left: 0.6rem;
}

.gaip-title {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.14;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gaip-venue {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0;
  color: #a9bdec;
}

.gaip-blurb {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #c6d6fb;
  max-width: 56ch;
}

.gaip-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.55rem;
}

.gaip-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  color: var(--blue-800);
  border-radius: 2px;
  padding: 0.45rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  transition: background 160ms ease;
}

.gaip-cta:hover {
  background: #dfeaff;
}

.gaip-date {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: #a9bdec;
  font-variant-numeric: tabular-nums;
}

.gaip-clock {
  position: relative;
  z-index: 1;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  padding-left: clamp(1.1rem, 2.4vw, 2rem);
  min-width: 0;
}

.gaip-clock-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #8fc6f5;
  margin-bottom: 0.4rem;
}

.gaip-units {
  display: flex;
  gap: clamp(0.5rem, 1.6vw, 1.05rem);
}

.gaip-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.5rem;
}

.gaip-num {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 650;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.gaip-lbl {
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fa7db;
  margin-top: 0.25rem;
}

/* rail treatment */
.gaip-rail {
  grid-template-columns: 1fr;
  padding: 1rem 1.05rem;
  border-radius: var(--r);
}
.gaip-rail .gaip-logo {
  width: 132px;
}
.gaip-rail .gaip-title {
  font-size: 1rem;
}
.gaip-rail .gaip-clock {
  padding: 0.6rem 0.7rem;
}
.gaip-rail .gaip-units {
  justify-content: space-between;
}

/* strip treatment */
.gaip-strip {
  grid-template-columns: minmax(0, 1fr) auto;
  border-radius: var(--r);
  padding: 0.85rem 1rem;
}

@media (max-width: 900px) {
  .gaip {
    grid-template-columns: 1fr;
  }
  .gaip-clock {
    justify-self: start;
  }
}

/* ================================================================== */
/* Spotlight video feed                                              */
/* ================================================================== */

.section-note {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--muted);
  text-align: right;
}

.spotlight {
  padding-block: clamp(1.2rem, 2.4vw, 1.8rem);
  border-top: 1px solid var(--line);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.2vw, 1.6rem);
  align-items: start;
}

.video-lead {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  border-radius: var(--r-lg);
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--blue-900);
  box-shadow: var(--shadow-sm);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.video-lead:hover .video-thumb img {
  transform: scale(1.035);
}

.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 12, 38, 0.55), rgba(4, 12, 38, 0.05) 55%);
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-800);
  padding-left: 4px;
  box-shadow: 0 10px 30px -10px rgba(4, 12, 38, 0.7);
  transition: transform 200ms ease, background 200ms ease;
  z-index: 1;
}

.video-lead:hover .video-play {
  transform: translate(-50%, -50%) scale(1.07);
  background: #fff;
}

.video-duration {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 1;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  background: rgba(4, 12, 38, 0.72);
  border-radius: 4px;
  padding: 0.1rem 0.38rem;
  font-variant-numeric: tabular-nums;
}

.video-meta {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.video-title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  font-weight: 560;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.video-lead:hover .video-title {
  color: var(--blue-700);
}

.video-speaker {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-2);
  font-weight: 550;
}

.video-role {
  color: var(--muted);
  font-weight: 400;
}

.video-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.video-list li + li {
  border-top: 1px solid var(--line);
}

.video-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0.75rem;
  width: 100%;
  border: 0;
  background: none;
  padding: 0.65rem 0;
  text-align: left;
  cursor: pointer;
  align-items: start;
  border-radius: 8px;
}

.video-row-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--blue-900);
}

.video-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.video-row:hover .video-row-thumb img {
  transform: scale(1.06);
}

.video-row-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(4, 12, 38, 0.3);
}

.video-row-text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.video-row-title {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.video-row:hover .video-row-title {
  color: var(--blue-600);
}

.video-row-speaker {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-2);
}

.video-row-tags {
  font-family: var(--sans);
  font-size: 0.68rem;
  color: var(--muted);
}

/* lightbox */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 12, 38, 0.82);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1rem;
  animation: fade 160ms ease-out;
}

.video-panel {
  width: min(940px, 100%);
  background: #0a1330;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: #fff;
}

.video-caption strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.video-caption span {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: #9fb0d8;
}

.video-caption .btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ================================================================== */
/* Opinion strip                                                      */
/* ================================================================== */

/* ================================================================== */
/* Newsletter states                                                  */
/* ================================================================== */

.form-error {
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  line-height: 1.4;
  color: #ffd2c2;
}

.newsletter button:disabled,
.newsletter input:disabled {
  opacity: 0.7;
  cursor: default;
}

.newsletter input[aria-invalid='true'] {
  color: #b42318;
}

/* ================================================================== */
/* Desk page footer block                                             */
/* ================================================================== */

.desk-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(1.2rem, 2.6vw, 2rem);
  align-items: start;
  padding-bottom: 2.5rem;
}

.advertise-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.advertise-strip h3 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.advertise-strip p {
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.55;
  color: #b8c8f0;
  max-width: 52ch;
}

.advertise-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.advertise-strip .btn {
  background: #fff;
  color: var(--blue-900);
  box-shadow: none;
}

.advertise-strip .btn:hover {
  background: var(--sky-wash);
}

.advertise-link {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: #b8c8f0;
}

.advertise-link:hover {
  color: #fff;
}

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

@media (max-width: 900px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
  .desk-foot {
    grid-template-columns: 1fr;
  }
  .desk-foot .ad-slot {
    max-width: 340px;
  }
  .advertise-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.9rem;
  }
}

@media (max-width: 640px) {
  .video-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .opinion-grid {
    grid-template-columns: 1fr;
  }
  .section-note {
    text-align: left;
  }
  .section-head {
    flex-wrap: wrap;
  }
  .ad-top .ad-copy {
    display: none;
  }
  .gaip-logo {
    width: 140px;
  }
}

/* ================================================================== */
/* IBN app promotion                                                   */
/* ================================================================== */

.app-promo {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.2rem) 0 clamp(1.6rem, 3.2vw, 2.4rem);
  border-top: 2px solid var(--ink);
  margin-top: clamp(1.4rem, 2.6vw, 2rem);
}

.app-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 40ch;
}

.app-eyebrow {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue-500);
}

.app-copy h2 {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  font-weight: 640;
  letter-spacing: -0.026em;
  line-height: 1.12;
  margin-top: 0.4rem;
  text-wrap: balance;
}

.app-hl {
  color: var(--blue-800);
}

.app-copy p {
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 0.55rem;
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.app-badges {
  display: flex;
  gap: 0.4rem;
}

/* store marks: real lockups, dark on white */
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.7rem 0.38rem 0.58rem;
  background: #0c1730;
  color: #fff;
  border-radius: 3px;
  transition: background 150ms ease;
}

.app-badge:hover {
  background: var(--blue-800);
}

.app-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.app-badge-small {
  font-family: var(--sans);
  font-size: 0.5rem;
  letter-spacing: 0.03em;
  color: #cfd8ea;
}

.app-badge-big {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.app-coming {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-800);
}

.app-coming-dot {
  width: 6px;
  height: 6px;
  background: var(--signal);
}

.app-try {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--blue-500) 45%, transparent);
  background: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-800);
}

.app-try:hover {
  color: var(--signal);
  border-color: currentColor;
}

/* ---------- the artwork: mesh field, two devices leaning together ------- */

.app-stage {
  position: relative;
  aspect-ratio: 1.12 / 1;
  perspective: 1600px;
  perspective-origin: 50% 42%;
  --tx: 0deg;
  --ty: 0deg;
}

/* Mesh: a deliberate multi-point field in the brand blues so the devices
   sit in colour rather than floating on white. */
.app-mesh {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  overflow: hidden;
  background:
    radial-gradient(58% 62% at 16% 14%, rgba(77, 178, 236, 0.92) 0%, rgba(77, 178, 236, 0) 62%),
    radial-gradient(50% 56% at 88% 6%, rgba(28, 70, 184, 0.9) 0%, rgba(28, 70, 184, 0) 66%),
    radial-gradient(60% 66% at 88% 94%, rgba(255, 90, 31, 0.8) 0%, rgba(255, 90, 31, 0) 60%),
    radial-gradient(70% 66% at 8% 92%, rgba(11, 32, 107, 0.95) 0%, rgba(11, 32, 107, 0) 68%),
    linear-gradient(150deg, #2f6df6 0%, #0b206b 52%, #071547 100%);
}

/* faint measurement grid — spec-sheet texture, not a glow */
.app-mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(160deg, #000 18%, transparent 84%);
}

.device {
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 380ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

/* the tablet sits behind, turned slightly away, holding the frame */
.device-tablet {
  width: 64%;
  right: 4%;
  top: 12%;
  transform: rotateZ(2.4deg) rotateY(calc(-14deg + var(--tx))) rotateX(calc(3deg + var(--ty)));
}

/* the phone leans against its lower-left corner, tipped the other way */
.device-phone {
  width: 27.5%;
  left: 10%;
  bottom: 9%;
  transform: rotateZ(-7.5deg) rotateY(calc(-4deg + var(--tx))) rotateX(calc(2deg + var(--ty)));
  z-index: 2;
}

.device-frame {
  position: relative;
  background: linear-gradient(160deg, #262c42 0%, #0a0f22 48%, #171c2e 100%);
  border-radius: 14px;
  padding: 6px;
  box-shadow:
    0 38px 66px -32px rgba(4, 12, 38, 0.9),
    0 10px 22px -14px rgba(4, 12, 38, 0.65),
    0 1px 0 rgba(255, 255, 255, 0.28) inset;
}

.device-phone .device-frame {
  padding: 4px;
  border-radius: 19px;
}

.device-screen {
  position: relative;
  overflow: hidden;
  background: #05051f;
}

.device-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.device-tablet .device-screen {
  aspect-ratio: 4 / 3;
  border-radius: 9px;
}

.device-phone .device-screen {
  aspect-ratio: 390 / 844;
  border-radius: 16px;
}

.device-notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 7px;
  border-radius: 0 0 7px 7px;
  background: #05051f;
  z-index: 3;
}

/* standing note, clear of both screens */
.app-coming-tag {
  position: absolute;
  left: 4%;
  bottom: 3%;
  background: var(--signal);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.45rem;
  border-radius: 2px;
  transform: rotate(-2deg);
  z-index: 4;
  box-shadow: 0 10px 22px -12px rgba(4, 12, 38, 0.9);
}

/* ---------- overlay for the live web app --------------------------------- */

.app-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(4, 12, 38, 0.84);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.app-overlay-panel {
  width: min(430px, 100%);
  height: min(860px, 92vh);
  background: #05051f;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
}

.app-overlay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0.8rem;
  background: #0a0f22;
  color: #cfd8ea;
  font-family: var(--sans);
  font-size: 0.72rem;
}

.app-overlay-close {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  cursor: pointer;
}

.app-overlay-panel iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #05051f;
}

@media (max-width: 960px) {
  .app-promo {
    grid-template-columns: 1fr;
  }
  .app-stage {
    aspect-ratio: 1.3 / 1;
    order: -1;
  }
}

@media (max-width: 560px) {
  .app-badges {
    flex-wrap: wrap;
  }
  .app-badge-big {
    font-size: 0.76rem;
  }
  .app-stage {
    aspect-ratio: 1.05 / 1;
  }
}

/* ================================================================== */
/* Hero deck — four clean boxes beside the lead                        */
/* ================================================================== */

.hero-deck {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  height: 100%;
}

/* three in one column, each sharing the lead story's height */
.deck-card {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  gap: clamp(0.6rem, 1.1vw, 0.9rem);
  min-width: 0;
  flex: 1;
  align-items: stretch;
  padding-block: clamp(0.6rem, 1.1vw, 0.9rem);
  border-bottom: 1px solid var(--line);
  transition: border-color 160ms ease;
}

.deck-card:first-child {
  padding-top: 0;
}

.deck-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.deck-card:hover {
  border-color: color-mix(in srgb, var(--blue-800) 34%, var(--line));
}

.deck-thumb {
  display: block;
  min-height: 88px;
  overflow: hidden;
  background: var(--sky-wash);
  border-radius: 2px;
}

.deck-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.deck-card:hover .deck-thumb img {
  transform: scale(1.04);
}

.deck-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  justify-content: center;
}

.deck-body h2 {
  font-family: var(--sans);
  font-size: clamp(0.84rem, 0.95vw, 0.95rem);
  font-weight: 630;
  line-height: 1.24;
  letter-spacing: -0.008em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deck-card:hover h2 {
  color: var(--blue-700);
}

.deck-body .byline {
  margin-top: 0.1rem;
}

.deck-body .kicker {
  margin-bottom: 0.02rem;
}

/* ================================================================== */
/* Rating watch — one live line, half a panel's height                 */
/* ================================================================== */

.rating-watch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 clamp(0.7rem, 1.4vw, 1.2rem);
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(1.1rem, 2vw, 1.5rem);
}

.rw-head {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding-right: clamp(0.7rem, 1.4vw, 1.2rem);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.rw-head h2 {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--blue-800);
}

.rw-source {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
}

.rw-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  animation: rw-in 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes rw-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
}

.rw-line:hover .rw-text {
  color: var(--blue-700);
}

.rw-text {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--ink-2);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 150ms ease;
}

.rw-text strong {
  font-weight: 650;
  color: var(--ink);
}

.rw-date {
  font-family: var(--sans);
  font-size: 0.64rem;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rw-outlook {
  font-family: var(--sans);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.16rem 0.4rem;
  color: #fff;
  background: var(--blue-800);
  flex: none;
}

.rw-outlook.is-negative {
  background: var(--signal);
}

.rw-outlook.is-positive {
  background: #0f7a4f;
}

.rw-outlook.is-stable {
  background: var(--blue-600);
}

.rw-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rw-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rw-dots button {
  width: 16px;
  height: 3px;
  border: 0;
  padding: 0;
  background: color-mix(in srgb, var(--blue-800) 20%, transparent);
  cursor: pointer;
  transition: background 160ms ease, width 160ms ease;
}

.rw-dots button.is-on {
  width: 26px;
  background: var(--blue-800);
}

.rw-arrow {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  color: var(--blue-500);
  transition: transform 150ms ease, color 150ms ease;
}

.rw-arrow:hover {
  transform: translateX(2px);
  color: var(--signal);
}

/* ================================================================== */
/* The desks + newsroom                                                */
/* ================================================================== */

.closing {
  padding-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

.desk-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.2rem, 2.4vw, 2rem);
}

.desk-col {
  padding: 0.8rem 0 0.9rem;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.desk-col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.32rem;
}

.desk-col-head h3 {
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-800);
}

.desk-col-head a {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--muted);
}

.desk-col-head a:hover {
  color: var(--signal);
}

.desk-lead {
  display: block;
}

.desk-headline {
  display: block;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 620;
  line-height: 1.26;
  letter-spacing: -0.006em;
  color: var(--ink);
}

.desk-lead:hover .desk-headline {
  color: var(--blue-700);
}

.desk-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  color: var(--muted);
  margin-top: 0.18rem;
}

.desk-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.desk-list li + li {
  border-top: 1px solid var(--line);
}

.desk-list a {
  display: block;
  padding: 0.3rem 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.34;
  color: var(--ink-2);
}

.desk-list a:hover {
  color: var(--blue-700);
}

/* newsroom: full-width, three columns of dated rows */
.newsroom-list {
  border-top: 2px solid var(--ink);
  margin-top: clamp(1.2rem, 2.4vw, 1.8rem);
  padding-top: 0.6rem;
}

.newsroom-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.newsroom-head h3 {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
}

.newsroom-head a {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--muted);
}

.newsroom-head a:hover {
  color: var(--signal);
}

.newsroom-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.2rem, 2.4vw, 2rem);
}

.newsroom-list li {
  min-width: 0;
  border-top: 1px solid var(--line);
}

.newsroom-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 0.6rem;
  padding: 0.45rem 0;
}

.newsroom-list a:hover .nl-title {
  color: var(--blue-700);
}

.nl-desk {
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 0.12rem;
}

.nl-title {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 550;
  line-height: 1.32;
  color: var(--ink);
  transition: color 140ms ease;
}

.nl-date {
  font-family: var(--sans);
  font-size: 0.62rem;
  color: var(--muted);
  white-space: nowrap;
  align-self: start;
  padding-top: 0.1rem;
}

@media (max-width: 1080px) {
  .lead-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .lead-body {
    max-width: 60ch;
  }
  .hero-deck {
    grid-auto-rows: auto;
  }
  .desk-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .newsroom-list ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .rating-watch {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 0.8rem;
  }
  .rw-head {
    padding-right: 0;
    border-right: 0;
  }
  .rw-text {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .rw-date {
    display: none;
  }
  .rw-nav {
    justify-self: end;
  }
  .hero-deck {
    grid-template-columns: minmax(0, 1fr);
  }
  .desk-cols,
  .newsroom-list ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ================================================================== */
/* Opinion — a box inside the Latest reporting column                  */
/* ================================================================== */

.opinion-box {
  margin-top: auto;
  padding-top: 0;
  transform: translateY(clamp(1rem, 1.8vw, 1.4rem));
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue-800);
  background: linear-gradient(180deg, #eef4ff 0%, #fbfcff 62%, #fff 100%);
}

.opinion-box-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem 0.4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--blue-800) 14%, transparent);
}

.opinion-box-head h2 {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--blue-800);
}

.opinion-box-head span {
  font-family: var(--sans);
  font-size: 0.6rem;
  color: var(--muted);
}

.opinion-box ul {
  list-style: none;
  margin: 0;
  padding: 0 0.7rem;
}

.opinion-box li + li {
  border-top: 1px solid color-mix(in srgb, var(--blue-800) 11%, transparent);
}

.opinion-box a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.55rem;
  padding: 0.5rem 0;
}

.opinion-box img,
.opinion-box-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--blue-800) 18%, transparent);
}

.opinion-box-initials {
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--blue-800);
  background: #fff;
}

.opinion-box-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.opinion-box-name {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 680;
  line-height: 1.2;
  color: var(--ink);
}

.opinion-box-line {
  font-family: var(--sans);
  font-size: 0.74rem;
  line-height: 1.36;
  color: var(--ink-2);
  margin-top: 0.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opinion-box-arrow {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--blue-500);
  opacity: 0;
  transition: opacity 150ms ease, transform 150ms ease;
}

.opinion-box a:hover .opinion-box-arrow {
  opacity: 1;
  transform: translateX(2px);
}

.opinion-box a:hover .opinion-box-name {
  color: var(--blue-800);
}

.opinion-box a:hover .opinion-box-line {
  color: var(--blue-700);
}

/* ================================================================== */
/* Balances: analysis column and a taller rail                         */
/* ================================================================== */

/* all three columns share one baseline; leftover space is distributed
   inside them rather than left as a white band underneath */
.desked {
  align-items: stretch;
}

.desked > section,
.desked > .rail,
.desked > aside {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.desked > section > .story-stack {
  min-height: 0;
}

.feature-mid {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.analysis-more {
  margin-top: 0.2rem;
  border-top: 1px solid var(--line);
}

.analysis-more .story-row:first-child {
  padding-top: 0.8rem;
}

.quote-card {
  margin-top: auto;
}

/* the rail's last block takes the slack so the column ends level */
.rail > .rail-block:last-child {
  margin-top: auto;
}

.most-read li {
  padding-block: 1px;
}

.topic-cloud {
  gap: 0.3rem;
}

.topic-cloud a {
  border-radius: 2px;
  font-size: 0.72rem;
  padding: 0.24rem 0.5rem;
}

/* partner-event copy: venue and date on their own lines, with a rule between */
.ad-copy-line {
  display: block;
}

.ad-copy-line + .ad-copy-line {
  margin-top: 0.15rem;
}

.ad-copy-sep {
  display: none;
}

/* ================================================================== */
/* Masthead on narrow screens                                          */
/* ================================================================== */

@media (max-width: 860px) {
  .masthead-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding-block: 0.7rem;
  }

  /* the standing line is the first to go: it is context, not navigation */
  .masthead-inner > .masthead-meta:not(.right) {
    display: none;
  }

  .wordmark {
    flex: 1 0 100%;
    justify-content: center;
  }

  .wordmark img {
    width: clamp(150px, 42vw, 190px);
  }

  .masthead-meta.right {
    flex: 1 0 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.72rem;
  }

  .masthead-meta.right > div:last-child {
    display: flex;
    gap: 0.4rem;
  }

  .nav-inner {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-inner::-webkit-scrollbar {
    display: none;
  }
}

/* ================================================================== */
/* Narrow-screen stacking (added with the desk/opinion rework)         */
/* ================================================================== */

@media (max-width: 1040px) {
  .desked {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  .desked > .rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    align-items: start;
  }
  .rail > .rail-block:last-child {
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  .desked {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }
  .desked > .rail {
    grid-template-columns: minmax(0, 1fr);
  }
  .opinion-box {
    margin-top: 1.2rem;
    transform: none;
  }
  .deck-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .deck-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.6rem;
  }
  .deck-thumb {
    min-height: 68px;
  }
  .hero-deck {
    height: auto;
  }
  .lead-story {
    min-height: 380px;
  }
  .lead-body {
    padding: 1rem;
  }
}

/* ================================================================== */
/* Sticky section bar: white at the top, brand blue while pinned       */
/* ================================================================== */

.nav {
  transition: background-color 200ms ease, border-color 200ms ease;
}

.nav.is-stuck {
  background: var(--blue-800);
  border-bottom-color: var(--blue-800);
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(7, 21, 71, 0.18);
}

.nav.is-stuck .nav-link {
  color: rgba(255, 255, 255, 0.84);
}

.nav.is-stuck .nav-link:hover,
.nav.is-stuck .nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.nav.is-stuck .nav-link.active {
  background: #fff;
  color: var(--blue-800);
}

.nav.is-stuck .icon-btn {
  color: rgba(255, 255, 255, 0.84);
}

.nav.is-stuck .icon-btn:hover,
.nav.is-stuck .icon-btn:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.nav.is-stuck .nav-spacer {
  border-color: rgba(255, 255, 255, 0.2);
}
