/* =============================================================
   West Coast Swingers — Design System & Component Styles
   Mobile-first | WCAG 2.1 AA | Vanilla CSS
   ============================================================= */

/* ── 1. DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* Brand palette */
  --brand:       #94032b;   /* primary crimson */
  --brand-dark:  #6b0220;   /* hover / pressed  */
  --brand-mid:   #b0163a;   /* lighter variant  */
  --brand-glow:  #e05d8a;   /* accent links     */

  /* Page backgrounds (dark theme) */
  --bg-page:     #0f0508;
  --bg-surface:  #1a0b10;
  --bg-raised:   #241016;
  --bg-card:     #1e0d13;
  --bg-header:   #0a0305;
  --bg-footer:   #0a0305;

  /* Text — all pass AA on bg-page */
  --text-primary:   #f2eaed;   /* 17 : 1 on bg-page */
  --text-secondary: #c4a8b0;   /* 7.4 : 1            */
  --text-muted:     #8a6672;   /* 4.6 : 1            */
  --text-on-brand:  #ffffff;

  /* Links — 5.2 : 1 on bg-page */
  --link:       #e05d8a;
  --link-hover: #f07fa8;

  /* Borders */
  --border:       #3a1520;
  --border-light: #4e2030;

  /* Spacing scale (0.25rem base) */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  2.75rem;

  /* Font stacks */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               Helvetica, Arial, sans-serif, 'Apple Color Emoji';
  --font-serif: Georgia, 'Times New Roman', Times, serif;

  /* Weights */
  --fw-normal:   400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* Radii */
  --radius-sm: 0.25rem;
  --radius:    0.375rem;
  --radius-lg: 0.625rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.5);
  --shadow:    0 4px 12px rgba(0,0,0,.6);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.75);

  /* Transitions */
  --ease: 150ms ease;

  /* Layout */
  --max-w:         1200px;
  --content-w:     800px;
  --nav-h:         68px;
  --header-top-h:  40px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-normal);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-page);
  min-height: 100vh;
}

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

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ease);
}
a:hover, a:focus { color: var(--link-hover); }

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-bold);
  line-height: 1.25;
  color: var(--text-primary);
}

p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: var(--sp-6); margin-bottom: var(--sp-4); }
li { margin-bottom: var(--sp-2); }

strong, b { font-weight: var(--fw-semibold); }

blockquote {
  border-left: 4px solid var(--brand);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-8) 0;
  background: var(--bg-raised);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-8) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--sp-6);
}
th, td {
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border);
  text-align: left;
}
th {
  background: var(--bg-raised);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}
tr:nth-child(even) td { background: var(--bg-surface); }

/* ── 3. ACCESSIBILITY ─────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: 9999;
  padding: var(--sp-3) var(--sp-6);
  background: var(--brand);
  color: var(--text-on-brand);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

*:focus-visible {
  outline: 3px solid var(--brand-glow);
  outline-offset: 3px;
}
*:focus:not(:focus-visible) { outline: none; }

/* Screen-reader only */
.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;
}

/* ── 4. LAYOUT UTILITIES ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.container--narrow {
  max-width: var(--content-w);
}

.section {
  padding-block: var(--sp-16);
}
.section--sm { padding-block: var(--sp-10); }
.section--lg { padding-block: var(--sp-24); }

/* ── 5. HEADER ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Top bar */
.header-topbar {
  background: #070204;
  border-bottom: 1px solid var(--border);
  padding-block: var(--sp-2);
  font-size: var(--text-sm);
}
.header-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.header-topbar a {
  color: var(--text-secondary);
  text-decoration: none;
}
.header-topbar a:hover { color: var(--text-primary); }

.topbar-email {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.topbar-email svg { width: 14px; height: 14px; flex-shrink: 0; }

.btn-member-login {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-4);
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  color: var(--text-primary) !important;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
}
.btn-member-login:hover {
  background: var(--brand);
  color: var(--text-on-brand) !important;
}

/* Main header row */
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding-block: var(--sp-3);
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo img {
  height: 44px;
  width: auto;
}

/* ── 6. NAVIGATION ────────────────────────────────────────── */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--sp-2);
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
  transition: border-color var(--ease);
}
.nav-toggle:hover { border-color: var(--brand); }
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop nav — hidden until ≥ 960 px */
.site-nav {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--sp-1);
  padding: 0;
  margin: 0;
}
.nav-list > li { position: relative; }

.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--ease), color var(--ease);
}
.nav-list > li > a:hover,
.nav-list > li > a[aria-expanded="true"] {
  background: var(--bg-raised);
  color: var(--brand-glow);
}

/* Dropdown chevron */
.nav-chevron {
  width: 12px;
  height: 12px;
  transition: transform var(--ease);
  flex-shrink: 0;
}
.nav-list > li > a[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: var(--bg-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2) 0;
  list-style: none;
  z-index: 200;
}
.nav-dropdown a {
  display: block;
  padding: var(--sp-2) var(--sp-5);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
  white-space: nowrap;
}
.nav-dropdown a:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Show dropdown on hover (desktop) */
@media (min-width: 960px) {
  .nav-list > li:hover > .nav-dropdown,
  .nav-list > li > a[aria-expanded="true"] + .nav-dropdown {
    display: block;
  }
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--sp-4) 0 var(--sp-6);
  overflow-y: auto;
  max-height: calc(100vh - var(--nav-h) - var(--header-top-h));
}
.mobile-nav.is-open { display: flex; }

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-nav-list li { border-bottom: 1px solid var(--border); }

.mobile-nav-list > li > a {
  display: block;
  padding: var(--sp-4) var(--sp-6);
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}
.mobile-nav-list > li > a:hover { color: var(--brand-glow); }

.mobile-subnav {
  list-style: none;
  padding: 0 0 var(--sp-2);
  background: var(--bg-card);
}
.mobile-subnav a {
  display: block;
  padding: var(--sp-2) var(--sp-8);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  text-decoration: none;
}
.mobile-subnav a:hover { color: var(--text-primary); }

/* ── 7. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4) var(--sp-8);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease),
              color var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  border-color: rgb(136,0,43);
  color: var(--text-on-brand);
  min-width: 335px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--text-on-brand);
  box-shadow: 0 4px 16px rgba(148,3,43,.45);
}

.btn-outline {
  background: transparent;
  border-color: var(--brand);
  color: var(--text-primary);
  min-width: 335px;
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--brand);
  color: var(--text-on-brand);
}

.btn-sm {
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--text-sm);
  min-width: 0;
}

/* ── 8. HERO SECTION ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/swinger-terminology-glossary.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(.70);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,2,5,.75) 0%,
    rgba(10,2,5,.35) 60%,
    transparent 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--sp-16);
  max-width: 640px;
}
.hero h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  line-height: 1.15;
  margin-bottom: var(--sp-5);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.hero-tagline {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.85);
  margin-bottom: var(--sp-8);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: flex-start;
}

/* ── 8b. HOME CONTENT SECTIONS ──────────────────────────── */
.home-section {
  padding-block: var(--sp-16);
}
.home-section + .home-section {
  border-top: 1px solid var(--border);
}
.home-section--alt {
  background: var(--bg-surface);
}
.home-section--brand {
  background: var(--brand);
}
.home-section--brand h2,
.home-section--brand p,
.home-section--brand li {
  color: var(--text-on-brand);
}
.home-section--brand a.btn-outline {
  border-color: #fff;
  color: #fff;
}
.home-section--brand a.btn-outline:hover {
  background: #fff;
  color: var(--brand);
}
.home-section h2 {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  margin-bottom: var(--sp-5);
  color: var(--text-primary);
}
.home-section p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 760px;
}
.home-section ul {
  list-style: none;
  padding: 0;
  margin: var(--sp-4) 0 var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.home-section ul li {
  padding-left: var(--sp-6);
  position: relative;
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin: 0;
}
.home-section ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand-glow);
  font-weight: var(--fw-bold);
}
.topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  margin-top: var(--sp-8);
}
.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}
.topic-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-3);
  color: var(--text-primary);
}
.topic-card p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
}
.topic-card a {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--brand-glow);
  text-decoration: none;
}
.topic-card a:hover { text-decoration: underline; }
.cta-band {
  text-align: center;
  padding-block: var(--sp-16);
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band h2 { margin-bottom: var(--sp-3); }
.cta-band p  { margin-inline: auto; margin-bottom: var(--sp-8); }
.cta-band .badge {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--sp-4);
}
@media (min-width: 640px) {
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── 9. TAGLINE BAND ─────────────────────────────────────── */
.tagline-band {
  background: var(--brand);
  padding-block: var(--sp-8);
  text-align: center;
}
.tagline-band p {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--text-on-brand);
  letter-spacing: 0.02em;
  margin: 0;
}

/* ── 10. WELCOME SECTION ─────────────────────────────────── */
.welcome-section {
  background: var(--bg-surface);
  padding-block: var(--sp-16);
}
.welcome-section .container { max-width: 860px; }
.welcome-section p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.75;
}
.welcome-section p + p { margin-top: var(--sp-5); }

/* ── 11. ARTICLE GRID ────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}

.card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-raised);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
.card:hover .card-image img { transform: scale(1.03); }

.card-body {
  padding: var(--sp-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.card-category {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-glow);
  text-decoration: none;
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  margin: 0;
}
.card-title a {
  color: var(--text-primary);
  text-decoration: none;
}
.card-title a:hover { color: var(--brand-glow); }

.card-excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.card-read-more {
  color: var(--brand-glow);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}
.card-read-more:hover { color: var(--link-hover); }

/* ── 12. PAGINATION ──────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding-block: var(--sp-12);
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.pagination a:hover {
  background: var(--bg-raised);
  color: var(--text-primary);
  border-color: var(--border-light);
}
.pagination .current {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-on-brand);
}

/* ── 13. SINGLE ARTICLE ──────────────────────────────────── */
.article-hero {
  background: var(--bg-surface);
  padding-block: var(--sp-16);
  border-bottom: 1px solid var(--border);
}
.article-hero .container { max-width: var(--content-w); }

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}
.article-breadcrumb a { color: var(--brand-glow); text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb .sep { color: var(--border-light); }

.article-hero h1 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  line-height: 1.2;
  margin-bottom: var(--sp-5);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.article-meta a { color: var(--brand-glow); text-decoration: none; }

.article-featured-img {
  margin-block: var(--sp-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: var(--content-w);
  margin-inline: auto;
}
.article-featured-img img {
  width: 100%;
  height: auto;
}

/* Prose / entry content */
.entry-content {
  max-width: var(--content-w);
  margin-inline: auto;
  padding-block: var(--sp-12);
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--text-secondary);
}

.entry-content h2 {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
  color: var(--text-primary);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.entry-content h3 {
  font-size: var(--text-2xl);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
  color: var(--text-primary);
}
.entry-content h4 {
  font-size: var(--text-xl);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
  color: var(--text-primary);
}

.entry-content p { margin-bottom: var(--sp-5); color: var(--text-secondary); }
.entry-content strong, .entry-content b { color: var(--text-primary); }

.entry-content ul, .entry-content ol {
  margin-bottom: var(--sp-5);
  padding-left: var(--sp-8);
}
.entry-content li { margin-bottom: var(--sp-2); }

.entry-content a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--link-hover); }

.entry-content img {
  border-radius: var(--radius);
  margin-block: var(--sp-8);
  box-shadow: var(--shadow);
}

.entry-content figure {
  margin-block: var(--sp-8);
}
.entry-content figcaption {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--sp-2);
  font-style: italic;
}

/* TOC (auto-generated) */
.toc-box {
  background: var(--bg-raised);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: var(--sp-6);
  margin-block: var(--sp-8);
}
.toc-box h2 {
  font-size: var(--text-lg) !important;
  margin: 0 0 var(--sp-4) !important;
  border: none !important;
  padding: 0 !important;
  color: var(--text-primary);
}
.toc-box ol {
  margin: 0;
  padding-left: var(--sp-5);
}
.toc-box li { margin-bottom: var(--sp-1); font-size: var(--text-sm); }
.toc-box a { color: var(--brand-glow); }

/* ── 14. CATEGORY / ARCHIVE PAGE ─────────────────────────── */
.archive-header {
  background: var(--bg-surface);
  padding-block: var(--sp-12);
  border-bottom: 1px solid var(--border);
}
.archive-header h1 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  margin-bottom: var(--sp-3);
}
.archive-header p {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0;
}

/* ── 15. STATIC / LEGAL PAGES ────────────────────────────── */
.page-hero {
  background: var(--bg-surface);
  padding-block: var(--sp-12);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
}

/* ── 16. FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-legal {
  padding-block: var(--sp-8);
  border-bottom: 1px solid var(--border);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-legal-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
}
.footer-legal-links a:hover { color: var(--text-secondary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-block: var(--sp-6);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--text-secondary); }

/* Affiliate disclaimer */
.footer-disclaimer {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 860px;
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-6);
}

/* ── 17. CONTACT / FORM ──────────────────────────────────── */
.form-group {
  margin-bottom: var(--sp-5);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-glow);
  box-shadow: 0 0 0 3px rgba(224,93,138,.25);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* ── 18. SEARCH ──────────────────────────────────────────── */
.search-form {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin-inline: auto;
}
.search-form input[type="search"] {
  flex: 1;
  padding: var(--sp-3) var(--sp-5);
  background: var(--bg-raised);
  border: 1px solid var(--border-light);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--text-base);
}
.search-form button {
  padding: var(--sp-3) var(--sp-6);
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-on-brand);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: background var(--ease);
}
.search-form button:hover { background: var(--brand-dark); }

/* ── 19. NOTICE BANNERS ──────────────────────────────────── */
.notice-adult {
  background: var(--bg-raised);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-6);
  margin-bottom: var(--sp-8);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.notice-adult svg { flex-shrink: 0; margin-top: 2px; color: var(--brand-glow); }

/* ── 20. RESPONSIVE BREAKPOINTS ──────────────────────────── */

/* ≥ 480 px — small phones landscape */
@media (min-width: 480px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}

/* ≥ 640 px — tablet portrait */
@media (min-width: 640px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding-inline: var(--sp-8); }
  .header-topbar .container { gap: var(--sp-8); }
}

/* ≥ 960 px — desktop */
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; }
  .article-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { min-height: 640px; }
  .entry-content { padding-block: var(--sp-16); }
}

/* ≥ 1280 px — wide desktop */
@media (min-width: 1280px) {
  .container { padding-inline: var(--sp-12); }
  .hero { min-height: 720px; }
}

/* ── 21. PRINT ───────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .nav-toggle, .mobile-nav { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .entry-content { max-width: 100%; padding: 0; }
}

/* ── 22. REDUCED MOTION ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── 19. SECTION IMAGES ──────────────────────────────────── */
.section-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
}

.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: center;
}
.section-split .section-img {
  max-height: 380px;
  object-fit: cover;
}
@media (max-width: 760px) {
  .section-split {
    grid-template-columns: 1fr;
  }
  .section-split .section-img {
    max-height: 240px;
  }
}

/* ── 20. GUIDE CARDS (Start Here section) ────────────────── */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}
.guide-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: var(--sp-6);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
.guide-card:hover {
  border-color: var(--brand-glow);
  border-left-color: var(--brand-glow);
  background: var(--bg-surface);
  transform: translateY(-2px);
}
.guide-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-glow);
  margin-bottom: var(--sp-2);
}
.guide-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}
.guide-desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
}
@media (max-width: 580px) {
  .guide-cards {
    grid-template-columns: 1fr;
  }
}

/* ── 21. CATEGORY DESCRIPTION ────────────────────────────── */
.cat-description {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: var(--sp-10) 0;
}
.cat-desc-h2 {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}
.cat-desc-h3 {
  font-size: var(--text-lg);
  color: var(--brand-glow);
  margin: var(--sp-8) 0 var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border-light);
}
.cat-description p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}
.cat-description ul,
.cat-description ol {
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-5);
  color: var(--text-secondary);
}
.cat-description li {
  margin-bottom: var(--sp-2);
  line-height: 1.6;
}
.cat-description a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cat-description a:hover {
  color: var(--link-hover);
}

/* ── 22. FAQ ITEMS ───────────────────────────────────────── */
.faq-item {
  background: var(--bg-raised);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-4);
}
.faq-q {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}
.faq-a {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ── 23. ARCHIVE GRID SECTION ────────────────────────────── */
.archive-grid-section {
  padding-top: var(--sp-10);
}
.archive-header {
  background: var(--bg-surface);
  padding: var(--sp-10) 0 var(--sp-6);
  border-bottom: 1px solid var(--border-light);
}
.archive-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

/* ── 24. STYLED FORMS (contact, submission) ──────────────── */
.page-hero-sub {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  margin-top: var(--sp-3);
  max-width: 560px;
}

.contact-intro {
  margin-bottom: var(--sp-8);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}
.contact-intro a { color: var(--link); }

.styled-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.styled-form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  margin-bottom: var(--sp-6);
}
.styled-form legend {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  padding: 0 var(--sp-2);
}

.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 540px) {
  .form-row--split { grid-template-columns: 1fr; }
}

.form-hint {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.req { color: var(--brand-glow); margin-left: 2px; }

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: var(--sp-3);
  font-weight: var(--fw-normal) !important