:root {
  --ink: #000000;
  --text: #000000;
  --paper: #ffffff;
  --white: #ffffff;
  --yellow: #ffc603;
  --yellow-deep: var(--yellow);
  --red: #d90708;
  --line: #d4d4d4;
  --muted: #4a4a4a;
}

html { scroll-padding-top: 16px; }
body { background: var(--white); font-family: "DG Geist", "Helvetica Neue", Arial, sans-serif; font-size: 16px; }
button, input, select, summary { font-family: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

/* One brand header, with the book's stripes confined to the edge. */
.site-header {
  position: relative; top: auto;
  width: 100%; height: auto; min-height: 84px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px; padding: 14px max(24px, calc((100vw - 1320px) / 2));
  background: var(--ink); color: var(--white);
  border-bottom: 4px solid var(--yellow); box-shadow: none;
  backdrop-filter: none; isolation: isolate;
}
.site-header::after {
  content: ""; position: absolute; z-index: -1; top: 0; right: 0;
  width: 48px; height: 100%; pointer-events: none;
  background: repeating-linear-gradient(118deg, transparent 0 12px, var(--yellow) 12px 22px);
}
.brand { display: inline-flex; align-items: center; gap: 20px; min-width: 0; }
.brand img { width: 112px; filter: invert(1); }
.brand-name { padding-left: 20px; border-left: 1px solid #444; color: var(--yellow); font-size: 15px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.site-header nav { gap: 24px; font-size: 14px; }
.site-header nav a { color: var(--white); border-bottom-width: 2px; }
.header-cta { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--yellow); background: var(--yellow); color: var(--ink); font-size: 14px; }
.header-cta:hover { background: var(--white); border-color: var(--white); }
.breadcrumbs { padding-block: 18px; }
.breadcrumbs ol { font-size: 12px; }

/* The first screen offers real routes into the catalog and the recommender. */
.hero {
  position: relative; min-height: 0; grid-template-columns: 1.06fr .94fr;
  gap: clamp(36px, 5vw, 80px); align-items: center; padding-block: 48px 56px;
  background: var(--yellow); box-shadow: 0 0 0 100vmax var(--yellow);
  clip-path: inset(0 -100vmax); isolation: isolate;
}
.hero::after { content: ""; position: absolute; right: -24px; bottom: 0; width: 96px; height: 16px; background: repeating-linear-gradient(125deg, var(--ink) 0 8px, transparent 8px 16px); }
.eyebrow { margin-bottom: 20px; font-size: 12px; letter-spacing: .06em; line-height: 1.6; }
.eyebrow span { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 0; background: var(--red); box-shadow: none; }
.hero h1 { max-width: 680px; font-size: clamp(44px, 4.8vw, 66px); line-height: 1.06; font-weight: 850; letter-spacing: -.045em; }
.hero-count { display: inline-block; padding: 0 .12em .03em; margin-right: .02em; background: var(--ink); color: var(--yellow); }
.hero-lead { max-width: 580px; margin-top: 22px; color: var(--ink); font-size: 18px; line-height: 1.6; }
.hero-actions { margin-top: 26px; gap: 10px; }
.button { min-height: 52px; padding: 12px 20px; border-radius: 0; font-size: 14px; line-height: 1.35; }
.button:hover { box-shadow: 4px 4px 0 var(--red); }
.button-secondary { background: var(--white); }
.hero-note { max-width: 560px; margin-top: 16px; font-size: 13px; line-height: 1.55; color: #333; }
.hero-panel { min-width: 0; box-shadow: 8px 8px 0 var(--ink); }
.hero-panel::before { display: none; }
.panel-head { padding: 16px 24px; background: var(--ink); color: var(--white); border: 0; font-size: 12px; letter-spacing: .06em; }
.panel-head > span:last-child { color: var(--yellow); }
.panel-question { padding: 24px; }
.panel-question > p { margin-bottom: 20px; font-size: 24px; letter-spacing: -.025em; line-height: 1.2; }
.panel-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.panel-option { position: relative; min-width: 0; min-height: 90px; margin: 0; display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 8px; padding: 15px; font-size: 14px; line-height: 1.4; }
.panel-option > span { grid-column: 1 / -1; color: var(--red); font-size: 12px; letter-spacing: .06em; }
.panel-option > b { align-self: end; font-size: 18px; }
.panel-option:hover, .panel-option:focus-visible { background: var(--yellow); box-shadow: none; }
.panel-stats { background: var(--white); color: var(--ink); border-top: 1px solid var(--line); }
.panel-stats div { padding: 18px 20px; border-color: var(--line); }
.panel-stats strong { font-size: 25px; font-weight: 850; letter-spacing: -.03em; }
.panel-stats span { font-size: 12px; letter-spacing: 0; color: var(--muted); text-transform: none; line-height: 1.4; }
.trust-strip { width: min(1320px, calc(100% - 48px)); margin: 0 auto; background: var(--white); color: var(--ink); border: 0; border-bottom: 1px solid var(--line); }
.trust-strip span { justify-content: flex-start; align-items: center; padding: 22px 16px; border: 0; font-size: 14px; line-height: 1.4; }
.trust-strip b { color: var(--red); }

.section-index { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .1em; }
.section-index::before { content: ""; width: 20px; height: 3px; flex: 0 0 20px; background: var(--red); }
.section-heading { grid-template-columns: 1.3fr 1fr; gap: 48px; margin-bottom: 32px; }
.section-heading h2, .definition-section h2, .about-section h2, .faq-section h2, .book-section h2 { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.1; letter-spacing: -.035em; }
.section-heading > p { max-width: 560px; font-size: 16px; }
.catalog-section { padding-block: 64px 80px; }
.catalog-controls { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 26px; border: 2px solid var(--ink); border-bottom: 0; background: var(--white); }
.catalog-search label { margin-bottom: 12px; font-size: 14px; letter-spacing: 0; text-transform: none; }
.search-field { min-height: 56px; grid-template-columns: 30px minmax(0, 1fr) auto; background: #f6f6f6; border: 1px solid var(--line); }
.search-field input { font-size: 16px; height: 54px; }
.search-field button { font-size: 14px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.category-tabs button { min-height: 46px; padding: 10px 14px; background: var(--white); border-color: var(--line); font-size: 14px; }
.category-tabs button.active { color: var(--ink); background: var(--yellow); box-shadow: none; border-color: var(--ink); }
.category-tabs button span { font-size: 12px; min-width: 24px; border: 0; background: #f0f0f0; }
.category-tabs button.active span { background: var(--ink); color: var(--yellow); }
.catalog-refinements { margin: 0; border: 2px solid var(--ink); border-top: 1px solid var(--line); background: #f6f6f6; }
.catalog-refinements summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 26px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 750; }
.catalog-refinements summary::-webkit-details-marker { display: none; }
.refinement-toggle { margin-left: auto; font-size: 22px; }
.catalog-refinements[open] .refinement-toggle { transform: rotate(45deg); }
.refinement-count { padding: 3px 7px; background: var(--yellow); font-size: 12px; }
.catalog-refinement-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 16px; padding: 8px 26px 24px; }
.catalog-refinements:not([open]) .catalog-refinement-fields { display: none; }
.catalog-active-filters { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: 16px 0 0; font-size: 14px; }
.catalog-active-filters > div { display: flex; flex: 1 1 200px; flex-wrap: wrap; gap: 8px; min-width: 0; }
.catalog-active-filters button { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ink); background: var(--yellow); color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.catalog-active-filters button > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.catalog-active-filters button > span:last-child { flex: 0 0 auto; font-size: 20px; }
.catalog-active-filters button:hover { background: var(--white); }
.catalog-active-filters button:focus-visible, .catalog-refinements summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.catalog-list-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.result-line .saved-only { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); text-decoration: none; }
.result-line .saved-only:hover, .result-line .saved-only[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.catalog-app > .saved-status:not(:empty) { padding-bottom: 16px; }
.catalog-refinements label { display: grid; gap: 8px; min-width: 0; font-size: 14px; font-weight: 650; }
.catalog-refinements select { width: 100%; min-width: 0; min-height: 48px; padding: 10px 28px 10px 12px; border: 1px solid #bcbcbc; border-radius: 0; background: var(--white); color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; }
.saved-only { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); font-size: 14px; font-weight: 750; cursor: pointer; }
.saved-only span { min-width: 24px; padding: 2px 5px; background: var(--yellow); color: var(--ink); }
.saved-only:hover, .saved-only[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.catalog-filter-note, .saved-status { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.catalog-filter-note + .catalog-filter-note { margin-top: -8px; }
.saved-status { color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.saved-status:empty { display: none; }
.result-line { min-height: 64px; }
.result-line p, .result-line button { font-size: 14px; }
.result-line strong { display: inline-block; padding: 3px 8px; margin-right: 4px; background: var(--yellow); }
.saved-export { margin: 0 0 24px; padding: 24px; border: 1px solid var(--ink); background: var(--white); }
.saved-export h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; }
.saved-export > p { max-width: 760px; margin: 0 0 16px; font-size: 14px; line-height: 1.6; }
.saved-export label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; }
.saved-export textarea { display: block; width: 100%; min-width: 0; min-height: 150px; padding: 12px; border: 1px solid var(--line); border-radius: 0; background: #f6f6f6; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; }
.saved-export-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.saved-export .saved-status:not(:empty) { margin: 16px 0 0; }
.saved-export textarea:focus-visible, .saved-export button:focus-visible, [data-saved-export-toggle]:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.saved-export button:disabled { cursor: wait; opacity: .7; }
.empty-state .button { margin: 6px; }

/* Equal card rhythm; color highlights have a clear hierarchy. */
.test-grid { gap: 20px; }
.test-card { min-height: 0; position: relative; padding: 0; border: 1px solid #bcbcbc; box-shadow: none; cursor: default; }
.test-card-yellow { background: var(--white); border-color: #bcbcbc; border-top: 3px solid var(--yellow); }
.test-card-featured { border-color: var(--ink); }
.test-card:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 5px 5px 0 var(--yellow); }
.test-card-link { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 24px 24px 16px; color: inherit; text-decoration: none; }
.test-card-link:focus-visible { outline: 3px solid currentColor; outline-offset: -6px; }
.card-top { min-height: 32px; gap: 12px; }
.card-marker { display: inline-grid; place-items: center; flex: 0 0 32px; height: 32px; background: #f1f1f1; color: var(--ink); font-size: 12px; letter-spacing: 0; }
.test-card-featured .card-marker { background: var(--yellow); color: var(--ink); }
.featured-label { padding: 6px 8px; font-size: 12px; letter-spacing: 0; text-transform: none; }
.test-card-yellow .featured-label { background: var(--yellow); color: var(--ink); }
.card-category { margin: 24px 0 12px; font-size: 12px; letter-spacing: .07em; line-height: 1.5; }
.test-card h3 { font-size: clamp(23px, 2vw, 27px); line-height: 1.18; letter-spacing: -.025em; }
.card-question { margin-top: 16px; font-size: 16px; line-height: 1.5; font-weight: 650; }
.card-description { margin: 12px 0 24px; font-size: 16px; line-height: 1.6; }
.card-description strong { font-size: 12px; }
.card-footer { gap: 12px; padding-top: 16px; font-size: 13px; line-height: 1.5; }
.card-footer > span:first-child { flex: 1 1 120px; }
.card-footer .card-cta { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; font-size: 14px; text-decoration: none; color: var(--ink); }
.card-cta > span { display: inline-grid; place-items: center; width: 36px; height: 36px; background: var(--ink); color: var(--white); font-size: 20px; }
.test-card-featured .card-cta { color: var(--yellow); }
.test-card-featured .card-cta > span { background: var(--yellow); color: var(--ink); }
.card-save-row { padding: 0 24px 16px; }
.card-save { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.test-card-featured .card-save { border-color: #555; }
.card-save:hover, .card-save[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.card-save:focus-visible, .saved-only:focus-visible, .catalog-refinements select:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
#catalog-title, .finder-choice, .finder-result, #azonnali-segitseg { scroll-margin-top: 16px; }
#catalog-title:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }

/* The full recommender and supporting material remain available below. */
.finder-section { padding-block: 64px 80px; border-top: 1px solid var(--line); }
.finder-fieldset { box-shadow: none; }
.finder-fieldset legend, .finder-choice-copy strong, .finder-result-main > p:not(.finder-kicker):not(.finder-result-category), .finder-placeholder p, .finder-alternatives strong { font-size: 16px; }
.finder-choice-copy small, .finder-alternatives small, .finder-result-cta > span, .finder-note { font-size: 14px; }
.finder-choice { min-height: 126px; padding-bottom: 36px; }
.finder-selected { font-size: 12px; letter-spacing: 0; }
.finder-choice-number, .finder-kicker, .finder-result-category { font-size: 12px; }
.finder-result { top: 16px; box-shadow: 8px 8px 0 var(--yellow); }
.faq-intro { top: 16px; }
.finder-result-main h3 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.16; }
.finder-result-main h3:focus { outline: 2px solid var(--yellow); outline-offset: 6px; }
.spotlight-section { min-height: 360px; margin-top: 0; grid-template-columns: .8fr 1.2fr; box-shadow: 8px 8px 0 var(--yellow); }
.spotlight-visual { min-height: 360px; }
.spotlight-copy { padding: clamp(28px, 4vw, 52px); }
.spotlight-copy h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.12; }
.spotlight-copy > p:not(.section-index) { margin-top: 20px; font-size: 16px; }
.spotlight-copy .section-index::before, .definition-section .section-index::before { background: var(--yellow); }
.spotlight-meta li, .spotlight-visual > span { font-size: 12px; letter-spacing: .02em; }
.facts-strip { margin-block: 40px 64px; box-shadow: none; }
.facts-strip dt { font-size: 12px; }
.facts-strip dd { font-size: 14px; line-height: 1.5; }
.decision-guide-section, .how-section, .about-section, .faq-section { padding-block: 72px; }
.decision-guide-card { border: 1px solid #bcbcbc; box-shadow: none; }
.decision-guide-card h3 { line-height: 1.15; }
.decision-guide-topline, .decision-guide-answer strong, .decision-guide-footer > span, .decision-guide-card summary, .decision-guide-card details small { font-size: 12px; }
.decision-guide-card > p, .decision-guide-card details strong, .callout-copy > p, .crisis-support p, .about-copy > p:not(.lead-quote), .faq-list details p { font-size: 16px; }
.definition-answer p + p, .book-copy > p:not(.section-index) { font-size: 16px; }
.method-callout { box-shadow: 6px 6px 0 var(--ink); }
.callout-label, .method-meta span { font-size: 13px; }
.faq-list summary { font-size: 17px; line-height: 1.4; }
.footer-grid h2, .footer-bottom, .footer-grid a, .footer-grid p { font-size: 14px; }

@media (max-width: 1100px) {
  .brand-name { display: none; }
  .site-header nav { gap: 20px; }
  .panel-options { gap: 8px; }
  .panel-option { padding: 12px; }
}
@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 12px; }
  .site-header nav { display: none; }
  .brand-name { display: block; }
  .mobile-menu { display: block; z-index: 1; }
  .mobile-menu summary { min-height: 44px; padding: 12px 14px; font-size: 14px; background: var(--ink); color: var(--white); border-color: #777; }
  .mobile-menu div { background: var(--white); color: var(--ink); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 36px 44px; }
  .hero-copy { max-width: 680px; }
  .hero h1 { font-size: clamp(42px, 6.2vw, 56px); }
  .hero-panel { max-width: 100%; }
  .panel-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-heading, .spotlight-section { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .catalog-refinement-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-result { position: static; }
  .spotlight-visual { min-height: 400px; }
}
@media (max-width: 660px) {
  .site-header { width: 100%; min-height: 72px; padding: 12px 16px; gap: 10px; }
  .site-header::after { width: 28px; }
  .brand img { width: 100px; }
  .brand-name { display: none; }
  .header-cta { min-height: 44px; padding-inline: 12px; font-size: 14px; }
  .hero, .catalog-section, .finder-section, .facts-strip, .spotlight-section { width: calc(100% - 40px); }
  .hero h1 { font-size: clamp(36px, 9.6vw, 52px); }
  .hero-lead { font-size: 17px; }
  .eyebrow { font-size: 12px; letter-spacing: .02em; }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero-panel { box-shadow: 5px 5px 0 var(--ink); }
  .panel-head { flex-wrap: wrap; gap: 8px; padding: 14px 16px; font-size: 12px; }
  .panel-question { padding: 18px 16px; }
  .panel-question > p { font-size: 22px; }
  .panel-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-option { min-height: 100px; font-size: 14px; }
  .panel-stats div { padding: 14px 10px; }
  .panel-stats strong { font-size: 22px; }
  .panel-stats span { font-size: 12px; }
  .trust-strip { width: calc(100% - 40px); grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 10px; }
  .trust-strip span { align-items: flex-start; padding: 10px 6px; border: 0; font-size: 13px; }
  .catalog-section, .finder-section { padding-block: 44px 56px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2 { font-size: 32px; }
  .catalog-controls { padding: 16px; gap: 18px; }
  .category-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
  .category-tabs button { flex: 1 1 150px; justify-content: space-between; min-height: 48px; }
  .category-tabs button:first-child { flex-basis: 100%; }
  .search-field { grid-template-columns: 24px minmax(0, 1fr); }
  .search-field button { grid-column: 1 / -1; padding: 0 0 10px; text-align: right; }
  .catalog-refinements summary { padding-inline: 16px; }
  .catalog-refinement-fields { grid-template-columns: minmax(0, 1fr); padding: 4px 16px 20px; }
  .result-line { flex-wrap: wrap; gap: 12px; padding-block: 16px; }
  .catalog-list-actions { justify-content: flex-start; }
  .test-grid { gap: 16px; }
  .test-card-link { padding: 22px 20px 14px; }
  .test-card h3 { font-size: 25px; }
  .card-save-row { padding: 0 20px 18px; }
  .card-category { margin-top: 20px; }
  .card-footer { gap: 10px; }
  .finder-choice { grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 16px 12px 36px; }
  .finder-choice-number { display: none; }
  .finder-placeholder { padding: 28px 22px; }
  .finder-result-main { padding: 28px 22px; }
  .finder-alternatives { padding: 22px; }
  .spotlight-visual { min-height: 300px; }
  .spotlight-section { gap: 0; }
  .spotlight-copy { padding: 28px 22px; }
  .spotlight-copy h2 { font-size: 32px; }
  .facts-strip { margin-block: 32px 44px; }
  .facts-strip > div { padding: 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .test-card:hover { transform: none; }
}

.catalog-controls:has(+ .catalog-refinements[hidden]) { border-bottom: 2px solid var(--ink); }
