/* Arcadia practice-topic pages and plain-language glossary.
   Loaded only by the pages that scripts/build_practice.py generates.
   Screen layout follows the shared visual system; print is linear. */

.glossary-tools[hidden],.glossary-empty[hidden],.glossary-group[hidden],.glossary-entry[hidden],.glossary-index li[hidden]{display:none}
/* navigation.js marks the document before the body is parsed. With scripting available the
   filter panel takes its place from the first paint, so revealing it moves nothing. */
@media screen{.navigation-ready .glossary-tools[hidden]{display:grid}}

@media screen{
/* Navigation state for a page inside a practice or the library. */
.nav-practice-group>a[aria-current=location]::after{content:'';position:absolute;bottom:6px;left:0;right:0;height:2px;background:var(--brand-accent-text)}
.navigation>a[aria-current=location]::after{transform:scaleX(1)}
.nav-topic-panel li>a[aria-current=page]{background:var(--surface-tint);font-weight:600}

.topic-scope{max-width:46ch;margin-top:22px;font-size:13px;line-height:1.75;color:var(--muted)}

/* Hero with the consultation summary. */
.topic-page .page-hero{align-items:center}
.topic-page .page-hero h1{font-size:clamp(2.7rem,3.9vw,4.1rem);line-height:1.08;text-wrap:balance}
.topic-page .breadcrumbs{flex-wrap:wrap;row-gap:6px;margin-bottom:34px}
.topic-glance{min-width:0;background:var(--brand-primary);color:var(--paper);border-radius:3px 34px 3px 3px;padding:34px 34px 30px;box-shadow:0 16px 32px rgba(8,26,48,.12)}
.topic-page .topic-glance .eyebrow{color:var(--brand-champagne);margin-bottom:14px}
.topic-glance h2{font-size:clamp(1.75rem,2.2vw,2.1rem);line-height:1.2;letter-spacing:-.035em}
.topic-glance dl{margin:24px 0 0}
.topic-glance dl>div{display:grid;grid-template-columns:128px minmax(0,1fr);gap:16px;padding:14px 0;border-top:1px solid rgba(213,224,237,.28)}
.topic-glance dt{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--light-muted);line-height:2.1}
.topic-glance dd{margin:0;font-size:14px;line-height:1.7}
.topic-glance-note{padding-top:16px;border-top:1px solid rgba(213,224,237,.28);font-size:12px;line-height:1.75;color:var(--light-muted)}
.topic-glance-phone{margin-top:14px;font-size:14px;line-height:1.7}
.topic-glance-phone a{display:inline-block;padding-block:4px;color:var(--paper);font-weight:600;text-decoration:underline;text-underline-offset:4px}
.topic-glance a:focus-visible{outline-color:var(--brand-champagne)}

/* California overview. */
.topic-overview,.topic-resources,.glossary-explore{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:80px;align-items:start}
.topic-overview{grid-template-areas:'heading body' 'terms body';grid-template-rows:auto 1fr;row-gap:0;padding-block:76px 80px}
.topic-overview-heading{grid-area:heading}
.topic-overview-body{grid-area:body}
.topic-terms{grid-area:terms}
.topic-overview-heading h2,.topic-section-heading h2,.topic-bring h2,.topic-resources-heading h2,.glossary-explore h2{font-size:clamp(2.3rem,3.3vw,3.4rem)}
.topic-overview-heading h2,.topic-resources-heading h2,.glossary-explore h2{margin-top:18px}
.topic-overview-body>p{max-width:66ch;font-size:17px;line-height:1.85}
.topic-overview-body>p+p{margin-top:22px}
.topic-overview-body>.topic-references{margin-top:32px;padding-top:18px;border-top:1px solid var(--line);font-size:13px;line-height:2;color:var(--muted)}
.topic-references>span{margin-right:10px;font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--brand-primary)}
.topic-references a,.glossary-links a{color:var(--brand-primary);text-decoration:underline;text-underline-offset:4px}
.topic-references a:hover,.glossary-links a:hover{color:var(--brand-accent-text)}
.topic-terms{margin-top:30px;padding-top:22px;border-top:1px solid var(--line)}
.topic-terms h3{font-family:var(--sans);font-size:10px;font-weight:600;line-height:1.7;letter-spacing:.17em;text-transform:uppercase}
.topic-terms ul{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.topic-terms li>a{display:inline-flex;align-items:center;min-height:38px;padding:7px 14px;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);font-size:13px;line-height:1.4}
.topic-terms li>a:hover{border-color:var(--brand-accent-text);color:var(--brand-accent-text)}
.topic-terms-all{display:inline-flex;align-items:center;gap:10px;margin-top:18px;padding-bottom:3px;border-bottom:1px solid var(--line-strong);font-size:13px;font-weight:500}
.topic-terms-all:hover{color:var(--brand-accent-text);border-color:var(--brand-accent-text)}

/* What a consultation can cover. */
.topic-discuss{padding-bottom:88px}
.topic-section-heading,.topic-siblings-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;border-top:1px solid var(--line)}
.topic-section-heading{margin-bottom:34px;padding-top:56px}
.topic-section-heading h2{margin-top:16px}
.topic-discuss-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.topic-discuss-count-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.topic-discuss-count-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.topic-discuss-grid>li{position:relative;padding:28px 24px 28px;border:1px solid var(--line);border-radius:4px 22px 4px 4px;background:var(--surface)}
.topic-discuss-grid>li::before{content:'';position:absolute;top:-1px;left:24px;width:38px;height:3px;background:var(--brand-accent)}
.topic-discuss-number{display:block;font-size:11px;font-weight:600;letter-spacing:.14em;color:var(--brand-accent-text)}
.topic-discuss-grid h3{margin-top:15px;font-size:1.4rem;line-height:1.25}
.topic-discuss-grid p{margin-top:12px;font-size:14px;line-height:1.8;color:var(--muted)}
.topic-discuss-note{max-width:80ch;margin-top:24px;font-size:13px;line-height:1.8;color:var(--muted)}

/* What to bring. */
.topic-bring h2+p{margin-top:22px}
.topic-bring-links{display:flex;flex-direction:column;align-items:flex-start;gap:16px;margin-top:28px}
.topic-bring .topic-bring-links .under-link{margin-top:0}

/* Guides and consultation options. */
.topic-page .topic-guides{border-top:0;padding-block:78px 62px}
.topic-booking{padding-bottom:6px}
.topic-page .topic-booking .practice-booking{margin-top:0}
.topic-page .practice-booking h2{font-family:var(--serif);font-size:32px;line-height:1.25;letter-spacing:-.025em}

/* Official resources. */
.topic-resources{padding-block:84px 80px}
.topic-resources-heading>p:not(.eyebrow){max-width:44ch;margin-top:22px;font-size:15px;line-height:1.85;color:var(--muted)}
.topic-resources-heading>.topic-resource-date{margin-top:12px;font-size:13px}
.topic-resource-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line-strong)}
.topic-resource-list>li{padding:20px 0 21px;border-bottom:1px solid var(--line)}
.topic-resource-list>li>a{display:flex;align-items:baseline;justify-content:space-between;gap:24px;font-family:var(--serif);font-size:1.3rem;line-height:1.35;letter-spacing:-.02em}
.topic-resource-list>li>a>span:last-child,.topic-siblings li>a>span:last-child,.glossary-explore-lists li>a>span:last-child{flex-shrink:0;font-family:var(--sans);font-size:18px;color:var(--brand-accent-text)}
.topic-resource-list>li>a:hover,.glossary-explore-lists li>a:hover{color:var(--brand-accent-text)}
.topic-resource-list>li>p{max-width:62ch;margin-top:7px;font-size:14px;line-height:1.75;color:var(--muted)}
.topic-page .faq-section{padding-top:0}

/* The other topics in this practice. */
.topic-siblings{padding-bottom:84px}
.topic-siblings-heading{margin-bottom:26px;padding-top:46px}
.topic-siblings h2{font-size:clamp(1.9rem,2.6vw,2.5rem);letter-spacing:-.04em}
.topic-siblings ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.topic-siblings li{display:grid}
.topic-siblings li>a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;min-height:66px;padding:14px 16px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);font-size:14px;font-weight:500;line-height:1.45}
.topic-sibling-number{font-size:10px;letter-spacing:.12em;color:var(--muted)}
.topic-siblings li>a:hover{border-color:var(--brand-accent-text);background:var(--surface-tint)}

/* Glossary. */
.glossary-hero{padding-block:35px 44px}
.glossary-hero h1{margin-top:22px;font-size:clamp(2.6rem,4.1vw,3.9rem);line-height:1.1;text-wrap:balance}
.glossary-hero .page-lead{max-width:64ch;font-size:17px}
.glossary-tools{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:20px 48px;align-items:end;margin-bottom:26px;padding:28px 30px 26px;border:1px solid var(--line);border-radius:4px 28px 4px 4px;background:var(--surface-tint)}
.glossary-tools-heading h2{font-size:clamp(1.8rem,2.4vw,2.3rem)}
.glossary-tools-heading p{margin-top:8px;font-size:13px;line-height:1.7;color:var(--muted)}
.glossary-search label{display:block;margin-bottom:8px;font-size:12px;font-weight:600}
.glossary-search input{width:100%;min-height:52px;padding:12px 16px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);color:var(--brand-primary);font:inherit;font-size:16px}
.glossary-search input::placeholder{color:var(--muted);opacity:1}
.glossary-search input:focus-visible{outline:3px solid var(--brand-accent-text);outline-offset:3px}
.glossary-filter-row{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px;padding-top:18px;border-top:1px solid var(--line)}
.glossary-filters{display:flex;flex-wrap:wrap;gap:8px}
.glossary-filters button{min-height:44px;padding:9px 16px;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);color:var(--brand-primary);font-size:13px;font-weight:500;cursor:pointer}
.glossary-filters button[aria-pressed=true]{background:var(--brand-accent);border-color:var(--brand-primary)}
.glossary-filters button:focus-visible{outline-offset:3px}
.glossary-count{font-size:13px;line-height:1.6;color:var(--muted)}
.glossary-empty{grid-column:1/-1;padding-top:18px;border-top:1px solid var(--line)}
.glossary-empty h3{font-size:1.5rem}
.glossary-empty p{margin-top:6px;font-size:14px;color:var(--muted)}
.glossary-empty .under-link{margin-top:14px;border-width:0 0 1px;background:none;cursor:pointer}
.glossary-index ul{list-style:none;margin:0;padding:12px 0;display:flex;flex-wrap:wrap;gap:6px;border-block:1px solid var(--line)}
.glossary-index a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border-radius:8px;font-family:var(--serif);font-size:21px}
.glossary-index a:hover{background:var(--surface-tint);color:var(--brand-accent-text)}
.glossary-index a:focus-visible{outline-offset:2px}
.glossary-list{padding-block:14px 30px}
.glossary-group{display:grid;grid-template-columns:110px minmax(0,1fr);gap:40px;padding-block:26px 8px;scroll-margin-top:120px}
.glossary-group>h2{position:sticky;top:124px;align-self:start;font-size:clamp(3.2rem,5vw,4.6rem);line-height:1;color:var(--brand-accent-text)}
.glossary-group dl{margin:0}
.glossary-entry{padding:22px 0 24px;border-top:1px solid var(--line);scroll-margin-top:128px}
.glossary-entry dt{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.glossary-term{font-family:var(--serif);font-size:1.55rem;line-height:1.3;letter-spacing:-.025em}
.glossary-area{padding:3px 10px;border:1px solid var(--line-strong);border-radius:999px;font-size:10px;font-weight:600;line-height:1.6;letter-spacing:.13em;text-transform:uppercase;white-space:nowrap;color:var(--muted)}
.glossary-entry dd{margin:10px 0 0}
.glossary-entry dd>p{max-width:72ch;font-size:16px;line-height:1.8}
.glossary-entry dd>.glossary-links{display:flex;flex-wrap:wrap;gap:4px 24px;max-width:none;margin-top:10px;font-size:13px;line-height:1.9;color:var(--muted)}
.glossary-entry:target{margin-inline:-18px;padding-inline:18px;border-radius:4px 18px 4px 4px;background:var(--surface-warm);box-shadow:inset 3px 0 0 var(--brand-accent)}
.glossary-explore{padding-block:84px 90px;border-top:1px solid var(--line)}
.glossary-explore>div:first-child>p:not(.eyebrow){max-width:42ch;margin-top:22px;font-size:15px;line-height:1.85;color:var(--muted)}
.glossary-explore .under-link{margin-top:26px}
.glossary-explore-lists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
.glossary-explore-lists h3{font-size:1.5rem}
.glossary-explore-lists ul{list-style:none;margin:16px 0 0;padding:0;border-top:1px solid var(--line-strong)}
.glossary-explore-lists li>a{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;font-weight:500;line-height:1.5}
}

@media screen and (max-width:1150px){
.topic-overview,.topic-resources,.glossary-explore{gap:56px}
.topic-discuss-grid,.topic-discuss-count-3,.topic-siblings ul{grid-template-columns:repeat(2,minmax(0,1fr))}
.glossary-group{grid-template-columns:84px minmax(0,1fr);gap:28px}
}

@media screen and (max-width:960px){
.topic-page .page-hero{grid-template-columns:minmax(0,1fr);gap:30px}
.topic-page .page-hero h1{font-size:clamp(2.6rem,6.2vw,3.5rem)}
.topic-page .page-hero .page-lead{max-width:62ch}
.topic-glance{padding:28px 28px 26px}
.topic-glance dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:0 28px}
.topic-glance dl>div{display:block}
.topic-glance dt{line-height:1.7;margin-bottom:5px}
.topic-glance-note{margin-top:2px}
.topic-overview,.topic-resources,.glossary-explore{grid-template-columns:minmax(0,1fr);gap:38px}
.topic-overview{grid-template-areas:'heading' 'body' 'terms';grid-template-rows:auto;row-gap:0;padding-block:58px 62px}
.topic-overview-body{margin-top:32px}
.topic-terms{margin-top:34px}
.topic-resources{padding-block:64px 62px}
.topic-scope,.topic-resources-heading>p:not(.eyebrow),.glossary-explore>div:first-child>p:not(.eyebrow){max-width:62ch}
.topic-discuss{padding-bottom:66px}
.topic-section-heading{padding-top:46px}
.topic-page .topic-guides{padding-block:60px 48px}
.topic-siblings{padding-bottom:64px}
.glossary-tools{grid-template-columns:minmax(0,1fr)}
.glossary-explore{padding-block:62px 66px}
}

@media screen and (max-width:680px){
.topic-page .page-hero h1{font-size:clamp(2.15rem,8.8vw,2.95rem)}
.topic-page .breadcrumbs{margin-bottom:26px}
.topic-glance{padding:24px 22px 22px;border-radius:3px 26px 3px 3px}
.topic-glance h2{font-size:1.7rem}
.topic-glance dl{grid-template-columns:minmax(0,1fr)}
.topic-overview{padding-block:46px 50px}
.topic-overview-heading h2,.topic-section-heading h2,.topic-bring h2,.topic-resources-heading h2,.glossary-explore h2{font-size:clamp(2.1rem,8.6vw,2.6rem)}
.topic-overview-body>p{font-size:16px}
.topic-terms li>a{min-height:42px}
.topic-section-heading,.topic-siblings-heading{display:block}
.topic-section-heading{padding-top:40px;margin-bottom:26px}
.topic-section-heading .under-link,.topic-siblings-heading .under-link{margin-top:20px;font-size:12px}
.topic-discuss-grid,.topic-discuss-count-3,.topic-discuss-count-2,.topic-siblings ul{grid-template-columns:minmax(0,1fr);gap:14px}
.topic-discuss-grid>li{padding:24px 22px}
.topic-discuss{padding-bottom:54px}
.topic-page .topic-guides{padding-block:48px 40px}
.topic-page .practice-booking h2{font-size:29px}
.topic-resources{padding-block:52px 50px}
.topic-resource-list>li>a{font-size:1.2rem;gap:16px}
.topic-siblings{padding-bottom:54px}
.topic-siblings-heading{padding-top:38px;margin-bottom:22px}
.glossary-hero{padding-block:25px 34px}
.glossary-hero h1{font-size:clamp(2.3rem,9.6vw,3.1rem)}
.glossary-hero .page-lead{font-size:16px}
.glossary-tools{padding:22px 20px 20px;border-radius:4px 22px 4px 4px}
.glossary-filter-row{align-items:flex-start;flex-direction:column}
.glossary-group{grid-template-columns:minmax(0,1fr);gap:8px;padding-block:22px 4px}
.glossary-group>h2{position:static;font-size:3rem}
.glossary-term{font-size:1.4rem}
.glossary-entry:target{margin-inline:-12px;padding-inline:12px}
.glossary-explore-lists{grid-template-columns:minmax(0,1fr);gap:30px}
.glossary-explore{padding-block:50px 54px}
}

@media screen and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
.topic-terms li>a,.topic-siblings li>a,.glossary-filters button,.glossary-index a{transition:background-color .18s,border-color .18s,color .18s}
}

@media print{
.topic-body .site-header,.topic-body .site-footer,.topic-body .skip-link,.topic-body .breadcrumbs,.topic-body .practice-jumps,.topic-body .practice-hero-actions,.topic-body .faq-tools,.topic-body .topic-terms-all,.topic-body .topic-siblings,.topic-body .contact-band,.topic-body .under-link,
.glossary-body .site-header,.glossary-body .site-footer,.glossary-body .skip-link,.glossary-body .breadcrumbs,.glossary-body .glossary-tools,.glossary-body .glossary-index,.glossary-body .glossary-explore,.glossary-body .contact-band{display:none}
.topic-body,.glossary-body{font-size:10.5pt;line-height:1.5;color:#000;background:#fff}
.topic-body .shell,.glossary-body .shell{width:100%;margin-inline:0}
.topic-body .page-hero,.topic-body .two-column,.topic-body .faq-section,.topic-body .practice-booking{display:block;padding:0;margin:0}
.topic-body h1,.glossary-body h1{font-size:25pt;line-height:1.15}
.topic-body h1 em,.topic-body h2 em,.glossary-body h1 em{color:#000}
.topic-body h2{font-size:16pt;line-height:1.25;margin-top:0}
.topic-body h3{font-size:12pt}
.topic-body .section-space,.topic-body .quiet-panel,.topic-body .related-resources,.topic-body .topic-discuss{padding-block:12pt 0;background:none}
.topic-body .page-lead,.glossary-body .page-lead,.topic-overview-body>p,.topic-body .faq-answer,.topic-body .two-column>div>p:not(.eyebrow),.topic-body .check-list li,.topic-body .section-intro,.topic-body .resource-card-summary{max-width:none;font-size:10.5pt;color:#000}
.topic-overview-body>p,.topic-body .two-column>div>p:not(.eyebrow){margin-top:6pt}
.topic-body .eyebrow{margin-top:6pt}
.topic-glance{margin-top:12pt;padding:10pt 12pt;border:1px solid #777;break-inside:avoid}
.topic-glance dl{margin:6pt 0}
.topic-glance dl>div{display:flex;gap:8pt;padding:2pt 0}
.topic-glance dt{min-width:80pt;font-weight:700}
.topic-glance dd{margin:0}
.topic-scope,.topic-references,.topic-resource-date,.topic-discuss-note,.topic-glance-note{font-size:9pt;margin-top:6pt}
.topic-terms ul,.topic-discuss-grid,.topic-resource-list{margin:6pt 0 0;padding-left:16pt}
.topic-terms h3{font-size:10pt;font-weight:700;margin-top:8pt}
.topic-discuss-number{display:none}
.topic-discuss-grid>li,.topic-resource-list>li,.glossary-entry,.topic-body .faq-list details{break-inside:avoid;margin-top:6pt}
.topic-body .resource-grid{display:block}
.topic-body .resource-card{break-inside:avoid;margin-top:8pt;padding:0;border:0}
.topic-body .practice-booking{margin-top:12pt;padding:10pt 12pt;border:1px solid #777;background:none;color:#000;break-inside:avoid}
.topic-body .practice-booking a,.topic-body .practice-booking p,.topic-body .practice-booking span{color:#000}
.topic-resource-list a[href^="http"]::after,.topic-references a[href^="http"]::after,.glossary-source a[href^="http"]::after{content:' (' attr(href) ')';font-size:8.5pt;word-break:break-all}
.glossary-group{margin-top:12pt}
.glossary-group>h2{font-size:18pt}
.glossary-group dl{margin:0}
.glossary-entry dt{font-weight:700;font-size:11.5pt}
.glossary-area{font-weight:400;font-size:8.5pt;margin-left:6pt}
.glossary-entry dd{margin:2pt 0 0}
.glossary-links{font-size:9pt}
.glossary-see{margin-right:10pt}
}
