/* Shared reading rhythm, code surfaces and responsive worked examples. */
.worked-example{margin:2.5rem 0;border-top:1px solid var(--line);padding-top:2rem;min-width:0}
.worked-heading .eyebrow{margin:0 0 .75rem;font-size:.875rem}
.worked-heading h3{font-size:clamp(1.375rem,2.1vw,1.75rem);line-height:1.3;margin:0 0 1rem;max-width:34ch}
.worked-heading>p:last-child{font-size:1rem;line-height:1.75;margin:0 0 1.5rem;color:var(--muted)}
.worked-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;margin-bottom:2rem}
.worked-card{border:1px solid #ded9ec;border-radius:.75rem;padding:1.5rem;min-width:0;background:#faf9fd}
.worked-result{background:#f3f0ff;border-color:#d4c9f3}
.worked-example h4{font-size:1rem;font-weight:650;line-height:1.5;margin:0 0 1rem;letter-spacing:0}
.example-facts{margin:0;min-width:0;font-size:.9375rem;line-height:1.65}
.example-facts>div{padding:.75rem 0;border-top:1px solid #e4dff0;min-width:0}
.example-facts>div:first-child{border-top:0;padding-top:0}
.example-facts>div:last-child{padding-bottom:0}
.example-facts dt{font-size:.875rem;font-weight:600;color:#5a506d;margin:0 0 .25rem}
.example-facts dd{margin:0;color:var(--ink);overflow-wrap:anywhere}
.example-facts .example-facts{padding-left:.875rem;border-left:2px solid #ddd5f1;margin:.5rem 0}
.example-facts .example-facts>div{padding:.375rem 0;border:0}
.fact-list{margin:.25rem 0;padding-left:1.15rem}
.fact-list li+li{margin-top:.35rem}
.worked-steps,.worked-recovery,.worked-verification{margin:0 0 2rem}
.worked-steps ol{margin:0;padding:0;list-style:none;counter-reset:example-step}
.worked-steps li{counter-increment:example-step;position:relative;padding:.875rem 0 .875rem 2.75rem;border-bottom:1px solid var(--line);font-size:1rem;line-height:1.75}
.worked-steps li:before{content:counter(example-step);position:absolute;left:0;top:1rem;width:1.75rem;height:1.75rem;border-radius:50%;display:grid;place-items:center;background:#eee8ff;color:#5c4097;font-size:.875rem;font-weight:600;line-height:1}
.recovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.recovery-grid article{border:1px solid var(--line);border-left:3px solid #a58bc9;border-radius:.5rem;padding:1.25rem;min-width:0}
.recovery-grid h5{font:600 .9375rem/1.6 var(--body);letter-spacing:0;margin:0 0 .625rem;color:var(--ink)}
.recovery-grid p{font-size:.9375rem;line-height:1.75;color:var(--muted);margin:0}
.worked-verification{padding:1.25rem 1.5rem;border-radius:.625rem;background:#f7f6fb}
.worked-verification ul{padding-left:1.15rem;margin:0;font-size:1rem;line-height:1.75}
.worked-verification li+li{margin-top:.5rem}
.worked-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
.worked-notes p{font-size:.9375rem;line-height:1.75;color:var(--muted);margin:0}
.worked-notes b{display:block;color:var(--ink);margin-bottom:.375rem;font-weight:600}
.worked-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;border-top:1px solid var(--line);margin-top:1.5rem;padding-top:1rem;font-size:.875rem;color:var(--muted)}
.worked-footer a{color:#604198;text-underline-offset:.25em}
.structured-example{margin:1.5rem 0;border:1px solid var(--line);border-radius:.625rem;overflow:hidden}
.structured-example>summary{cursor:pointer;list-style-position:inside;padding:1rem 1.25rem;font-size:.9375rem;font-weight:600;background:#faf9fd}
.structured-example[open]>summary{border-bottom:1px solid var(--line)}
.structured-example .example-code{margin:0;border:0;border-radius:0}
.element-detail,.schema-grid article,.tool-command,.journey-detail,.quickstart,.prose{min-width:0}
.element-detail pre,.journey-detail pre,.schema-grid pre,.prose pre{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;tab-size:2}
.example-code pre,.journey-detail pre,.schema-grid pre,.prose pre{font-size:.875rem;line-height:1.8}
.table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.reference-section>h3,.reference-section .actions{margin-top:1.75rem}
.reference-section>p{max-width:76ch;font-size:1rem;line-height:1.8}
.catalog-index a{font-size:1rem;line-height:1.6;gap:.5rem;padding-block:1rem}
.catalog-index span{font-size:.875rem;line-height:1.65}
.fields-head{margin-top:2rem}
.group-description{font-size:.875rem;line-height:1.75;margin:.875rem 0 1rem}
.site-header nav a,.explorer-rail .category-label,.mobile-element-label,.search-label{font-size:.875rem}
.code-top,.copy-button,.clause-id,.clause .level,.schema-pet b{font-size:.875rem}
.schema-grid article>p,.schema-grid details,.schema-grid .text-link,.field-expanded pre,.field-explanation,.required-badge{font-size:.875rem}
.schema-grid article>p{overflow-wrap:anywhere;line-height:1.7}
.element-detail p,.element-detail li{overflow-wrap:break-word}
button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #8162cf;outline-offset:4px}
@media(max-width:1100px){.worked-summary,.worked-notes,.recovery-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
 .worked-example{margin-block:2rem;padding-top:1.5rem}
 .worked-card{padding:1.125rem}
 .worked-summary{gap:1rem;margin-bottom:1.5rem}
 .worked-example h4{font-size:1rem}
 .worked-steps li{padding-left:2.5rem}
 .worked-notes{gap:1rem}
 .worked-verification{padding:1.125rem}
 .worked-footer{display:block;line-height:1.8}
 .worked-footer a{display:block;margin-top:.5rem}
 .structured-example>summary{padding:1rem}
 .field-row summary{grid-template-columns:minmax(0,1fr);gap:.5rem}
 .required-badge{justify-self:start}
 .example-code pre,.quickstart pre,.journey-detail pre,.schema-grid pre,.prose pre{font-size:.875rem}
 .catalog-index{grid-template-columns:minmax(0,1fr)}
 .catalog-index span,.reference-index a,.field-name,.field-explanation,.field-expanded p,.field-expanded pre{font-size:.875rem}
 .element-detail>h2{overflow-wrap:break-word}
}
/* Different amounts of content should not create empty, stretched outcome cards. */
.worked-summary{align-items:start}
.example-facts .example-facts>div{display:grid;grid-template-columns:minmax(5.5rem,.75fr) minmax(0,1.25fr);gap:.75rem;align-items:baseline}
.example-facts .example-facts dt{margin:0}
@media(max-width:420px){.example-facts .example-facts>div{grid-template-columns:minmax(0,1fr);gap:.125rem}.example-facts .example-facts dt{font-size:.875rem}}
.table-wrap:focus-visible{outline:3px solid #8162cf;outline-offset:4px}
/* FAQ: a stable text column and an explicit control track prevent wrapped titles
   from colliding with expand/collapse indicators. */
.faq-section{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:4rem;max-width:none;padding-block:1rem 5rem;align-items:start}
.faq-intro .eyebrow{margin-bottom:1rem}
.faq-intro h2{font-size:clamp(1.875rem,3vw,2.625rem);line-height:1.2;margin-bottom:1.25rem}
.faq-intro>p:last-child{font-size:1rem;line-height:1.8;color:var(--muted);max-width:30ch;margin:0}
.faq-list{display:grid;gap:.75rem;min-width:0}
.faq{margin:0;border:1px solid #ded9e9;border-radius:.75rem;background:#fff;overflow:hidden}
.faq[open]{border-color:#cbbde8;background:#faf8ff}
.faq summary{display:grid;grid-template-columns:minmax(0,1fr) 1.875rem;align-items:center;gap:1.25rem;list-style:none;padding:1.375rem 1.5rem;font-size:1.0625rem;line-height:1.6;font-weight:600;position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::marker{content:''}
.faq summary:after,.faq[open] summary:after{display:none;content:none}
.faq summary:hover{background:#f7f4fd}
.faq-question{min-width:0;overflow-wrap:break-word}
.faq-icon{position:relative;width:1.875rem;height:1.875rem;border:1px solid #d8cdef;border-radius:50%;background:#f0eafb;flex:none}
.faq-icon:before,.faq-icon:after{content:'';position:absolute;background:#6346ac;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:1px}
.faq-icon:before{width:.625rem;height:2px}
.faq-icon:after{width:2px;height:.625rem}
.faq[open] .faq-icon:after{display:none}
.faq-answer{padding:0 4.625rem 1.5rem 1.5rem}
.faq .faq-answer p{padding:0;margin:0;max-width:64ch;font-size:1rem;line-height:1.85;color:#5e566d}
.faq summary:focus-visible{outline-offset:-4px;border-radius:.625rem}
@media(max-width:900px){.faq-section{grid-template-columns:minmax(0,1fr);gap:2rem}.faq-intro>p:last-child{max-width:48ch}}
@media(max-width:760px){
 .faq-section{padding-block:0 3rem;gap:1.5rem}
 .faq-intro h2{font-size:2rem}
 .faq summary{font-size:1rem;padding:1.125rem;gap:.875rem;grid-template-columns:minmax(0,1fr) 1.75rem}
 .faq-icon{width:1.75rem;height:1.75rem}
 .faq-answer{padding:0 1.125rem 1.25rem}
 .faq .faq-answer p{font-size:1rem;line-height:1.8}
}

.analytics-notice{max-width:78rem;margin:1.5rem auto 0;padding:0 1.5rem;color:var(--muted);font-size:.875rem;line-height:1.8}.analytics-notice summary{cursor:pointer}.analytics-notice p{max-width:70ch;margin-top:1rem}
