/* Newsletter pages only. Site chrome (nav, buttons, footer, mobile menu)
   stays in each page, copied from public/index.html. Do not load this file
   on the homepage or diginets page. */

.section-tag {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 2rem;
}
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  overflow: hidden;
  min-height: 0;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(124, 179, 66, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(45, 139, 107, 0.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 3;
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  z-index: 4;
}
.page-hero-content {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--navh) + 3.5rem) 3rem 4.5rem;
  z-index: 10;
}
.hero-tag {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.page-hero h1 {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 900px;
}
.page-hero h1 strong {
  font-weight: 600;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin-bottom: 0;
  line-height: 1.7;
}
.page-hero .cta-group { margin-top: 2.25rem; animation: none; }

/* Listing page sections */
.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5.5rem 3rem;
}
.wrap-narrow { max-width: 860px; }
.band-white { background: #fff; }
.band-light { background: var(--light); }
.xhead { max-width: 720px; margin-bottom: 3rem; }
.lead {
  font-size: 1.1rem;
  color: var(--mid-gray);
  line-height: 1.8;
  margin-top: -0.5rem;
}

/* Featured issue */
.featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}
.featured-main { padding: 3rem 3.25rem 2.75rem; }
.featured-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
}
.pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 30px;
}
.featured-date {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--mid-gray);
  letter-spacing: 0.2px;
}
.featured h2 {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 1rem;
}
.featured h2 a { color: inherit; text-decoration: none; }
.featured h2 a:hover { color: var(--accent); }
.featured-dek {
  font-size: 1.15rem;
  color: var(--mid-gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 720px;
}
.featured-lead {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
  margin: 0;
  max-width: 720px;
}
.featured-lead-label {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.why {
  margin: 1.25rem 0 0;
  padding: 1rem 0 1rem 1.25rem;
  border-left: 3px solid var(--gold);
  color: var(--primary);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 640px;
}
.why strong { font-weight: 700; }
.featured-actions { margin-top: 2rem; }
.section-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1.75rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.chip {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--secondary);
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}

/* Archive list */
.archive { list-style: none; }
.archive li { border-top: 1px solid var(--line); }
.archive li:last-child { border-bottom: 1px solid var(--line); }
.archive a {
  display: grid;
  grid-template-columns: 11rem 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.6rem 0.25rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}
.archive a:hover { background: rgba(13, 59, 46, 0.03); }
.archive-date {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--secondary);
  letter-spacing: 0.2px;
}
.archive-title {
  display: block;
  font-family: 'Crimson Pro', serif;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.archive-dek { display: block; color: var(--mid-gray); font-size: 1rem; line-height: 1.6; }
.archive-go {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  padding-top: 0.35rem;
}

/* Signup placeholder */
.signup {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  max-width: 800px;
}
.signup-flag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  border: 1px dashed var(--accent);
  border-radius: 4px;
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.signup h2 {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.signup p.note { color: var(--mid-gray); margin-bottom: 1.75rem; line-height: 1.7; }
.signup-form { display: grid; gap: 1.25rem; }
.signup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
}
.form-group input {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--primary);
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 139, 107, 0.1);
}
.signup .submit-btn {
  padding: 1.1rem 2.5rem;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: not-allowed;
  letter-spacing: 0.5px;
  opacity: 0.7;
}
.signup-status { margin-top: 0.25rem; font-size: 0.95rem; color: var(--mid-gray); }

/* Issue page */
.issue-hero .page-hero-content { padding-bottom: 3.25rem; }
.issue-hero h1 { margin-bottom: 0.85rem; }
.issue-hero .page-hero-subtitle { font-size: 1.2rem; max-width: 820px; }
.back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.back-link:hover { color: #fff; }
.issue-date { color: rgba(255, 255, 255, 0.75); font-weight: 500; margin-bottom: 0.75rem; }
.issue-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}
.issue-intro {
  font-size: 1.2rem;
  color: var(--mid-gray);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 3.5rem;
}
.toc-label {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.toc ol { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem 2rem; }
.toc a {
  display: block;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.3rem 0;
}
.toc a:hover { color: var(--accent); }

.issue-section { margin-bottom: 3.5rem; padding-top: 0.5rem; }
.issue-section > h2 {
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.story { margin-bottom: 2.25rem; }
.story:last-child { margin-bottom: 0; }
.story h3 {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.story.lead-story h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.story p { color: var(--mid-gray); font-size: 1.05rem; line-height: 1.8; margin-bottom: 0.85rem; }
.story .why { color: var(--primary); margin-top: 0.5rem; }
.sources { font-size: 0.92rem; color: var(--mid-gray); }
.sources a { color: var(--accent); font-weight: 500; text-decoration: none; }
.sources a:hover { text-decoration: underline; }

.agenda { list-style: none; }
.agenda li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.agenda li:last-child { border-bottom: 1px solid var(--line); }
.agenda-when { font-weight: 600; color: var(--secondary); font-size: 0.95rem; }
.agenda-what { color: var(--mid-gray); font-size: 1.05rem; line-height: 1.55; }

.video-list, .listing-list { list-style: none; }
.video-list li, .listing-list li {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.video-list li:last-child, .listing-list li:last-child { border-bottom: 1px solid var(--line); }
.video-list h3, .listing-list h3 {
  font-family: 'Crimson Pro', serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.video-list h3 a, .listing-list h3 a { color: var(--primary); text-decoration: none; }
.video-list h3 a:hover, .listing-list h3 a:hover { color: var(--accent); }
.video-list p, .listing-list p { color: var(--mid-gray); font-size: 1rem; line-height: 1.7; margin: 0; }
.section-note { color: var(--mid-gray); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.25rem; }
.disclaimer { margin-top: 1rem; font-size: 0.9rem; color: var(--mid-gray); font-style: italic; }

.issue-ctas {
  display: grid;
  gap: 1.25rem;
  margin: 3.5rem 0 1rem;
}
.issue-cta {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.75rem 1.75rem 1.75rem 1.9rem;
  border-left: 4px solid var(--gold);
}
.issue-cta h3 {
  font-family: 'Crimson Pro', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.issue-cta p { color: var(--mid-gray); line-height: 1.7; margin-bottom: 1rem; }
.issue-cta a { color: var(--accent); font-weight: 600; text-decoration: none; }
.issue-cta a:hover { text-decoration: underline; }
.issue-fineprint {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--mid-gray);
  line-height: 1.7;
}
.issue-fineprint a { color: var(--accent); }

@media (max-width: 968px) {
  .nav-container { padding: 1.5rem 2rem; }
  .nav-links { gap: 2rem; }
  .page-hero-content { padding-left: 2rem; padding-right: 2rem; }
  .wrap { padding-left: 2rem; padding-right: 2rem; }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .cta-group { flex-direction: column; align-items: stretch; max-width: 420px; }
  .btn { text-align: center; }
  .archive a { grid-template-columns: 1fr; gap: 0.35rem; padding: 1.4rem 0; }
  .archive-go { justify-self: start; }
  .featured-main { padding: 2.25rem 1.75rem; }
  .signup-row { grid-template-columns: 1fr; }
  .toc ol { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --navh: 76px; }
  .nav-container { padding: 1rem 1.25rem; }
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 0.9rem 1.5rem; font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .page-hero-content { padding: calc(var(--navh) + 2rem) 1.25rem 3.25rem; }
  .page-hero-subtitle { font-size: 1.1rem; }
  .wrap { padding: 4rem 1.25rem; }
  .footer { padding: 3rem 1.25rem 2rem; }
  .signup { padding: 2rem 1.5rem; }
  .issue-body { padding: 2.75rem 1.25rem 4rem; }
  .agenda li { grid-template-columns: 1fr; gap: 0.25rem; }
  .btn { width: 100%; max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ========== v2: full latest issue on the newsletter page ========== */
.issue-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3.5rem 3rem 4.5rem;
  display: grid;
  grid-template-columns: 17.5rem minmax(0, 800px);
  grid-template-areas: "side main";
  gap: 3.5rem;
  align-items: start;
  justify-content: center;
}
.issue-side { grid-area: side; position: sticky; top: calc(var(--navh) + 1.25rem); }
.issue-main { grid-area: main; min-width: 0; }
.issue-main .issue-intro { margin-top: 0; }

.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.35rem 1.4rem 1.45rem;
  margin-bottom: 1.1rem;
}
.side-note {
  color: var(--mid-gray);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: -0.25rem 0 0.85rem;
}
.side-archive { list-style: none; }
.side-archive li + li { border-top: 1px solid var(--line); }
.side-archive a {
  display: block;
  padding: 0.85rem 0;
  text-decoration: none;
  color: inherit;
}
.side-archive li:first-child a { padding-top: 0.15rem; }
.side-archive li:last-child a { padding-bottom: 0.15rem; }
.side-archive time {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}
.side-archive span {
  display: block;
  font-family: 'Crimson Pro', serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--primary);
}
.side-archive a:hover span { color: var(--accent); }
.toc-side { margin-bottom: 0; }
.toc-side ol { display: block; columns: auto; }
.toc-side a { font-size: 0.9rem; padding: 0.28rem 0; }

.more-issues {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.more-issues .section-title { margin-bottom: 0.75rem; }
.more-issues .lead { margin-bottom: 2rem; }

@media (max-width: 968px) {
  .issue-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "side" "main";
    padding: 2.5rem 2rem 3.5rem;
    gap: 2rem;
  }
  .issue-side { position: static; }
  .toc-side ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem 2rem; }
}
@media (max-width: 760px) {
  .issue-layout { padding: 2rem 1.25rem 3rem; }
  .toc-side ol { grid-template-columns: 1fr; }
}

/* Dated issue permalink sits in the hero date. Keep it on the light-on-green type. */
.issue-date a { color: inherit; text-decoration: none; }
.issue-date a:hover { color: #fff; text-decoration: underline; }

/* Disabled signup reads as not open yet. */
.signup .form-group input:disabled {
  background: var(--light);
  color: var(--mid-gray);
  cursor: not-allowed;
}
.signup .submit-btn { font-family: 'DM Sans', sans-serif; }
