/* Visual system: warm paper, petroleum blue and terracotta. No external fonts. */
@media screen {
    :root {
        --navy: #153746;
        --navy-deep: #122e3d;
        --ink: #263b44;
        --muted: #596970;
        --body-copy: #455c64;
        --paper: #fbf8f3;
        --page-bg: #fbf8f3;
        --surface: #fffefa;
        --surface-raised: #f8f6f0;
        --header-bg: rgba(251, 248, 243, .97);
        --soft: #f2efe8;
        --line: #dedfd7;
        --card-border: #dedfd7;
        --teal-soft: #eaf1ea;
        --sky-soft: #edf2f0;
        --gold-soft: #f6eddc;
        --coral-soft: #faece3;
        --section-guides: #f5f1e9;
        --section-regions: #edf2ee;
        --accent: #b34a34;
        --accent-hover: #923b2b;
        --accent-text: #a14330;
        --accent-soft: #faece3;
        --accent-on-dark: #f2b79a;
        --shadow: 0 12px 36px rgba(18, 46, 61, .07);
        --shadow-hover: 0 18px 42px rgba(18, 46, 61, .12);
        --page-gutter: clamp(1rem, 3vw, 2rem);
        --content-gap: clamp(1.5rem, 3vw, 2.5rem);
        --panel-inset: clamp(1.25rem, 3.8vw, 3rem);
    }
    :root[data-theme="dark"] {
        --ink: #e5eef2;
        --muted: #afc0c8;
        --body-copy: #c5d4da;
        --paper: #0d2531;
        --page-bg: #081d27;
        --surface: #102832;
        --surface-raised: #142f3a;
        --header-bg: rgba(8, 29, 39, .97);
        --soft: #102832;
        --line: #34515d;
        --card-border: #34515d;
        --teal-soft: #163c3b;
        --sky-soft: #142f3e;
        --gold-soft: #3b321f;
        --coral-soft: #392a28;
        --section-guides: #0d252f;
        --section-regions: #102934;
        --accent-text: #f2b79a;
        --accent-soft: #382b29;
        --shadow: 0 12px 36px rgba(0, 0, 0, .18);
        --shadow-hover: 0 18px 42px rgba(0, 0, 0, .28);
    }

    /* Shared spacing: page edges, header-to-content gaps and readable prose. */
    .container { width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), var(--container)); }
    .page-shell { padding-block: clamp(1.25rem, 2.5vw, 2rem) clamp(3.5rem, 6vw, 5.5rem); }
    .page-shell > .breadcrumbs { margin-block: 0 1.4rem; }
    .page-hero { padding: var(--panel-inset); }
    .page-hero > :first-child { margin-top: 0; }
    .page-hero > :last-child { margin-bottom: 0; }
    .page-hero > label { display: block; margin-bottom: .55rem; font-size: .9rem; }
    .page-hero > .button-row { margin-top: 1.5rem; }
    .page-hero > .privacy-note { margin-top: 1.25rem; }
    .page-hero + .guide-grid, .page-hero + .office-detail-grid { margin-top: var(--content-gap); }
    .office-detail-grid > .detail-card { margin-block: 0; }
    .office-detail-grid + .detail-card { margin-top: var(--content-gap); }
    .detail-card > :last-child { margin-bottom: 0; }
    .region-section { margin-block: var(--content-gap); }
    .region-section h2 { margin-bottom: 1.25rem; line-height: 1.3; }
    .guide-layout { margin-top: var(--content-gap); gap: clamp(1.5rem, 3vw, 2.5rem); }
    .markdown-content { line-height: 1.85; }
    .markdown-content > :first-child { margin-top: 0; }
    .markdown-content h2 { margin-block: 2.5rem 1rem; font-size: clamp(1.5rem, 2.3vw, 1.8rem); }
    .markdown-content p { margin-bottom: 1.15rem; }
    .guide-grid + p { margin-top: 1.4rem; }
    .directory-layout.notary-directory { display: block; padding: 0; }
    .info-shell { max-width: 860px; }
    .info-shell .page-hero { padding: var(--panel-inset); }
    .info-shell .page-hero h1 { margin: 0; font-size: clamp(2rem, 3.6vw, 3.15rem); line-height: 1.15; text-wrap: balance; }
    .info-content { display: flow-root; margin-top: var(--content-gap); padding: var(--panel-inset); background: var(--surface); color: var(--body-copy); border: 1px solid var(--line); border-radius: 24px; font-size: 1.02rem; line-height: 1.85; }
    .info-content > * { margin-block: 0; }
    .info-content > * + * { margin-top: 1.15rem; }
    .info-content > h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 650; line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; }
    .info-content > h2:not(:first-child) { margin-top: 2.5rem; }
    .info-content > h2 + p { margin-top: .85rem; }
    .info-content > a { display: inline-flex; align-items: center; min-height: 44px; }
    .info-content a { overflow-wrap: anywhere; }
    .info-content > [role="status"]:empty { display: none; }
    .info-content > .correction-form { margin-block: 2rem 0; padding-top: 1.75rem; border-top: 1px solid var(--line); gap: 1.3rem; }
    .info-content .correction-form p { margin-block: 0; }
    .info-content .field { gap: .55rem; }
    .info-content .field label { line-height: 1.5; }
    .info-content .field input, .info-content .field select { min-height: 48px; }
    .info-content .field textarea { line-height: 1.65; }
    .info-content #correction-help { color: var(--muted); font-size: .83rem; line-height: 1.65; }
    .info-content .correction-form > .button { justify-self: start; }

    /* Navigation: grouped desktop links and a descriptive mobile panel. */
    .independence-bar { background: #122e3d; color: #c8ded9; font-weight: 500; }
    .site-header { box-shadow: 0 4px 24px rgba(18, 46, 61, .04); }
    .site-header__inner { min-height: 88px; gap: 1.1rem; }
    .site-header .brand { flex-shrink: 0; }
    .site-header .brand img { border-radius: 13px; box-shadow: 0 4px 12px rgba(18, 46, 61, .09); }
    .main-nav { gap: .8rem; margin-left: auto; }
    .main-nav__intro, .main-nav__copy small, .main-nav__arrow { display: none; }
    .main-nav__links { display: flex; align-items: center; gap: .15rem; padding: .3rem; background: var(--soft); border: 1px solid var(--line); border-radius: 15px; }
    .main-nav .main-nav__link { display: flex; align-items: center; position: relative; gap: .5rem; min-height: 44px; padding: .6rem .7rem; border: 1px solid transparent; border-radius: 11px; color: var(--body-copy); font-size: .82rem; font-weight: 600; white-space: nowrap; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
    .main-nav__icon { display: grid; place-items: center; color: var(--link); flex: 0 0 auto; }
    .main-nav__copy { min-width: 0; }
    .main-nav__label { display: block; }
    .main-nav .main-nav__link:hover { background: var(--surface); color: var(--heading); }
    .main-nav .main-nav__link.is-current { color: var(--accent-text); background: var(--surface); border-color: var(--line); box-shadow: 0 2px 6px rgba(18, 46, 61, .05); }
    .main-nav__link.is-current .main-nav__icon { color: var(--accent-text); }
    .nav-tramites { position: relative; min-width: 0; }
    .nav-tramites > summary { cursor: pointer; list-style: none; }
    .nav-tramites > summary::-webkit-details-marker { display: none; }
    .nav-tramites > summary::marker { content: ''; }
    .nav-tramites__chevron { display: flex; flex: 0 0 auto; margin-left: auto; transition: transform .18s ease; }
    .nav-tramites[open] > summary { background: var(--surface); color: var(--accent-text); }
    .nav-tramites[open] .nav-tramites__chevron { transform: rotate(180deg); }
    .nav-tramites__panel { position: absolute; z-index: 5; top: calc(100% + .85rem); right: 0; width: min(390px, calc(100vw - 2rem)); max-height: calc(100dvh - 150px); overflow-y: auto; overscroll-behavior: contain; padding: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 44px rgba(5, 26, 35, .18); }
    .nav-tramites__heading { margin: .2rem .6rem .65rem; color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .03em; }
    .main-nav .nav-guide { display: flex; align-items: center; gap: .8rem; min-height: 64px; padding: .75rem .6rem; color: var(--ink); border: 1px solid transparent; border-radius: 11px; white-space: normal; }
    .nav-guide__icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; color: var(--link); background: var(--teal-soft); border-radius: 10px; }
    .nav-guide > span:last-child { min-width: 0; }
    .nav-guide strong { display: block; font-size: .86rem; font-weight: 700; line-height: 1.4; }
    .nav-guide small { display: block; margin-top: .25rem; color: var(--muted); font-size: .75rem; font-weight: 400; line-height: 1.5; }
    .main-nav .nav-guide:hover, .main-nav .nav-guide.is-current { background: var(--accent-soft); border-color: var(--line); color: var(--accent-text); }
    .main-nav .nav-tramites__all { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 44px; margin-top: .55rem; padding: .7rem .6rem .25rem; border-radius: 0; border-top: 1px solid var(--line); color: var(--accent-text); font-size: .8rem; }
    .main-nav .main-nav__near { margin-left: 0; min-height: 50px; padding: .55rem .9rem; color: #fff; background: var(--accent); border-color: var(--accent); border-radius: 13px; font-size: .84rem; white-space: nowrap; }
    .main-nav__near-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: rgba(255, 255, 255, .14); }
    .main-nav__near > .ui-icon { display: none; }
    .main-nav .main-nav__near:hover { color: #fff; background: var(--accent-hover); border-color: var(--accent-hover); }
    .header-actions { flex: 0 0 auto; gap: .55rem; }
    .theme-toggle, .menu-toggle { border-radius: 50%; box-shadow: none; }
    .menu-toggle { width: auto; min-width: 46px; min-height: 46px; padding-inline: .85rem; gap: .65rem; border-radius: 13px; }
    .menu-toggle__label { font-size: .82rem; font-weight: 700; }
    .menu-toggle[aria-expanded="true"] { background: var(--teal-soft); color: var(--link); border-color: var(--link); }
    html.menu-modal-open, html.menu-modal-open body { overflow: hidden; overscroll-behavior: none; }
    .menu-dialog:not([open]) { display: none; }
    .menu-dialog { position: fixed; inset: 0; width: min(460px, calc(100% - 2rem)); max-width: none; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 28px 90px rgba(3, 20, 29, .35); overflow: hidden; }
    .menu-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
    .menu-dialog::backdrop { background: rgba(5, 24, 33, .66); backdrop-filter: blur(5px); }
    .menu-dialog__heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.3rem; border-bottom: 1px solid var(--line); background: var(--surface-raised); }
    .menu-dialog__heading > div { min-width: 0; }
    .menu-dialog__heading span { color: var(--accent-text); font-size: .65rem; font-weight: 750; letter-spacing: .14em; }
    .menu-dialog__heading h2 { margin: .3rem 0 0; font-size: 1.25rem; font-weight: 650; line-height: 1.25; }
    .menu-dialog__close { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; padding: 0; color: var(--heading); background: var(--surface); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
    .menu-dialog__close:hover { color: var(--accent-text); border-color: var(--accent-text); background: var(--accent-soft); }
    .menu-dialog__body { min-height: 0; padding: 1rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
    .js-ready .menu-dialog .main-nav { position: static; display: grid; grid-area: auto; width: 100%; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
    .menu-dialog .main-nav__intro { display: none; }
    .eyebrow { font-size: .72rem; letter-spacing: .16em; font-weight: 750; }
    .section-heading h2, .visit-panel h2, .faq-section h2 {
        font-family: Georgia, "Times New Roman", serif;
        font-weight: 400;
        letter-spacing: -.035em;
        line-height: 1.14;
    }
    .section-heading h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 0; }
    .section-heading > p { max-width: 420px; font-size: .94rem; margin-bottom: 0; }
    .section { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
    .section--embedded { padding-block: 3rem 0; }
    .button { gap: .55rem; color: #fff; background: var(--accent); border-color: var(--accent); border-radius: 12px; font-size: .94rem; font-weight: 700; box-shadow: 0 5px 12px rgba(135, 62, 44, .12); }
    .button:hover { color: #fff; background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 8px 18px rgba(135, 62, 44, .18); }
    .button--secondary { color: var(--heading); background: var(--surface); border-color: var(--line); box-shadow: none; }
    .button--secondary:hover { color: var(--accent-text); background: var(--accent-soft); border-color: var(--accent-text); box-shadow: none; }
    .text-link { font-weight: 650; font-size: .92rem; }

    /* Wide home hero using the site's petroleum, ivory and terracotta palette. */
    .hero {
        isolation: isolate;
        background: radial-gradient(ellipse at 95% 0, #21474b, transparent 65%), linear-gradient(115deg, var(--navy-deep), var(--navy));
    }
    .hero::before { content: none; }
    .hero__grid { display: block; min-height: 0; padding-block: clamp(3rem, 5vw, 4.5rem) 4.75rem; }
    .hero__content { width: 100%; min-width: 0; max-width: none; }
    .hero h1 { max-width: 1160px; margin: 0 0 1.35rem; color: #fffefa; font-size: clamp(2.4rem, 4.5vw, 4rem); line-height: 1.13; letter-spacing: -.03em; font-weight: 800; text-wrap: initial; }
    .hero__title-accent { color: var(--accent-on-dark); font: inherit; }
    .hero .lead { max-width: 1120px; margin: 0; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.65; color: #d0e1e0; }
    .hero .search-box { width: 100%; max-width: none; margin-top: 1.75rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 35px rgba(3, 23, 33, .2); }
    .hero .search-box label { margin: 0 0 .6rem .15rem; font-size: .86rem; font-weight: 750; }
    .search-box__field { position: relative; min-width: 0; flex: 1; }
    .hero .search-box input { height: 60px; padding: .85rem 1rem; font-size: 1rem; border-color: #8a9899; border-radius: 10px; }
    .hero .search-box input::placeholder { color: var(--muted); opacity: 1; }
    .hero .search-box .button { min-height: 60px; flex: 0 0 180px; padding-inline: 1.25rem; font-size: .94rem; }
    .hero-shortcuts { gap: .75rem 1.5rem; margin-top: 1rem; }
    .hero-shortcuts a, .hero-shortcuts .text-button { color: #dae8e3; font-size: .86rem; text-decoration: none; }
    .hero-shortcuts a:hover, .hero-shortcuts .text-button:hover { color: var(--accent-on-dark); text-decoration: underline; text-underline-offset: 5px; }
    .hero-shortcuts .ui-icon { color: var(--accent-on-dark); }
    .hero [data-location-status]:empty { display: none; }
    .hero [data-location-status] { color: #e0eae6; max-width: 580px; font-size: .88rem; margin-top: .5rem; }

    .coverage-strip { position: relative; z-index: 2; margin-top: -2.4rem; padding: 1.65rem 1rem; gap: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
    .coverage-strip p { margin: 0; padding-inline: 1rem; text-align: center; color: var(--muted); font-size: .81rem; line-height: 1.6; }
    .coverage-strip p + p { border-left: 1px solid var(--line); }
    .coverage-strip strong { display: block; color: var(--heading); font-size: 1.85rem; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.2; margin-bottom: .3rem; }

    /* Directory cards share one surface, with color reserved for useful cues. */
    .local-grid, .region-grid { gap: .85rem; }
    .local-card { padding: 1.3rem; gap: 1rem; border-radius: 15px; box-shadow: 0 3px 10px rgba(18, 46, 61, .025); }
    .local-card > span { min-width: 0; }
    .local-card strong { font-size: 1rem; line-height: 1.45; font-weight: 650; }
    .local-card small { font-size: .78rem; }
    .local-card > .ui-icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; color: var(--link); background: var(--teal-soft); }
    .local-card:hover { border-color: var(--accent-text); box-shadow: var(--shadow); }
    .local-card:hover > .ui-icon { color: var(--accent-text); background: var(--accent-soft); }
    .nearby-communes > p { max-width: 70ch; margin-bottom: 1.5rem; color: var(--muted); }
    .nearby-communes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nearby-communes__links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 1.25rem; }
    .nearby-communes__links a { min-height: 44px; }
    .nearby-communes + .detail-card { margin-top: var(--content-gap); }
    .region-grid .local-card { background: var(--surface); }
    .section--regions { border-block: 1px solid var(--line); }
    .section--guides { background: var(--section-guides); }
    .guide-grid { gap: 1.25rem; }
    .guide-card:nth-child(n) { background: var(--surface); border-color: var(--line); box-shadow: none; border-radius: 18px; padding: 1.6rem; }
    .guide-card:hover { border-color: var(--accent-text); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
    .guide-card__heading { display: flex; align-items: center; gap: 1rem; }
    .guide-card__heading h3 { margin: 0; }
    .guide-card__icon { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 50px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); }
    .guide-card:nth-child(even) .guide-card__icon { color: var(--link); background: var(--teal-soft); }
    .guide-card h3 { font-size: 1.15rem; font-weight: 650; line-height: 1.4; }
    .guide-card > p { color: var(--muted); font-size: .9rem; line-height: 1.7; margin-block: 1.15rem; }
    .guide-card > .text-link { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: auto; color: var(--accent-text); }
    .guide-card > .text-link span { margin-left: auto; }
    .office-card:nth-child(n) { border-radius: 18px; box-shadow: 0 5px 18px rgba(18, 46, 61, .035); }
    .office-card:hover { box-shadow: var(--shadow); }
    .office-card h3 { font-weight: 650; }
    .card-actions { padding-top: .8rem; border-top: 1px solid var(--line); }
    .status { border-radius: 20px; }
    .detail-card, .filters-form { border-radius: 18px; }
    .detail-card { box-shadow: 0 4px 18px rgba(18, 46, 61, .025); }
    .aside-card { box-shadow: none; background: var(--surface); }
    .aside-card--notice { background: var(--gold-soft); }
    .page-hero, .guide-hero { background: radial-gradient(ellipse at 95% 0, var(--teal-soft), transparent 60%), var(--surface); border-radius: 24px; box-shadow: none; border-top: 4px solid var(--accent); }
    .page-hero h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.15; letter-spacing: -.035em; }
    .office-hero { background: radial-gradient(ellipse at 100% 0, rgba(86, 143, 121, .3), transparent 65%), linear-gradient(115deg, #122e3d, #20474b); }
    .office-hero h1 { font-weight: 600; line-height: 1.14; }
    .office-hero .eyebrow { color: #c4d9cb; }
    .office-action--primary, .office-action--primary:hover { color: #fff; background: var(--accent); }
    .office-action--primary:hover { background: var(--accent-hover); }
    .office-action--primary .office-action__copy small { color: #fff; }
    .office-action--primary .office-action__icon { color: #fff; background: rgba(255, 255, 255, .12); }
    .office-action--teal { background: #275958; }
    .office-action--teal:hover { background: #1a4545; }
    .directory-cta { box-shadow: none; background: var(--teal-soft); }

    .visit-panel { position: relative; padding: clamp(1.75rem, 4vw, 3.5rem); border: 1px solid var(--line); border-radius: 24px; background: var(--teal-soft); gap: 2.5rem; }
    .visit-panel .eyebrow { color: var(--link); }
    .visit-panel h2 { max-width: 580px; font-size: clamp(1.9rem, 3vw, 2.75rem); }
    .visit-panel p:last-child { color: var(--body-copy); margin: 0; max-width: 690px; font-size: .95rem; }
    .visit-panel > .button { white-space: nowrap; }
    .faq-section { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: none; }
    .home-faq-wrap { padding-block: 0 clamp(3.5rem, 6vw, 5.5rem); }
    .home-faq-wrap .faq-section { margin-top: 0; }
    .faq-section h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
    .faq-topics a { background: var(--surface-raised); border-radius: 30px; font-size: .85rem; padding: .65rem 1rem; }
    .faq-topics a:hover { color: var(--accent-text); background: var(--accent-soft); border-color: var(--accent-text); }
    .faq-group h3 { display: flex; gap: .65rem; align-items: center; font-weight: 650; }
    .faq-group h3::before { content: ""; width: 6px; height: 6px; background: var(--accent-text); border-radius: 50%; flex: 0 0 auto; }
    .faq-item summary { font-size: .98rem; font-weight: 600; padding-block: 1.35rem; }
    .faq-item summary::after { color: var(--accent-text); background-color: var(--accent-soft); }
    .faq-item[open] summary::after { color: #fff; background-color: var(--accent); }
    .faq-item__answer { font-size: .94rem; }
    .site-footer { background: radial-gradient(ellipse at 0 0, #21474b, transparent 65%), #122e3d; padding-top: 4.5rem; border-top: 4px solid #b98a64; }
    .site-footer .brand small { color: #b4d5c4; }
    .site-footer a[href^="mailto:"] { overflow-wrap: anywhere; }
    .back-to-top { background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 20px rgba(18, 46, 61, .2); }
    .back-to-top:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

    /* Search, locality navigation and results use the same spacing and disclosure cues. */
    .button { text-align: center; line-height: 1.4; }
    .button:disabled { cursor: wait; opacity: .72; transform: none; }
    .breadcrumbs ol { min-width: 0; flex-wrap: wrap; row-gap: .3rem; }
    .breadcrumbs li { min-width: 0; }
    .breadcrumbs a, .breadcrumbs span { overflow-wrap: anywhere; }
    main [id] { scroll-margin-top: 7.5rem; }
    .region-hero .office-hero__inner { padding-block: 1.25rem 2.5rem; }
    .region-hero .breadcrumbs { margin-bottom: 1.5rem; }
    .region-hero h1 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
    .region-hero .office-hero__inner > p { max-width: 80ch; margin-bottom: 0; color: #d0e1e0; }
    .region-hero .notice { max-width: 900px; margin: 1.25rem 0 0; padding: .85rem 1rem; font-size: .9rem; }
    .directory-shell .filters-form { display: block; margin: 0 0 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 20px; box-shadow: var(--shadow); }
    .filters-heading, .panel-heading { display: flex; align-items: start; gap: 1rem; margin-bottom: 1.5rem; }
    .section-symbol { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; color: var(--link); background: var(--teal-soft); border-radius: 13px; }
    .filters-heading h2 { margin: 0 0 .35rem; font-size: 1.25rem; line-height: 1.3; }
    .filters-heading p { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.6; }
    .filter-fields { display: grid; gap: 1rem; }
    .filter-fields--3 { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
    .filter-fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-fields--1 { grid-template-columns: minmax(0, 1fr); }
    .filter-fields .field { min-width: 0; gap: .5rem; }
    .filter-fields label { font-size: .87rem; }
    .filter-fields input, .filter-fields select { min-height: 50px; padding: .7rem .85rem; background: var(--surface-raised); border-radius: 10px; }
    .filters-form .filter-checks { gap: .65rem 1.25rem; margin-block: 1rem; }
    .filter-checks label { padding: .25rem .7rem; border: 1px solid var(--line); border-radius: 10px; font-size: .83rem; }
    .filter-checks label:has(input:checked) { background: var(--teal-soft); border-color: var(--link); }
    .filters-form .button-row { gap: .75rem; margin: 1.2rem 0 0; }
    .filter-reset { min-height: 46px; padding-inline: .4rem; }
    .filters-form [data-location-status] { font-size: .88rem; color: var(--body-copy); margin-top: .75rem; }
    [data-location-status]:empty { display: none; }
    .results-heading { align-items: start; gap: 1rem 2rem; padding-top: 1.5rem; margin-bottom: 1.5rem; }
    .results-heading h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.3; }
    .results-heading p { max-width: 38ch; color: var(--muted); font-size: .85rem; line-height: 1.6; margin: .4rem 0 0; }
    .results-heading > p { text-align: right; }
    .local-summary { margin: 0 0 1.5rem; padding: 1rem 1.25rem; background: var(--teal-soft); border-radius: 12px; font-size: .91rem; }
    .notary-directory .office-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
    .office-card { padding: 1.5rem; }
    .office-card h3 { font-size: 1.15rem; line-height: 1.45; }
    .office-card__details { margin-top: .35rem; }
    .office-card__detail { line-height: 1.65; }
    .office-card__detail a { overflow-wrap: anywhere; }
    .card-actions .text-link { min-height: 44px; }
    .empty-state { max-width: 760px; margin-inline: auto; padding: clamp(1.5rem, 4vw, 3rem); background: var(--surface); box-shadow: none; }
    .empty-state > .ui-icon { margin: 0 auto 1.15rem; color: var(--accent-text); }
    .empty-state h2, .empty-state h3 { font-size: 1.4rem; line-height: 1.35; }
    .empty-state p { color: var(--muted); max-width: 60ch; margin-inline: auto; }
    .pagination { justify-content: center; gap: .6rem; margin-top: 2rem; }
    .pagination a { text-decoration: none; font-weight: 650; }
    .pagination [aria-current] { background: var(--accent); border-color: var(--accent); }

    .location-explorer { margin: 0 0 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
    .location-explorer > summary { padding: 1.1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--heading); cursor: pointer; list-style: none; }
    .location-explorer > summary > span, .location-explorer > summary h2 { display: flex; align-items: center; gap: .8rem; }
    .location-explorer > summary h2 { width: 100%; margin: 0; font-size: 1.06rem; font-weight: 650; line-height: 1.4; }
    .location-explorer > summary h2 > span { flex: 1; }
    .location-explorer > summary small { display: block; margin-top: .2rem; font-size: .8rem; font-weight: 400; color: var(--muted); }
    .location-explorer__body { padding: 0 1.25rem 1.25rem; }
    .location-explorer__body > p { font-size: .91rem; color: var(--muted); }
    .location-explorer > .location-communes { padding: 0 1.25rem 1.25rem; }
    .region-browser { margin-top: var(--content-gap); }
    .location-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; }
    .location-group { min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
    .location-group[open] { grid-column: 1 / -1; }
    .location-group > summary { padding: 1.15rem; cursor: pointer; list-style: none; border-radius: inherit; }
    .location-group > summary:hover { background: var(--surface-raised); }
    .location-group__heading { display: flex; align-items: center; gap: .85rem; margin: 0; font-size: 1rem; line-height: 1.45; font-weight: 650; letter-spacing: -.01em; }
    .location-group__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; color: var(--link); background: var(--teal-soft); border-radius: 12px; }
    .location-group__copy { min-width: 0; flex: 1; }
    .location-group__copy small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; margin-top: .3rem; }
    .location-group__body { padding: 0 1.15rem 1.15rem; }
    .location-group__all { min-height: 44px; margin-top: .75rem; }
    .location-communes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
    .location-communes > a { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: .65rem; min-height: 64px; padding: .8rem 1rem; color: var(--heading); text-decoration: none; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; font-weight: 600; line-height: 1.4; }
    .location-communes > a:hover { border-color: var(--accent-text); color: var(--accent-text); background: var(--accent-soft); }
    .location-communes small { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; margin-top: .3rem; }
    .commune-search { max-width: 740px; margin-top: 1.5rem; }
    .commune-search label { display: block; font-size: .88rem; margin-bottom: .5rem; }
    .commune-search__row { display: flex; align-items: stretch; gap: .65rem; }
    .commune-search input { flex: 1; min-width: 0; min-height: 50px; }
    .commune-search .button { flex-shrink: 0; }
    .field-help { margin: .7rem 0 0; font-size: .82rem; color: var(--muted); }
    .region-browser + .empty-state { margin-top: var(--content-gap); }
    .location-explorer > summary::-webkit-details-marker, .location-group > summary::-webkit-details-marker, .guide-toc > summary::-webkit-details-marker { display: none; }
    .location-explorer[open] > summary .ui-icon--chevron-down, .location-group[open] > summary .ui-icon--chevron-down, .guide-toc[open] > summary .ui-icon--chevron-down { transform: rotate(180deg); }
    .office-map { display: block; width: 100%; height: clamp(280px, 42vh, 400px); margin-top: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); }
    .office-jurisdiction { padding: clamp(1.25rem, 2.5vw, 2rem); }
    .office-jurisdiction > h2 { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: 1.15rem; line-height: 1.4; }
    .office-jurisdiction__group + .office-jurisdiction__group { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
    .office-jurisdiction__group > h3 { margin: 0 0 .65rem; color: var(--body-copy); font-size: .87rem; line-height: 1.5; }
    .jurisdiction-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
    .jurisdiction-badge { min-width: 0; max-width: 100%; margin: 0; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--teal-soft); font-size: .84rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
    .page-hero > .status { font-size: .82rem; line-height: 1.5; }
    .page-hero > .status--open { color: #07534d; background: #ddf2e9; }
    .page-hero > .status--temporary { color: #714a00; background: #fff4d6; }
    :root[data-theme="dark"] .page-hero > .status--open { color: #aff0d9; background: #123f35; }
    .page-hero > .privacy-note { font-size: .85rem; line-height: 1.7; }
    .page-hero > .office-address { font-size: 1.05rem; line-height: 1.6; }
    .hours-table th, .hours-table td { padding: .85rem .6rem; font-size: .92rem; }
    .hours-table th { width: 32%; font-weight: 600; }
    .hours-table tr:nth-child(even) { background: var(--surface-raised); }
    .hours-table .hours-table__today > th, .hours-table .hours-table__today > td { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; border-left: 0; }
    .hours-today { display: inline-block; margin-left: .35rem; padding: .1rem .4rem; border-radius: 5px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; line-height: 1.5; vertical-align: middle; }
    .hours-slot { display: inline-block; margin-right: .6rem; font-variant-numeric: tabular-nums; }
    .local-context { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
    .local-context > :last-child { margin-bottom: 0; }
    .section--embedded > h2, .local-context h2, .panel-heading h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); line-height: 1.3; margin-bottom: 1rem; }
    .section.saturday-panel { margin-top: var(--content-gap); padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
    .panel-heading h2 { margin-bottom: .6rem; }
    .panel-heading p { color: var(--muted); font-size: .93rem; margin: 0; }
    .saturday-offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; padding: 0; margin-block: 1rem; list-style: none; }
    .saturday-offices li { margin: 0; padding: 1rem; border-radius: 12px; background: var(--surface-raised); border: 1px solid var(--line); }
    .saturday-offices li > a { display: inline-block; font-weight: 650; margin-bottom: .5rem; }
    .saturday-offices span { font-size: .88rem; color: var(--body-copy); }
    .guide-content.markdown-content { max-width: none; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
    .guide-toc.aside-card { display: block; padding: 0 1.1rem; }
    .guide-toc summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 58px; list-style: none; cursor: pointer; font-weight: 650; color: var(--heading); }
    .guide-toc summary > span { display: flex; align-items: center; gap: .6rem; }
    .guide-toc nav { max-height: calc(100dvh - 15rem); overflow-y: auto; overscroll-behavior: contain; padding-bottom: .8rem; }
    .guide-toc nav a { display: flex; align-items: center; min-height: 44px; padding: .7rem 0; font-size: .85rem; line-height: 1.5; }
    .guide-toc nav a:last-child { border-bottom: 0; }
    .consent-panel { max-height: 70vh; max-height: 70dvh; overflow-y: auto; overscroll-behavior: contain; }
    .error-shell { padding-block: 3rem; }
    @media (hover: none) { .local-card:hover, .guide-card:hover, .button:hover { transform: none; } }

    /* Final home section: centered location action with a manual alternative. */
    .near-section { padding-block: clamp(3rem, 6vw, 5rem); text-align: center; background: var(--surface); border-top: 1px solid var(--line); scroll-margin-top: 104px; }
    .near-section h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.65rem); line-height: 1.2; font-weight: 750; letter-spacing: -.035em; text-wrap: balance; }
    .near-section h2::after { content: ""; display: block; width: 62px; height: 4px; margin: 1rem auto 1.4rem; border-radius: 4px; background: linear-gradient(90deg, var(--accent), #e8a04e); }
    .near-section__intro { max-width: 790px; margin: 0 auto 1.75rem; color: var(--body-copy); font-size: 1rem; line-height: 1.75; }
    .near-section__button { min-height: 56px; padding: .9rem 1.5rem; gap: .65rem; border-radius: 9px; }
    .near-section__button:disabled { cursor: wait; opacity: .8; transform: none; }
    .near-section__status { max-width: 650px; margin: 1rem auto 0; color: var(--body-copy); font-size: .9rem; }
    .near-section__status:empty { display: none; }
    .near-section__note { margin: 1.1rem auto .6rem; color: var(--muted); font-size: .78rem; line-height: 1.6; }
    .near-section__alternative { min-height: 44px; justify-content: center; color: var(--accent-text); font-size: .85rem; }

    @media (min-width: 1081px) and (max-width: 1200px) {
        .main-nav__links > .main-nav__link > .main-nav__icon, .nav-tramites > summary > .main-nav__icon { display: none; }
        .main-nav .main-nav__link { padding-inline: .55rem; }
    }
    @media (max-width: 1080px) {
        .site-header__inner { min-height: 76px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; padding-block: .65rem; }
        .site-header .brand { grid-column: 1; grid-row: 1; justify-self: start; min-width: 0; }
        .header-actions { grid-column: 2; grid-row: 1; }
        .js-ready .menu-toggle { display: inline-flex; }
        .main-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; display: grid; gap: 1rem; margin: .25rem 0 0; padding: 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
        .js-ready .main-nav { position: absolute; z-index: 4; grid-area: auto; inset: calc(100% + .6rem) 0 auto; display: none; width: 100%; max-height: calc(100vh - 11rem); max-height: calc(100dvh - 11rem - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; box-shadow: 0 18px 48px rgba(5, 26, 35, .22); }
        .js-ready .main-nav.is-open { display: grid; }
        .main-nav__intro { display: block; padding: .15rem .3rem .8rem; border-bottom: 1px solid var(--line); }
        .main-nav__intro > span { color: var(--accent-text); font-size: .65rem; font-weight: 750; letter-spacing: .13em; }
        .main-nav__intro p { margin: .25rem 0 0; color: var(--muted); font-size: .83rem; }
        .main-nav__links { display: grid; gap: .4rem; padding: 0; border: 0; background: none; }
        .nav-tramites__panel { position: static; width: 100%; max-height: none; margin-top: .45rem; padding: .45rem; border-radius: 13px; box-shadow: none; }
        .nav-tramites__heading { display: none; }
        .nav-tramites__chevron { margin-left: auto; }
        .main-nav .main-nav__link { gap: .85rem; min-height: 74px; padding: .75rem; background: var(--surface-raised); white-space: normal; border-radius: 13px; }
        .main-nav .main-nav__link:hover { background: var(--teal-soft); }
        .main-nav .main-nav__link.is-current { border-color: var(--accent-text); background: var(--accent-soft); box-shadow: none; }
        .main-nav__icon { width: 40px; height: 40px; background: var(--teal-soft); border-radius: 12px; }
        .main-nav__link.is-current .main-nav__icon { color: #fff; background: var(--accent); }
        .main-nav__label { font-size: .95rem; font-weight: 700; line-height: 1.3; }
        .main-nav__copy small { display: block; margin-top: .25rem; color: var(--muted); font-size: .74rem; font-weight: 400; line-height: 1.5; }
        .main-nav__arrow { display: block; margin-left: auto; flex: 0 0 auto; color: var(--muted); }
        .main-nav .main-nav__near { margin: 0; min-height: 58px; padding: .65rem 1rem; justify-content: start; gap: .7rem; font-size: .9rem; white-space: normal; }
        .main-nav__near > .ui-icon { display: block; margin-left: auto; }
        .main-nav__near-icon { width: 34px; height: 34px; }
        body.menu-open .mobile-contact { visibility: hidden; }
    }
    @media (max-width: 380px) {
        .menu-toggle { width: 44px; min-width: 44px; padding: 0; }
        .menu-toggle__label { display: none; }
        .main-nav { padding: .85rem; }
        .main-nav .main-nav__link { gap: .65rem; padding: .65rem; }
        .main-nav__icon { width: 34px; height: 34px; }
    }
    @media (max-width: 1080px) and (max-height: 500px) {
        .main-nav__intro { display: none; }
        .main-nav .main-nav__link { min-height: 58px; }
    }
    @media (max-width: 960px) {
        .nearby-communes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .filter-fields--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .filter-fields--3 .field:first-child { grid-column: 1 / -1; }
        .filters-form .filter-fields--2 .field:first-child { grid-column: auto; }
        .notary-directory .office-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .location-communes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .guide-aside .aside-card--notice { display: none; }
        .guide-toc nav { max-height: none; }
        .hero__grid { padding-block: 3rem 4.5rem; }
        .hero__title-break { display: none; }
        .visit-panel { grid-template-columns: 1fr; gap: 1.5rem; }
        .visit-panel > .button { justify-self: start; }
        .section-heading { align-items: start; }
        .section-heading > p { max-width: 330px; }
    }
    @media (max-width: 600px) {
        .nearby-communes__grid { grid-template-columns: minmax(0, 1fr); }
        .filter-fields--3, .filter-fields--2, .filter-fields--1, .location-groups, .location-communes, .saturday-offices { grid-template-columns: minmax(0, 1fr); }
        .notary-directory .office-grid { grid-template-columns: minmax(0, 1fr); }
        .filters-heading, .panel-heading { gap: .75rem; }
        .filters-heading h2 { font-size: 1.12rem; }
        .filters-heading .section-symbol, .panel-heading .section-symbol { width: 38px; height: 38px; flex-basis: 38px; }
        .filters-form .button-row { display: grid; grid-template-columns: minmax(0, 1fr); }
        .filters-form .button-row > * { justify-content: center; }
        .filter-checks label { width: 100%; }
        input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; }
        .results-heading { flex-direction: column; gap: .25rem; }
        .results-heading > p { text-align: left; margin-top: 0; }
        .location-explorer > summary { padding: 1rem; }
        .location-explorer__body { padding: 0 .85rem .85rem; }
        .location-explorer > summary h2 { font-size: 1rem; gap: .6rem; }
        .location-group > summary { padding: 1rem; }
        .location-group__heading { gap: .65rem; font-size: .95rem; }
        .location-group__icon { width: 34px; height: 34px; flex-basis: 34px; }
        .location-group__body { padding: 0 1rem 1rem; }
        .commune-search__row { flex-direction: column; }
        .office-shell .page-hero .button-row { display: grid; grid-template-columns: minmax(0, 1fr); }
        .hours-table th, .hours-table td { padding-inline: .4rem; font-size: .86rem; }
        .site-footer a:not(.brand) { min-height: 40px; display: flex; align-items: center; margin: .1rem 0; }
        .consent-panel .button-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
        .consent-panel .button-row > a:last-child { grid-column: 1 / -1; }
        .site-header__inner { min-height: 68px; }
        .hero__grid { padding-block: 2.5rem 4.25rem; }
        .hero h1 { font-size: clamp(2rem, 8.7vw, 3rem); letter-spacing: -.025em; }
        .hero .lead { font-size: 1rem; }
        .hero .search-box { padding: .9rem; margin-top: 1.4rem; }
        .hero .search-box__row { flex-direction: column; }
        .hero .search-box input { font-size: 16px; }
        .hero .search-box .button { width: 100%; min-height: 54px; flex: 0 0 auto; font-size: .94rem; }
        .hero-shortcuts { gap: .35rem 1.1rem; }
        .hero-shortcuts a, .hero-shortcuts .text-button { font-size: .81rem; }
        .coverage-strip { padding: 1.1rem .6rem; gap: 1rem 0; margin-top: -2rem; }
        .coverage-strip p { padding-inline: .5rem; font-size: .72rem; }
        .coverage-strip p:nth-child(3) { border-left: 0; }
        .coverage-strip strong { font-size: 1.65rem; }
        .section { padding-block: 3rem; }
        .section--embedded { padding-block: 2.5rem 0; }
        .section-heading { flex-direction: column; gap: 1rem; margin-bottom: 1.6rem; }
        .section-heading > p { max-width: none; }
        .guide-grid { gap: .9rem; }
        .guide-card:nth-child(n) { padding: 1.4rem; }
        .visit-panel { padding: 1.6rem; border-radius: 18px; }
        .visit-panel > .button { white-space: normal; }
        .faq-section { padding: 1.5rem; border-radius: 18px; }
        .faq-item summary { font-size: .94rem; }
        .faq-item__answer { padding-right: .1rem; }
        .page-hero { padding: var(--panel-inset); border-radius: 18px; }
        .page-hero h1 { font-size: 2.1rem; }
        .info-content { border-radius: 18px; font-size: 1rem; line-height: 1.8; }
        .info-content > h2:not(:first-child) { margin-top: 2rem; }
        .info-content .correction-form > .button { justify-self: stretch; }
    }
    @media (forced-colors: active) {
        .hero::before { display: none; }
        .button, .back-to-top, .local-card, .coverage-strip, .guide-card__icon { border: 1px solid ButtonText; }
        .faq-item summary::after { color: ButtonText; }
        .jurisdiction-badge { border-color: CanvasText; }
    }
}
@media print {
    .guide-card__icon, .menu-dialog { display: none !important; }
}
