@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Inter:wght@400;500;600;700;800&display=swap');

/* Theme */
:root {
  --bg: #f5f0eb;
  --surface-low: #ede8e2;
  --surface: #e4ddd5;
  --surface-high: #d9d1c8;
  --surface-highest: #cdc4ba;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --link: #2a8fbf;
  --muted: #5c5c5c;
  --accent: #2a8fbf;
  --anchor-offset: 5rem;
  --hero-overlay-top: rgba(10, 8, 6, 0.08);
  --hero-overlay-bottom: rgba(10, 8, 6, 0.22);
  --hero-card-bg: rgba(245, 240, 235, 0.80);
  --btn-primary-bg: #2a8fbf;
  --btn-primary-text: #ffffff;
  --btn-secondary-border: rgba(90, 80, 70, 0.35);
  --btn-secondary-text: #1a1a1a;
  --card-bg: #ede8e2;
  --card-border: transparent;
  --callout-bg: rgba(42, 143, 191, 0.10);
  --callout-border: rgba(42, 143, 191, 0.24);
  --chip-bg: #e4ddd5;
  --chip-border: transparent;
  --tile-bg: #ede8e2;
  --tile-border: transparent;
  --hero-fallback: #e4ddd5;
  --nav-bg: rgba(245, 240, 235, 0.90);
  --nav-border: rgba(90, 80, 70, 0.14);
  --nav-link-bg: #e4ddd5;
  --nav-link-border: transparent;
  --nav-link-text: #1a1a1a;
  --nav-link-hover: rgba(42, 143, 191, 0.45);
  --nav-link-active-border: rgba(42, 143, 191, 0.80);
  --nav-link-active-bg: rgba(42, 143, 191, 0.12);
  --footer-bg: #ede8e2;
  --footer-border: rgba(90, 80, 70, 0.14);
  --footer-tagline: rgba(26, 26, 26, 0.72);
  --footer-link: rgba(26, 26, 26, 0.85);
  --footer-meta: rgba(26, 26, 26, 0.65);
  --feedback-link: #2a8fbf;
}

:root[data-theme="dark"] {
  --bg: #0d141a;
  --surface-low: #151c22;
  --surface: #192026;
  --surface-high: #242b31;
  --surface-highest: #2e363c;
  --text: #dce3ec;
  --text-muted: #bec8d0;
  --link: #38a0d8;
  --muted: #bec8d0;
  --accent: #38a0d8;
  --hero-overlay-top: rgba(8, 14, 20, 0.50);
  --hero-overlay-bottom: rgba(8, 14, 20, 0.72);
  --hero-card-bg: rgba(13, 20, 26, 0.65);
  --btn-primary-bg: #38a0d8;
  --btn-primary-text: #00344c;
  --btn-secondary-border: rgba(190, 200, 208, 0.30);
  --btn-secondary-text: #dce3ec;
  --card-bg: #192026;
  --card-border: transparent;
  --callout-bg: rgba(56, 160, 216, 0.10);
  --callout-border: rgba(56, 160, 216, 0.22);
  --chip-bg: #151c22;
  --chip-border: transparent;
  --tile-bg: #192026;
  --tile-border: transparent;
  --hero-fallback: #080f15;
  --nav-bg: rgba(13, 20, 26, 0.88);
  --nav-border: rgba(190, 200, 208, 0.10);
  --nav-link-bg: #192026;
  --nav-link-border: transparent;
  --nav-link-text: #dce3ec;
  --nav-link-hover: rgba(56, 160, 216, 0.50);
  --nav-link-active-border: rgba(56, 160, 216, 0.80);
  --nav-link-active-bg: rgba(56, 160, 216, 0.12);
  --footer-bg: #080f15;
  --footer-border: rgba(190, 200, 208, 0.10);
  --footer-tagline: rgba(220, 227, 236, 0.72);
  --footer-link: rgba(220, 227, 236, 0.85);
  --footer-meta: rgba(220, 227, 236, 0.65);
  --feedback-link: #38a0d8;
}

/* Base */
html {
  scroll-padding-top: var(--anchor-offset);
}

:target {
  scroll-margin-top: var(--anchor-offset);
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: 'Newsreader', Georgia, serif;
  line-height: 1.15;
  font-weight: 600;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin: 0 0 0.6rem;
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

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

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Two-column layout when a guide sidebar is present */
.container:has(> .guide-sidebar) {
  max-width: 1240px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0 3rem;
  align-items: start;
  padding-top: 2.5rem;
}

/* Series accent colors */
:root {
  --accent-cosmere: #c4a8ff;
  --accent-discworld: #d4874a;
  --accent-dune: #c17e3a;
  --accent-acotar: #e87ea1;
  --accent-throne: #7db8d4;
  --accent-fourth-wing: #b87bc8;
  --accent-dcc: #6dba8a;
  --accent-game-changers: #5bc4d4;
  --accent-scythe: #607d8b;
  --accent-wot: #c9a562;
  --accent-asoiaf: #9b3535;
  --accent-zodiac-academy: #7c5cbf;
}

.series-label {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--series-color, var(--accent));
  margin-bottom: 0.4rem;
}

/* Header */
.site-header {
  text-align: center;
  padding: 2rem 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 5rem 2rem;
  background-size: cover;
  background-position: center;
  transition: background-size 0.3s ease;
}

.cosmere-hero {
  background-image: url("/images/cosmere-hero.webp");
  background-position: center top;
  filter: brightness(1.08) contrast(1.02);
}

.hero-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      var(--hero-overlay-top),
      var(--hero-overlay-bottom));
}

/* Reading Order page helpers */
.hero-short {
  min-height: 55vh;
}

.hero-card {
  background: var(--hero-card-bg);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  max-width: 720px;
}

.hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}


/* Homepage hero background */
.bookorder-hero {
  background-image: url("/images/bookorder-hero.webp");
  background-position: center;
}

/* Discworld hero */
.discworld-hero {
  background-image: url("/images/discworld-hero.webp");
  background-size: cover;
  background-position: center;
  background-position: 50% 35%;
}

/* Dune hero */
.dune-hero {
  background-image: url("/images/dune-hero.webp");
  background-size: cover;
  background-position: center;
  background-position: 50% 35%;
}

/* Game Changers hero */
.gamechangers-hero {
  background-image: url("/images/bookorder-hero.webp");
  background-size: cover;
  background-position: center;
}

/* Dungeon Crawler Carl hero */
.dcc-hero {
  background-image: url("/images/bookorder-hero.webp");
  background-size: cover;
  background-position: center;
}

/* Throne of Glass hero */
.throne-hero {
  background-image: url("/images/bookorder-hero.webp");
  background-size: cover;
  background-position: center;
}

/* ACOTAR hero */
.acotar-hero {
  background-image: url("/images/bookorder-hero.webp");
  background-size: cover;
  background-position: center;
}

.btn {
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
}

.btn.primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn.secondary {
  border: 1px solid var(--btn-secondary-border);
  color: var(--btn-secondary-text);
}

/* Mobile */
@media (max-width: 600px) {
  .hero-content {
    padding: 2rem;
  }
}

@media (max-width: 599px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .hero-content {
    padding: 1.25rem;
  }

  .intro-band {
    padding: 1.25rem 1rem;
  }

  .short-answer {
    padding: 1.25rem 1rem;
  }

  .bento-grid {
    gap: 0.5rem;
  }

  .book-buy-link {
    justify-self: start;
    align-self: center;
  }
}

.kicker {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.callout {
  background: var(--callout-bg);
  border-left: 3px solid var(--callout-border);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem 0;
}

.reading-list h3 {
  margin-bottom: 0.5rem;
}

.page-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.page-nav a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--chip-bg);
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.page-nav a:hover {
  background: var(--surface-high);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tile {
  background: var(--tile-bg);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: background 0.15s ease;
}

.tile:hover {
  background: var(--surface-high);
}

.series-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .series-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.series-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
}

.series-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 12px;
}

.series-card-media {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: var(--surface-high);
}

.series-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 6, 0.12), transparent 60%);
}

.series-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.series-card:hover .series-card-media img {
  transform: scale(1.03);
}

.series-card-body {
  padding: 1.25rem 1.5rem 1.4rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.series-card-title a,
.series-card-cta,
.series-card-links a {
  position: relative;
  z-index: 2;
}

.series-card-title {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.series-card-footer {
  margin-top: auto;
}

.series-card-cta {
  color: var(--text);
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.series-card-links {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0;
}

.guides-link-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.guides-link-list a {
  color: var(--muted);
}

.guides-link-list a:hover {
  color: var(--text);
}

.guides-inline-links {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
}

.guides-inline-links a {
  color: var(--muted);
}

.guides-inline-links a:hover {
  color: var(--text);
}

.share-row {
  margin: 1.5rem 0 0.75rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--muted);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1;
}

.share-btn:hover {
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .share-btn {
  border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .share-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
}


.footer-links {
  text-align: center;
  margin: 2rem 0 0;
  color: var(--muted);
}

.book-buy-link {
  color: var(--muted);
  font-size: 0.88em;
  white-space: nowrap;
}

.book-buy-sep {
  color: var(--muted);
  font-size: 0.88em;
}

.book-buy-link:hover,
.book-buy-link:focus-visible {
  color: var(--link);
  text-decoration: underline;
}

/* Simple screen-reader helper */
.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;
}

/* Mobile */
@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1400px) {
  .hero {
    min-height: 80vh;
  }
}

/* Show full hero image on wide screens */
@media (min-width: 1600px) {
  .hero {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--hero-fallback);
    /* fallback color */
  }
}


.card+.card {
  margin-top: 2rem;
}

/* Reusable guide shell */
.guide-breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-breadcrumbs li+li::before {
  content: "/";
  color: var(--muted);
}

.guide-breadcrumbs span[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* Sitewide top nav */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--nav-border);
}

.top-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--text);
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
}

.brand-icon {
  display: block;
  height: 2.15rem;
  width: auto;
  overflow: visible;
  flex: 0 0 auto;
}

.brand-icon-line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 9;
}

.brand-icon-bookmark {
  fill: #4d95da;
}

.brand-icon-star {
  fill: #d9aa57;
}

.brand-wordmark {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 1.72rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  transform: translateY(0.18em);
}

@media (max-width: 640px) {
  .brand {
    gap: 0.55rem;
  }

  .brand-icon {
    height: 1.95rem;
  }

  .brand-wordmark {
    font-size: 1.5rem;
  }
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--nav-link-bg);
  color: var(--nav-link-text);
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: none;
  background: var(--nav-link-bg);
  color: var(--nav-link-text);
  font: inherit;
  font-size: 0.9rem;
  line-height: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nav-dropdown-toggle::after {
  content: "▾";
  margin-left: 0.4rem;
  font-size: 0.8em;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface-high);
  outline: none;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  background: var(--surface-high);
  outline: none;
}

.nav-dropdown-toggle.active {
  background: var(--nav-link-active-bg);
  outline: 1px solid var(--nav-link-active-border);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  border-radius: 0.7rem;
  background: var(--surface-highest);
  backdrop-filter: blur(12px);
  z-index: 60;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown-toggle[aria-expanded="true"]+.nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  border-color: var(--nav-link-border);
  background: var(--tile-bg);
  outline: none;
}

@media (max-width: 700px) {
  .top-nav-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .nav-dropdown-menu {
    left: 0;
    right: auto;
    max-width: calc(100vw - 2rem);
  }
}

.nav-links a.active {
  background: var(--nav-link-active-bg);
  outline: 1px solid var(--nav-link-active-border);
}

.theme-toggle {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: none;
  background: var(--nav-link-bg);
  color: var(--nav-link-text);
  font: inherit;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--surface-high);
  outline: none;
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon[hidden] {
  display: none;
}

.theme-icon svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-moon svg {
  fill: currentColor;
  stroke: none;
}

/* Sitewide footer */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2.5rem;
  align-items: start;
}

.footer-title {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.4rem;
  line-height: 1.1;
}

.footer-tagline {
  color: var(--footer-tagline);
  font-size: 0.9rem;
  margin: 0 0 0.9rem;
}

.footer-guides {
  margin: 0;
}

.footer-guides a {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-guides a:hover {
  text-decoration: underline;
}

.footer-nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-meta);
  margin: 0 0 0.75rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.45rem;
}

.footer-nav a {
  color: var(--footer-link);
  font-size: 0.9rem;
}

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

.footer-meta {
  text-align: right;
  font-size: 0.85rem;
  color: var(--footer-meta);
}

.footer-meta p {
  margin: 0 0 0.5rem;
}

.footer-note {
  font-size: 0.8rem;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-meta {
    text-align: center;
  }
}

@media (min-width: 900px) {
  .footer-tagline {
    white-space: nowrap;
  }
}

.footer-feedback {
  margin-top: 0.6rem;
}

.footer-feedback a {
  color: var(--feedback-link);
  font-size: 0.85rem;
}

.footer-feedback a:hover {
  text-decoration: underline;
}

/* Newsletter subscribe band */
.footer-subscribe {
  background: var(--surface-high);
  border-bottom: 1px solid var(--footer-border);
  padding: 1.75rem 1.25rem;
}

.footer-subscribe-inner {
  max-width: 600px;
  margin: 0 auto;
}

/* Kit form overrides - strip all default Kit chrome */
.footer-subscribe .formkit-form,
.footer-subscribe [data-uid],
.footer-subscribe [data-style],
.footer-subscribe .formkit-form > div {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

.footer-subscribe .formkit-background {
  display: none !important;
}

.footer-subscribe .formkit-container {
  display: block !important;
  padding: 0 !important;
}

.footer-subscribe .formkit-column {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
}

.footer-subscribe .formkit-header,
.footer-subscribe .formkit-header h1,
.footer-subscribe .formkit-header h2 {
  font-family: inherit !important;
  color: var(--text) !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  margin: 0 0 0.4rem !important;
  text-align: center !important;
}

.footer-subscribe .formkit-subheader,
.footer-subscribe .formkit-subheader p {
  font-family: inherit !important;
  color: var(--footer-tagline) !important;
  font-size: 0.95rem !important;
  margin: 0 0 1rem !important;
  text-align: center !important;
}

/* Fields row - inputs and button inline */
.footer-subscribe .formkit-fields,
.footer-subscribe .seva-fields,
.footer-subscribe [data-element="fields"] {
  display: flex !important;
  gap: 0.5rem !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  margin-top: 0.75rem !important;
}

.footer-subscribe .formkit-field {
  flex: 1 !important;
  min-width: 140px !important;
}

.footer-subscribe .formkit-input {
  font-family: inherit !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--footer-border) !important;
  border-radius: 6px !important;
  padding: 0.6rem 0.9rem !important;
  font-size: 0.95rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  height: auto !important;
}

.footer-subscribe .formkit-input::placeholder {
  color: var(--footer-meta) !important;
}

/* Button - force auto width so it stays inline */
.footer-subscribe .formkit-submit,
.footer-subscribe [data-element="submit"],
.footer-subscribe button[data-element="submit"] {
  font-family: inherit !important;
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.6rem 1.4rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  align-self: stretch !important;
  display: inline-flex !important;
  align-items: center !important;
}

.footer-subscribe .formkit-submit:hover,
.footer-subscribe [data-element="submit"]:hover {
  opacity: 0.88 !important;
}

/* Hide Kit elements we don't need - description already says "No spam" */
.footer-subscribe .formkit-guarantee,
.footer-subscribe .formkit-spinner {
  display: none !important;
}

/* Style Kit branding to fit the footer */
.footer-subscribe .formkit-powered-by,
.footer-subscribe [data-element="powered-by"] {
  display: block !important;
  text-align: center !important;
  margin-top: 0.6rem !important;
  font-size: 0.75rem !important;
  opacity: 0.75 !important;
}

/* Strip all bottom padding from Kit's internal wrappers */
.footer-subscribe .formkit-form > *,
.footer-subscribe [data-style] {
  padding: 0 !important;
  margin: 0 !important;
}

/* Guide sidebar */
.guide-sidebar {
  position: sticky;
  top: calc(var(--anchor-offset) + 1rem);
  background: var(--surface-low);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.guide-sidebar .guide-breadcrumbs ol {
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.guide-sidebar .guide-breadcrumbs li::before {
  display: none;
}

.guide-sidebar .guide-breadcrumbs li+li {
  padding-left: 0.75rem;
}

.guide-sidebar .guide-breadcrumbs li+li::before {
  display: none;
}

.guide-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.guide-sidebar-section h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.guide-sidebar-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.guide-sidebar-section li a,
.guide-sidebar-section li span {
  display: block;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text);
  transition: background 0.15s ease;
}

.guide-sidebar-section li a:hover {
  background: var(--surface-high);
}

.guide-sidebar-section li span[aria-current="page"] {
  background: var(--nav-link-active-bg);
  color: var(--accent);
  font-weight: 600;
}

.guide-sidebar-disclosure {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  padding-top: 0.5rem;
  border-top: 1px solid var(--surface-high);
}

/* Collapse sidebar on small screens */
@media (max-width: 860px) {
  .container:has(> .guide-sidebar) {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    position: static;
  }
}

/* Force hero card left alignment */
.hero .hero-card {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Covers the common pattern: <div class="hero-content hero-card"> */
.hero .hero-content.hero-card {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* =============================================
   STITCH DESIGN SYSTEM - NEW PATTERNS
   ============================================= */

/* Page wrapper - wider than standard container */
.page-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 768px) {
  .page-wrap {
    padding: 0 3rem;
  }
}

/* Split hero - text left, image right */
.hero-split {
  background: var(--bg);
  padding: 7rem 2rem 4rem;
}

@media (min-width: 768px) {
  .hero-split {
    padding: 8rem 3rem 5rem;
  }
}

.hero-split-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-split-inner {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
  }
}

.hero-split-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-split-text h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1.05;
  color: var(--text);
  margin: 0;
}

.hero-split-text .hero-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 540px;
  margin: 0;
}

/* Series pill badge */
.series-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--page-accent, var(--accent)) 12%, transparent);
  color: var(--page-accent, var(--accent));
  width: fit-content;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1;
}

.series-pill::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  align-self: center;
}

.series-pill.cosmere {
  background: rgba(196, 168, 255, 0.12);
  color: var(--accent-cosmere);
}

.series-pill.dune {
  background: rgba(193, 126, 58, 0.12);
  color: var(--accent-dune);
}

.series-pill.acotar {
  background: rgba(232, 126, 161, 0.12);
  color: var(--accent-acotar);
}

.series-pill.wot {
  background: rgba(201, 165, 98, 0.12);
  color: var(--accent-wot);
}

.series-pill.asoiaf {
  background: rgba(155, 53, 53, 0.12);
  color: var(--accent-asoiaf);
}

/* Hero image card with ghost offset */
.hero-split-image {
  position: relative;
  display: none;
}

@media (min-width: 900px) {
  .hero-split-image {
    display: block;
  }
}

.hero-image-card {
  position: relative;
  z-index: 1;
  border-radius: 2px 10px 10px 2px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  box-shadow:
    inset 3px 0 8px rgba(0, 0, 0, 0.55),
    6px 0 0 rgba(255, 255, 255, 0.14),
    10px 0 0 rgba(255, 255, 255, 0.08),
    14px 0 0 rgba(255, 255, 255, 0.04),
    18px 8px 30px rgba(0, 0, 0, 0.5);
}

.hero-image-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 50%, transparent) 0%, transparent 25%);
}

/* Overline label - small uppercase kicker */
.overline {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--page-accent, var(--accent));
  margin-bottom: 0.5rem;
}

/* Section heading with amber ruled line */
.section-ruled {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.75rem;
}

.section-ruled .rule {
  height: 1px;
  background: linear-gradient(to right, color-mix(in srgb, var(--page-accent, var(--accent)) 45%, transparent), transparent);
  flex: 1;
}

.section-ruled h2 {
  font-style: italic;
  color: var(--page-accent, var(--accent));
  padding: 0 1.25rem 0 0;
  margin: 0;
  font-size: 1.3rem;
  white-space: nowrap;
}

/* Tile icon watermark */
.tile {
  position: relative;
  overflow: hidden;
}

.tile-icon {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  font-size: 4.5rem;
  line-height: 1;
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.tile:hover .tile-icon {
  opacity: 0.12;
}

/* Reading list - grid rows with counter */
.reading-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  counter-reset: reading-counter;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.reading-list li {
  counter-increment: reading-counter;
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--tile-bg);
  border-radius: 4px;
  transition: background 0.15s ease;
}

.reading-list li::before {
  content: counter(reading-counter, decimal-leading-zero);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--page-accent, var(--accent));
}

.reading-list li:hover {
  background: var(--surface-high);
}

.reading-title {
  color: var(--text);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reading-title .book-buy-link {
  margin-left: auto;
}

/* Buy pill links */
.book-buy-sep {
  display: none;
}

.book-buy-link {
  display: inline-block;
  background: #f0b870;
  color: #3d1f00;
  padding: 3px 10px;
  border-radius: 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.book-buy-link+.book-buy-link {
  margin-left: 0.35rem;
  background: #1a8a2d;
  color: #fff;
}

.book-buy-link:hover {
  background: #e8a558;
  color: #3d1f00;
  filter: none;
  text-decoration: none;
}

:root[data-theme="dark"] .book-buy-link {
  background: #7a4e18;
  color: #f5d5a0;
}

:root[data-theme="dark"] .book-buy-link+.book-buy-link {
  background: #1a5c28;
  color: #a8e0b8;
}

:root[data-theme="dark"] .book-buy-link:hover {
  background: #8f5c1e;
  color: #f5d5a0;
}


/* Standalone tile - left border accent */
.tile-accent {
  border-left: 2px solid rgba(212, 135, 74, 0.4);
}

/* Intro band - editorial question card */
.intro-band {
  background: var(--surface-low);
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

:root[data-theme="dark"] .intro-band {
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .intro-band {
    padding: 3.5rem;
  }
}

.intro-band h2 {
  font-style: italic;
  color: var(--text);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.intro-band p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 0.5rem;
}

/* Short answer callout - amber left accent */
.short-answer {
  background: rgba(212, 135, 74, 0.06);
  border-left: 3px solid var(--page-accent, var(--accent));
  border-radius: 0 10px 10px 0;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

:root[data-theme="dark"] .short-answer {
  background: color-mix(in srgb, var(--page-accent, var(--accent)) 7%, transparent);
}

.short-answer strong {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* Bento grid - asymmetric tile layout */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .bento-lg {
    grid-column: span 8;
  }

  .bento-sm {
    grid-column: span 4;
  }

  .bento-md {
    grid-column: span 5;
  }

  .bento-ml {
    grid-column: span 7;
  }
}

/* Page layout with sidebar - upgraded from previous implementation */
.page-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .page-layout {
    padding: 2.5rem 3rem 4rem;
  }
}

@media (min-width: 1024px) {
  .page-layout {
    grid-template-columns: 260px 1fr;
    gap: 4rem;
    align-items: start;
  }
}

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

@media (min-width: 1024px) {
  .page-sidebar {
    position: sticky;
    top: calc(var(--anchor-offset) + 1rem);
  }
}

.page-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Sidebar TOC with left border */
.toc-nav {
  border-left: 1px solid rgba(63, 72, 79, 0.3);
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-section-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.75rem 0 0.35rem;
  display: block;
}

.toc-nav a {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  padding: 0.2rem 0;
  transition: color 0.15s;
}

.toc-nav a:hover {
  color: var(--text);
}

.toc-nav a.active {
  color: var(--text);
  font-weight: 600;
}

/* Dark mode adjustments */
:root[data-theme="dark"] .reading-list li {
  background: rgba(25, 32, 38, 0.5);
}

:root[data-theme="dark"] .reading-list li:hover {
  background: var(--surface);
}


/* ── Nav controls (font size select + theme toggle) ── */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.font-size-select {
  background: var(--nav-link-bg);
  border: 1px solid transparent;
  color: var(--nav-link-text);
  font-size: 0.8rem;
  font-family: inherit;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}

.font-size-select:hover {
  background: var(--surface-high);
}

.font-size-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Font size preference overrides (text only, not headings) ── */
[data-font-size="small"] main p,
[data-font-size="small"] main .note,
[data-font-size="small"] main li {
  font-size: 0.83rem;
}

[data-font-size="large"] main p,
[data-font-size="large"] main .note,
[data-font-size="large"] main li {
  font-size: 1.08rem;
}

/* ── Reading Progress Widget ── */
.reading-progress {
  background: var(--surface-low, #1a1f2e);
  border-radius: 12px;
  padding: 1.25rem 1.5rem 1rem;
}

.reading-progress-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.reading-progress-header h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

.progress-count {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.progress-track {
  height: 4px;
  background: var(--surface-high, #2a3045);
  border-radius: 999px;
  margin-bottom: 1.1rem;
  overflow: hidden;
  display: flex;
}

.progress-fill-done {
  height: 100%;
  background: var(--page-accent, #6dba8a);
  border-radius: 999px 0 0 999px;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 0%;
  flex-shrink: 0;
}

.progress-fill-reading {
  height: 100%;
  background: color-mix(in srgb, var(--page-accent, #6dba8a) 45%, white);
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 0%;
  flex-shrink: 0;
}

.progress-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.progress-checklist li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s;
  cursor: pointer;
  user-select: none;
}

.progress-checklist li:hover {
  background: var(--surface-high, #2a3045);
}

.book-state-btn {
  width: 17px;
  height: 17px;
  min-width: 17px;
  border-radius: 4px;
  border: 1.5px solid var(--muted, #6b7280);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
  padding: 0;
  flex-shrink: 0;
}

.book-state-btn[data-state="none"] {
  border-color: var(--muted, #6b7280);
  background: transparent;
}

.book-state-btn[data-state="reading"] {
  border-color: var(--page-accent, #6dba8a);
  background: transparent;
}

.book-state-btn[data-state="reading"]::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  background: var(--page-accent, #6dba8a);
  opacity: 0.7;
}

.book-state-btn[data-state="done"] {
  border-color: var(--page-accent, #6dba8a);
  background: var(--page-accent, #6dba8a);
}

.book-state-btn[data-state="done"]::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #0f1117;
  border-bottom: 2px solid #0f1117;
  transform: rotate(-45deg);
}

.book-label {
  font-size: 0.88rem;
  line-height: 1.3;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.book-label[data-state="none"] {
  color: var(--text);
}

.book-label[data-state="reading"] {
  color: var(--page-accent, #6dba8a);
}

.book-label[data-state="done"] {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--muted);
}

.reading-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--page-accent, #6dba8a);
  background: color-mix(in srgb, var(--page-accent, #6dba8a) 15%, transparent);
  padding: 0.1em 0.45em;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
}

.book-label[data-state="reading"] .reading-badge {
  opacity: 1;
}

.book-date {
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.progress-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}

.progress-reset,
.progress-export {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.35rem 0;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.progress-reset:hover,
.progress-export:hover {
  opacity: 1;
}

.progress-actions-sep {
  color: var(--muted);
  font-size: 0.75rem;
  opacity: 0.4;
}

/* ── Print checklist ── */
.print-checklist {
  display: none;
}

@media print {
  body>*:not(.print-checklist) {
    display: none !important;
  }

  .print-checklist {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    color: #111;
    padding: 2.5cm 2.5cm 2cm;
    max-width: 100%;
  }

  .pc-brand {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22pt;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #111;
    margin-bottom: 0.15cm;
  }

  .pc-brand span {
    color: #5aab78;
  }

  .pc-tagline {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8pt;
    color: #888;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5cm;
  }

  .pc-rule {
    border: none;
    border-top: 1px solid #ccc;
    margin: 0.4cm 0;
  }

  .pc-title {
    font-size: 22pt;
    font-weight: normal;
    text-align: center;
    margin: 0.3cm 0 0.1cm;
    letter-spacing: -0.01em;
  }

  .pc-subtitle {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    color: #666;
    text-align: center;
    margin-bottom: 0.1cm;
  }

  .pc-generated {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8pt;
    color: #aaa;
    text-align: center;
    margin-bottom: 0.1cm;
  }

  .pc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.3cm;
  }

  .pc-table td {
    padding: 0.22cm 0.15cm;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
  }

  .pc-table td.pc-num {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8pt;
    color: #aaa;
    width: 0.6cm;
    text-align: right;
    padding-right: 0.3cm;
  }

  .pc-table td.pc-icon {
    width: 0.6cm;
    text-align: center;
    font-size: 13pt;
  }

  .pc-table td.pc-book-title {
    font-size: 11pt;
  }

  .pc-table td.pc-book-date {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8pt;
    color: #888;
    text-align: right;
    white-space: nowrap;
  }

  .pc-icon-done {
    color: #111;
  }

  .pc-icon-reading {
    color: #555;
  }

  .pc-icon-none {
    color: #ccc;
  }

  .pc-title-done {
    color: #888;
  }

  .pc-title-reading {
    color: #111;
    font-style: italic;
  }

  .pc-title-none {
    color: #111;
  }

  .pc-summary {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    color: #555;
    margin-top: 0.4cm;
  }

  .pc-footer {
    margin-top: 1.5cm;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8pt;
    color: #aaa;
    text-align: center;
  }
}

/* Helpful feedback widget */
.helpful-widget {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.helpful-btn {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--btn-secondary-border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.helpful-btn:hover {
  background: var(--surface-high);
}

.helpful-thanks {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}
