.discovery{max-width:1040px;margin:0 auto;padding-bottom:40px;color:var(--text,var(--chapter-ink,#302b3e))}
.discovery-header{max-width:720px;margin-bottom:30px}.discovery-header h1{line-height:1.12}.discovery-header p{font-size:1.08rem;line-height:1.7;color:var(--chapter-muted,#5e566c)}.discovery-header em{color:#76516b}
.discovery h2+.discovery-grid{margin-top:24px}
.discovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.discovery-card{display:flex;flex-direction:column;gap:10px;text-align:left;border:1px solid var(--chapter-line,#d9d1dc);border-radius:18px;background:#fff;padding:24px;color:var(--chapter-ink,#302b3e);min-width:0}.discovery-card b{font-size:1.13rem}.discovery-card span{line-height:1.6}.discovery-card small{color:#704b67;margin-top:auto;font-weight:600}.discovery-card:hover{border-color:#805873;background:#fbf7fa}.discovery-card:focus-visible,.discovery button:focus-visible,.discovery input:focus-visible,.discovery textarea:focus-visible{outline:3px solid #805873;outline-offset:4px}
.discovery-feature{display:flex;gap:24px;align-items:center;justify-content:space-between;background:var(--chapter-soft,#f0e8ef);border:1px solid var(--chapter-line,#d8c9d5);padding:28px;border-radius:22px;margin-bottom:30px}.discovery-feature h2{margin:10px 0}.discovery-feature p{line-height:1.6}.discovery-feature button{flex-shrink:0}.discovery-note{margin-top:28px;padding:24px;background:var(--chapter-soft,#f5f1f6);border-radius:18px}.discovery-note h2{font-size:1.15rem}.discovery-note p{line-height:1.65}.discovery-tools{margin-top:36px}.discovery-tools>p{line-height:1.6}
.discovery-panel{background:#fff;border:1px solid var(--chapter-line,#d9d1dc);border-radius:22px;padding:32px;max-width:780px;margin:20px auto}.discovery-panel h2{font-size:1.65rem;line-height:1.35}.discovery-panel p{line-height:1.7}.discovery-panel progress{display:block;width:100%;height:7px;accent-color:#805873;margin:18px 0 26px}.discovery-options{border:0;padding:0;margin:24px 0;display:grid;gap:9px}.discovery-options legend{font-weight:600;margin-bottom:12px}.discovery-options label{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--chapter-line,#d9d1dc);border-radius:12px;padding:14px;cursor:pointer;line-height:1.5}.discovery-options label:has(input:checked){border-color:#805873;background:var(--chapter-soft,#f4edf3)}.discovery-options input{flex:0 0 auto;width:18px;height:18px;accent-color:#805873;margin-top:2px}.discovery-text{display:grid;gap:10px;font-weight:600}.discovery-text textarea{width:100%;box-sizing:border-box;min-height:120px;border:1px solid var(--chapter-line,#b7aab9);border-radius:12px;padding:14px;background:#fff;color:var(--chapter-ink,#302b3e);font:inherit;line-height:1.6;resize:vertical}.discovery-actions{display:flex;justify-content:space-between;gap:12px;margin:24px 0 10px}.discovery-privacy{font-size:.85rem;color:var(--chapter-muted,#62566a);border-top:1px solid var(--chapter-soft,#e4dce7);margin-top:26px;padding-top:18px}.discovery-results section{border-bottom:1px solid var(--chapter-soft,#e4dce7);padding:12px 0 16px}.discovery-results h3{font-size:1rem;line-height:1.5}.discovery-results p{white-space:pre-wrap;overflow-wrap:anywhere}.discovery-results{margin-bottom:24px}.discovery-next{margin-top:28px;background:var(--chapter-soft,#f4edf3);border-radius:16px;padding:22px}.discovery-next p:last-child{font-size:.88rem}.discovery .eyebrow{color:#704b67}.discovery button{min-height:44px}.discovery button.primary{color:#fff;background:#694660;border-color:#694660}.discovery button.secondary{color:var(--chapter-ink,#513c50);background:#fff;border:1px solid var(--chapter-muted,#a795a6)}.discovery button.text-button{color:#704b67}.discovery-nav-label{font-size:.68rem;text-transform:uppercase;letter-spacing:.12em;color:var(--chapter-line,#a99fb5);margin:18px 14px 6px}.discovery-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
@media(max-width:700px){.discovery-grid{grid-template-columns:1fr}.discovery-feature{display:block;padding:22px}.discovery-feature button{margin-top:10px}.discovery-panel{padding:22px 18px}.discovery-panel h2{font-size:1.35rem}.discovery-actions{flex-wrap:wrap}.discovery-actions button{flex:1}.discovery-card{padding:20px}.discovery-next{padding:18px}}
@media(prefers-reduced-motion:reduce){.discovery *{scroll-behavior:auto}}

.discovery-panel h2{margin-bottom:14px}.discovery-panel h3{margin-bottom:8px}.discovery-note p+p{margin-top:12px}.discovery-tools>p{margin:12px 0 20px}.discovery-nav-label:first-child{margin-top:0}.sidebar .lab{margin-bottom:24px}.sidebar .nav{gap:4px}.sidebar .nav button{padding-top:10px;padding-bottom:10px}
/* Keep the expanded topic navigation out of the small-screen reading flow. */
@media(max-width:620px){body:not(.landing-home):not(.quick-entry) .sidebar .nav{display:none}body:not(.landing-home):not(.quick-entry) .guided-nav{display:block}body:not(.landing-home):not(.quick-entry) .sidebar{padding:16px 20px}.guided-nav nav{max-height:70vh;overflow-y:auto}.discovery-header{margin-bottom:22px}.discovery-nav-label{display:none}}
.discovery-panel>h1{font-size:clamp(25px,3vw,34px);letter-spacing:-.9px;line-height:1.3;margin-bottom:16px}.discovery-panel>p{margin-bottom:18px}.discovery-example,.discovery-open{border:1px solid var(--chapter-line,#dfd4e1);border-radius:12px;padding:14px 16px;margin-top:16px;background:var(--chapter-paper,#faf7fb)}.discovery-example summary,.discovery-open summary{cursor:pointer;font-weight:600;line-height:1.5;color:var(--chapter-muted,#65465f)}.discovery-example p{margin:12px 0 8px}.discovery-example small,.discovery-small{font-size:.86rem;line-height:1.65;color:var(--chapter-muted,#62566a)}.discovery-next h2{font-size:1.35rem;margin-bottom:12px}.discovery-next h3{margin-top:22px}.discovery-next blockquote{margin:12px 0;border-left:3px solid var(--chapter-muted,#a7839f);padding:4px 0 4px 16px;line-height:1.7;overflow-wrap:anywhere}.discovery-next ul{padding-left:22px;line-height:1.7;margin-bottom:0}.discovery-next li+li{margin-top:8px}.discovery-basis{font-size:.86rem;color:var(--chapter-muted,#62566a)}.discovery-results{margin-top:28px}.discovery-results>h2{font-size:1.35rem}.discovery-open>.text-button{display:block;text-align:left;white-space:normal;line-height:1.5}.discovery-handoff{border-top:1px solid var(--chapter-soft,#e4dce7);padding-top:24px;margin-top:28px}.discovery-handoff h2{font-size:1.2rem}.discovery-handoff button{margin:0 8px 10px 0;white-space:normal;line-height:1.5}.discovery-handoff .discovery-small{margin-top:10px}.discovery-download{margin-top:4px;white-space:normal}
@media(max-width:700px){.discovery-panel>h1{font-size:26px}.discovery-handoff button,.discovery-download{width:100%}.discovery-next{margin-top:22px}.discovery-open,.discovery-example{padding:13px}}
/* Keep focused controls clear of the sticky mobile header and bottom tabs. */
.discovery{scroll-margin-top:85px}.discovery :is(button,textarea,input,summary){scroll-margin-top:90px;scroll-margin-bottom:110px}

.discovery-download{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;text-align:center;line-height:1.5;min-height:44px}.discovery-download:focus-visible{outline:3px solid #805873;outline-offset:4px}
.discovery-focus{margin-top:24px;padding:20px;border:1px solid var(--chapter-line,#d8c9d5);border-radius:16px;background:var(--chapter-paper,#faf6fa)}.discovery-focus h2{font-size:1.35rem}.discovery-focus h3{font-size:1rem;margin-top:18px}.discovery-focus section>p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.discovery-focus>.discovery-small{margin-top:8px}
.discovery-library{margin:24px 0 32px;padding:22px;border:1px solid var(--chapter-line,#d9d1dc);border-radius:18px;background:#fff}.discovery-library h2{font-size:1.35rem}.discovery-library>p{margin:12px 0;line-height:1.6}.discovery-library article{border-top:1px solid var(--chapter-soft,#e4dce7);padding:18px 0;display:flex;justify-content:space-between;gap:18px;align-items:center}.discovery-library h3{font-size:1rem;overflow-wrap:anywhere}.discovery-library article p{font-size:.85rem;line-height:1.6;color:var(--chapter-muted,#62566a);margin-top:6px}.discovery-library article>div:last-child{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}.discovery-save{border:1px solid var(--chapter-line,#d9cbdc);border-radius:14px;padding:18px;margin:20px 0;background:var(--chapter-paper,#fbf8fc)}.discovery-save label{display:grid;gap:8px;font-weight:600}.discovery-save input{width:100%;padding:12px;border-radius:10px;border:1px solid var(--chapter-line,#b7aab9);background:#fff;color:var(--chapter-ink,#302b3e);font:inherit}.discovery-save .discovery-actions{margin:16px 0 10px}.discovery-save-status{font-size:.9rem;line-height:1.6;margin:10px 0}.discovery-save-error{padding:12px;color:#792d3c;background:#fceef0;border-radius:10px;line-height:1.6}.discovery-save .text-button{white-space:normal;text-align:left;line-height:1.5}
@media(max-width:700px){.discovery-library{padding:18px}.discovery-library article{display:block}.discovery-library article>div:last-child{margin-top:12px}.discovery-save .discovery-actions{display:grid}.discovery-save button{width:100%}}
