/* Shared presentation for the AI overview and installation guide. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: #faf9f6; color: var(--ink); line-height: 1.65; }
[hidden] { display: none !important; }
:root { --research-border: #dcdedc; --research-green: #325e4e; }
.research-page { overflow-wrap: break-word; }
.research-page a, .research-nav a, .guide-sidebar a { color: var(--navy-2); text-underline-offset: 4px; }
.research-page a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #976b05; outline-offset: 4px; }
.research-page h1, .research-page h2, .research-page h3 { color: var(--navy); font-family: 'Source Serif 4', Georgia, serif; font-weight: 500; }
.research-page h1 { font-size: clamp(2.65rem, 4.5vw, 4.2rem); line-height: 1.1; letter-spacing: -0.045em; margin: 0 0 24px; }
.research-page h2 { font-size: clamp(1.85rem, 3vw, 2.65rem); line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 20px; }
.research-page h3 { font-size: 1.3rem; line-height: 1.35; margin: 0 0 10px; }
.research-page p { margin: 0 0 18px; }
.research-page code { font-size: .88em; background: #edeef0; color: var(--navy); border-radius: 3px; padding: 2px 5px; overflow-wrap: anywhere; }
.page-width { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 1.2rem; line-height: 1.65; color: #485568; max-width: 640px; }
.small { font-size: .9rem; color: var(--muted); }
.text-link { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 13px 22px; border: 1px solid transparent; border-radius: 5px; font-weight: 700; text-decoration: none; line-height: 1.5; min-height: 48px; }
.research-page .button.primary { background: var(--navy); color: white; }
.research-page .button.primary:hover { background: var(--navy-2); text-decoration: none; }
.button:disabled { opacity: .65; cursor: wait; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin: 28px 0 18px; }
.research-nav { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px max(32px, calc((100% - 1160px) / 2)); border-bottom: 1px solid var(--research-border); background: #faf9f6; }
.research-nav a { text-decoration: none; }
.research-brand { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.15rem; font-weight: 600; white-space: nowrap; }
.research-brand span { color: var(--muted); margin-left: 5px; font-family: 'Source Sans 3', sans-serif; font-size: .85rem; }
.research-nav nav { display: flex; gap: 28px; align-items: center; font-size: .9rem; }
.research-nav nav a { padding-block: 7px; }
.research-nav nav a[aria-current] { box-shadow: 0 2px var(--navy); font-weight: 700; }
.research-nav nav .nav-trial { font-weight: 700; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 1100; background: white; padding: 12px 20px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Overview */
.ai-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; padding-block: 76px 80px; }
.ai-hero h1 { font-size: clamp(2.7rem, 4vw, 3.75rem); }
.ai-hero h1 em { font-weight: 500; color: #806019; }
.ai-hero .lead { max-width: 530px; font-size: 1.13rem; }
.hero-footnote { font-size: .88rem; color: var(--muted); }
.hero-footnote span { padding-inline: 8px; }
.research-preview { background: #fff; border: 1px solid #d8dcd9; border-radius: 8px; padding: 25px; box-shadow: 0 18px 50px -30px #132b3b55; }
.preview-topline { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid #ecece6; }
.preview-topline .eyebrow { font-size: .66rem; }
.preview-label { color: var(--muted); font-size: .7rem; white-space: nowrap; }
.preview-question { margin-top: 22px; padding: 18px; background: #f5f3ed; border-left: 3px solid var(--gold); }
.preview-kicker { color: var(--muted); font-size: .72rem; }
.preview-question p { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.27rem; color: var(--navy); line-height: 1.45; margin: 6px 0 0; }
.preview-process { list-style: none; padding: 0; margin: 25px 0; }
.preview-process li { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 19px; }
.process-marker { font-size: .68rem; color: var(--research-green); background: #edf3ef; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.preview-process strong { font-size: .93rem; color: var(--navy); }
.preview-process p { font-size: .85rem; color: var(--muted); margin: 2px 0 0; line-height: 1.5; }
.preview-result { display: flex; align-items: center; gap: 13px; border-top: 1px solid var(--research-border); padding-top: 20px; text-decoration: none; }
.preview-result > span:nth-child(2) { flex: 1; }
.preview-result strong { display: block; font-size: .98rem; }
.preview-result span span { display: block; font-size: .81rem; color: var(--muted); }
.document-symbol { font-size: 1.9rem; color: #94721d; }
.compatibility-band { border-block: 1px solid #d8dfd9; background: #edf1ec; }
.compatibility-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; padding-block: 40px; align-items: center; }
.compatibility-inner h2 { font-size: 1.8rem; margin: 0; }
.compatibility-inner p { font-size: 1rem; margin: 0 0 10px; }
.compatibility-inner p:last-child { margin-bottom: 0; }
.overview-section { padding-block: 72px; }
.section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 28px; }
.section-intro h2 { margin-bottom: 0; }
.section-intro > p { color: var(--muted); max-width: 270px; margin-bottom: 0; font-size: .97rem; }
.tool-catalog { border-top: 1px solid var(--research-border); }
.catalog-row { display: grid; grid-template-columns: 35px 260px 1fr 24px; gap: 24px; align-items: center; padding: 26px 12px; border-bottom: 1px solid var(--research-border); text-decoration: none; transition: background .15s; }
.catalog-row:hover { background: #efeee8; }
.catalog-number { align-self: start; font-size: .8rem; padding-top: 5px; color: #7a755f; }
.catalog-name h3 { font-size: 1.3rem; margin: 0 0 4px; }
.catalog-name > span { font-size: .82rem; color: var(--muted); }
.catalog-row > p { margin: 0; font-size: .97rem; color: #4b5767; }
.catalog-arrow { font-size: 1.3rem; }
.catalog-note { margin-top: 20px !important; margin-bottom: 0 !important; }
.output-section { background: var(--navy); color: #d5deea; }
.output-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 95px; padding-block: 65px; }
.output-inner .eyebrow { color: #d8bc70; }
.output-inner h2, .output-inner h3, .output-inner a { color: #fff; }
.output-inner > div > p { max-width: 450px; }
.output-inner h2 { font-size: 2.35rem; }
.output-points > div { position: relative; padding: 0 0 22px 42px; margin-bottom: 22px; border-bottom: 1px solid #ffffff26; }
.output-points > div:last-child { margin-bottom: 0; padding-bottom: 0; border: 0; }
.output-points span { position: absolute; left: 0; top: 3px; font-size: .8rem; color: var(--gold); }
.output-points h3 { font-size: 1.2rem; }
.output-points p { font-size: .95rem; line-height: 1.55; margin-bottom: 0; }
.onboarding-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; padding: 0; margin: 35px 0; }
.onboarding-steps li { border-top: 2px solid #c8c6bb; padding-top: 18px; }
.step-index { display: block; color: #7c6a3c; font-size: .8rem; margin-bottom: 18px; }
.onboarding-steps p { font-size: .98rem; color: #4b5767; }
.guide-link-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #eeede6; padding: 22px 26px; border-radius: 4px; text-decoration: none; font-size: .96rem; }
.guide-link-banner strong { display: block; }
.guide-link-banner > span:last-child { font-size: 1.5rem; }
.signup-section { background: #e9ede8; border-block: 1px solid #d8dfd9; scroll-margin-top: 24px; }
.signup-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding-block: 64px; align-items: start; }
.signup-copy { padding-top: 15px; }
.signup-copy h2 { font-size: 3rem; }
.signup-copy > p:not(.eyebrow):not(.small) { font-size: 1.15rem; }
.signup-benefits { list-style: none; padding: 0; margin: 26px 0; }
.signup-benefits li { position: relative; padding-left: 25px; margin-bottom: 12px; }
.signup-benefits li::before { content: '✓'; color: var(--research-green); position: absolute; left: 0; font-weight: 700; }
.subscription-note { margin-top: 32px; padding-top: 24px; border-top: 1px solid #cbd3ca; }
.subscription-note p { margin: 6px 0 0; }
.signup-card { background: white; padding: 32px; border: 1px solid #d4dcd2; border-radius: 8px; box-shadow: 0 8px 30px -24px #132b3b66; }
.signup-card h3 { font-size: 1.4rem; }
.form-sub { color: var(--muted); font-size: .94rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; color: var(--navy); font-size: .88rem; font-weight: 600; margin-bottom: 5px; }
.form-group input, .form-group select { width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #a9b1b9; border-radius: 4px; background: white; color: var(--ink); }
.signup-card .button { width: 100%; margin-top: 5px; }
.form-note { text-align: center; font-size: .78rem; color: var(--muted); margin: 12px 0 0 !important; }
.form-fallback { text-align: center; font-size: .85rem; margin: 20px 0 0 !important; }
.form-error { padding: 12px; border: 1px solid #b75b52; background: #fff4f1; color: #8d2424; border-radius: 4px; font-size: .94rem; }
.success-state { padding: 25px 0; }
.success-mark { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; color: var(--research-green); background: #e9f1e9; font-size: 1.4rem; margin-bottom: 20px; }
.overview-faq { max-width: 820px; }
/* Guide */
.guide-hero { padding-block: 62px 52px; border-bottom: 1px solid var(--research-border); }
.guide-hero .lead { max-width: 670px; }
.guide-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 70px; padding-block: 48px 80px; align-items: start; }
.guide-sidebar { position: sticky; top: 28px; }
.guide-sidebar nav { display: flex; flex-direction: column; gap: 3px; }
.guide-sidebar .eyebrow { padding-left: 12px; margin-bottom: 12px; }
.guide-sidebar nav a { padding: 7px 12px; border-left: 2px solid transparent; text-decoration: none; font-size: .91rem; color: var(--muted); }
.guide-sidebar nav a:hover { color: var(--navy); background: #efeee7; }
.guide-sidebar nav a[aria-current] { border-color: #96751f; background: #efeee7; color: var(--navy); font-weight: 600; }
.sidebar-help { margin: 30px 12px 0; padding-top: 20px; border-top: 1px solid var(--research-border); font-size: .88rem; }
.sidebar-help strong, .sidebar-help a { display: block; margin-bottom: 6px; }
.guide-content { max-width: 800px; min-width: 0; }
.guide-section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--research-border); scroll-margin-top: 30px; }
.guide-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.guide-section h2 { font-size: 2rem; }
.guide-section h3 { margin-top: 26px; font-size: 1.22rem; }
.guide-section p { line-height: 1.75; }
.note { background: #f1efe4; border-left: 3px solid #b09142; padding: 20px 24px; margin: 25px 0 0; border-radius: 0 4px 4px 0; }
.note strong { display: block; color: var(--navy); }
.note ul { padding-left: 20px; margin: 10px 0; }
.note li { margin: 5px 0; }
.note p { margin: 8px 0 0; font-size: .95rem; }
.install-walkthrough { border: 1px solid #cdd3d7; border-radius: 6px; padding: 24px; background: #fff; margin: 24px 0 18px; }
.walkthrough-label { display: flex; justify-content: space-between; gap: 15px; align-items: center; color: var(--navy); font-size: .85rem; font-weight: 600; margin-bottom: 16px !important; }
.walkthrough-hint { color: var(--muted); font-size: .76rem; font-weight: 400; }
.install-path { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 0 0 22px; }
.install-path button { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: #f4f5f4; border: 1px solid #d8dcd9; border-radius: 4px; text-align: left; padding: 13px 12px; color: var(--navy); font-weight: 600; font-size: .91rem; line-height: 1.3; transition: background .15s, color .15s; }
.install-path button span { font-size: .72rem; font-weight: 400; }
.install-path button[aria-expanded="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.install-path button[aria-expanded="true"] span { color: #efd17a; }
.install-path button:disabled { cursor: default; opacity: 1; }
.setup-detail { border-top: 1px solid var(--research-border); padding-top: 18px; min-height: 127px; animation: panel-in .2s ease-out; }
.setup-detail h3 { font-family: 'Source Sans 3', sans-serif; font-weight: 600; font-size: 1.05rem; margin: 0 0 8px; }
.setup-detail p { font-size: .97rem; margin-bottom: 0; }
.completion { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; color: var(--research-green); }
.completion > span { font-weight: 700; }
.completion p { margin: 0; font-size: .92rem; }
.domain-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px; background: #fff; border: 1px solid var(--research-border); border-radius: 4px; margin: 20px 0; }
.domain-row code { background: none; padding: 0; font-size: 1rem; }
.copy-button { flex-shrink: 0; border: 1px solid #bfc8cf; background: #fff; color: var(--navy); padding: 6px 11px; min-height: 36px; border-radius: 4px; font-size: .8rem; font-weight: 600; }
.copy-button:hover { background: #e9eef2; }
.prompt-box { border: 1px solid #ccd5dd; border-radius: 5px; background: #f0f4f6; padding: 19px 22px; margin: 22px 0; }
.prompt-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.prompt-heading > span { text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; color: #566779; font-weight: 700; }
.prompt-box > p { margin: 0; color: var(--navy); font-size: 1rem; }
.research-flow { display: flex; flex-wrap: wrap; gap: 14px 20px; padding-block: 18px; border-block: 1px solid var(--research-border); margin: 28px 0; }
.research-flow span { display: inline-flex; gap: 8px; align-items: center; font-size: .82rem; color: #4e5c68; }
.research-flow b { border: 1px solid #c4cbc5; border-radius: 50%; height: 23px; width: 23px; display: grid; place-items: center; font-size: .7rem; }
#using > .small { margin-top: 20px; }
.example-picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 0; }
.example-picker button { color: var(--navy); background: #fff; border: 1px solid #bac4cc; border-radius: 4px; padding: 10px 16px; font-weight: 600; font-size: .88rem; min-height: 44px; }
.example-picker button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: white; }
.example-panel { padding: 24px; margin: 16px 0; border: 1px solid var(--research-border); background: white; border-radius: 5px; scroll-margin-top: 30px; animation: panel-in .2s ease-out; }
.example-panel h3 { font-size: 1.5rem; margin-top: 0; }
.example-panel .eyebrow { margin-bottom: 8px; }
.skill-filename { font-size: .82rem; color: var(--muted); }
.example-panel .prompt-box { margin-bottom: 0; }
.advice-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
.advice-list > div { padding-top: 18px; border-top: 2px solid #d5d6cb; }
.advice-list h3 { margin: 0 0 10px; }
.advice-list p { font-size: .96rem; margin-bottom: 0; }
.numbered-list { counter-reset: item; list-style: none; padding: 0; margin: 26px 0; }
.numbered-list li { position: relative; padding-left: 40px; margin-bottom: 22px; }
.numbered-list li::before { counter-increment: item; content: counter(item, decimal-leading-zero); position: absolute; left: 0; top: 2px; color: #806a32; font-size: .8rem; }
.numbered-list strong { display: block; margin-bottom: 4px; color: var(--navy); }
.faq-list { border-top: 1px solid #cdd3d7; }
.faq-list details { border-bottom: 1px solid #cdd3d7; }
.faq-list summary { cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--navy); padding: 20px 26px 20px 0; position: relative; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 1.3rem; font-weight: 400; position: absolute; right: 2px; top: 16px; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details[open] summary { padding-bottom: 12px; }
.faq-list details p { font-size: .96rem; color: #4c5969; margin: 0 28px 22px 0; }
.help-card { margin-top: 32px; padding: 25px; background: #edf1ec; border-radius: 5px; }
.help-card h3 { margin-top: 0; }
.help-card p { font-size: .96rem; }
@keyframes panel-in { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1050px) {
    .ai-hero { gap: 35px; }
    .ai-hero h1 { font-size: 3rem; }
    .preview-topline { align-items: flex-start; flex-direction: column; gap: 4px; }
    .guide-layout { gap: 35px; grid-template-columns: 200px minmax(0, 1fr); }
    .signup-layout { gap: 55px; }
    .catalog-row { grid-template-columns: 24px 215px 1fr 20px; gap: 18px; }
    .install-path button { font-size: .83rem; padding: 10px 8px; }
    .output-inner { gap: 50px; }
}
@media (max-width: 800px) {
    .page-width { width: calc(100% - 40px); }
    .research-nav { padding: 16px 20px; gap: 16px; }
    .research-nav nav { gap: 18px; }
    .research-brand { font-size: 1rem; }
    .ai-hero { grid-template-columns: 1fr; padding-block: 45px; gap: 35px; }
    .ai-hero h1 { font-size: clamp(2.8rem, 7vw, 4rem); }
    .ai-hero h1 br { display: none; }
    .ai-hero .lead { max-width: 600px; }
    .research-preview { max-width: 590px; width: 100%; }
    .preview-topline { flex-direction: row; align-items: center; }
    .compatibility-inner { grid-template-columns: 1fr; gap: 22px; padding-block: 32px; }
    .compatibility-inner h2 br { display: none; }
    .section-intro { display: block; }
    .section-intro > p { max-width: none; margin-top: 16px; }
    .overview-section { padding-block: 46px; }
    .catalog-row { grid-template-columns: 24px 1fr 24px; gap: 7px 15px; padding: 23px 4px; }
    .catalog-row > p { grid-column: 2; }
    .catalog-arrow { grid-row: 1; grid-column: 3; }
    .output-inner { gap: 32px; grid-template-columns: 1fr; padding-block: 45px; }
    .output-inner > div > p { max-width: 620px; }
    .onboarding-steps { gap: 24px; }
    .signup-layout { gap: 32px; grid-template-columns: 1fr; padding-block: 40px; }
    .signup-card { max-width: 600px; width: 100%; }
    .signup-copy h2 { font-size: 2.5rem; }
    .guide-hero { padding-block: 40px 32px; }
    .guide-layout { grid-template-columns: 1fr; gap: 35px; padding-block: 25px 50px; }
    .guide-sidebar { position: static; }
    .guide-sidebar nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .guide-sidebar .eyebrow { grid-column: 1 / -1; padding-left: 0; margin-bottom: 6px; }
    .guide-sidebar nav a { border: 1px solid var(--research-border); border-radius: 4px; font-size: .83rem; padding: 8px 10px; }
    .guide-sidebar nav a[aria-current] { border-color: var(--research-border); }
    .sidebar-help { display: none; }
    .guide-content { max-width: none; }
    .guide-section { padding-bottom: 32px; margin-bottom: 32px; }
    .install-path button { font-size: .94rem; padding: 13px 12px; }
}
@media (max-width: 520px) {
    .research-nav { flex-direction: column; align-items: flex-start; gap: 12px; }
    .research-nav nav { width: 100%; justify-content: space-between; gap: 12px; font-size: .88rem; }
    .research-page h1 { font-size: 2.65rem; }
    .research-page .lead { font-size: 1.08rem; }
    .hero-actions { gap: 18px; }
    .hero-actions .button { width: 100%; }
    .hero-footnote { font-size: .78rem; }
    .hero-footnote span { padding-inline: 3px; }
    .research-preview { padding: 20px; }
    .preview-topline .eyebrow { font-size: .6rem; }
    .preview-label { font-size: .65rem; }
    .onboarding-steps { grid-template-columns: 1fr; }
    .step-index { margin-bottom: 10px; }
    .onboarding-steps li > p { margin-bottom: 0; }
    .signup-card { padding: 24px 20px; }
    .guide-sidebar nav { grid-template-columns: 1fr 1fr; }
    .guide-section h2 { font-size: 1.8rem; }
    .install-walkthrough { padding: 16px; }
    .walkthrough-label { flex-direction: column; align-items: flex-start; gap: 3px; }
    .install-path { grid-template-columns: 1fr 1fr; }
    .install-path button { flex-direction: row; align-items: center; min-height: 48px; }
    .setup-detail { min-height: 156px; }
    .domain-row { padding: 14px 12px; gap: 8px; }
    .domain-row code { font-size: .9rem; }
    .copy-button { font-size: .75rem; padding: 6px 9px; }
    .prompt-box { padding: 16px; }
    .prompt-heading { gap: 8px; }
    .prompt-heading > span { font-size: .65rem; }
    .example-panel { padding: 20px 16px; }
    .example-picker button { flex-grow: 1; padding: 9px 13px; }
    .advice-list { grid-template-columns: 1fr; gap: 24px; }
    .note { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
    .nlrb-topbar, .research-nav, .guide-sidebar, .hero-actions, .copy-button, .example-picker, .signup-section, footer { display: none !important; }
    body { background: white; color: black; }
    .page-width { width: 100%; }
    .guide-layout { display: block; }
    .setup-detail[hidden], .example-panel[hidden] { display: block !important; }
    .guide-section { break-inside: auto; }
    .prompt-box, .install-walkthrough { break-inside: avoid; }
}
