:root {
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --ink: #18382e;
  --muted: #68756f;
  --line: #ddd8cc;
  --tomato: #e94f37;
  --tomato-dark: #c83d29;
  --saffron: #f1b733;
  --sage: #a9bca0;
  --green: #285c48;
  --lime: #dce86b;
  --blue: #dceaf0;
  --white: #fff;
  --shadow: 0 18px 50px rgba(31, 53, 43, .1);
  --shadow-soft: 0 10px 28px rgba(31, 53, 43, .07);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 34px;
  --max: 1240px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
body.nav-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
h1, h2, h3 { overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; }
button, summary { color: inherit; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
[hidden] { display: none !important; }
.p-wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.p-reading { width: min(calc(100% - 40px), var(--reading)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 999; top: -80px; left: 16px; padding: 10px 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.p-announcement { background: var(--ink); color: rgba(255,255,255,.76); font-size: 12px; letter-spacing: .03em; }
.p-announcement .p-wrap { min-height: 34px; display: flex; justify-content: center; align-items: center; text-align: center; }
.p-announcement strong { color: var(--lime); margin-right: 6px; }
.p-header { position: sticky; z-index: 60; top: 0; border-bottom: 1px solid rgba(221,216,204,.85); background: rgba(255,253,248,.94); backdrop-filter: blur(16px); }
.p-header-row { min-height: 78px; display: flex; align-items: center; gap: 26px; }
.p-brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; text-decoration: none; }
.p-brand-logo, .brand-logo { display: block; width: 220px; height: 40px; object-fit: contain; object-position: left center; }

.p-desktop-nav { display: flex; align-items: stretch; align-self: stretch; margin-left: auto; }
.p-desktop-nav > a { display: flex; align-items: center; padding: 0 12px; font-size: 13px; font-weight: 700; text-decoration: none; }
.p-desktop-nav > a:hover, .p-desktop-nav > a[aria-current="page"] { color: var(--tomato-dark); }
.p-mega { position: relative; display: flex; align-items: center; }
.p-mega > summary { display: flex; align-items: center; height: 100%; padding: 0 12px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 700; }
.p-mega > summary::-webkit-details-marker { display: none; }
.p-mega > summary::after { content: "⌄"; margin-left: 5px; color: var(--muted); font-size: 12px; }
.p-mega[open] > summary, .p-mega > summary:hover { color: var(--tomato-dark); }
.p-mega-panel { position: fixed; z-index: 55; top: 112px; left: 50%; width: min(calc(100% - 40px), 1120px); padding: 28px; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: var(--paper); box-shadow: var(--shadow); transform: translateX(-50%); }
.p-mega-grid { display: grid; grid-template-columns: 1.2fr repeat(2, 1fr); gap: 28px; }
.p-mega-intro { padding: 24px; border-radius: var(--radius-sm); background: var(--cream); }
.p-mega-intro strong { display: block; font-family: "DM Serif Display", serif; font-size: 28px; font-weight: 400; line-height: 1.05; }
.p-mega-intro p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.p-mega-links strong { display: block; margin-bottom: 8px; color: var(--tomato); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.p-mega-links a { display: block; padding: 7px 0; text-decoration: none; font-size: 14px; }
.p-mega-links a:hover { color: var(--tomato-dark); }
.p-header-actions { display: flex; align-items: center; gap: 8px; }
.p-search-link, .p-nav-toggle { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; text-decoration: none; }
.p-search-link svg, .p-nav-toggle svg { width: 20px; }
.p-primary-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; border: 0; border-radius: 999px; background: var(--ink); color: white; cursor: pointer; font-weight: 700; text-decoration: none; }
.p-primary-btn:hover { background: var(--green); }
.p-primary-btn.tomato { background: var(--tomato); }
.p-secondary-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 17px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; font-weight: 700; text-decoration: none; }
.p-primary-btn:disabled, .p-secondary-btn:disabled { opacity: .45; cursor: not-allowed; }
.p-content a.p-primary-btn { color: white; }
.p-next .p-primary-btn { background: var(--ink); color: white; }
.p-nav-toggle { display: none; }
.p-mobile-nav { display: none; position: fixed; z-index: 59; inset: 112px 0 0; overflow-y: auto; padding: 18px 20px 40px; background: var(--paper); }
.p-mobile-nav.open { display: block; }
.p-mobile-home { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: "DM Serif Display", serif; font-size: 25px; text-decoration: none; }
.p-mobile-nav details { border-bottom: 1px solid var(--line); }
.p-mobile-nav summary { padding: 16px 0; cursor: pointer; list-style: none; font-family: "DM Serif Display", serif; font-size: 25px; }
.p-mobile-nav summary::-webkit-details-marker { display: none; }
.p-mobile-nav summary::after { content: "+"; float: right; font-family: "DM Sans", sans-serif; font-weight: 400; }
.p-mobile-nav details[open] summary::after { content: "−"; }
.p-mobile-sub { display: grid; gap: 3px; padding: 0 0 17px 14px; }
.p-mobile-sub a { padding: 6px 0; color: var(--muted); text-decoration: none; }

/* Accordion-Erweiterung für die eigenständige Startseiten-Navigation. */
.mobile-nav > a:first-child { font-family: "DM Serif Display", serif; font-size: 27px; }
.mobile-nav details { border-bottom: 1px solid var(--line); }
.mobile-nav details summary { padding: 16px 0; cursor: pointer; list-style: none; font-family: "DM Serif Display", serif; font-size: 27px; }
.mobile-nav details summary::-webkit-details-marker { display: none; }
.mobile-nav details summary::after { content: "+"; float: right; font-family: "DM Sans", sans-serif; font-weight: 400; }
.mobile-nav details[open] summary::after { content: "−"; }
.mobile-nav details div { padding: 0 0 14px 14px; }
.mobile-nav details div a { padding: 7px 0; border: 0; color: var(--muted); font-family: "DM Sans", sans-serif; font-size: 15px; }

.p-breadcrumbs { border-bottom: 1px solid var(--line); background: white; }
.p-breadcrumbs ol { display: flex; gap: 8px; align-items: center; min-height: 42px; margin-block: 0; margin-inline: auto; padding: 0; list-style: none; color: var(--muted); font-size: 12px; white-space: nowrap; overflow-x: auto; }
.p-breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--line); }
.p-breadcrumbs a { text-decoration: none; }

.p-hero { padding: 56px 0 62px; background: var(--cream); }
.p-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr); gap: 54px; align-items: center; }
.p-kicker { display: flex; gap: 9px; align-items: center; margin: 0 0 18px; color: var(--tomato-dark); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.p-kicker::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.p-hero h1, .p-page-title { max-width: 880px; margin: 0 0 22px; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(48px, 6vw, 78px); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
.p-hero h1 em, .p-page-title em { color: var(--tomato); font-weight: inherit; }
.p-hero-lead { max-width: 720px; margin: 0 0 28px; color: #4d5e57; font-size: clamp(18px, 2vw, 21px); }
.p-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.p-hero-media { position: relative; min-height: 390px; overflow: hidden; border-radius: var(--radius-lg); background: url("../discovery-hero.jpg") 66% center/cover; box-shadow: var(--shadow); }
.p-hero-media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(13,42,32,.38)); }
.p-hero-badge { position: absolute; z-index: 1; right: 20px; bottom: 20px; max-width: 250px; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(255,253,248,.92); box-shadow: var(--shadow-soft); backdrop-filter: blur(10px); }
.p-hero-badge small { display: block; color: var(--tomato); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.p-hero-badge strong { display: block; margin-top: 3px; line-height: 1.25; }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; color: var(--muted); font-size: 13px; }
.p-meta span { display: inline-flex; gap: 6px; align-items: center; }

.p-section { padding: 78px 0; }
.p-section.alt { background: var(--cream); }
.p-section.compact { padding-block: 50px; }
.p-section-head { display: flex; justify-content: space-between; gap: 36px; align-items: end; margin-bottom: 30px; }
.p-section-head h2, .p-content h2 { margin: 0; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(34px, 4vw, 52px); font-weight: 400; letter-spacing: -.035em; line-height: 1.04; }
.p-section-head p { max-width: 480px; margin: 0; color: var(--muted); }
.p-content h2 { margin-top: 58px; margin-bottom: 18px; font-size: clamp(31px, 3.6vw, 44px); }
.p-content h3 { margin: 34px 0 12px; font-size: 23px; line-height: 1.2; }
.p-content p, .p-content li { color: #40544c; }
.p-content a { color: var(--tomato-dark); font-weight: 600; }
.p-content > :first-child { margin-top: 0; }
.p-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-card-grid.two { grid-template-columns: repeat(2, 1fr); }
.p-card-grid.four { grid-template-columns: repeat(4, 1fr); }
.p-card { display: flex; flex-direction: column; min-height: 220px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-soft); text-decoration: none; }
.p-card:hover { border-color: var(--sage); transform: translateY(-2px); }
.p-card-icon { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 30px; border-radius: 14px; background: var(--cream); font-size: 23px; }
.p-card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p-card small { color: var(--tomato); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.p-card h3 { margin: 7px 0 9px; font-family: "DM Serif Display", serif; font-size: 27px; font-weight: 400; line-height: 1.08; }
.p-card p { margin: 0; color: var(--muted); font-size: 14px; }
.p-card .p-card-link { margin-top: auto; padding-top: 22px; color: var(--tomato-dark); font-size: 13px; font-weight: 700; }
.p-card.feature { min-height: 320px; color: white; background: var(--ink); border-color: var(--ink); }
.p-card.feature p { color: rgba(255,255,255,.68); }
.p-card.feature .p-card-icon { background: var(--lime); color: var(--ink); }
.p-card.feature .p-card-link { color: var(--lime); }

.p-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 54px; align-items: start; }
.p-layout > *, .p-content { min-width: 0; }
.p-toc { position: sticky; top: 138px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #faf8f1; }
.p-toc strong { display: block; margin-bottom: 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.p-toc ol { display: grid; gap: 7px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
.p-toc a { text-decoration: none; }
.p-toc a:hover { color: var(--tomato-dark); }

.p-short-answer { margin: 0 0 28px; padding: 26px 28px; border-left: 5px solid var(--tomato); border-radius: 0 var(--radius) var(--radius) 0; background: #fff1eb; }
.p-short-answer small { display: block; margin-bottom: 6px; color: var(--tomato-dark); font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.p-short-answer p { margin: 0; color: var(--ink); font-size: 18px; font-weight: 600; }
.p-takeaways { padding: 26px; border-radius: var(--radius); background: var(--ink); color: white; }
.p-takeaways h2, .p-takeaways h3 { margin: 0 0 14px; color: white; font-family: "DM Serif Display", serif; font-size: 30px; font-weight: 400; }
.p-takeaways ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.p-takeaways li { position: relative; padding-left: 27px; color: rgba(255,255,255,.76); }
.p-takeaways li::before { content: "✓"; position: absolute; left: 0; color: var(--lime); font-weight: 800; }

.p-note { margin: 24px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: white; }
.p-note.tip { border-color: #bdd0b5; background: #eff5eb; }
.p-note.warning { border-color: #e4b66d; background: #fff4dc; }
.p-note.info { border-color: #b9d6df; background: #edf6f8; }
.p-note strong { display: block; margin-bottom: 5px; }
.p-note p { margin: 0; }

.p-suitability { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 25px 0; }
.p-suitability > div { padding: 22px; border-radius: var(--radius-sm); }
.p-suitability .yes { background: #edf4e8; }
.p-suitability .no { background: #f8ece8; }
.p-suitability h3 { margin: 0 0 9px; font-size: 18px; }
.p-suitability ul { margin: 0; padding-left: 20px; }

.p-pro-con { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 25px 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.p-pro-con > div { padding: 24px; background: white; }
.p-pro-con h3 { margin: 0 0 12px; font-size: 19px; }
.p-pro-con ul { margin: 0; padding-left: 20px; }
.p-pro-con ul + h3 { margin-top: 26px; }

.p-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.p-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.p-table th, .p-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.p-table th { background: #f3efe4; color: var(--ink); font-size: 13px; }
.p-table td { color: #40544c; font-size: 14px; }
.p-table tr:last-child td { border-bottom: 0; }
.p-table th:first-child, .p-table td:first-child { position: sticky; left: 0; background: #faf8f1; font-weight: 700; color: var(--ink); }
.p-table-caption { padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.p-decision-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.p-decision-step { position: relative; min-height: 140px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.p-decision-step strong { display: block; line-height: 1.25; }
.p-decision-step p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }

.p-steps { display: grid; gap: 18px; margin: 28px 0; padding: 0; list-style: none; counter-reset: steps; }
.p-step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; counter-increment: steps; }
.p-step::before { content: counter(steps); display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--tomato); color: white; font-family: "DM Serif Display", serif; font-size: 22px; }
.p-step h3 { margin: 2px 0 7px; }
.p-step p { margin: 0; }

.p-checklist { display: grid; gap: 9px; margin: 22px 0; }
.p-check { display: flex; gap: 12px; align-items: flex-start; padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: white; cursor: pointer; }
.p-check input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--tomato); }
.p-check:has(input:checked) { border-color: var(--sage); background: #f0f5ed; }
.p-check:has(input:checked) span { text-decoration: line-through; color: var(--muted); }
.p-check-progress { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.p-progress-track { flex: 1; height: 8px; overflow: hidden; border-radius: 99px; background: #e6e2d8; }
.p-progress-value { height: 100%; width: 0; border-radius: inherit; background: var(--tomato); transition: width .25s ease; }
.p-check-progress output { min-width: 78px; font-size: 12px; font-weight: 700; }

.p-faq { display: grid; gap: 9px; margin-top: 24px; }
.p-faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: white; }
.p-faq summary { padding: 18px 50px 18px 20px; cursor: pointer; list-style: none; font-weight: 700; position: relative; }
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after { content: "+"; position: absolute; top: 15px; right: 20px; font-size: 23px; font-weight: 400; }
.p-faq details[open] summary::after { content: "−"; }
.p-faq details > div { padding: 0 20px 18px; color: var(--muted); }
.p-faq details p { margin: 0; }

.p-ad-slot { display: grid; min-height: 112px; place-items: center; margin-block: 34px; margin-inline: auto; padding: 16px; border: 1px dashed #b9b5aa; border-radius: var(--radius-sm); background: #f4f2ec; color: #77746d; text-align: center; }
.p-ad-slot.rectangle { min-height: 250px; aspect-ratio: 300/250; margin: 0; }
.p-ad-slot small { display: block; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.p-ad-slot code { display: block; margin-top: 5px; font-size: 12px; }
.p-ad-slot[data-empty="true"]::after { content: "Im Produktivbetrieb ohne freigegebenen Werbecode nicht sichtbar"; display: block; margin-top: 4px; font-size: 11px; }

.p-affiliate { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin: 28px 0; padding: 24px; border: 2px solid var(--ink); border-radius: var(--radius); background: white; }
.p-affiliate-label { display: inline-flex; margin-bottom: 7px; padding: 4px 8px; border-radius: 99px; background: var(--cream); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.p-affiliate-label a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.p-affiliate h3 { margin: 0 0 6px; font-family: "DM Serif Display", serif; font-size: 27px; font-weight: 400; }
.p-affiliate p { margin: 0; color: var(--muted); font-size: 14px; }
.p-affiliate ul { margin: 10px 0 0; padding-left: 19px; color: #40544c; font-size: 13px; }
.p-affiliate .p-primary-btn { min-width: 190px; text-align: center; }
.p-affiliate-fine { grid-column: 1 / -1; margin: -8px 0 0 !important; color: var(--muted) !important; font-size: 10px !important; }

.p-specialist { margin: 30px 0; padding: 27px; border-radius: var(--radius); background: var(--blue); }
.p-specialist small { color: #2d6374; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.p-specialist h3 { margin: 8px 0; font-family: "DM Serif Display", serif; font-size: 28px; font-weight: 400; }
.p-specialist p { margin-bottom: 18px; }

.p-author { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; margin: 35px 0; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.p-avatar { display: grid; width: 72px; height: 72px; place-items: center; border-radius: 50%; background: var(--sage); color: var(--ink); font-family: "DM Serif Display", serif; font-size: 24px; }
.p-author strong { display: block; font-size: 18px; }
.p-author p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.p-sources { margin: 28px 0; padding: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.p-sources strong { display: block; margin-bottom: 8px; }
.p-sources ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; }

.p-next { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 46px; padding: 30px; border-radius: var(--radius); background: var(--saffron); }
.p-next small { color: rgba(24,56,46,.7); font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.p-next h2, .p-next h3 { margin: 5px 0 0; font-family: "DM Serif Display", serif; font-size: 32px; font-weight: 400; line-height: 1.05; }

.p-tool { padding: 40px; border-radius: var(--radius-lg); background: var(--ink); color: white; box-shadow: var(--shadow); }
.p-tool-top { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 25px; }
.p-tool-top small { color: var(--lime); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.p-tool-progress { display: flex; width: min(280px, 48%); gap: 6px; }
.p-tool-progress span { flex: 1; height: 6px; border-radius: 99px; background: rgba(255,255,255,.16); }
.p-tool-progress span.active { background: var(--lime); }
.p-tool-step h2 { max-width: 720px; margin: 0 0 20px; font-family: "DM Serif Display", serif; font-size: clamp(34px, 5vw, 54px); font-weight: 400; line-height: 1; }
.p-tool-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.p-tool-option { min-height: 76px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-sm); background: rgba(255,255,255,.06); color: white; cursor: pointer; text-align: left; }
.p-tool-option:hover, .p-tool-option.selected { border-color: var(--lime); background: rgba(220,232,107,.12); }
.p-tool-result { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 26px; border-radius: var(--radius); background: white; color: var(--ink); }
.p-tool-result h2 { margin: 0 0 9px; }
.p-tool-result p { margin: 0; color: var(--muted); }

.p-search-hero { padding: 54px 0; background: var(--cream); }
.p-search-form { display: flex; max-width: 760px; padding: 7px; border: 1px solid var(--line); border-radius: 999px; background: white; box-shadow: var(--shadow-soft); }
.p-search-form input { width: 100%; min-width: 0; padding: 12px 16px; border: 0; background: transparent; outline: none; }
.p-search-form button { border: 0; border-radius: 999px; padding: 12px 22px; background: var(--tomato); color: white; cursor: pointer; font-weight: 700; }
.p-result-list { display: grid; gap: 13px; }
.p-result { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; text-decoration: none; }
.p-result-visual { min-height: 120px; border-radius: var(--radius-sm); background: linear-gradient(145deg, var(--sage), var(--ink)); }
.p-result small { color: var(--tomato); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.p-result h2, .p-result h3 { margin: 5px 0 7px; font-family: "DM Serif Display", serif; font-size: 27px; font-weight: 400; line-height: 1.1; }
.p-result p { margin: 0; color: var(--muted); font-size: 14px; }
.p-empty { padding: 48px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; text-align: center; }
.p-empty-icon { font-size: 45px; }
.p-empty h2 { margin: 10px 0; font-family: "DM Serif Display", serif; font-size: 38px; font-weight: 400; }
.p-empty p { max-width: 580px; margin: 0 auto 22px; color: var(--muted); }

.p-trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.p-trust-item { padding: 24px; text-align: center; border-right: 1px solid var(--line); }
.p-trust-item:last-child { border-right: 0; }
.p-trust-item strong { display: block; font-size: 14px; }
.p-trust-item span { color: var(--muted); font-size: 12px; }

.p-footer { background: var(--ink); color: white; }
.p-footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 48px; padding: 60px 0 42px; }
.p-footer .p-brand { color: white; }
.p-footer-intro { max-width: 310px; margin-top: 20px; color: rgba(255,255,255,.55); font-size: 13px; }
.p-footer-col strong { display: block; margin-bottom: 11px; color: var(--lime); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.p-footer-col a { display: block; padding: 4px 0; color: rgba(255,255,255,.68); font-size: 13px; text-decoration: none; }
.p-footer-col a:hover { color: white; }
.p-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.48); font-size: 11px; }
.p-affiliate-disclosure { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: 11px; }

.p-toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; padding: 11px 17px; border-radius: 999px; background: var(--ink); color: white; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 100px); transition: .25s ease; }
.p-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reusable discovery-hub primitives */
.p-library-index { position: sticky; z-index: 30; top: 78px; overflow-x: auto; border-bottom: 1px solid var(--line); background: rgba(255,253,248,.96); backdrop-filter: blur(12px); }
.p-library-index .p-wrap { display: flex; gap: 6px; padding-block: 10px; }
.p-library-index a { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.p-library-index a:hover { background: var(--cream); color: var(--ink); }
.p-component-demo { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-soft); }
.p-component-demo + .p-component-demo { margin-top: 18px; }
.p-component-label { display: block; margin-bottom: 18px; color: var(--tomato-dark); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.p-demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.p-demo-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.p-token-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.p-token { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: white; }
.p-token-swatch { height: 78px; background: var(--token-color); }
.p-token span { display: block; padding: 10px 12px; color: var(--muted); font-size: 12px; }
.p-token strong { display: block; color: var(--ink); }

.p-chip-list, .p-button-row, .p-inline-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.p-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: 12px; font-weight: 700; }
.p-chip.active { border-color: var(--ink); background: var(--ink); color: white; }
.p-chip.accent { border-color: #e3a89d; background: #fff1eb; color: var(--tomato-dark); }
.p-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: var(--cream); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.p-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.p-status.success { background: #edf4e8; color: #376846; }
.p-status.warning { background: #fff4dc; color: #96621e; }
.p-status.error { background: #f8ece8; color: #a33d2e; }

.p-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.p-field { display: grid; gap: 7px; }
.p-field.full { grid-column: 1 / -1; }
.p-field label, .p-field > span { font-size: 13px; font-weight: 700; line-height: 1.2; }
.p-field small { color: var(--muted); font-size: 11px; }
.p-input, .p-select, .p-textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); }
.p-textarea { min-height: 112px; resize: vertical; }
.p-input:focus, .p-select:focus, .p-textarea:focus { border-color: var(--tomato); outline: 3px solid rgba(233,79,55,.12); }
.p-input[aria-invalid="true"] { border-color: #b74735; background: #fff8f6; }
.p-field-error { color: #a33d2e !important; }
.p-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.p-choice { display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; cursor: pointer; }
.p-choice input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--tomato); }
.p-switch { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; }
.p-switch input { position: absolute; opacity: 0; pointer-events: none; }
.p-switch-track { position: relative; width: 44px; height: 24px; border-radius: 999px; background: #d8d7d1; transition: .2s ease; }
.p-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: .2s ease; }
.p-switch input:checked + .p-switch-track { background: var(--tomato); }
.p-switch input:checked + .p-switch-track::after { transform: translateX(20px); }

.p-alert { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 17px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: white; }
.p-alert + .p-alert { margin-top: 10px; }
.p-alert-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--cream); font-weight: 800; }
.p-alert strong { display: block; }
.p-alert p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.p-alert.success { border-color: #bdd0b5; background: #f3f8f0; }
.p-alert.warning { border-color: #e4b66d; background: #fff8e9; }
.p-alert.error { border-color: #dfaca3; background: #fff5f2; }
.p-alert.info { border-color: #b9d6df; background: #f1f8fa; }

.p-tabs { border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.p-tablist { display: flex; gap: 4px; overflow-x: auto; padding: 8px; border-bottom: 1px solid var(--line); }
.p-tab { flex: 0 0 auto; padding: 9px 13px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; }
.p-tab[aria-selected="true"] { background: var(--cream); color: var(--ink); }
.p-tab-panel { padding: 22px; }
.p-tab-panel h3 { margin: 0 0 7px; }
.p-tab-panel p { margin: 0; color: var(--muted); }

.p-pagination { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.p-pagination a, .p-pagination span { display: grid; min-width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; text-decoration: none; }
.p-pagination [aria-current="page"] { border-color: var(--ink); background: var(--ink); color: white; }

.p-figure { margin: 24px 0; }
.p-figure img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.p-figure figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; }
.p-quote { margin: 24px 0; padding: 25px 28px; border-left: 5px solid var(--saffron); background: var(--cream); font-family: "DM Serif Display", Georgia, serif; font-size: 25px; line-height: 1.25; }
.p-quote cite { display: block; margin-top: 12px; color: var(--muted); font-family: "DM Sans", sans-serif; font-size: 12px; font-style: normal; }
.p-link-list { display: grid; border-top: 1px solid var(--line); }
.p-link-list a { display: flex; justify-content: space-between; gap: 16px; padding: 15px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.p-link-list a::after { content: "→"; color: var(--tomato); }

.p-skeleton-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.p-skeleton { height: 13px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: #e8e5dc; }
.p-skeleton::after { content: ""; display: block; width: 38%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent); animation: p-shimmer 1.4s infinite; }
.p-skeleton.media { height: 130px; margin: 0 0 18px; border-radius: 14px; }
.p-skeleton.short { width: 58%; }
@keyframes p-shimmer { from { transform: translateX(-100%); } to { transform: translateX(280%); } }

.p-dialog-card { max-width: 560px; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius); background: white; color: var(--ink); box-shadow: 0 24px 80px rgba(17,42,34,.28); }
.p-dialog-card::backdrop { background: rgba(15,36,29,.58); backdrop-filter: blur(3px); }
.p-dialog-body { padding: 28px; }
.p-dialog-body h2 { margin: 0 0 9px; font-family: "DM Serif Display", serif; font-size: 34px; font-weight: 400; }
.p-dialog-body p { color: var(--muted); }
.p-consent { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); color: white; }
.p-consent strong { display: block; }
.p-consent p { margin: 4px 0 0; color: rgba(255,255,255,.68); font-size: 13px; }
.p-consent .p-secondary-btn { border-color: rgba(255,255,255,.55); color: white; }
.p-signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 28px; align-items: center; padding: 34px; border-radius: var(--radius-lg); background: var(--saffron); }
.p-signup h2 { margin: 5px 0 8px; font-family: "DM Serif Display", serif; font-size: clamp(32px, 4vw, 48px); font-weight: 400; line-height: 1; }
.p-signup p { margin: 0; }
.p-signup-form { display: flex; gap: 7px; padding: 6px; border-radius: 999px; background: white; }
.p-signup-form input { width: 100%; min-width: 0; padding: 10px 14px; border: 0; background: transparent; outline: none; }
.p-product-card { position: relative; display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-soft); }
.p-product-card-media { display: grid; min-height: 125px; place-items: center; padding: 10px; border-radius: var(--radius-sm); background: #faf8f2; }
.p-product-card-media img { max-width: 120px; max-height: 110px; object-fit: contain; }
.p-product-card-copy small { color: var(--tomato); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.p-product-card-copy h3 { margin: 6px 0 9px; font-family: "DM Serif Display", serif; font-size: 25px; font-weight: 400; line-height: 1.12; }
.p-product-card-price { font-size: 21px; font-weight: 800; }
.p-product-card-fine { grid-column: 2 / -1; margin: -8px 0 0; color: var(--muted); font-size: 10px; }

@media (max-width: 780px) {
  .p-library-index { top: 68px; }
  .p-token-grid { grid-template-columns: repeat(2, 1fr); }
  .p-demo-grid, .p-demo-grid.three, .p-form-grid { grid-template-columns: 1fr; }
  .p-component-demo .p-mega-grid { grid-template-columns: 1fr; }
  .p-field.full { grid-column: 1; }
  .p-consent { grid-template-columns: 1fr; }
  .p-signup { grid-template-columns: 1fr; }
  .p-product-card { grid-template-columns: 110px 1fr; }
  .p-product-card .p-primary-btn { grid-column: 1 / -1; }
  .p-product-card-fine { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .p-component-demo { padding: 20px; }
  .p-choice-grid { grid-template-columns: 1fr; }
  .p-signup-form { align-items: stretch; flex-direction: column; border-radius: var(--radius-sm); }
  .p-product-card { grid-template-columns: 1fr; }
  .p-product-card-fine, .p-product-card .p-primary-btn { grid-column: 1; }
}

@media (max-width: 1080px) {
  .p-desktop-nav { display: none; }
  .p-header-actions { margin-left: auto; }
  .p-nav-toggle { display: grid; }
  .p-hero-grid { grid-template-columns: 1fr 380px; gap: 30px; }
  .p-card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .p-footer-grid { grid-template-columns: 1.2fr repeat(2, 1fr); }
  .p-footer-grid > div:last-child { display: none; }
}

@media (max-width: 780px) {
  .p-wrap, .p-reading { width: min(calc(100% - 28px), var(--max)); }
  .p-announcement { display: none; }
  .p-header-row { min-height: 68px; }
  .p-mobile-nav { inset-block-start: 68px; }
  .p-header-actions .p-primary-btn { display: none; }
  .p-hero { padding: 34px 0 42px; }
  .p-hero-grid { grid-template-columns: 1fr; }
  .p-hero-copy { order: 2; }
  .p-hero-media { min-height: 300px; }
  .p-hero h1, .p-page-title { font-size: clamp(43px, 13vw, 66px); }
  .p-hero-lead { font-size: 17px; }
  .p-section { padding: 58px 0; }
  .p-section-head { align-items: start; flex-direction: column; gap: 12px; }
  .p-card-grid, .p-card-grid.two, .p-card-grid.four { grid-template-columns: 1fr; }
  .p-card { min-height: 190px; }
  .p-layout { grid-template-columns: 1fr; gap: 28px; }
  .p-toc { position: static; order: -1; }
  .p-suitability, .p-pro-con, .p-decision-path { grid-template-columns: 1fr; }
  .p-step { grid-template-columns: 42px 1fr; padding: 18px; }
  .p-step::before { width: 40px; height: 40px; }
  .p-affiliate { grid-template-columns: 1fr; }
  .p-affiliate .p-primary-btn { width: 100%; }
  .p-next { grid-template-columns: 1fr; }
  .p-tool { padding: 27px 20px; }
  .p-tool-top { align-items: start; flex-direction: column; }
  .p-tool-progress { width: 100%; }
  .p-tool-options { grid-template-columns: 1fr; }
  .p-tool-result { grid-template-columns: 1fr; }
  .p-result { grid-template-columns: 90px 1fr; gap: 14px; }
  .p-result-visual { min-height: 100px; }
  .p-trust-bar { grid-template-columns: repeat(2, 1fr); }
  .p-trust-item:nth-child(2) { border-right: 0; }
  .p-trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .p-footer-grid { grid-template-columns: 1fr 1fr; }
  .p-footer-grid > div:first-child { grid-column: 1 / -1; }
  .p-footer-bottom { flex-direction: column; }
}

@media (max-width: 430px) {
  .p-header-row { gap: 12px; }
  .p-brand-logo, .brand-logo { width: 188px; height: 35px; }
  .p-search-link, .p-nav-toggle { width: 38px; height: 38px; }
  .p-hero-media { min-height: 245px; }
  .p-hero-actions { align-items: stretch; flex-direction: column; }
  .p-hero-actions a { width: 100%; }
  .p-short-answer { padding: 20px; }
  .p-table { min-width: 660px; }
  .p-result { grid-template-columns: 1fr; }
  .p-result-visual { min-height: 145px; }
}

@media (max-width: 360px) {
  .site-header .header-inner { gap: 10px; }
  .site-header .header-tools .icon-btn { display: none; }
}

@media print {
  .p-announcement, .p-header, .p-mobile-nav, .p-breadcrumbs, .p-footer, .p-ad-slot, .p-primary-btn, .p-secondary-btn, .p-toast { display: none !important; }
  body { background: white; color: black; font-size: 11pt; }
  .p-section { padding: 18px 0; }
  .p-wrap, .p-reading { width: 100%; }
  .p-card, .p-note, .p-check, .p-table-wrap { box-shadow: none; break-inside: avoid; }
  a { color: black; text-decoration: none; }
}

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

