/* ────────────────────────────────────────────────────────────────────────────
   The Daily Wail — production stylesheet
   Migrated from daily_wail_sotu.html, daily_wail_is_this_thing_on.html,
   and daily_wail_your_friends_and_neighbors.html.

   Lives at /wail/assets/wail.css on the public site.
   Edit once, all pieces inherit. Don't duplicate inline.
   ──────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Open+Sans:wght@400;600;700&family=Merriweather:wght@400;700;900&display=swap');

:root {
  --wail-blue:    #003580;
  --wail-blue-d:  #002a66;
  --wail-red:     #cc0000;
  --wail-gold:    #d4a017;
  --text-dark:    #1a1a1a;
  --text-body:    #333;
  --text-mute:    #888;
  --bg-cream:     #faf8f5;
  --border-light: #e0ddd8;
  --sidebar-bg:   #f5f0ea;
  --disclaimer:   #1a1a1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: var(--bg-cream);
  color: var(--text-body);
  line-height: 1.6;
}

/* ── Masthead, nav, breaking band ──────────────────────────────────────── */

.masthead {
  background: var(--wail-blue);
  padding: 12px 0 0;
  text-align: center;
  border-bottom: 4px solid var(--wail-red);
}
.masthead-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 14px;
}

/* Thin top + bottom outer rules (white on blue) */
.masthead-rule-thin {
  border-top: 1px solid #fff;
  opacity: 0.7;
  margin: 0 0 6px;
}
.masthead-rule-thin:last-child {
  margin: 6px 0 0;
}

/* Top strip — edition info (left) + CTA pill cluster (right).
   Replaces the old full-width .masthead-edition-bar. */
.masthead-topstrip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 4px 4px;
}
.topstrip-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8cb4d8;
}
.topstrip-left span { white-space: nowrap; }
.topstrip-left span:not(:last-child)::after {
  content: '·';
  margin: 0 0.7em;
  color: #5b7fb0;
}

/* CTA pill cluster — two equal gold-outline segments joined into one ellipse
   (tabloid subscribe furniture). Shared by the masthead top strip and the
   footer. White text on the blue field; gold-fill on hover. Sign-Up is
   internal (/subscribe); Shop is the external Shopify storefront. */
.mh-cta {
  display: inline-flex;
  border: 1px solid var(--wail-gold);
  border-radius: 999px;
  overflow: hidden;
}
.mh-cta a {
  padding: 7px 20px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: transparent;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.mh-cta a + a {
  border-left: 1px solid rgba(212, 160, 23, 0.5);   /* --wail-gold @ 0.5 */
}
.mh-cta a:hover {
  background: var(--wail-gold);
  color: var(--wail-blue);
}
.mh-cta a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Double rule: thin over thick (above wordmark) */
.masthead-rule-double-down {
  border-top: 1px solid #fff;
  height: 3px;
  border-bottom: 3px solid #fff;
  margin: 0 0 22px;
}
/* Double rule: thick over thin (below wordmark) */
.masthead-rule-double-up {
  border-top: 3px solid #fff;
  height: 3px;
  border-bottom: 1px solid #fff;
  margin: 22px 0 6px;
}

/* Imprint line above wordmark — small, wide-tracked caps */
.masthead-imprint {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: #fff;
  padding-left: 0.45em;  /* optical centering against the wide tracking */
  margin-bottom: 4px;
}

/* Wordmark — Playfair Display, white, title case, dominant */
.masthead-wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 5rem;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.005em;
  margin: 0;
  text-transform: none;
}
.masthead-wordmark a {
  color: inherit;
  text-decoration: none;
}
.masthead-wordmark a:hover {
  text-decoration: none;
  opacity: 0.92;
}
.masthead-wordmark a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

/* Italic subline below wordmark */
.masthead-subline {
  font-family: 'Merriweather', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #fff;
  margin-top: 14px;
}

/* Slogan bar (bottom: slogan + edition label) */
.masthead-slogan-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.8rem;
  color: #8cb4d8;
  padding: 4px 6px;
}
.masthead-slogan {
  font-style: italic;
  color: #fff;
}
.masthead-edition-label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.ai-notice-bar {
  background: var(--wail-red);
  color: white;
  text-align: center;
  padding: 6px 20px;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-bar {
  background: var(--wail-blue-d);
  padding: 6px 0;
  text-align: center;
  border-bottom: 1px solid #001d4a;
}
.nav-bar a {
  color: #8cb4d8;
  text-decoration: none;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin: 0 14px;
}
.nav-bar a:hover { color: white; }

.breaking {
  background: var(--wail-red);
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: wail-pulse 2s ease-in-out infinite;
}
@keyframes wail-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.85; } }

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

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

.headline-section {
  padding: 30px 0 20px;
  border-bottom: 3px solid var(--text-dark);
}
.kicker {
  font-size: 0.75rem;
  color: var(--wail-red);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 10px;
}
.main-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1.12;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.sub-headline {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.5;
  color: #555;
  font-weight: 400;
  margin-bottom: 16px;
  border-left: 3px solid var(--wail-red);
  padding-left: 14px;
}

/* ── Bullet summary (briefs only) ──────────────────────────────────────── */

.bullet-summary {
  background: var(--sidebar-bg);
  padding: 18px 22px;
  margin: 20px 0;
  border-left: 4px solid var(--wail-red);
}
.bullet-summary ul { list-style: none; padding: 0; }
.bullet-summary li {
  padding: 6px 0 6px 18px;
  position: relative;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-dark);
}
.bullet-summary li::before {
  content: '►';
  position: absolute;
  left: 0;
  color: var(--wail-red);
  font-size: 0.6rem;
  top: 10px;
}
.bullet-summary li strong { color: var(--text-dark); }

/* ── Hero image ────────────────────────────────────────────────────────── */

.hero-figure { margin: 20px 0 24px; }
.hero-figure img { width: 100%; height: auto; display: block; }
.hero-figure figcaption {
  font-size: 0.75rem;
  color: var(--text-mute);
  padding: 8px 0;
  font-style: italic;
  border-bottom: 1px solid var(--border-light);
}

/* ── Byline — tier-aware ───────────────────────────────────────────────── */

.byline-block {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}
.byline {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--wail-blue);
  letter-spacing: 1px;
}
.byline-sub {
  font-size: 0.72rem;
  color: var(--text-mute);
  margin-top: 2px;
}

/* Editorial byline gets per-voice accent + portrait */
.byline-block.editorial {
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 4px solid var(--accent, var(--wail-blue));
  padding-left: 14px;
}
.byline-block.editorial .byline-portrait {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent, var(--wail-blue));
}
.byline-block.editorial .byline-text { flex: 1; }
.byline-block.editorial .byline { color: var(--accent, var(--wail-blue)); }

/* Staff byline gets uniform Wail-blue, no portrait */
.byline-block.staff {
  border-left: 4px solid var(--wail-blue);
  padding-left: 14px;
}

/* ── Article body ──────────────────────────────────────────────────────── */

.article-body p {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 18px;
  color: var(--text-body);
}
.article-body strong { color: var(--text-dark); }
.article-body em { font-style: italic; }
.article-body a { color: var(--wail-blue); }

/* Drop cap on the first paragraph of column-format pieces */
.article-body.column > p:first-of-type::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  float: left;
  font-size: 4.2rem;
  line-height: 0.8;
  padding-right: 8px;
  padding-top: 6px;
  color: var(--wail-red);
  font-weight: 900;
}

/* ── Article footer + trace + disclaimer ───────────────────────────────── */

.article-footer {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 3px solid var(--text-dark);
}

.trace-log {
  font-family: 'Open Sans', monospace;
  font-size: 0.68rem;
  color: var(--text-mute);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}
.trace-log .trace-label {
  color: var(--wail-red);
  font-weight: 700;
  margin-right: 8px;
}

.disclaimer {
  background: var(--disclaimer);
  color: #999;
  padding: 22px 24px;
  font-size: 0.72rem;
  line-height: 1.7;
  margin-top: 20px;
}
.disclaimer strong { color: #ccc; }
.disclaimer em { color: #777; font-style: italic; }


.site-footer {
  background: var(--wail-blue);
  color: #8cb4d8;
  text-align: center;
  padding: 20px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.site-footer a { color: #ffffff; text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--wail-red); }

/* Footer CTA pills — the same .mh-cta cluster as the masthead, centered below
   the footer line. Rendered by _footer.html.j2, every page. The footer band is
   Wail-blue, so the white pill text reads exactly as it does in the masthead. */
.footer-cta-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

/* ── Mobile ────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .masthead-wordmark { font-size: 2.8rem; }
  .masthead-imprint { font-size: 0.78rem; letter-spacing: 0.32em; }
  .masthead-subline { font-size: 0.75rem; }
  .masthead-topstrip { flex-direction: column; gap: 10px; }
  .topstrip-left { justify-content: center; font-size: 0.55rem; letter-spacing: 0.12em; }
  .masthead-slogan-bar { font-size: 0.68rem; }
  .masthead-edition-label { font-size: 0.58rem; }
  .main-headline { font-size: 1.7rem; }
  .nav-bar a { margin: 0 6px; font-size: 0.6rem; }
  .byline-block.editorial { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ── Index surfaces (homepage, vertical landings, archive) ─────────────── */

.home-hero {
  margin: 30px 0;
  padding: 0 0 30px;
  border-bottom: 3px solid var(--text-dark);
}
.home-hero .kicker { font-size: 0.85rem; }
.home-hero .main-headline {
  font-size: 3.2rem;
  margin-bottom: 14px;
}
.home-hero .main-headline a { color: inherit; text-decoration: none; }
.home-hero .main-headline a:hover { color: var(--wail-red); }
.home-hero .sub-headline { font-size: 1.25rem; }

.section-head {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--wail-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 30px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--wail-red);
}
.section-head a { color: inherit; text-decoration: none; }
.section-head a:hover { color: var(--wail-red); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}
.card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Section lead — full row width, horizontal layout (image left, body right) */
.wail-card--lead {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 3px solid var(--text-dark);
}
.wail-card--lead a {
  display: contents;  /* let children participate in the parent grid */
}
.wail-card--lead .card-thumb {
  margin-bottom: 0;
  aspect-ratio: 16 / 10;
}
.wail-card--lead .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4px 0 0;
}
.wail-card--lead .card-kicker {
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  margin-bottom: 10px;
}
.wail-card--lead .card-headline {
  font-size: 2.1rem;
  line-height: 1.08;
  margin-bottom: 14px;
}
.wail-card--lead .card-subhead {
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 14px;
}
.wail-card--lead.wail-card--no-image {
  grid-template-columns: 1fr;
}
.wail-card--lead.wail-card--no-image a {
  display: block;
}

.wail-card {
  border-bottom: 1px solid var(--border-light);
  padding: 0 0 16px;
  display: flex;
  flex-direction: column;
  background: transparent;
}
.wail-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.wail-card a:hover .card-headline { color: var(--wail-red); }

.card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--sidebar-bg);
  overflow: hidden;
  margin-bottom: 12px;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.wail-card a:hover .card-thumb img { transform: scale(1.02); }

.card-body { padding: 0 4px; }

.wail-card--no-image .card-body {
  padding-top: 16px;
  border-top: 3px solid var(--wail-blue);
}
.card-kicker {
  font-size: 0.65rem;
  color: var(--wail-red);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 6px;
}
.card-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 8px;
  transition: color 0.15s ease;
}
.card-subhead {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-body);
  margin-bottom: 10px;
}
.card-meta {
  font-size: 0.7rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.card-byline { color: var(--wail-blue); }
.card-date { margin-left: 8px; }
.card-meta .sep { margin: 0 6px; color: var(--border-light); }

.vertical-section { margin-bottom: 10px; }

.vertical-header {
  padding: 30px 0 24px;
  border-bottom: 3px solid var(--text-dark);
  margin-bottom: 20px;
}
.vertical-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 3rem;
  color: var(--wail-blue);
  margin-bottom: 8px;
  line-height: 1.05;
}
.vertical-header .tagline {
  font-family: 'Merriweather', Georgia, serif;
  font-style: italic;
  color: var(--text-mute);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.vertical-header .count {
  font-size: 0.72rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.article-list .wail-card { padding: 18px 0; }

.archive-day { margin-bottom: 32px; }
.archive-day-header {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--wail-red);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.archive-day-vertical-group { margin-bottom: 18px; }
.archive-day-vertical-name {
  font-size: 0.7rem;
  color: var(--wail-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 6px;
}
.archive-item {
  padding: 5px 0;
  font-size: 0.95rem;
  line-height: 1.4;
}
.archive-item a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
}
.archive-item a:hover { color: var(--wail-red); }
.archive-kicker {
  color: var(--wail-red);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-right: 8px;
  font-weight: 700;
}

.back-link {
  text-align: center;
  margin: 40px 0 20px;
  font-size: 0.85rem;
}
.back-link a {
  color: var(--wail-blue);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.back-link a:hover { color: var(--wail-red); }

/* ── Slashed zero overlay for leet-speak names ───────────────────────────
   Trademark posture requires the zero to read visibly as a digit, not as
   the letter 'o'. Playfair Display's '0' glyph is a closed oval that's
   nearly identical to a lowercase 'o' at most sizes — so we overlay a
   diagonal slash to disambiguate. Applied via the |leet_zero filter
   wherever a display_name renders visibly (not in alt attributes).

   The slash angle (-65deg) approximates a real OpenType slashed zero —
   internal to the glyph, top-right to bottom-left, not extending outside
   like the Scandinavian Ø.
*/
.leet-zero {
  display: inline-block;
  position: relative;
}
.leet-zero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.7em;
  height: 0.085em;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(-65deg);
  pointer-events: none;
}

/* ── Writers / Newsroom page ─────────────────────────────────────────── */

.writers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin: 24px 0 40px;
}

.writer-card {
  --accent: var(--wail-blue);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  padding: 20px 22px 22px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--accent);
}

.writer-portrait {
  width: 140px;
  height: 140px;
  background: var(--sidebar-bg);
  overflow: hidden;
  border-radius: 2px;
}
.writer-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.writer-portrait--missing {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}

.writer-body { min-width: 0; }

.writer-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 1.55rem;
  line-height: 1.05;
  color: var(--text-dark);
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}

.writer-role {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.writer-tagline {
  font-family: 'Merriweather', Georgia, serif;
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-body);
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 2px solid var(--accent);
}

.writer-bio {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-body);
  margin-bottom: 14px;
}
.writer-bio p { margin-bottom: 8px; }
.writer-bio p:last-child { margin-bottom: 0; }

.writer-recent {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.writer-recent-head {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 8px;
}
.writer-recent-more {
  letter-spacing: 0.08em;
  font-weight: 400;
  text-transform: none;
  color: var(--text-mute);
}
.writer-recent ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.writer-recent li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--border-light);
}
.writer-recent li:last-child { border-bottom: none; }
.writer-recent li a {
  color: var(--text-dark);
  text-decoration: none;
  flex: 1;
  min-width: 0;
}
.writer-recent li a:hover .writer-recent-headline { color: var(--wail-red); }
.writer-recent-kicker {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wail-red);
  margin-bottom: 2px;
}
.writer-recent-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
  transition: color 0.15s ease;
}
.writer-recent-date {
  flex-shrink: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}
.writer-recent-none {
  font-family: 'Merriweather', Georgia, serif;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--text-mute);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

@media (max-width: 600px) {
  .home-hero .main-headline { font-size: 2rem; }
  .vertical-header h2 { font-size: 2rem; }
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-grid--three { grid-template-columns: 1fr; }
  .wail-card--lead { grid-template-columns: 1fr; gap: 14px; }
  .wail-card--lead a { display: block; }
  .wail-card--lead .card-thumb { margin-bottom: 12px; aspect-ratio: 4 / 3; }
  .wail-card--lead .card-headline { font-size: 1.5rem; }
  .wail-card--lead .card-subhead { font-size: 0.9rem; }
  .writers-grid { grid-template-columns: 1fr; gap: 20px; }
  .writer-card { grid-template-columns: 100px 1fr; gap: 16px; padding: 16px; }
  .writer-portrait, .writer-portrait--missing { width: 100px; height: 100px; }
  .writer-portrait--missing { font-size: 2.8rem; }
  .writer-name { font-size: 1.3rem; }
}


/* ═══════════════════════════════════════════════════════════════
   AIW Tip Button — append to /wail/assets/wail.css
   ───────────────────────────────────────────────────────────────
   Used by _tip_button.html.j2. Two variants:
     .aiw-tip                 — light card, default
     .aiw-tip.on-dark         — for dark surfaces (footer band)
     .aiw-tip-band            — full-width Wail-blue footer band
   No JavaScript. No third-party load until click.
   Visually distinct from AdSense units (Wail-red rule + serif
   display label signals editorial chrome, not advertising).
   ═══════════════════════════════════════════════════════════════ */

.aiw-tip-wrap {
  margin: 40px auto 32px;
  display: flex;
  justify-content: center;
}

.aiw-tip {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--text-dark, #1a1a1a);
  border-left: 5px solid var(--wail-red, #cc0000);
  padding: 16px 20px 14px;
  text-align: center;
  color: var(--text-dark, #1a1a1a);
  transition: background 0.18s ease, transform 0.18s ease;
  max-width: 280px;
  margin: 0 auto;
  position: relative;
}

.aiw-tip::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  height: 1px;
  background: var(--text-dark, #1a1a1a);
  opacity: 0.18;
}

.aiw-tip:hover {
  background: var(--bg-cream, #faf8f5);
  transform: translateY(-1px);
}

.aiw-tip:focus-visible {
  outline: 2px solid var(--wail-blue, #003580);
  outline-offset: 3px;
}

.aiw-tip-eyebrow {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--wail-red, #cc0000);
  margin-bottom: 6px;
}

.aiw-tip-label {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 1.55rem;
  line-height: 1.05;
  color: var(--text-dark, #1a1a1a);
  letter-spacing: -0.01em;
}

.aiw-tip-rule {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--wail-red, #cc0000);
  margin: 10px auto 0;
}

.aiw-tip-sub {
  display: block;
  font-family: 'Merriweather', Georgia, serif;
  font-style: italic;
  font-size: 0.78rem;
  color: #555;
  margin-top: 8px;
  line-height: 1.4;
}

/* ─── Dark variant — for footer band / blue surface ─── */
.aiw-tip.on-dark {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  border-left: 5px solid var(--wail-red, #cc0000);
}
.aiw-tip.on-dark::before { background: #fff; opacity: 0.3; }
.aiw-tip.on-dark:hover   { background: rgba(255,255,255,0.06); }
.aiw-tip.on-dark .aiw-tip-eyebrow { color: var(--wail-gold, #d4a017); }
.aiw-tip.on-dark .aiw-tip-label   { color: #fff; }
.aiw-tip.on-dark .aiw-tip-sub     { color: #8cb4d8; }

/* ─── Footer band — full-width Wail-blue band wrapping the dark button ─── */
.aiw-tip-band {
  background: var(--wail-blue, #003580);
  color: #fff;
  border-top: 4px solid var(--wail-red, #cc0000);
  padding: 32px 24px;
  margin-top: 48px;
}

.aiw-tip-band-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.aiw-tip-band-copy {
  flex: 1;
  min-width: 260px;
}

.aiw-tip-band-copy h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 1.3rem;
  margin: 0 0 4px;
  color: #fff;
  letter-spacing: -0.01em;
}

.aiw-tip-band-copy p {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 0.9rem;
  color: #8cb4d8;
  font-style: italic;
  margin: 0;
}

@media (max-width: 600px) {
  .aiw-tip-band-inner {
    flex-direction: column;
    text-align: center;
  }
  .aiw-tip-band-copy { min-width: 0; }
}
