/* Readable defaults and optional presentation settings; original photos stay intact. */
:root {
  --color-muted: #526578;
  --color-gray: #526578;
  --color-logo-blue-dark: #315d82;
  --focus-color: #174f7d;
}
[hidden] { display: none !important; }
html { scroll-padding-top: 110px; }
body { overflow-x: visible; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-color) !important;
  outline-offset: 4px;
  box-shadow: 0 0 0 2px #fff;
}
:where(a, button, input, select, textarea, summary) { scroll-margin-block: 115px 32px; }
.skip-link { position: fixed; z-index: 1100; }
main:focus { outline: none; }
h1, h2, h3, p, a, button { overflow-wrap: anywhere; }
.hero__grid > *, .tile-grid > *, .question-grid > *, .cert-grid > *, .faq__grid > *, .practice__grid > *, .special__grid > *, .team-grid > * { min-width: 0; }
.reveal { opacity: 1; transform: none; }
.btn-primary { color: #23394d; background: #d7e5f1; border-color: #536f86; }
.btn-secondary, .header-phone { border-color: #74889a; }
.header-phone .icon-circle { font-size: 18px; }
.site-footer { color: #fff; background: #455b6d; }
.review-card .stars { color: var(--color-logo-blue-dark); }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; }
.footer__grid .footer__links a { margin: 0; padding-block: 10px; }
.text-button { padding: 10px 0; border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 700; }
.site-tools {
  position: fixed; z-index: 105; inset-inline-end: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0; padding: 4px;
  background: #fff; border: 1px solid #74889a; border-right: 0;
  border-radius: 12px 0 0 12px; box-shadow: 0 5px 20px rgba(41, 71, 100, .14);
}
.side-tool {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 48px; flex: 0 0 auto; padding: 10px;
  color: #294764; background: #fff; border: 0; border-radius: 7px; cursor: pointer;
}
.side-tool:hover { background: #e5eff6; }
.side-tool svg { width: 25px; height: 25px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-tool svg .icon-dot { fill: currentColor; stroke: none; }
.side-tool-label {
  position: absolute; inset-inline-end: 100%; top: 50%; transform: translateY(-50%);
  padding: 9px 12px; background: #294764; color: #fff; border-radius: 7px 0 0 7px;
  white-space: nowrap; font-size: .9rem; line-height: 1.4;
  pointer-events: none; visibility: hidden;
}
.side-tool:is(:hover, :focus-visible) .side-tool-label { visibility: visible; pointer-events: auto; }
.side-tool.tooltip-dismissed .side-tool-label { visibility: hidden; pointer-events: none; }
.settings-open .site-tools { visibility: hidden; }
/* Reserve a narrow strip where the normal page margin cannot accommodate the rail. */
@media (max-width: 1320px) {
  main .container, .site-footer .container, .privacy-banner.container, .preferences-message.container {
    width: min(var(--container), calc(100% - 96px));
    translate: -28px 0;
  }
}
@media (max-width: 860px) {
  main .container, .site-footer .container, .privacy-banner.container, .preferences-message.container {
    width: min(var(--container), calc(100% - 84px));
  }
}
.js-only { display: none; }
.tools-ready .js-only { display: inline-flex; }
.preferences-message { font-size: .92rem; color: var(--color-deep); margin-block: 8px; }
.privacy-banner { border: 1px solid #8c9fae; background: #fff; padding: 24px; border-radius: 12px; margin-block: 12px 20px; }
.privacy-banner h2 { font-size: 1.25rem; margin: 0 0 12px; letter-spacing: normal; }
.privacy-banner p { margin: 0 0 16px; }
.privacy-banner a, .settings-dialog a { text-decoration: underline; text-underline-offset: 3px; }
.settings-dialog { color: var(--color-text); background: #fff; width: min(700px, calc(100% - 28px)); max-width: calc(100% - 24px); max-height: calc(100dvh - 28px); overflow-y: auto; padding: 28px; border: 1px solid #74889a; border-radius: 12px; }
.settings-dialog::backdrop { background: rgba(21, 38, 51, .62); }
.settings-dialog > *, .settings-check span, .settings-field, .settings-field select { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.settings-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.settings-heading h2 { font-size: 1.45rem; line-height: 1.3; letter-spacing: normal; margin: 0; }
.settings-close { padding: 8px 12px; color: var(--color-deep); background: #fff; border: 1px solid #74889a; border-radius: 6px; min-height: 44px; cursor: pointer; }
.settings-option { padding: 18px; border: 1px solid #8c9fae; border-radius: 8px; margin-block: 18px; background: #f3f7fa; }
.settings-option h3, .settings-option h4 { font-size: 1.08rem; margin: 0 0 10px; }
.settings-option p:last-child { margin-bottom: 0; }
.settings-check { display: flex; align-items: flex-start; gap: 12px; margin-block: 16px; min-height: 44px; font-weight: 700; color: var(--color-deep); cursor: pointer; }
.settings-check input { flex: 0 0 auto; width: 24px; height: 24px; padding: 0; margin: 2px 0 0; accent-color: #315d82; }
.settings-field { display: grid; gap: 8px; margin-block: 20px; }
.settings-field select { width: 100%; background: #fff; color: var(--color-text); border: 1px solid #74889a; }
.settings-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.settings-button { flex: 1 1 160px; min-height: 46px; padding: 12px 16px; background: #edf3f8; color: #294764; border: 1px solid #536f86; border-radius: 8px; font-weight: 700; cursor: pointer; line-height: 1.35; }
.settings-button:hover { background: #dce9f3; }
.settings-current, .settings-legal-links { font-size: .9rem; }
.settings-legal-links { margin: 18px 0 0; }
.settings-open, .settings-open body { overflow: hidden; }
.settings-drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(560px, 100%); max-width: 100%; height: 100%; height: 100dvh;
  max-height: 100%; max-height: 100dvh; padding: 0;
  border: 0; border-left: 1px solid #74889a; border-radius: 14px 0 0 14px;
  overscroll-behavior: contain; box-shadow: -12px 0 48px rgba(21, 38, 51, .18);
}
.settings-drawer[open] { animation: settings-slide-in .22s ease-out; }
.settings-drawer-header { padding: 24px; background: var(--color-soft-blue); border-bottom: 1px solid var(--color-border); }
.settings-drawer .settings-heading { flex-wrap: wrap; align-items: center; gap: 12px; }
.settings-drawer .settings-heading h2 { flex: 1 1 150px; }
.settings-sections { display: flex; flex-wrap: wrap; gap: 10px; }
.settings-section-button { flex: 1 1 140px; min-width: 0; min-height: 46px; padding: 10px 14px; background: #fff; color: #294764; border: 1px solid #536f86; border-radius: 8px; font-weight: 700; cursor: pointer; }
.settings-section-button[aria-pressed="true"] { color: #fff; background: #294764; }
.settings-drawer-body { padding: 24px; }
.settings-panel-title { font-size: 1.2rem; margin: 0 0 18px; }
.settings-drawer .settings-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
.settings-drawer .settings-actions .settings-button { width: 100%; }
.settings-drawer :where(a, button, input, select) { scroll-margin-block: 18px; }
.settings-drawer section, .settings-drawer .settings-check { min-width: 0; overflow-wrap: anywhere; }
html[data-contrast="high"] .settings-drawer-header { background: #fff; border-color: #111; }
html[data-contrast="high"] .settings-section-button { color: #111; background: #fff; border: 2px solid #111; }
html[data-contrast="high"] :is(.site-tools, .side-tool) { color: #111; background: #fff; border-color: #111; }
html[data-contrast="high"] .side-tool-label { color: #fff; background: #111; }
html[data-contrast="high"] .settings-section-button[aria-pressed="true"] { color: #fff; background: #111; }
@keyframes settings-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.map-placeholder { min-height: 320px; display: grid; align-content: center; justify-items: start; gap: 14px; padding: 30px; background: #edf3f8; }
.map-placeholder p { margin: 0; }
.map-placeholder strong { color: var(--color-deep); }
.map-placeholder a { text-decoration: underline; }
.map-revoke { display: block; margin: 8px 24px; }
.age-card > a { width: 44px; height: 44px; border-color: #74889a; }
.photo-count { white-space: normal; }
html[data-text-size="125"] { font-size: 125%; }
html[data-text-size="150"] { font-size: 150%; }
html[data-text-size="200"] { font-size: 200%; }
html[data-links="highlight"] a { text-decoration: underline !important; text-underline-offset: 3px; }
html[data-motion="reduce"], html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after {
  scroll-behavior: auto !important; animation: none !important; transition: none !important;
}
html[data-contrast="high"] {
  --color-text: #111; --color-deep: #111; --color-muted: #222; --color-gray: #222;
  --color-logo-blue-dark: #123e68; --color-border: #555; --color-soft-blue: #fff;
  --color-soft-green: #fff; --color-cream: #fff; --focus-color: #003b70;
}
html[data-contrast="high"] :is(body, .site-header, section, .hero, .hero-card, .contact-hint, .map-placeholder, .settings-dialog, .settings-option, .legal-content, .legal-draft, .legal-pending, .map-card, .map-card__inner, .header-phone) {
  color: #111; background: #fff; box-shadow: none;
}
html[data-contrast="high"] .hero::before, html[data-contrast="high"] .hero__visual::after { display: none; }
html[data-contrast="high"] :is(.settings-button, .settings-close, .btn, .legal-nav a, .settings-field select) { background: #fff; color: #111; border: 2px solid #111; }
html[data-contrast="high"] :is(.site-footer, .legal-nav a[aria-current="page"]) { background: #111; color: #fff; }
html[data-contrast="high"] .site-footer a { color: #fff; }
html[data-contrast="high"] :is(.trust-strip span, .icon-circle, .timeline-number, .question-icon) { background: #fff; color: #111; border: 1px solid #111; }
@media (max-width: 1180px) {
  .site-header:has(.nav-links.is-open) ~ .site-tools { visibility: hidden; }
  .nav-toggle { display: block; flex: 0 0 44px; }
  .navbar { position: relative; gap: 14px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; background: #fff; border: 1px solid #74889a; border-radius: 8px; max-height: 65dvh; overflow-y: auto; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .nav-links a::after { display: none; }
  .header-phone span:last-child { display: none; }
  .header-phone { padding: 10px; }
  html:not(.js) .navbar { flex-wrap: wrap; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .nav-links { display: flex; position: static; order: 5; width: 100%; max-height: none; }
}
html:not([data-text-size="100"])[data-text-size] .navbar { flex-wrap: wrap; }
html:not([data-text-size="100"])[data-text-size] .nav-links { flex-wrap: wrap; }
html:not([data-text-size="100"])[data-text-size] .site-header { position: relative; }
@media (max-width: 860px) {
  .site-header { position: relative; }
  html { scroll-padding-top: 16px; }
  :where(a, button, input, select, textarea, summary) { scroll-margin-top: 16px; }
  .brand__logo { max-width: calc(100vw - 175px); }
  .hero__actions .btn { white-space: normal; }
}
@media (max-width: 660px) {
  .settings-dialog { padding: 20px; }
  .settings-drawer { padding: 0; border-radius: 0; }
  .settings-drawer-header, .settings-drawer-body { padding: 20px; }
  .settings-heading { flex-wrap: wrap; gap: 12px; }
  .settings-heading h2 { flex-basis: 100%; }
  .privacy-banner { padding: 20px; }
  .settings-actions { flex-direction: column; }
  .settings-button { flex: auto; width: 100%; }
  .map-placeholder { padding: 22px; }
  .hero-card { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html, *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .settings-button, .settings-close, .btn, .legal-nav a { border: 2px solid ButtonText; }
  :focus-visible { outline-color: Highlight !important; }
}
@media print {
  .site-tools, .privacy-banner, .settings-dialog, .preferences-message, .js-only, .map-placeholder { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
