/* ===========================================================
   Math Worksheet Pdf — editorial visual refresh
   Warm paper palette, serif display type, quiet green accents.
   Layout only: URLs, titles, descriptions and generator behaviour
   are unchanged.
   =========================================================== */

body.redesign {
  --rd-bg: #f9f8f6;
  --rd-surface: #fffdfa;
  --rd-surface-soft: #f3eee6;
  --rd-ink: #3d3329;
  --rd-muted: #72665a;
  --rd-soft: #9a8c7d;
  --rd-line: #e4e0da;
  --rd-line-strong: #d6cec3;
  --rd-green: #2f6b4f;
  --rd-green-dark: #23523c;
  --rd-green-soft: #eaf2ec;
  --rd-gold: #b99861;
  --rd-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --rd-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --primary-50: #eef5ef;
  --primary-100: #dcebdf;
  --primary-200: #c4ddc9;
  --primary-300: #9bc4a5;
  --primary-400: #6fa37e;
  --primary-500: #4b8761;
  --primary-600: #2f6b4f;
  --primary-700: #24523d;
  --primary-800: #1b3f2f;
  --primary-900: #123025;

  --gray-50: #f9f8f6;
  --gray-100: #f3eee6;
  --gray-200: #e4e0da;
  --gray-300: #d0c8bd;
  --gray-400: #aa9d8e;
  --gray-500: #86796b;
  --gray-600: #6c6054;
  --gray-700: #574c41;
  --gray-800: #3d3329;
  --gray-900: #2b231c;

  --bg-page: #f9f8f6;
  --bg-card: #fffdfa;
  --bg-elevated: #fffdfa;
  --bg-muted: #f3eee6;
  --bg-hover: #eef5ef;
  --text-primary: #3d3329;
  --text-secondary: #6f6357;
  --text-muted: #938678;
  --text-inverse: #fffdfa;
  --border-light: #e4e0da;
  --border-medium: #d6cec3;
  --border-dark: #b8aea1;
  --border-focus: #2f6b4f;
  --font-sans: var(--rd-sans);

  margin: 0;
  background: var(--rd-bg);
  color: var(--rd-ink);
  font-family: var(--rd-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.redesign *,
body.redesign *::before,
body.redesign *::after {
  box-sizing: border-box;
}

body.redesign ::selection {
  background: #dcebdf;
  color: #193a2a;
}

body.redesign a {
  text-underline-offset: 3px;
}

body.redesign :focus-visible {
  outline: 2px solid var(--rd-green);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

body.redesign .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 248, 246, 0.9);
  border-bottom: 1px solid var(--rd-line);
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.redesign .site-header__container {
  max-width: 1240px;
  min-height: 70px;
  padding: 14px 32px;
  gap: 24px;
}

body.redesign .site-logo {
  gap: 11px;
  color: var(--rd-ink);
  font-family: var(--rd-sans);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

body.redesign .site-logo:hover {
  color: var(--rd-green);
}

body.redesign .site-logo__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--rd-green);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  box-shadow: none;
}

body.redesign .main-nav {
  gap: 4px;
}

body.redesign .main-nav__link,
body.redesign .nav-dropdown__trigger {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--rd-muted);
  font-size: 14px;
  font-weight: 500;
}

body.redesign .main-nav__link:hover,
body.redesign .nav-dropdown__trigger:hover {
  color: var(--rd-ink);
  background: rgba(255, 253, 250, 0.75);
}

body.redesign .main-nav__link--active {
  color: var(--rd-green);
  background: var(--rd-green-soft);
}

body.redesign .main-nav__link--active::after {
  display: none;
}

body.redesign .nav-dropdown__menu {
  padding: 8px;
  background: var(--rd-surface);
  border: 1px solid var(--rd-line);
  border-radius: 14px;
  box-shadow: 0 18px 40px -22px rgba(61, 51, 41, 0.35);
}

body.redesign .nav-dropdown__item {
  border-radius: 8px;
  color: var(--rd-muted);
  font-size: 14px;
}

body.redesign .nav-dropdown__item:hover {
  background: var(--rd-green-soft);
  color: var(--rd-green);
}

body.redesign .header-meta {
  color: var(--rd-muted);
}

body.redesign .mobile-menu-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--rd-line);
  border-radius: 10px;
  color: var(--rd-ink);
  background: rgba(255, 253, 250, 0.8);
}

body.redesign .mobile-menu-toggle:hover {
  background: var(--rd-green-soft);
  color: var(--rd-green);
}

body.redesign .mobile-menu {
  background: var(--rd-surface);
  border-left: 1px solid var(--rd-line);
}

body.redesign .mobile-menu__header {
  border-bottom: 1px solid var(--rd-line);
}

body.redesign .mobile-menu__link,
body.redesign .mobile-menu__sublink {
  color: var(--rd-ink);
}

body.redesign .mobile-menu__link--active {
  color: var(--rd-green);
  background: var(--rd-green-soft);
}

body.redesign .mobile-menu__section-title {
  color: var(--rd-soft);
}

/* ---------- Page shell and hero ---------- */

body.redesign .page-content {
  padding: 0 0 88px;
  background:
    radial-gradient(ellipse 900px 420px at 50% -160px, rgba(220, 235, 223, 0.55), transparent 70%),
    var(--rd-bg);
}

body.redesign .page-content > .container {
  max-width: 1240px;
  padding-left: 24px;
  padding-right: 24px;
}

body.redesign .page-intro {
  max-width: 920px;
  margin: 0 auto;
  padding: 74px 20px 36px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 8px 16px;
  border: 1px solid #d6e5da;
  border-radius: 999px;
  background: rgba(234, 242, 236, 0.78);
  color: var(--rd-green);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

.hero-eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rd-green);
  box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.12);
}

body.redesign .hero__title {
  margin: 0 auto 20px;
  max-width: 920px;
  color: var(--rd-ink);
  font-family: var(--rd-serif);
  font-size: clamp(2.65rem, 5.1vw, 4.8rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

body.redesign .page-intro__description {
  max-width: 720px;
  margin: 0 auto;
  color: var(--rd-muted);
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  line-height: 1.75;
}

/* ---------- Generator card ---------- */

body.redesign #generator {
  margin: 0 auto;
  max-width: 1240px;
}

body.redesign .generator-embed {
  --rail-bg: #fffdfa;
  --rail-bg-deep: #f7f1e8;
  --rail-line: #e4e0da;
  --rail-text: #3d3329;
  --rail-muted: #8b7e70;
  --rail-accent: #2f6b4f;
  --rail-cta: #2f6b4f;

  overflow: hidden;
  background: var(--rd-surface);
  border: 1px solid var(--rd-line);
  border-radius: 26px;
  box-shadow: 0 34px 80px -46px rgba(61, 51, 41, 0.42);
}

body.redesign .generator-embed .app-workspace {
  grid-template-columns: minmax(0, 510px) minmax(0, 1fr);
  height: auto;
  min-height: 680px;
}

body.redesign .generator-embed .control-rail {
  padding: 28px 30px 24px 32px;
  background: var(--rd-surface);
  border-right: 1px solid var(--rd-line);
}

body.redesign .generator-embed .preview-rail {
  min-height: 680px;
  background: var(--rd-surface-soft);
  border-radius: 0;
}

body.redesign .generator-embed .preview-toolbar {
  background: #faf6ef;
  border-bottom: 1px solid var(--rd-line);
}

body.redesign .generator-embed .preview-stage {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.92), transparent 62%),
    var(--rd-surface-soft);
}

body.redesign .generator-embed .preview-canvas .sheet {
  border: 1px solid #e8e2d8;
  box-shadow: 0 16px 38px -24px rgba(61, 51, 41, 0.45);
}

body.redesign .generator-embed .field-label {
  gap: 9px;
  color: var(--rd-green);
  font-family: var(--rd-sans);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.redesign .generator-embed .field-label::before {
  color: var(--rd-green);
  font-size: 12px;
}

body.redesign .generator-embed .field-group {
  margin-bottom: 22px;
}

body.redesign .generator-embed .field-group__head {
  margin-bottom: 11px;
}

body.redesign .generator-embed .skill-meta,
body.redesign .generator-embed .count-hint {
  color: var(--rd-soft);
}

body.redesign .generator-embed .operation-card,
body.redesign .generator-embed #levels button,
body.redesign .generator-embed .difficulty-option,
body.redesign .generator-embed .count-presets button,
body.redesign .generator-embed .mini-btn,
body.redesign .generator-embed .btn-answer,
body.redesign .generator-embed .btn-reset {
  border-color: var(--rd-line);
  background: #fffdfa;
  color: var(--rd-ink);
  box-shadow: none;
}

body.redesign .generator-embed .operation-card:hover:not(:disabled),
body.redesign .generator-embed #levels button:hover:not(:disabled),
body.redesign .generator-embed .difficulty-option:hover:not(:disabled),
body.redesign .generator-embed .count-presets button:hover,
body.redesign .generator-embed .mini-btn:hover,
body.redesign .generator-embed .btn-answer:hover,
body.redesign .generator-embed .btn-reset:hover {
  border-color: var(--rd-green);
  background: var(--rd-green-soft);
  color: var(--rd-green);
}

body.redesign .generator-embed #levels button[aria-pressed="true"],
body.redesign .generator-embed .operation-card[aria-pressed="true"],
body.redesign .generator-embed .topic-item:has(input:checked) {
  border-color: #9ec1aa;
  background: var(--rd-green-soft);
  color: var(--rd-green-dark);
  box-shadow: none;
}

body.redesign .generator-embed .operation-card[aria-pressed="true"] .op-symbol {
  color: var(--rd-green);
}

body.redesign .generator-embed .difficulty-option[aria-pressed="true"],
body.redesign .generator-embed .count-presets button[aria-pressed="true"] {
  border-color: var(--rd-green);
  background: var(--rd-green);
  color: #fff;
  box-shadow: none;
}

body.redesign .generator-embed .topic-item__label,
body.redesign .generator-embed .topic-item:has(input:checked) .topic-item__label {
  color: var(--rd-ink);
  font-size: 12.5px;
}

body.redesign .generator-embed .topic-item:has(input:checked)::after {
  color: var(--rd-green);
}

body.redesign .generator-embed .btn-generate {
  height: 52px;
  border-radius: 12px;
  background: var(--rd-green);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(47, 107, 79, 0.65);
}

body.redesign .generator-embed .btn-generate:hover {
  background: var(--rd-green-dark);
  box-shadow: 0 14px 26px -12px rgba(35, 82, 60, 0.7);
}

body.redesign .generator-embed .btn-reset {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  color: var(--rd-green);
}

body.redesign .generator-embed .preview-eyebrow {
  color: var(--rd-green);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

body.redesign .generator-embed .page-summary,
body.redesign .generator-embed .preview-summary {
  color: var(--rd-soft);
}

body.redesign .generator-embed .btn-answer {
  border-radius: 999px;
  font-weight: 550;
}

body.redesign .generator-embed .btn-answer:not(:disabled):hover {
  border-color: var(--rd-green);
}

body.redesign .generator-embed .page-select:focus {
  border-color: var(--rd-green);
  box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.12);
}

body.redesign .generator-embed .preview-empty {
  color: var(--rd-soft);
}

body.redesign .generator-embed .preview-empty__icon {
  color: var(--rd-green);
  background: var(--rd-green-soft);
  border: 1px solid #d6e5da;
  box-shadow: none;
}

/* ---------- Editorial section rhythm ---------- */

body.redesign .quick-start,
body.redesign .related-pages,
body.redesign .ready-made--home,
body.redesign .seo-section,
body.redesign .seo-content {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

body.redesign .quick-start {
  margin-top: 76px;
  padding-left: 24px;
  padding-right: 24px;
}

body.redesign .related-pages {
  margin-top: 68px;
  padding-left: 24px;
  padding-right: 24px;
}

body.redesign .ready-made--home {
  margin-top: 68px;
  padding-left: 24px;
  padding-right: 24px;
}

body.redesign .seo-section {
  margin-top: 84px;
  padding: 0 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--rd-green);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

body.redesign .quick-start__title,
body.redesign .related-pages__title,
body.redesign .ready-made--home > h2,
body.redesign .seo-section__title,
body.redesign .seo-content h2,
body.redesign .home-guide h2,
body.redesign .home-faq h2 {
  margin: 0 0 14px;
  color: var(--rd-ink);
  font-family: var(--rd-serif);
  font-size: clamp(1.9rem, 3.3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-align: center;
}

body.redesign .quick-start__title,
body.redesign .related-pages__title,
body.redesign .ready-made--home > h2,
body.redesign .seo-section__title {
  margin-bottom: 30px;
}

body.redesign .quick-start__grid,
body.redesign .related-pages__grid {
  gap: 16px;
  max-width: 1120px;
}

body.redesign .related-pages__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.redesign .quick-start-card,
body.redesign .related-page-card {
  background: var(--rd-surface);
  border: 1px solid var(--rd-line);
  border-radius: 18px;
  box-shadow: none;
}

body.redesign .quick-start-card {
  padding: 24px;
  text-align: left;
}

body.redesign .quick-start-card:hover,
body.redesign .related-page-card:hover {
  border-color: #b6cdbd;
  transform: translateY(-3px);
  box-shadow: 0 20px 38px -30px rgba(61, 51, 41, 0.45);
}

body.redesign .quick-start-card__icon {
  width: 46px;
  height: 46px;
  margin: 0 0 16px;
  border-radius: 13px;
  background: var(--rd-green-soft);
  color: var(--rd-green);
  font-size: 21px;
  font-weight: 600;
}

body.redesign .quick-start-card__title {
  margin: 0 0 7px;
  color: var(--rd-ink);
  font-family: var(--rd-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.redesign .quick-start-card__description {
  color: var(--rd-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

body.redesign .related-page-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
}

body.redesign .related-page-card__title {
  margin: 0;
  color: var(--rd-ink);
  font-family: var(--rd-serif);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

body.redesign .related-page-card::after {
  content: "→";
  flex: none;
  color: var(--rd-green);
  font-size: 1.1rem;
  transition: transform 180ms ease;
}

body.redesign .related-page-card:hover::after {
  transform: translateX(3px);
}

/* ---------- PDF cards ---------- */

body.redesign .ready-made--home {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 0;
  border-top: 0;
}

body.redesign .ready-made--home > .section-kicker,
body.redesign .ready-made--home > h2,
body.redesign .ready-made--home > p {
  grid-column: 1 / -1;
}

body.redesign .ready-made--home > p {
  max-width: 680px;
  margin: 0 auto 8px;
  color: var(--rd-muted);
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

body.redesign .ready-made--home .pdf-grade {
  padding: 20px 22px;
  background: var(--rd-surface);
  border: 1px solid var(--rd-line);
  border-radius: 18px;
}

body.redesign .ready-made--home .pdf-grade h3 {
  margin: 0 0 10px;
  color: var(--rd-ink);
  font-family: var(--rd-serif);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.redesign .ready-made--home .ready-made-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.redesign .ready-made--home .ready-made-list li {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px dashed #e9e2d8;
}

body.redesign .ready-made--home .ready-made-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body.redesign .ready-made--home .ready-made-list a {
  color: var(--rd-ink);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
}

body.redesign .ready-made--home .ready-made-list a:hover {
  color: var(--rd-green);
}

/* ---------- About / How / FAQ on the home page ---------- */

body.redesign .seo-section__content {
  max-width: 780px;
  margin: 0 auto;
  color: var(--rd-muted);
  font-size: 1.03rem;
  line-height: 1.8;
  text-align: center;
}

body.redesign .seo-section__content p {
  margin: 0 0 14px;
}

body.redesign .seo-section__content p:last-child {
  margin-bottom: 0;
}

body.redesign .home-guide,
body.redesign .home-faq {
  max-width: 1000px;
  margin: 62px auto 0;
  padding-top: 54px;
  border-top: 1px solid var(--rd-line);
}

body.redesign .home-guide .section-kicker,
body.redesign .home-faq .section-kicker {
  margin-bottom: 12px;
}

body.redesign .home-guide h2,
body.redesign .home-faq h2 {
  margin-bottom: 10px;
}

body.redesign .section-lead {
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--rd-muted);
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

body.redesign .home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.redesign .home-step {
  padding: 24px;
  background: var(--rd-surface);
  border: 1px solid var(--rd-line);
  border-radius: 18px;
}

body.redesign .home-step__number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--rd-green);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

body.redesign .home-step h3 {
  margin: 16px 0 7px;
  color: var(--rd-ink);
  font-family: var(--rd-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

body.redesign .home-step p {
  margin: 0;
  color: var(--rd-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

body.redesign .faq-list {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--rd-line);
}

body.redesign .home-faq-item {
  border-bottom: 1px solid var(--rd-line);
}

body.redesign .home-faq-item > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 2px;
  color: var(--rd-ink);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

body.redesign .home-faq-item > summary::-webkit-details-marker {
  display: none;
}

body.redesign .home-faq-item > summary::after {
  content: "+";
  flex: none;
  color: var(--rd-green);
  font-family: var(--rd-sans);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 160ms ease;
}

body.redesign .home-faq-item[open] > summary::after {
  content: "−";
}

body.redesign .home-faq-item > p {
  max-width: 740px;
  margin: 0 0 20px;
  color: var(--rd-muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

/* ---------- Detail-page SEO content ---------- */

body.redesign .seo-content {
  margin-top: 78px;
  padding: 0 24px;
}

body.redesign .seo-content .seo-copy,
body.redesign .seo-content > section,
body.redesign .seo-content > nav {
  margin-bottom: 56px;
}

body.redesign .seo-content .seo-copy h2,
body.redesign .seo-content > section h2,
body.redesign .seo-content > nav h2 {
  margin-bottom: 18px;
}

body.redesign .seo-content .seo-copy p {
  max-width: 800px;
  margin: 0 auto 16px;
  color: var(--rd-muted);
  font-size: 1.02rem;
  line-height: 1.8;
  text-align: center;
}

body.redesign .seo-content .seo-standard-note {
  max-width: 760px;
  margin: 22px auto 0;
  padding: 14px 18px;
  background: var(--rd-green-soft);
  border: 1px solid #d6e5da;
  border-radius: 12px;
  color: #536b5c;
  font-size: 0.86rem;
  line-height: 1.6;
  text-align: center;
}

body.redesign .seo-content .example-questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

body.redesign .seo-content .example-questions li {
  padding: 17px 18px;
  background: var(--rd-surface);
  border: 1px solid var(--rd-line);
  border-radius: 14px;
  color: var(--rd-ink);
  font-size: 0.96rem;
  line-height: 1.5;
}

body.redesign .seo-content .example-questions code {
  color: var(--rd-ink);
  font-family: var(--rd-sans);
  font-size: 0.98rem;
  font-weight: 650;
}

body.redesign .seo-content .example-answer {
  display: block;
  margin-top: 6px;
  color: var(--rd-muted);
  font-size: 0.86rem;
}

body.redesign .seo-content ol {
  display: grid;
  gap: 12px;
  max-width: 840px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: how-to;
}

body.redesign .seo-content ol > li {
  position: relative;
  padding: 18px 20px 18px 62px;
  background: var(--rd-surface);
  border: 1px solid var(--rd-line);
  border-radius: 14px;
  color: var(--rd-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  counter-increment: how-to;
}

body.redesign .seo-content ol > li::before {
  content: counter(how-to);
  position: absolute;
  left: 19px;
  top: 18px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--rd-green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

body.redesign .seo-content .ready-made {
  max-width: 900px;
  margin: 0 auto 56px;
  padding: 26px 28px;
  background: var(--rd-surface-soft);
  border: 1px solid var(--rd-line);
  border-radius: 18px;
}

body.redesign .seo-content .ready-made h2 {
  margin-bottom: 8px;
}

body.redesign .seo-content .ready-made p {
  color: var(--rd-muted);
  text-align: left;
}

body.redesign .seo-content .ready-made-list {
  margin: 0;
  padding-left: 1.2rem;
}

body.redesign .seo-content .ready-made-list li {
  margin: 7px 0;
  color: var(--rd-muted);
}

body.redesign .seo-content .ready-made-list a {
  color: var(--rd-green);
  font-weight: 550;
  text-decoration: none;
}

body.redesign .seo-content .ready-made-list a:hover {
  text-decoration: underline;
}

body.redesign .seo-content .seo-faq-item {
  max-width: 800px;
  margin: 0 auto;
  border-bottom: 1px solid var(--rd-line);
}

body.redesign .seo-content .seo-faq-item:first-of-type {
  border-top: 1px solid var(--rd-line);
}

body.redesign .seo-content .seo-faq-item > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 2px;
  color: var(--rd-ink);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

body.redesign .seo-content .seo-faq-item > summary::-webkit-details-marker {
  display: none;
}

body.redesign .seo-content .seo-faq-item > summary::after {
  content: "+";
  flex: none;
  color: var(--rd-green);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

body.redesign .seo-content .seo-faq-item[open] > summary::after {
  content: "−";
}

body.redesign .seo-content .seo-faq-item > p {
  max-width: 740px;
  margin: 0 0 20px;
  color: var(--rd-muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

body.redesign .seo-content .related-pages {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

body.redesign .seo-content .related-pages ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.redesign .seo-content .related-pages li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px;
  background: var(--rd-surface);
  border: 1px solid var(--rd-line);
  border-radius: 12px;
  color: var(--rd-ink);
  font-size: 0.94rem;
  font-weight: 550;
  text-decoration: none;
}

body.redesign .seo-content .related-pages li a::after {
  content: "→";
  color: var(--rd-green);
}

body.redesign .seo-content .related-pages li a:hover {
  border-color: #b6cdbd;
  background: var(--rd-green-soft);
  color: var(--rd-green-dark);
}

/* The detail pages keep the shared quick-start cards below the SEO copy. */
body.redesign .seo-content + .quick-start {
  margin-top: 0;
}

/* ---------- Footer ---------- */

body.redesign .site-footer {
  background: #f3eee6;
  border-top: 1px solid var(--rd-line);
  color: var(--rd-muted);
}

body.redesign .site-footer__container {
  max-width: 1240px;
  padding: 54px 24px 24px;
}

body.redesign .site-footer h3 {
  margin: 0 0 14px;
  color: var(--rd-ink);
  font-family: var(--rd-serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.redesign .site-footer__link {
  color: var(--rd-muted);
  font-size: 0.9rem;
}

body.redesign .site-footer__link:hover {
  color: var(--rd-green);
}

body.redesign .site-footer__bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--rd-line);
  color: var(--rd-soft);
}

body.redesign .site-footer__copyright {
  color: var(--rd-soft);
  font-size: 0.84rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1099px) {
  body.redesign .generator-embed .app-workspace {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  body.redesign .generator-embed .preview-rail {
    min-height: 0;
    border-top: 1px solid var(--rd-line);
    border-radius: 0 0 26px 26px;
  }

  body.redesign .generator-embed .control-rail {
    border-right: 0;
  }
}

@media (max-width: 900px) {
  body.redesign .quick-start__grid,
  body.redesign .related-pages__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.redesign .ready-made--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.redesign .home-steps {
    grid-template-columns: 1fr;
  }

  body.redesign .seo-content .example-questions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.redesign .site-header__container {
    min-height: 62px;
    padding: 11px 16px;
    gap: 12px;
  }

  body.redesign .site-logo {
    font-size: 15px;
  }

  body.redesign .site-logo__icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  body.redesign .page-content {
    padding-bottom: 60px;
  }

  body.redesign .page-intro {
    padding: 44px 8px 28px;
  }

  .hero-eyebrow {
    margin-bottom: 18px;
    padding: 7px 13px;
    font-size: 12px;
  }

  body.redesign .hero__title {
    margin-bottom: 16px;
    font-size: clamp(2.25rem, 10vw, 3.3rem);
    line-height: 1.06;
  }

  body.redesign .page-intro__description {
    font-size: 1rem;
    line-height: 1.7;
  }

  body.redesign .page-content > .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.redesign #generator {
    padding: 0;
  }

  body.redesign .generator-embed {
    border-radius: 20px;
  }

  body.redesign .generator-embed .control-rail {
    padding: 20px 18px;
  }

  body.redesign .generator-embed .preview-rail {
    border-radius: 0 0 20px 20px;
  }

  body.redesign .quick-start,
  body.redesign .related-pages,
  body.redesign .ready-made--home,
  body.redesign .seo-section,
  body.redesign .seo-content {
    margin-top: 54px;
    padding-left: 16px;
    padding-right: 16px;
  }

  body.redesign .quick-start__grid,
  body.redesign .related-pages__grid,
  body.redesign .ready-made--home,
  body.redesign .seo-content .related-pages ul {
    grid-template-columns: 1fr;
  }

  body.redesign .quick-start__title,
  body.redesign .related-pages__title,
  body.redesign .ready-made--home > h2,
  body.redesign .seo-section__title,
  body.redesign .seo-content h2,
  body.redesign .home-guide h2,
  body.redesign .home-faq h2 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  body.redesign .quick-start__title,
  body.redesign .related-pages__title,
  body.redesign .ready-made--home > h2,
  body.redesign .seo-section__title {
    margin-bottom: 24px;
  }

  body.redesign .quick-start-card,
  body.redesign .related-page-card,
  body.redesign .home-step,
  body.redesign .ready-made--home .pdf-grade {
    border-radius: 15px;
  }

  body.redesign .home-guide,
  body.redesign .home-faq {
    margin-top: 46px;
    padding-top: 40px;
  }

  body.redesign .section-lead {
    margin-bottom: 22px;
  }

  body.redesign .seo-content .seo-copy p {
    text-align: left;
  }

  body.redesign .seo-content .seo-standard-note {
    text-align: left;
  }

  body.redesign .seo-content .ready-made {
    padding: 22px 18px;
    border-radius: 15px;
  }

  body.redesign .site-footer__container {
    padding: 40px 16px 20px;
  }
}
