/* Ponte.IA - shared tokens and layout
   Editorial briefing: written-first, one deep-teal accent, hairline cards. */

:root {
  --bg: #f4f5f3;
  --surface: #ffffff;
  --ink: #1a1f1c;
  --muted: #5c6560;
  --line: #d8ddd8;
  --accent: #0f6b5c;
  --accent-soft: rgba(15, 107, 92, 0.1);
  --accent-hover: #0b5549;
  --on-accent: #ffffff;
  --radius: 8px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(26, 31, 28, 0.04);
  --max: 1120px;
  --nav-h: 64px;
  --font: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --focus: 0 0 0 3px rgba(15, 107, 92, 0.35);
  --transition: 160ms ease;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* ── Layout ─────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 2.5rem 0;
}

.section--tight {
  padding: 1.75rem 0;
}

.section--band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

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

.section-head .section-title {
  margin: 0;
}

.section-head__more {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.section-deck {
  margin: -0.5rem 0 1.25rem;
  color: var(--muted);
  max-width: 52ch;
  font-size: 0.98rem;
}

.page-shell {
  /* Só vertical: horizontal vem do .wrap (mesmo nó no HTML). */
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.page-shell--narrow {
  max-width: 720px;
}

.page-intro {
  margin-bottom: 1.75rem;
  max-width: 52ch;
}

.page-intro__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-intro__deck {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.muted {
  color: var(--muted);
}

.crumb {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.crumb a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.crumb a:hover {
  color: var(--accent);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: var(--shadow);
  transition: border-color var(--transition);
}

.tool-card:hover {
  border-color: rgba(15, 107, 92, 0.35);
}

.tool-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

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

.tool-card__title a:hover {
  color: var(--accent);
}

.tool-card__deck {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

.tool-prompt-block {
  margin-top: 2rem;
  max-width: 65ch;
}

.tool-prompt-block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.tool-prompt {
  margin: 0;
  padding: 1rem 1.1rem;
  background: #eef2ef;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
}

.tool-prompt code {
  font-family: inherit;
}

.callout {
  max-width: 65ch;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.5;
}

.callout--warn {
  border-color: rgba(15, 107, 92, 0.35);
  background: var(--accent-soft);
}

.form-note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 48ch;
}

.newsletter--cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ── Nav ────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: rgba(244, 245, 243, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo:hover {
  color: var(--ink);
}

.logo__name {
  font-weight: 700;
}

.logo__ia {
  font-weight: 500;
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav__links a:hover {
  color: var(--accent);
}

.nav__links a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

.nav__panel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.nav__panel > .btn {
  display: none;
}

.nav__toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* ── Chips ──────────────────────────────────────────────── */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.4;
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.chip--muted {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.8125rem;
  padding: 0.1rem 0.5rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.meta time {
  font-variant-numeric: tabular-nums;
}

/* ── Media (editorial images) ───────────────────────────── */

.media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #e4e8e5;
  display: block;
  position: relative;
  width: 100%;
}

.media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

.media > a {
  display: block;
  width: 100%;
  height: 100%;
}

.media--lead {
  aspect-ratio: 16 / 9;
  max-height: 420px;
}

.media--lead img,
.media--article img,
.media--rail img,
.media--thumb img,
.media--newsletter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.media--lead,
.media--article,
.media--rail,
.media--thumb,
.media--newsletter {
  /* absolute img precisa de caixa com altura real */
  min-height: 1px;
}

.media--article {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  margin: 0 0 1.75rem;
}

.media--rail {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius) var(--radius) 0 0;
  border: none;
  border-bottom: 1px solid var(--line);
}

.media--thumb {
  width: 5.5rem;
  min-width: 5.5rem;
  aspect-ratio: 1;
  border-radius: 6px;
  flex-shrink: 0;
}

.media--newsletter {
  width: 7.5rem;
  min-width: 7.5rem;
  aspect-ratio: 1;
  border-radius: var(--radius);
  flex-shrink: 0;
}

/* ── Lead ───────────────────────────────────────────────── */

.lead-block {
  padding: 1.5rem 0 1.75rem;
}

.lead__media {
  margin: 0 0 1.35rem;
}

.lead__media a {
  display: block;
  text-decoration: none;
}

.lead__media .media {
  transition: opacity var(--transition);
}

.lead__media a:hover .media {
  opacity: 0.94;
}

.lead {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  align-items: start;
}

.lead__kicker {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

.lead__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

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

.lead__title a:hover {
  color: var(--accent);
}

.lead__deck {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.5;
}

.lead__aside {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
}

.note-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.note-item:first-child {
  padding-top: 0;
}

.note-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.note-item__title {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.note-item__title a {
  color: var(--ink);
  text-decoration: none;
}

.note-item__title a:hover {
  color: var(--accent);
}

/* ── Feed (Últimas) ─────────────────────────────────────── */

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.feed__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.feed__item--text {
  grid-template-columns: 1fr auto;
}

.feed__title {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

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

.feed__title a:hover {
  color: var(--accent);
}

.feed__date {
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-top: 0.15rem;
}

/* ── Vídeo da semana (secondary) ────────────────────────── */

.video-week {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.video-week__thumb {
  position: relative;
  display: block;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e4e8e5;
  text-decoration: none;
}

.video-week__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-week__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 31, 28, 0.28);
  transition: background var(--transition);
}

.video-week__thumb:hover .video-week__play {
  background: rgba(26, 31, 28, 0.4);
}

.video-week__play span {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(26, 31, 28, 0.15);
}

.video-week__body {
  padding: 0.25rem 0.5rem 0.25rem 0;
}

.video-week__title {
  margin: 0.5rem 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.video-week__title a {
  color: var(--ink);
  text-decoration: none;
}

.video-week__title a:hover {
  color: var(--accent);
}

.video-week__blurb {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 48ch;
}

/* ── Themes (auto index) ────────────────────────────────── */

.themes {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.theme-block__title {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.theme-block__count {
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
}

.theme-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.theme-list__item {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.theme-list__item:last-child {
  border-bottom: none;
}

.theme-list__item a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
}

.theme-list__item a:hover {
  color: var(--accent);
}

/* legacy rails (unused by builder, kept for safety) */
.rails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.rail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rail__body {
  padding: 1rem 1.2rem 1.15rem;
}

.rail__title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail__list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.rail__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rail__list a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.35;
}

.rail__list a:hover {
  color: var(--accent);
}

/* ── Newsletter ─────────────────────────────────────────── */

.newsletter {
  display: grid;
  grid-template-columns: auto 1.2fr 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}

.newsletter__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.newsletter__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 40ch;
}

.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.newsletter__form input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
}

.newsletter__form input[type="email"]::placeholder {
  color: #8a938e;
}

.newsletter__form .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.newsletter__hint {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.newsletter__hint--muted {
  font-style: normal;
}

.newsletter__status {
  grid-column: 1 / -1;
  margin: 0.35rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.45;
}

.newsletter__status--ok {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid rgba(15, 107, 92, 0.22);
}

.newsletter__status--err {
  background: #fdecec;
  color: #8a1f1f;
  border: 1px solid #f0c4c4;
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  margin-top: 1rem;
  padding: 2.25rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.site-footer .logo {
  margin-bottom: 0.65rem;
}

.site-footer p {
  margin: 0 0 0.65rem;
  max-width: 42ch;
  line-height: 1.55;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}

/* ── Article page ───────────────────────────────────────── */

/* Coluna de leitura centralizada (não espremida à esquerda).
   padding horizontal precisa ser explícito: .article e .wrap
   competem no shorthand e o .article vinha zerando laterais no mobile. */
main.article.wrap {
  max-width: 46rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1.25rem 3rem;
  box-sizing: border-box;
}

/* Não usar padding shorthand em .article: no HTML o main é "article wrap"
   e o shorthand zera as laterais do .wrap. O padding real está em main.article.wrap. */
.article {
  padding: 0;
}

.article__header {
  max-width: none;
  width: 100%;
  margin-bottom: 1.75rem;
}

.article__title {
  margin: 0.65rem 0 0.85rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.article__deck {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.5;
}

.article__byline {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.article__body {
  max-width: none;
  width: 100%;
}

.article__body p {
  margin: 0 0 1.1rem;
}

.article__figure {
  margin: 1.35rem 0 1.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.article__figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #fff;
}

.article__figure figcaption {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

.article__body h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.article__source {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.article__source a,
.article__body a {
  color: var(--accent);
  text-underline-offset: 0.15em;
  word-break: break-word;
}

.article__body code {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #eef2ef;
  border: 1px solid var(--line);
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  font-size: 0.9em;
}

.article__related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: none;
  width: 100%;
}

.article__related h2 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.related-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.related-list a:hover {
  color: var(--accent);
}

.article-video {
  margin-top: 2rem;
  max-width: 65ch;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.article-video h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.article-video__link {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.article-video__link img {
  border-radius: 6px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  background: #e4e8e5;
}

.article-video__link strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.article-video__link span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Utilities ──────────────────────────────────────────── */

.sr-only {
  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;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .lead {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .lead__aside {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
  }

  .media--lead {
    max-height: 260px;
  }

  .rails {
    grid-template-columns: 1fr;
  }

  .newsletter {
    grid-template-columns: 1fr;
  }

  .media--newsletter {
    width: 100%;
    max-width: 12rem;
    aspect-ratio: 16 / 10;
  }

  .video-week {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav__panel {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.75rem;
  }

  .nav__panel.is-open {
    display: flex;
  }

  .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav__cta {
    display: none;
  }

  .nav__panel > .btn {
    display: inline-flex;
    width: 100%;
  }

  .feed__item {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
  }

  .feed__item--text {
    grid-template-columns: 1fr;
  }

  .feed__date {
    grid-column: 2;
    padding-top: 0;
  }

  .feed__item--text .feed__date {
    grid-column: 1;
  }

  .media--thumb {
    width: 4.25rem;
    min-width: 4.25rem;
  }

  .article-video__link {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2rem 0;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-wrap: wrap;
  }

  .wrap {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  main.article.wrap {
    padding: 1.5rem 1.25rem 2.5rem;
  }

  .page-shell {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }
}

@media (min-width: 769px) and (max-width: 980px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
