.apostille-foundations {
    max-width: 76rem;
    margin: 0 auto;
    padding: 2rem clamp(1rem, 4vw, 3rem) 4rem;
    color: #172c3c;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.apostille-foundations h1 { max-width: 24ch; line-height: 1.16; }
.apostille-foundations h2,
.apostille-foundations h3 { line-height: 1.3; }
.apostille-foundations h2,
.apostille-foundations .foundation-source { scroll-margin-top: 7rem; }
.apostille-foundations p,
.apostille-foundations li { max-width: 78ch; }
.apostille-foundations a { color: #145977; text-decoration: underline; text-underline-offset: .18em; }
.apostille-foundations a:focus-visible { outline: 3px solid #965815; outline-offset: 4px; border-radius: 2px; }
.foundation-intro { border-bottom: 1px solid #b9c9cf; padding-bottom: 1.5rem; }
.foundation-summary { font-size: 1.15rem; }
.foundation-metadata,
.foundation-kind,
.foundation-outcome { color: #445766; font-size: .92rem; }
.foundation-kind { font-weight: 700; margin-bottom: .3rem; }
.foundation-topics { margin: 1.5rem 0; padding: 1rem; background: #edf4f5; border-radius: .35rem; }
.foundation-topics ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.foundation-topics a { display: inline-block; padding: .3rem 0; }
.foundation-topics a[aria-current="page"] { color: #172c3c; font-weight: 700; text-decoration-thickness: .18em; }
.foundation-contents { padding: .5rem 0 1rem; }
.foundation-contents h2 { font-size: 1.2rem; }
.foundation-section { border-top: 1px solid #c8d3d7; padding-top: 1.7rem; margin-top: 1.7rem; }
.foundation-citations { font-size: .9rem; margin: .7rem 0 1rem; padding-left: 1.3rem; }
.foundation-citations li { margin-bottom: .3rem; }
.foundation-qualifications { border-left: 4px solid #9e681c; padding: .4rem 1.2rem; background: #fff8e9; margin: 1.2rem 0; }
.foundation-qualifications h3 { font-size: 1.05rem; }
.foundation-example { background: #f1f6f7; padding: 1rem 1.3rem; margin: 1.2rem 0; border-radius: .3rem; }
.foundation-example h3 { margin-top: .2rem; }
.foundation-decisions { padding-left: 1.5rem; }
.foundation-decisions > li { margin: 1.2rem 0; padding-left: .3rem; }
.foundation-decisions p { margin: .4rem 0; }
.foundation-source { padding: .6rem 0 1.2rem; border-bottom: 1px solid #d8e0e3; }
.foundation-source h3 { font-size: 1.1rem; }
.foundation-source dl { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .3rem 1rem; font-size: .93rem; }
.foundation-source dt { font-weight: 700; }
.foundation-source dd { margin: 0; max-width: 78ch; }
.foundation-source-url { font-size: .85rem; }
@media (max-width: 36rem) {
    .apostille-foundations { padding-top: 1rem; }
    .foundation-source dl { display: block; }
    .foundation-source dd { margin-bottom: .6rem; }
    .foundation-topics ul { display: block; }
}
@media print {
    .apostille-foundations { max-width: none; padding: 0; font-size: 10pt; color: #000; }
    .foundation-topics, .foundation-contents { display: none; }
    .foundation-example, .foundation-qualifications { background: none; border: 1px solid #999; }
    .foundation-section h2, .foundation-section h3 { break-after: avoid; }
    .foundation-source { break-inside: avoid; }
}
