/* Neural Design Lab editorial styles — shared with the generator palette */
:root {
    --ndl-guide-primary: #6c5ce7;
    --ndl-guide-primary-dark: #5848d9;
    --ndl-guide-secondary: #a855f7;
    --ndl-guide-ink: #18181b;
    --ndl-guide-muted: #71717a;
    --ndl-guide-border: #e4e4e7;
    --ndl-guide-lilac: #f3f0ff;
    --ndl-guide-page: #f8f7fc;
}

/* Home page editorial teaser */
.ndl-guide-teaser {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: min(1120px, calc(100% - 40px));
    margin: 64px auto 72px;
    padding: clamp(28px, 5vw, 58px);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    color: var(--ndl-guide-ink);
    background: linear-gradient(125deg, #fff 15%, #fbfaff 65%, #f5f0ff);
    border: 1px solid #e9e4f5;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(61, 42, 117, .09);
}

.ndl-guide-teaser-glow {
    position: absolute;
    z-index: -1;
    width: 360px;
    height: 360px;
    right: 8%;
    top: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, .18), rgba(108, 92, 231, 0));
}

.ndl-guide-teaser-copy { max-width: 690px; }
.ndl-guide-eyebrow,
.guide-eyebrow,
.guide-section-kicker {
    margin: 0 0 12px;
    color: var(--ndl-guide-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ndl-guide-eyebrow { display: flex; align-items: center; gap: 8px; }
.ndl-guide-eyebrow i { font-size: 16px; }

.ndl-guide-teaser h2 {
    max-width: 650px;
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -.035em;
    font-weight: 800;
}
.ndl-guide-teaser-copy > p:not(.ndl-guide-eyebrow) {
    max-width: 660px;
    margin: 0;
    color: #5d586a;
    font-size: 16px;
    line-height: 1.75;
}
.ndl-guide-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 26px; }
.ndl-guide-tags span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    color: #5f4eb8;
    background: #f2efff;
    border: 1px solid #e6e0ff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
}
.ndl-guide-button,
.guide-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    color: #fff !important;
    background: linear-gradient(105deg, var(--ndl-guide-primary), var(--ndl-guide-secondary));
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(108, 92, 231, .25);
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 750;
    transition: transform .18s ease, box-shadow .18s ease;
}
.ndl-guide-button:hover,
.guide-primary-button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(108, 92, 231, .32);
}
.ndl-guide-teaser-steps {
    display: grid;
    gap: 12px;
    padding: 17px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(228, 224, 240, .95);
    border-radius: 21px;
    box-shadow: 0 12px 34px rgba(60, 45, 100, .07);
}
.ndl-guide-teaser-step { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; }
.ndl-guide-teaser-step > span {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--ndl-guide-primary);
    background: #f0ecff;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 850;
}
.ndl-guide-teaser-step strong,
.ndl-guide-teaser-step small { display: block; }
.ndl-guide-teaser-step strong { font-size: 15px; }
.ndl-guide-teaser-step small { margin-top: 3px; color: var(--ndl-guide-muted); font-size: 12px; line-height: 1.4; }

/* Editorial guide page */
.design-guide-page { background: var(--ndl-guide-page); }
.design-guide-page .legal-main { width: min(1180px, calc(100% - 40px)); margin: 34px auto 72px; }
.design-guide-page .legal-card {
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.guide-page { color: var(--ndl-guide-ink); }
.guide-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 350px;
    padding: clamp(30px, 5vw, 58px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
    gap: 30px;
    align-items: center;
    background: linear-gradient(125deg, #fff 0%, #faf8ff 58%, #f0eaff 100%);
    border: 1px solid #e9e4f5;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(61, 42, 117, .09);
}
.guide-hero-content { position: relative; z-index: 1; max-width: 720px; }
.guide-eyebrow { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; }
.guide-eyebrow i { font-size: 17px; }
.guide-hero h1 {
    max-width: 720px;
    margin: 0;
    color: var(--ndl-guide-ink);
    font-size: clamp(38px, 5.5vw, 64px);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: -.05em;
}
.guide-hero h1 span {
    display: block;
    color: transparent;
    background: linear-gradient(100deg, var(--ndl-guide-primary), var(--ndl-guide-secondary));
    background-clip: text;
    -webkit-background-clip: text;
}
.guide-lead { max-width: 680px; margin: 20px 0 18px; color: #5d586a; font-size: 17px; line-height: 1.75; }
.guide-hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 22px; color: var(--ndl-guide-muted); font-size: 13px; }
.guide-hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.guide-hero-meta i { color: var(--ndl-guide-primary); }
.guide-hero-art { position: relative; width: min(100%, 320px); aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.guide-art-orbit { position: absolute; width: 88%; height: 88%; border: 1px dashed rgba(108,92,231,.3); border-radius: 50%; transform: rotate(-18deg); }
.guide-art-card {
    position: absolute;
    width: 180px;
    height: 226px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5def6;
    border-radius: 22px;
    box-shadow: 0 22px 50px rgba(64, 45, 125, .17);
}
.guide-art-card-back { align-items: center; justify-content: center; color: #fff; background: linear-gradient(145deg, #7659ef, #a855f7); transform: rotate(12deg) translate(26px, 4px); }
.guide-art-card-back i { font-size: 42px; opacity: .9; }
.guide-art-card-main { z-index: 1; transform: rotate(-8deg) translate(-14px, 4px); }
.guide-art-label { color: #777080; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.guide-art-illustration { flex: 1; display: grid; place-items: center; margin: 12px 0; color: var(--ndl-guide-primary); background: radial-gradient(circle at 50% 48%, #ede8ff 0 32%, #f8f6ff 33%); border-radius: 15px; }
.guide-art-illustration i { font-size: 58px; }
.guide-art-lines { display: grid; gap: 5px; }
.guide-art-lines i { display: block; width: 100px; height: 5px; background: #eeeaf6; border-radius: 5px; }
.guide-art-lines i:nth-child(2) { width: 76px; }
.guide-art-lines i:nth-child(3) { width: 48px; }
.guide-art-check { position: absolute; right: -13px; bottom: 28px; width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: var(--ndl-guide-primary); border: 4px solid #fff; border-radius: 50%; }
.guide-art-spark { position: absolute; color: var(--ndl-guide-secondary); font-size: 28px; }
.guide-art-spark-one { top: 15%; right: 12%; }
.guide-art-spark-two { bottom: 13%; left: 8%; font-size: 22px; }
.guide-hero-orb { position: absolute; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(168,85,247,.17), rgba(108,92,231,0)); }
.guide-hero-orb-one { width: 360px; height: 360px; top: -200px; right: 14%; }
.guide-hero-orb-two { width: 280px; height: 280px; bottom: -220px; left: 20%; }

.guide-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 28px; }
.guide-sidebar { position: sticky; top: 22px; display: grid; gap: 16px; }
.guide-toc,
.guide-sidebar-tip,
.guide-section,
.guide-faq,
.guide-end-card {
    background: #fff;
    border: 1px solid #e9e4f2;
    border-radius: 22px;
    box-shadow: 0 10px 32px rgba(44,30,80,.045);
}
.guide-toc { padding: 20px 14px; }
.guide-toc-title { margin: 0 10px 12px; color: #777080; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.guide-toc a { display: flex; gap: 10px; align-items: center; padding: 10px; color: #494354; border-radius: 11px; text-decoration: none; font-size: 13px; font-weight: 650; }
.guide-toc a:hover { color: var(--ndl-guide-primary-dark); background: #f5f2ff; }
.guide-toc a span { color: var(--ndl-guide-primary); font-size: 10px; font-weight: 850; }
.guide-sidebar-tip { padding: 20px; background: linear-gradient(145deg, #f6f3ff, #fff); }
.guide-tip-icon { width: 37px; height: 37px; display: grid; place-items: center; margin-bottom: 12px; color: var(--ndl-guide-primary); background: #ebe5ff; border-radius: 12px; }
.guide-sidebar-tip strong { font-size: 14px; }
.guide-sidebar-tip p { margin: 7px 0 0; color: #625c70; font-size: 13px; line-height: 1.65; }

.guide-article { display: grid; gap: 18px; min-width: 0; }
.guide-section { padding: clamp(22px, 4vw, 36px); scroll-margin-top: 24px; }
.guide-section-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.guide-section-number { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--ndl-guide-primary), var(--ndl-guide-secondary)); border-radius: 15px; box-shadow: 0 8px 20px rgba(108,92,231,.2); font-size: 13px; font-weight: 850; }
.guide-section-heading .guide-section-kicker { margin-bottom: 4px; font-size: 10px; }
.guide-section h2,
.guide-faq h2,
.guide-end-card h2 { margin: 0; font-size: clamp(23px, 3vw, 30px); line-height: 1.15; letter-spacing: -.025em; }
.guide-section > p,
.guide-end-card p { color: #595465; font-size: 15px; line-height: 1.8; }
.guide-section > p:last-child { margin-bottom: 0; }
.guide-question-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 22px 0; }
.guide-question-card { padding: 17px; background: #faf9fd; border: 1px solid #eeeaf5; border-radius: 17px; }
.guide-question-card > span { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 12px; color: var(--ndl-guide-primary); background: #efeaff; border-radius: 11px; }
.guide-question-card strong { display: block; font-size: 14px; }
.guide-question-card p { margin: 6px 0 0; color: #696375; font-size: 12px; line-height: 1.55; }
.guide-prompt-card { overflow: hidden; margin: 22px 0; background: #fbfaff; border: 1px solid #e7e0f5; border-radius: 18px; }
.guide-prompt-card-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; color: #514b5d; background: #f5f2ff; border-bottom: 1px solid #e7e0f5; font-size: 13px; font-weight: 750; }
.guide-prompt-card-head span:first-child { display: flex; gap: 8px; align-items: center; }
.guide-prompt-card-head i { color: var(--ndl-guide-primary); }
.guide-prompt-card-head span:last-child { color: #777080; font-size: 11px; }
.guide-prompt-card ol { margin: 0; padding: 8px 18px 12px; list-style: none; counter-reset: prompt-step; }
.guide-prompt-card li { display: grid; grid-template-columns: 115px 1fr; gap: 10px; padding: 10px 2px; border-bottom: 1px solid #efedf4; font-size: 13px; }
.guide-prompt-card li:last-child { border-bottom: 0; }
.guide-prompt-card li b { color: #403a4c; }
.guide-prompt-card li span { color: #696375; }
.guide-example-box { margin: 20px 0; padding: 20px 22px; background: linear-gradient(120deg, #f4f0ff, #fbf9ff); border-left: 4px solid var(--ndl-guide-primary); border-radius: 0 16px 16px 0; }
.guide-example-label { margin: 0 0 8px !important; color: var(--ndl-guide-primary-dark) !important; font-size: 12px !important; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.guide-example-box p:last-child { margin: 0; color: #403a4c; font-size: 15px; line-height: 1.75; }
.guide-comparison { display: grid; grid-template-columns: minmax(0,1fr) 34px minmax(0,1.25fr); gap: 12px; align-items: center; margin: 22px 0; }
.guide-comparison-card { height: 100%; padding: 18px; border: 1px solid #ebe7f1; border-radius: 17px; }
.guide-comparison-before { background: #faf9fb; }
.guide-comparison-after { background: #f7f4ff; border-color: #ded6ff; }
.guide-comparison-label { display: flex; align-items: center; gap: 7px; color: #777080; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.guide-comparison-after .guide-comparison-label { color: var(--ndl-guide-primary-dark); }
.guide-comparison-card p { margin: 14px 0 8px; color: #34303d; font-weight: 720; line-height: 1.55; }
.guide-comparison-card small { color: #706b78; font-size: 12px; line-height: 1.55; }
.guide-comparison-arrow { display: grid; place-items: center; color: var(--ndl-guide-primary); font-size: 20px; }
.guide-checklist { display: grid; gap: 10px; margin: 20px 0; }
.guide-checklist > div { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; background: #fbfaff; border: 1px solid #efedf5; border-radius: 14px; }
.guide-checklist > div > span { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; color: #fff; background: var(--ndl-guide-primary); border-radius: 8px; font-size: 14px; }
.guide-checklist p { margin: 0; color: #595465; font-size: 14px; line-height: 1.65; }
.guide-checklist strong { color: #34303d; }
.guide-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 16px; color: var(--ndl-guide-primary-dark); background: #f3f0ff; border: 1px solid #e5deff; border-radius: 15px; }
.guide-note > i { margin-top: 3px; font-size: 18px; }
.guide-note p { margin: 0; color: #514b5d; font-size: 13px; line-height: 1.65; }
.guide-faq { padding: clamp(22px, 4vw, 34px); }
.guide-faq > .guide-section-kicker { margin-bottom: 7px; }
.guide-faq h2 { margin-bottom: 18px; }
.guide-faq details { padding: 15px 0; border-top: 1px solid #eeeaf4; }
.guide-faq summary { cursor: pointer; color: #373241; font-size: 14px; font-weight: 720; }
.guide-faq details p { margin: 10px 0 0; color: #625c70; font-size: 14px; line-height: 1.7; }
.guide-end-card { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 17px; align-items: center; padding: 24px; background: linear-gradient(115deg,#fff,#f3efff); }
.guide-end-icon { width: 50px; height: 50px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,var(--ndl-guide-primary),var(--ndl-guide-secondary)); border-radius: 16px; font-size: 20px; }
.guide-end-card .guide-section-kicker { margin: 0 0 5px; font-size: 10px; }
.guide-end-card h2 { font-size: 21px; }
.guide-end-card p:not(.guide-section-kicker) { margin: 5px 0 0; font-size: 13px; }
.guide-updated { margin: 0; color: #777080; font-size: 12px; line-height: 1.6; }

/* Responsive layout */
@media (max-width: 900px) {
    .guide-hero { grid-template-columns: minmax(0,1fr) 230px; }
    .guide-art-card { transform: scale(.85); }
    .guide-art-card-main { transform: scale(.85) rotate(-8deg) translate(-14px,4px); }
    .guide-art-card-back { transform: scale(.85) rotate(12deg) translate(26px,4px); }
    .guide-layout { grid-template-columns: 1fr; }
    .guide-sidebar { position: static; grid-template-columns: minmax(0,1fr) minmax(0,.8fr); }
    .guide-toc { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .guide-toc-title { grid-column: 1/-1; }
}
@media (max-width: 640px) {
    .ndl-guide-teaser { width: min(560px, calc(100% - 24px)); margin: 40px auto; padding: 25px 20px; grid-template-columns: 1fr; border-radius: 22px; }
    .ndl-guide-tags { gap: 7px; }
    .ndl-guide-tags span { font-size: 11px; padding: 7px 9px; }
    .ndl-guide-teaser-steps { padding: 10px; }
    .design-guide-page .legal-main { width: calc(100% - 24px); margin: 18px auto 48px; }
    .guide-hero { min-height: 0; grid-template-columns: 1fr; gap: 4px; padding: 26px 22px; border-radius: 22px; }
    .guide-hero-art { width: 235px; margin: 10px auto 0; }
    .guide-hero h1 { font-size: clamp(36px, 11vw, 50px); }
    .guide-lead { font-size: 15px; }
    .guide-layout { gap: 14px; margin-top: 14px; }
    .guide-sidebar { grid-template-columns: 1fr; }
    .guide-toc { grid-template-columns: 1fr; }
    .guide-toc-title { grid-column: 1; }
    .guide-question-grid { grid-template-columns: 1fr; }
    .guide-comparison { grid-template-columns: 1fr; }
    .guide-comparison-arrow { transform: rotate(90deg); }
    .guide-end-card { grid-template-columns: 44px 1fr; padding: 20px; }
    .guide-end-icon { width: 42px; height: 42px; border-radius: 13px; }
    .guide-end-card .guide-primary-button { grid-column: 1/-1; width: 100%; }
    .guide-prompt-card li { grid-template-columns: 82px 1fr; }
    .guide-section { padding: 22px 18px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .ndl-guide-button, .guide-primary-button { transition: none; }
}

/* Public reading hub and focused guides. */
.knowledge-home { width: min(1120px, calc(100% - 40px)); margin: 56px auto; }
.knowledge-home, .knowledge-article, .knowledge-hero, .knowledge-note { color: var(--ndl-guide-ink); }
.knowledge-home h2, .knowledge-heading { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; letter-spacing: -.03em; }
.knowledge-hero { padding: clamp(26px, 5vw, 60px); background: linear-gradient(135deg, #fff, #f2edff); border: 1px solid #e6dff5; border-radius: 26px; margin-bottom: 34px; }
.knowledge-hero h1 { max-width: 850px; font-size: clamp(30px, 4.5vw, 54px); line-height: 1.1; letter-spacing: -.04em; margin: 0 0 20px; }
.knowledge-lead { max-width: 780px; color: #575164; line-height: 1.75; font-size: 17px; }
.knowledge-route { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 26px; color: #654ba2; font-size: 13px; font-weight: 700; }
.knowledge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.knowledge-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid #e5dfef; border-radius: 20px; color: #21182f !important; background: #fff; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.knowledge-card:hover { border-color: #8a69d1; box-shadow: 0 12px 30px #56309a12; }
.knowledge-card:focus-visible, .knowledge-breadcrumb a:focus-visible, .legal-back:focus-visible { outline: 3px solid #7651c7; outline-offset: 4px; }
.knowledge-category { color: #72539f; font-size: 12px; font-weight: 750; letter-spacing: .04em; }
.knowledge-card h3 { font-size: 23px; line-height: 1.25; margin: 14px 0 10px; }
.knowledge-card p { color: #60586c; font-size: 15px; line-height: 1.7; margin: 0 0 18px; }
.knowledge-read { color: #6442a3; font-size: 14px; font-weight: 700; margin-top: auto; }
.knowledge-home .knowledge-grid, .knowledge-related .knowledge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.knowledge-home .knowledge-card h3, .knowledge-related .knowledge-card h3 { font-size: 21px; }
.knowledge-note { padding: 30px; border: 1px solid #e6dff5; background: #f1edfa; border-radius: 20px; margin-top: 30px; }
.knowledge-note p { line-height: 1.8; max-width: 820px; color: #554c62; }
.knowledge-breadcrumb { margin-bottom: 20px; color: #6b6079; font-size: 14px; }
.knowledge-breadcrumb a { color: #6543ad; }
.knowledge-article { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid #e6dff5; border-radius: 22px; padding: clamp(22px, 4vw, 48px); }
.knowledge-article section + section { margin-top: 38px; padding-top: 28px; border-top: 1px solid #ece7f3; }
.knowledge-article h2 { font-size: clamp(23px, 3vw, 29px); line-height: 1.25; margin-top: 0; }
.knowledge-article p, .knowledge-article li { font-size: 16px; line-height: 1.85; color: #514959; }
.knowledge-article li + li { margin-top: 10px; }
.knowledge-article a:not(.guide-primary-button) { color: #6543ad; text-decoration: underline; text-underline-offset: 3px; }
.knowledge-article pre { overflow-x: auto; padding: 20px; background: #211a2f; color: #f5efff; border-radius: 12px; line-height: 1.7; font-size: 13px; }
.knowledge-article :not(pre) > code { overflow-wrap: anywhere; font-size: .9em; background: #f2edf9; color: #55407a; padding: 2px 4px; border-radius: 4px; }
.knowledge-example { padding: 24px; background: #f7f3fc; border-left: 4px solid #9c78d3; border-radius: 0 14px 14px 0; }
.knowledge-example p { margin: 7px 0 20px; }
.knowledge-example p:last-child { margin-bottom: 0; }
.knowledge-table-wrap { overflow-x: auto; }
.knowledge-article table { width: 100%; border-collapse: collapse; font-size: 15px; }
.knowledge-article caption { text-align: left; color: #6c6179; padding: 12px 0; }
.knowledge-article th, .knowledge-article td { padding: 14px 12px; border-bottom: 1px solid #e7e0ee; text-align: left; vertical-align: top; }
.knowledge-article th { background: #f4effa; }
.knowledge-type-demo { margin: 28px 0; }
.knowledge-type-sample { padding: 42px 16px; text-align: center; background: radial-gradient(ellipse at top right, #8249bd, transparent 65%), linear-gradient(135deg, #241846, #483179); color: #faf5ff; font-size: clamp(27px, 5vw, 52px); font-weight: 900; letter-spacing: .02em; line-height: 1.12; border-radius: 16px; }
.knowledge-type-sample span { font-size: .56em; color: #e2c6ff; }
.knowledge-type-demo figcaption { color: #6c6378; font-size: 13px; line-height: 1.6; margin-top: 10px; }
.knowledge-related { margin-top: 44px; }
.legal-header-inner, .legal-header-actions { flex-wrap: wrap; }
.free-start-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 26px; }
.free-start-error { padding: 16px; background: #fff0f0; border: 1px solid #e7aaaa; border-radius: 12px; color: #8d2525; }
.guide-primary-button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 800px) {
    .knowledge-home .knowledge-grid, .knowledge-related .knowledge-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .knowledge-grid { grid-template-columns: 1fr; }
    .knowledge-card { padding: 23px; }
    .legal-header-inner { gap: 16px; }
    .legal-header-actions { width: 100%; justify-content: space-between; gap: 12px; font-size: 13px; }
    .knowledge-breadcrumb { line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) { .knowledge-card { transition: none; } }

/* Reading experience: the same violet identity as the creator. */
.design-guide-page *, .design-guide-page *::before, .design-guide-page *::after { box-sizing: border-box; }
.design-guide-page { background: radial-gradient(ellipse at 95% 5%, #ede3fc, transparent 42%), #f8f7fc; }
.knowledge-hero { position: relative; overflow: hidden; border-color: #dcd0f3; background: radial-gradient(ellipse at 100% 0, #dbc6fb, transparent 58%), linear-gradient(120deg, #fcfaff, #f0e9ff); box-shadow: 0 16px 50px #54328b0c; }
.knowledge-hero h1 { color: #3d2461; font-weight: 800; text-wrap: balance; }
.knowledge-hero .guide-eyebrow { display: inline-flex; padding: 9px 13px; border-radius: 999px; background: #ffffffb8; border: 1px solid #dfd2f4; color: #63409a; }
.knowledge-reading-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 26px; align-items: start; }
.knowledge-contents { position: sticky; top: 24px; padding: 22px; border: 1px solid #e4d8f4; border-radius: 20px; background: #f4effb; }
.knowledge-contents ol { list-style: none; padding: 0; margin: 16px 0 24px; counter-reset: chapters; }
.knowledge-contents li { counter-increment: chapters; margin: 0 0 16px; }
.knowledge-contents a { color: #5e467b; text-decoration: none; font-size: 13px; line-height: 1.6; }
.knowledge-contents li a::before { content: counter(chapters, decimal-leading-zero) ' / '; color: #8053b1; font-size: 11px; font-weight: 800; }
.knowledge-contents a:hover { color: #6530a5; text-decoration: underline; }
.knowledge-help { display: block; border-top: 1px solid #ddd0ee; padding-top: 18px; }
.knowledge-reading-layout .knowledge-article { width: 100%; min-width: 0; padding: clamp(22px, 3vw, 42px); background: linear-gradient(130deg, #fff, #fcfaff); box-shadow: 0 15px 48px #48256508; }
.knowledge-article section { scroll-margin-top: 24px; }
.knowledge-article h2 { color: #4e2e76; letter-spacing: -.025em; text-wrap: balance; }
.knowledge-article strong { color: #593680; }
.knowledge-article section + section { border-top: 1px solid #dfd2ee; }
.knowledge-article p, .knowledge-article li { color: #5b506b; }
.knowledge-type-sample { position: relative; overflow: hidden; padding: 58px 20px; border: 1px solid #8763b3; box-shadow: inset 0 0 50px #a87bea20, 0 15px 35px #4a287519; text-shadow: 0 4px 20px #16092355; letter-spacing: .045em; }
.knowledge-type-sample span { display: inline-block; margin-top: 16px; letter-spacing: .09em; }
.knowledge-type-demo figcaption { padding-left: 14px; border-left: 2px solid #bea0df; }
.knowledge-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.knowledge-comparison > div { padding: 22px; border: 1px solid #ddd1ef; border-radius: 16px; background: #f5f0fc; }
.knowledge-comparison > div:last-child { background: #ede4fa; border-color: #c9aee9; }
.knowledge-comparison span { color: #6d4395; font-size: 12px; font-weight: 800; }
.knowledge-comparison small { color: #62516f; line-height: 1.6; display: block; }
.knowledge-card { background: linear-gradient(145deg, #fff, #f6f0fe); border-color: #ddd0ef; box-shadow: 0 6px 20px #53377b06; }
.knowledge-card h3, .knowledge-heading, .knowledge-related h2 { color: #4c2b72; }
.knowledge-category { align-self: flex-start; padding: 6px 10px; border-radius: 8px; background: #eee5fa; color: #65418b; }
.knowledge-editorial { margin-top: 34px; padding: 22px; border-radius: 14px; background: #f1eafa; border: 1px solid #e1d3f1; }
.knowledge-editorial p { margin-bottom: 0; font-size: 13px; overflow-wrap: anywhere; }
.design-guide-page a:focus-visible, .design-guide-page summary:focus-visible { outline: 3px solid #7950bd; outline-offset: 4px; border-radius: 3px; }
@media (max-width: 950px) {
    .knowledge-reading-layout { grid-template-columns: 1fr; }
    .knowledge-contents { position: static; }
    .knowledge-contents ol { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
    .knowledge-contents li { margin: 0; }
    .knowledge-reading-layout .knowledge-article { max-width: none; }
}
@media (max-width: 600px) {
    .knowledge-contents ol, .knowledge-comparison { grid-template-columns: 1fr; }
    .knowledge-type-sample { padding: 42px 12px; font-size: clamp(24px, 7vw, 40px); }
    .knowledge-hero h1 { overflow-wrap: anywhere; }
}

/* Original, language-specific editorial examples. Radio controls work without JS. */
.design-examples { margin: 36px 0; scroll-margin-top: 24px; }
.design-examples > h2 { color: #4e2e76; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.03em; margin: 10px 0 14px; }
.examples-intro, .examples-footnote { color: #62536f; line-height: 1.75; max-width: 900px; }
.examples-footnote { font-size: 13px; margin-top: 20px; }
.examples-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin-top: 25px; }
.example-card { min-width: 0; border: 1px solid #dfd1ef; border-radius: 22px; overflow: hidden; background: #fcfaff; box-shadow: 0 12px 35px #4b247a0a; }
.example-preview { background: #eee7f6; padding: 16px; }
.example-background { display: flex; flex-wrap: wrap; gap: 12px; border: 0; padding: 0; margin: 0 0 14px; color: #5e407a; font-size: 12px; }
.example-background legend { margin-bottom: 8px; font-weight: 700; }
.example-background label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.example-background input { accent-color: #7751ac; }
.example-image { display: block; background: #faf7ff; border: 1px solid #d5c4e6; border-radius: 14px; padding: 8px; }
.example-image img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.example-preview:has(input[value="dark"]:checked) .example-image { background: #231b30; border-color: #574067; }
.example-zoom { display: block; color: #655273; font-size: 11px; margin-top: 10px; text-align: center; }
.example-copy { padding: 22px; }
.example-copy .knowledge-category { display: inline-block; font-size: 11px; margin: 0; }
.example-copy h3 { color: #4d2c70; font-size: 24px; line-height: 1.2; margin: 16px 0 12px; }
.example-copy p { color: #60516e; font-size: 14px; line-height: 1.75; }
.example-copy details { border-top: 1px solid #e3d6ee; padding-top: 15px; margin-top: 15px; }
.example-copy summary { color: #653c90; font-size: 14px; font-weight: 700; cursor: pointer; line-height: 1.5; }
.example-prompt { padding: 14px; border-radius: 10px; background: #f0e8f9; }
.knowledge-article .examples-grid { grid-template-columns: 1fr; }
.knowledge-article .example-card { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
@media(max-width: 900px) { .examples-grid { grid-template-columns: 1fr; } .example-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
@media(max-width: 600px) { .example-card, .knowledge-article .example-card { display: block; } .example-copy { padding: 20px; } }

/* Editorial navigation and visual chapter covers. */
.design-guide-page .legal-header-inner { width: min(1180px, calc(100% - 40px)); }
.design-guide-page .legal-header { background: #fffcff; }
.design-guide-page .legal-back { padding: 9px 13px; border-radius: 10px; font-size: 13px; color: #61418b; }
.design-guide-page .legal-back:hover { background: #f0e8fb; }
.knowledge-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; font-size: 12px; padding: 0 4px; }
.knowledge-breadcrumb a { text-decoration: none; font-weight: 650; }
.knowledge-hero--article { display: grid; grid-template-columns: minmax(0, 1fr) 265px; gap: clamp(24px, 4vw, 52px); align-items: center; padding: clamp(26px, 4vw, 48px); background: radial-gradient(ellipse at 100% 30%, #e1cef9, transparent 60%), linear-gradient(120deg, #fdfbff, #f1eafa); }
.knowledge-hero-copy { min-width: 0; }
.design-guide-page .knowledge-hero--article h1 { font-size: clamp(32px, 3.5vw, 46px); line-height: 1.12; letter-spacing: -.045em; margin: 20px 0 16px; }
.knowledge-hero--article .knowledge-lead { font-size: 16px; line-height: 1.75; margin-bottom: 24px; }
.knowledge-hero-preview { margin: 0; padding: 14px; border-radius: 23px; background: #ffffffc9; border: 1px solid #fff; box-shadow: 0 18px 40px #57378916; transform: rotate(3deg); }
.hero-preview-top { display: flex; align-items: center; gap: 7px; color: #6a507e; font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.hero-preview-dot { width: 7px; height: 7px; border-radius: 50%; background: #9d6cdd; }
.knowledge-hero-preview img { width: 100%; height: auto; display: block; margin: 12px 0; background: radial-gradient(circle,#f9f3ff,#ede3f8); border-radius: 14px; }
.knowledge-hero-preview figcaption { color: #72558a; font-size: 11px; text-align: center; padding: 3px; }
.knowledge-reading-layout { grid-template-columns: 260px minmax(0,1fr); gap: 24px; }
.knowledge-contents { padding: 22px 12px 14px; background: linear-gradient(160deg,#fdfbff,#f2eafb); border-color: #e3d6f2; box-shadow: 0 12px 35px #4f2d7508; }
.knowledge-contents .guide-section-kicker { margin: 0 10px 18px; color: #87679b; font-size: 10px; letter-spacing: .1em; display: flex; gap: 8px; align-items: center; }
.knowledge-contents ol { margin: 0; display: grid; gap: 5px; }
.knowledge-contents li { margin: 0; }
.knowledge-contents li a { display: grid; grid-template-columns: 29px minmax(0,1fr); gap: 10px; align-items: center; min-height: 52px; padding: 9px 10px; border-radius: 12px; font-size: 13px; line-height: 1.45; font-weight: 600; color: #6b557d; border: 1px solid transparent; }
.knowledge-contents li a::before { content: counter(chapters, decimal-leading-zero); display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: #ece2f6; color: #8b60ae; font-size: 10px; }
.knowledge-contents li a:hover { background: #eee4f9; text-decoration: none; color: #593680; }
.knowledge-contents li a[aria-current="location"] { background: #fff; border-color: #ddcbed; color: #6534a2; box-shadow: 0 5px 15px #693d9d0c; }
.knowledge-contents li a[aria-current="location"]::before { background: linear-gradient(140deg,#8060db,#aa6bd6); color: #fff; }
.knowledge-contents .knowledge-help { margin: 18px 10px 0; padding: 16px 0 0; font-size: 12px; color: #7a638b; }
.guide-card-visual { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; height: 120px; margin: -8px -8px 24px; border-radius: 15px; background: linear-gradient(130deg,#eee5ff,#e0d1f8); }
.guide-card-visual > i { display: grid; place-items: center; position: relative; font-size: 36px; width: 66px; height: 66px; background: #ffffffbf; color: #8255b7; border-radius: 18px; transform: rotate(-7deg); box-shadow: 0 8px 20px #7650a918; }
.guide-card-orbit { position: absolute; width: 174px; height: 174px; border-radius: 50%; border: 1px solid #ffffffb0; box-shadow: 0 0 0 22px #ffffff26,0 0 0 44px #ffffff17; }
.guide-card-arrow { position: absolute; right: 14px; top: 12px; font-size: 19px; color: #8962ac; }
.guide-card-visual--png-druckcheck { background: linear-gradient(130deg,#e5e9ff,#d9d5f6); }
.guide-card-visual--csv-designserien { background: linear-gradient(130deg,#f4e7fb,#e7cef0); }
.knowledge-card { padding: 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.knowledge-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px #58377b12; }
.knowledge-card .knowledge-category { padding: 0; background: transparent; color: #9478a8; letter-spacing: .08em; font-size: 10px; text-transform: uppercase; }
.design-guide-page .knowledge-card h3 { font-size: 22px; margin: 12px 0; line-height: 1.25; }
.knowledge-read { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid #e8ddf0; }
.knowledge-article .knowledge-example { border-left: 0; border: 1px solid #e0d0f0; border-radius: 18px; padding: 24px; box-shadow: inset 0 3px 0 #b793dc; }
.knowledge-example > strong { display: inline-block; padding: 5px 9px; border-radius: 7px; background: #e9dcf7; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.knowledge-article .knowledge-editorial { background: linear-gradient(120deg,#eee3f8,#f9f5fd); border-radius: 18px; }
.example-copy details { padding: 12px 14px; border: 1px solid #e3d6ee; border-radius: 11px; background: #f6f0fc; }
.example-copy details[open] { background: #fff; border-color: #cbb0e4; }
@media(max-width: 950px) {
    .knowledge-reading-layout { grid-template-columns: 1fr; }
    .knowledge-contents ol { grid-template-columns: 1fr 1fr; }
    .knowledge-hero--article { grid-template-columns: minmax(0,1fr) 200px; }
}
@media(max-width: 640px) {
    .knowledge-hero--article { grid-template-columns: 1fr; }
    .knowledge-hero-preview { width: min(220px, 80%); justify-self: center; margin: 5px 0 10px; }
    .knowledge-contents ol { grid-template-columns: 1fr; }
    .knowledge-contents li a { min-height: 46px; }
    .design-guide-page .legal-header-inner { width: calc(100% - 24px); }
    .knowledge-hero--article .guide-primary-button { width: 100%; }
}
@media(prefers-reduced-motion: reduce) { .knowledge-card { transition: none; } .knowledge-card:hover { transform: none; } }

/* Accessible image viewer, matching the editorial violet palette. */
.design-viewer { box-sizing: border-box; width: min(1020px, calc(100vw - 40px)); height: min(860px, calc(100dvh - 40px)); max-width: none; max-height: none; padding: 0; border: 1px solid #d9c7ee; border-radius: 24px; background: #faf7ff; color: #4d2c70; box-shadow: 0 30px 100px #160d3955; overflow: hidden; }
.design-viewer[open] { display: flex; flex-direction: column; }
.design-viewer::backdrop { background: #1d1237b8; backdrop-filter: blur(5px); }
.viewer-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; background: linear-gradient(120deg,#fff,#eee3fa); }
.viewer-header .guide-section-kicker { margin: 0 0 6px; font-size: 10px; }
.viewer-header h2 { margin: 0; font-size: clamp(18px, 3vw, 25px); line-height: 1.2; }
.design-viewer button, .prompt-copy-button { font: inherit; cursor: pointer; min-height: 44px; border: 1px solid #dccbec; border-radius: 11px; background: #fff; color: #65408c; padding: 8px 14px; font-size: 13px; font-weight: 650; }
.design-viewer button:hover { background: #eee2fa; }
.design-viewer .viewer-close { flex: 0 0 44px; padding: 0; font-size: 27px; }
.viewer-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 12px 24px; border-bottom: 1px solid #e1d4ef; }
.viewer-background { display: flex; gap: 6px; padding: 0; margin: 0; border: 0; }
.viewer-background legend { font-size: 11px; margin-bottom: 5px; color: #79618e; }
.design-viewer button[aria-pressed="true"] { background: #7550aa; color: #fff; border-color: #7550aa; }
.viewer-zoom { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.viewer-zoom input { width: 105px; accent-color: #8052b6; min-height: 44px; margin: 0; }
.viewer-zoom output { min-width: 42px; font-variant-numeric: tabular-nums; }
.design-viewer button:disabled { opacity: .4; cursor: default; }
.viewer-stage { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; background: #f8f5fd; padding: 16px; box-sizing: border-box; }
.viewer-stage[data-background="dark"] { background: #231b30; }
.viewer-image { display: block; max-width: none; margin: 0 auto; }
.viewer-hint { flex-shrink: 0; font-size: 12px; line-height: 1.5; color: #766285; padding: 12px 24px; margin: 0; border-top: 1px solid #e1d4ef; }
.prompt-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 0 2px; }
.prompt-copy-button { color: #fff; border: 0; background: linear-gradient(120deg,#7755c5,#9b62c8); box-shadow: 0 5px 15px #7246ad1c; }
.prompt-copy-button:hover { background: #7146ac; }
.prompt-copy-button.is-copied { background: #614588; }
.prompt-copy-status { font-size: 12px; color: #75528d; line-height: 1.5; }
.design-viewer :focus-visible, .prompt-copy-button:focus-visible { outline: 3px solid #aa78db; outline-offset: 3px; }
.example-background label { min-height: 44px; padding: 0 6px; }
.example-copy summary { min-height: 44px; align-content: center; }
@media(max-width: 640px) {
 .design-viewer { width: calc(100vw - 16px); height: calc(100dvh - 16px); border-radius: 18px; }
 .viewer-header { padding: 16px; }
 .viewer-toolbar { padding: 10px 16px; gap: 8px; }
 .viewer-zoom { width: 100%; justify-content: space-between; gap: 5px; }
 .viewer-zoom input { width: 75px; }
 .viewer-zoom label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .design-viewer button { padding: 8px 11px; }
 .viewer-hint { padding: 10px 16px; font-size: 11px; }
 .knowledge-hero, .knowledge-article, .example-copy { overflow-wrap: anywhere; }
 .knowledge-breadcrumb { padding: 0; }
 .legal-header-actions { justify-content: center; }
 .design-guide-page .legal-header-inner { justify-content: center; }
 .knowledge-article .knowledge-table-wrap { max-width: 100%; }
}

/* Evidence-led product case: a record card, not an invented result image. */
.practice-record { padding: 26px; border-radius: 22px; border: 1px solid #e0cef1; background: linear-gradient(150deg,#fff,#f0e5fb); box-shadow: 0 18px 35px #5f378915; }
.practice-record-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: #fff; background: linear-gradient(135deg,#8160cd,#a66cc8); font-size: 25px; margin-bottom: 20px; }
.practice-record strong { display: block; font-size: 21px; line-height: 1.35; color: #573078; }
.practice-record > p:not(.guide-section-kicker) { font-size: 12px; color: #7d648e; }
.practice-evidence { display: inline-block; padding: 8px 11px; border-radius: 8px; background: #e8dcf6; color: #6b458c; font-size: 11px; font-weight: 700; }
.practice-facts { display: grid; gap: 10px; margin: 24px 0; }
.practice-facts > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 15px 17px; border-radius: 12px; background: #f2eaf9; border: 1px solid #e0d0ee; }
.practice-facts span { color: #7d6591; font-size: 13px; }
.practice-facts strong { font-size: 14px; }
.knowledge-article .practice-boundary { padding: 18px 20px; border-left: 3px solid #af8bd0; border-radius: 0 12px 12px 0; background: #f7f1fc; font-size: 14px; }
.knowledge-related .knowledge-grid { grid-template-columns: repeat(auto-fit,minmax(min(240px,100%),1fr)); }
