/* ============================================================
   PUBLICATION THEME — style.css
   Newspaper / magazine aesthetic. Serif-forward, authoritative.
   ============================================================ */

/* ─── 1. VARIABLES ─────────────────────────────────────────── */
:root {
  --paper:         #F4F1EC;
  --white:         #FFFFFF;
  --masthead:      #1A4A54;
  --masthead-deep: #123540;
  --byline-gold:   #B86B35;
  --copy:          #1B1B1B;
  --copy-light:    #5A5A5A;
  --rule:          #D8D5CE;
  --corner:        3px;
  --col-width:     1140px;
  --gutter:        2rem;
}

/* ─── 2. RESET ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--paper);
  color: var(--copy);
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

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

a {
  color: var(--masthead);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.4em; }

button {
  cursor: pointer;
  font-family: inherit;
}

/* ─── 3. TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--copy);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }
em { font-style: italic; }

blockquote {
  border-left: 4px solid var(--masthead);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  color: var(--copy-light);
  background: rgba(0,0,0,0.03);
  border-radius: 0 var(--corner) var(--corner) 0;
}

code {
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  background: rgba(0,0,0,0.06);
  padding: 0.15em 0.4em;
  border-radius: 2px;
}

pre {
  background: #1B1B1B;
  color: #e8e8e8;
  padding: 1.25rem 1.5rem;
  border-radius: var(--corner);
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  color: inherit;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

/* ─── 4. LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: var(--col-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section-block         { padding: 3.5rem 0; }
.section-block--sm     { padding: 2rem 0; }
.section-block--lg     { padding: 5rem 0; }

/* ─── 5. MASTHEAD ───────────────────────────────────────────── */
.masthead {
  background: var(--masthead);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.masthead__bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  height: 64px;
  padding: 0 var(--gutter);
  max-width: var(--col-width);
  margin: 0 auto;
}

.masthead__title {
  grid-column: 1;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.masthead__title:hover { text-decoration: none; opacity: 0.9; }

.masthead__nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
}

.masthead__nav li a {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: var(--corner);
  transition: background 0.15s;
}

.masthead__nav li a:hover {
  background: var(--masthead-deep);
  text-decoration: none;
}

.masthead__toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  background: none;
  border: none;
  color: var(--white);
  padding: 0.5rem;
  line-height: 1;
  font-size: 1.4rem;
}

.masthead__drawer {
  display: none;
  background: var(--masthead-deep);
  padding: 1rem var(--gutter) 1.25rem;
  list-style: none;
}

.masthead__drawer li { border-bottom: 1px solid rgba(255,255,255,0.12); }

.masthead__drawer li a {
  display: block;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.65rem 0;
  text-decoration: none;
}

.masthead__drawer li a:hover { opacity: 0.8; }

.masthead__drawer.open { display: block; }

/* Section divider below masthead */
.section-rule {
  border: none;
  border-top: 3px double var(--rule);
  margin: 0 0 2rem;
}

/* ─── 6. FRONT-PAGE HERO ────────────────────────────────────── */
.front-hero {
  background: var(--masthead);
  color: var(--white);
  padding: 4rem var(--gutter) 3.5rem;
  text-align: center;
}

.front-hero__kicker {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}

.front-hero__hed {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.front-hero__dek {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.front-hero__cta {
  display: inline-block;
  background: var(--white);
  color: var(--masthead);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: var(--corner);
  transition: opacity 0.15s;
  text-decoration: none;
}

.front-hero__cta:hover { opacity: 0.9; text-decoration: none; }

/* ─── 7. STORY LIST — HORIZONTAL CARDS ──────────────────────── */
.story-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.story-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.story-card:first-child { border-top: 1px solid var(--rule); }

.story-card__media {
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--corner);
  background: var(--rule);
}

.story-card__media img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: var(--corner);
  transition: opacity 0.2s;
}

.story-card__media img:hover { opacity: 0.9; }

.story-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.25rem;
}

.story-card__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--masthead);
}

.story-card__headline {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--copy);
  text-decoration: none;
}

.story-card__headline:hover { color: var(--masthead); text-decoration: none; }

.story-card__deck {
  font-size: 0.9rem;
  color: var(--copy-light);
  line-height: 1.5;
  margin-top: 0.2rem;
}

.story-card__byline {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--byline-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.story-card__date {
  font-size: 0.75rem;
  color: var(--copy-light);
  margin-top: 0.1rem;
}

/* ─── 8. LEAD STORY (large featured card — image on top) ────── */
.lead-story {
  border-bottom: 2px solid var(--rule);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.lead-story__media {
  width: 100%;
  overflow: hidden;
  border-radius: var(--corner);
  margin-bottom: 1.25rem;
  background: var(--rule);
}

.lead-story__media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--corner);
}

.lead-story__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--masthead);
  margin-bottom: 0.5rem;
}

.lead-story__hed {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--copy);
}

.lead-story__hed a { color: inherit; text-decoration: none; }
.lead-story__hed a:hover { color: var(--masthead); }

.lead-story__dek {
  font-size: 1.05rem;
  color: var(--copy-light);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.lead-story__byline {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--byline-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── 9. SCORE / RATING BADGE ───────────────────────────────── */
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--masthead);
  color: var(--white);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.score-badge__stars {
  display: inline-flex;
  gap: 0.1rem;
  font-size: 0.9rem;
  color: var(--byline-gold);
}

.score-badge__number {
  font-size: 0.9rem;
  font-weight: 700;
}

.star-full  { color: var(--byline-gold); }
.star-half  { color: var(--byline-gold); opacity: 0.65; }
.star-empty { color: rgba(255,255,255,0.35); }

/* ─── 10. ARTICLE LAYOUT ────────────────────────────────────── */
.editorial-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

/* ─── 11. ARTICLE ───────────────────────────────────────────── */
.article {}

.article__lede-image {
  width: 100%;
  border-radius: var(--corner);
  margin-bottom: 1.5rem;
  overflow: hidden;
  background: var(--rule);
}

.article__lede-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--corner);
}

.article__hed {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.6rem;
  color: var(--copy);
}

.article__subhed {
  font-size: 1.2rem;
  color: var(--copy-light);
  font-style: italic;
  margin-bottom: 1rem;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 400;
  line-height: 1.5;
}

.article__byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--byline-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}

.article__body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--copy);
}

.article__body h2 { margin: 2rem 0 0.75rem; }
.article__body h3 { margin: 1.5rem 0 0.5rem; }
.article__body p  { margin-bottom: 1.15em; }

.article__body ul,
.article__body ol {
  margin: 0.5rem 0 1rem 1.4em;
}

.article__body li { margin-bottom: 0.4rem; }

/* ─── 12. VERDICT BOX ───────────────────────────────────────── */
.verdict-box {
  border: 2px solid var(--byline-gold);
  border-radius: var(--corner);
  overflow: hidden;
  margin: 2rem 0;
}

.verdict-box__head {
  background: var(--byline-gold);
  color: var(--white);
  padding: 0.65rem 1.25rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.verdict-box__grade {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.verdict-box__body {
  padding: 1.25rem;
  background: var(--white);
}

/* ─── 13. PROS / CONS ───────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.two-col__pros,
.two-col__cons {
  padding: 1rem 1.25rem;
  border-radius: var(--corner);
}

.two-col__pros {
  background: rgba(40,167,69,0.08);
  border: 1px solid rgba(40,167,69,0.3);
}

.two-col__cons {
  background: rgba(220,53,69,0.07);
  border: 1px solid rgba(220,53,69,0.25);
}

.two-col__pros h4 { color: #1e7e34; margin-bottom: 0.75rem; }
.two-col__cons h4 { color: #b21f2d; margin-bottom: 0.75rem; }

.two-col__pros ul,
.two-col__cons ul { margin: 0; padding-left: 1.2em; }

.two-col__pros li { color: #1e7e34; }
.two-col__cons li { color: #b21f2d; }

/* ─── 14. TABLES ────────────────────────────────────────────── */
.spec-table,
.head-to-head {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.spec-table th,
.head-to-head th {
  background: var(--masthead);
  color: var(--white);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  text-align: left;
}

.spec-table td,
.head-to-head td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--rule);
  color: var(--copy);
  vertical-align: top;
}

.spec-table tr:nth-child(even) td,
.head-to-head tr:nth-child(even) td {
  background: rgba(0,0,0,0.025);
}

.spec-table td:first-child {
  font-weight: 700;
  color: var(--copy-light);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ─── 15. SIDEBAR RAIL ──────────────────────────────────────── */
.rail {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rail__block {
  border: 1px solid var(--rule);
  border-radius: var(--corner);
  overflow: hidden;
}

.rail__label {
  background: var(--masthead);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
}

.rail__links {
  list-style: none;
  padding: 0.5rem 0;
}

.rail__links li {
  border-bottom: 1px solid var(--rule);
}

.rail__links li:last-child { border-bottom: none; }

.rail__links li a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  color: var(--copy);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.rail__links li a:hover {
  background: rgba(0,0,0,0.04);
  color: var(--masthead);
  text-decoration: none;
}

/* ─── 16. FILTER ROW ────────────────────────────────────────── */
.filter-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 2px solid var(--rule);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-row label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copy-light);
  white-space: nowrap;
}

.filter-opt {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--copy);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--corner);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  appearance: auto;
  min-width: 160px;
}

.filter-opt:focus {
  outline: 2px solid var(--masthead);
  outline-offset: 2px;
}

/* ─── 17. FORMS ─────────────────────────────────────────────── */
.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--copy-light);
  margin-bottom: 0.4rem;
}

.form-control,
.form-select,
.form-textarea {
  width: 100%;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  color: var(--copy);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--corner);
  padding: 0.6rem 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--masthead);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.submit-btn {
  display: inline-block;
  background: var(--masthead);
  color: var(--white);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--corner);
  padding: 0.7rem 1.75rem;
  cursor: pointer;
  transition: background 0.15s;
}

.submit-btn:hover { background: var(--masthead-deep); }

/* ─── 18. NEWSLETTER BAND ───────────────────────────────────── */
.newsletter-band {
  background: var(--masthead);
  color: var(--white);
  padding: 2.75rem 0;
}

.newsletter-band__inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--gutter);
}

.newsletter-band__inner h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  color: var(--white);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.5rem;
}

.newsletter-band__inner p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.subscribe-form .form-control {
  flex: 1;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}

.subscribe-form .form-control::placeholder { color: rgba(255,255,255,0.55); }

.subscribe-form .submit-btn {
  background: var(--white);
  color: var(--masthead);
  flex-shrink: 0;
}

.subscribe-form .submit-btn:hover { background: rgba(255,255,255,0.9); }

.subscribe-confirm {
  display: none;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem;
}

/* ─── 19. EDITOR'S NOTE / ABOUT STRIP ───────────────────────── */
.editors-note {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--byline-gold);
  border-radius: 0 var(--corner) var(--corner) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.editors-note__photo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--rule);
}

.editors-note__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editors-note__text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--copy-light);
}

.editors-note__text strong { color: var(--copy); }

/* ─── 20. SHARE ROW ─────────────────────────────────────────── */
.share-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 1.75rem 0;
  flex-wrap: wrap;
}

.share-row__prompt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copy-light);
  white-space: nowrap;
}

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

.share-link {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: var(--corner);
  background: transparent;
  border: 1.5px solid var(--rule);
  color: var(--copy);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.share-link:hover {
  background: var(--masthead);
  border-color: var(--masthead);
  color: var(--white);
  text-decoration: none;
}

.share-link--copied {
  background: #2e7d32;
  border-color: #2e7d32;
  color: var(--white);
}

/* ─── 21. COOKIE MODAL ──────────────────────────────────────── */
.gdpr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gdpr-overlay.hidden { display: none; }

.gdpr-dialog {
  background: var(--white);
  border-radius: calc(var(--corner) * 2);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
  overflow: hidden;
}

.gdpr-dialog__header {
  background: var(--masthead);
  color: var(--white);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gdpr-dialog__header h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.05rem;
  color: var(--white);
  margin: 0;
}

.gdpr-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  padding: 0.2rem 0.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s;
}

.gdpr-close-btn:hover { color: var(--white); }

.gdpr-dialog__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gdpr-pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--corner);
  gap: 1rem;
}

.gdpr-pref__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--copy);
  display: block;
}

.gdpr-pref__desc {
  font-size: 0.78rem;
  color: var(--copy-light);
  margin-top: 0.15rem;
}

/* Toggle switch */
.gdpr-toggle {
  position: relative;
  flex-shrink: 0;
}

.gdpr-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.gdpr-toggle__rail {
  display: block;
  width: 44px;
  height: 24px;
  background: #ccc;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}

.gdpr-toggle__rail::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.gdpr-toggle input:checked + .gdpr-toggle__rail {
  background: var(--masthead);
}

.gdpr-toggle input:checked + .gdpr-toggle__rail::after {
  transform: translateX(20px);
}

.gdpr-toggle input:focus + .gdpr-toggle__rail {
  outline: 2px solid var(--masthead);
  outline-offset: 2px;
}

.gdpr-toggle--fixed .gdpr-toggle__rail {
  background: #aaa;
  cursor: not-allowed;
  opacity: 0.6;
}

.gdpr-dialog__footer {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--rule);
}

.gdpr-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.7rem;
  border-radius: var(--corner);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.gdpr-btn--primary {
  background: var(--masthead);
  color: var(--white);
}

.gdpr-btn--primary:hover { background: var(--masthead-deep); }

.gdpr-decline-link {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: var(--copy-light);
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  font-family: inherit;
}

.gdpr-decline-link:hover { color: var(--copy); }

/* ─── 22. FOOTER ─────────────────────────────────────────────── */
.pub-footer {
  background: #111111;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  margin-top: auto;
}

.pub-footer__inner {
  max-width: var(--col-width);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}

.pub-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pub-footer__brand-name {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pub-footer__tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.pub-footer__nav h4,
.pub-footer__social h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.75rem;
}

.pub-footer__nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pub-footer__nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.15s;
}

.pub-footer__nav a:hover { color: var(--white); }

.pub-footer__social {
  display: flex;
  flex-direction: column;
}

.pub-footer__social-links {
  display: flex;
  gap: 0.75rem;
}

.pub-footer__social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--corner);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.pub-footer__social-links a:hover {
  background: var(--masthead);
  color: var(--white);
}

.pub-footer__social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.pub-footer__legal {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-top: 0.5rem;
}

.pub-footer__legal a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}

.pub-footer__legal a:hover { color: rgba(255,255,255,0.8); }

.pub-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: var(--col-width);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
}

.pub-footer__bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.pub-footer__bottom a:hover { color: rgba(255,255,255,0.75); }

.pub-footer--minimal {
  padding: 1.5rem var(--gutter);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.pub-footer--minimal a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}

/* ─── 23. RESPONSIVE — 800px (tablet) ──────────────────────── */
@media (max-width: 800px) {
  .masthead__nav { display: none; }
  .masthead__toggle { display: block; }

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

  .masthead__title { grid-column: 1; }
  .masthead__toggle { grid-column: 2; }

  .editorial-layout {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
    border-top: 2px solid var(--rule);
    padding-top: 1.5rem;
  }

  .pub-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .pub-footer__brand {
    grid-column: 1 / -1;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .story-card {
    grid-template-columns: 180px 1fr;
    gap: 1rem;
  }

  .story-card__media img { height: 130px; }

  .lead-story__media img { height: 280px; }
}

/* ─── 24. RESPONSIVE — 520px (mobile) ──────────────────────── */
@media (max-width: 520px) {
  :root { --gutter: 1rem; }

  .masthead__bar { height: 56px; }

  .story-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .story-card__media img {
    height: 180px;
    width: 100%;
  }

  .lead-story__media img { height: 200px; }

  .article__lede-image img { height: 220px; }

  .editorial-layout { gap: 1.5rem; }

  .pub-footer__inner {
    grid-template-columns: 1fr;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .filter-row { flex-direction: column; align-items: flex-start; }

  .front-hero { padding: 2.5rem var(--gutter) 2rem; }

  .gdpr-dialog { max-width: 100%; }

  .share-row { flex-direction: column; align-items: flex-start; }

  .editors-note { flex-direction: column; text-align: center; }
}

/* ─── 25. UTILITIES ──────────────────────────────────────────── */
.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;
}

.centered { text-align: center; }

.hidden   { display: none !important; }
.show     { display: block !important; }
.open     {}
.is-active {}

/* Section label / kicker shared utility */
.section-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--masthead);
  display: block;
  margin-bottom: 0.5rem;
}

/* ── DIRECT-LINK NAV — customs-release HTML uses bare <a> in nav containers,
      not <ul><li>. These patches restore visibility and spacing. ── */
.masthead__nav > a {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: var(--corner);
  transition: background 0.15s;
  text-decoration: none;
}
.masthead__nav > a:hover { background: var(--masthead-deep); text-decoration: none; }
.masthead__nav > a[aria-current="page"] { background: var(--masthead-deep); }

.masthead__drawer > a {
  display: block;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.65rem 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.masthead__drawer > a:hover { opacity: 0.8; text-decoration: none; }

.pub-footer__nav > a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.15s;
  margin-bottom: 0.35rem;
}
.pub-footer__nav > a:hover { color: var(--white); text-decoration: none; }
