/* AB Sites: keyboard foundations plus optional visual preferences. */
:root { --muted: #52645b; }
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible { outline: 3px solid #006b53; outline-offset: 4px; }
.ab-skip-link { position: fixed; top: 10px; right: 20px; z-index: 2147483646; padding: 12px 20px; color: #fff; background: #145c3f; border: 2px solid #fff; border-radius: 6px; font-size: 18px; font-weight: 700; transform: translateY(-180%); }
.ab-skip-link:focus { transform: none; }
.ab-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#ab-accessibility { font-family: Assistant, Arial, sans-serif; font-size: 16px; line-height: 1.5; color: #16201d; }
.ab-a11y-launcher { position: fixed; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 2147483001; display: grid; place-items: center; width: 58px; height: 58px; padding: 8px; border: 2px solid #fff; border-radius: 50%; background: #145c3f; color: #fff; box-shadow: 0 5px 22px #143d343b, 0 0 0 1px #145c3f; cursor: pointer; transition: background 180ms, transform 180ms; }
.ab-a11y-launcher img { width: 36px; height: 36px; filter: brightness(0) invert(1); }
.ab-a11y-launcher:hover { background: #0d432d; transform: translateY(-2px); }
#ab-a11y-panel { position: fixed; inset: auto 22px 92px auto; margin: 0; width: min(380px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 116px); overflow-y: auto; overscroll-behavior: contain; padding: 24px; border: 1px solid #c8d7cf; border-radius: 18px; background: #fff; color: #16201d; box-shadow: 0 20px 65px #102a2340; font: inherit; }
#ab-a11y-panel::backdrop { background: #10231d4d; }
.ab-a11y-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ab-a11y-brand { color: #145c3f; font-size: 12px; font-weight: 800; letter-spacing: 2px; }
#ab-a11y-title { font-size: 25px; line-height: 1.3; margin: 4px 0 0; letter-spacing: 0; }
.ab-a11y-close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #c9d5cf; border-radius: 50%; color: #145c3f; background: #f4f8f5; font-size: 30px; line-height: 1; cursor: pointer; }
#ab-a11y-intro { color: #52645b; font-size: 15px; margin: 10px 0 22px; }
.ab-a11y-size { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 18px; font-weight: 700; }
.ab-a11y-size > div { display: flex; align-items: center; direction: ltr; gap: 8px; }
.ab-a11y-size button { width: 44px; height: 44px; border: 1px solid #a4b8ac; background: #fff; border-radius: 8px; color: #145c3f; font-weight: 700; font-size: 17px; cursor: pointer; }
.ab-a11y-size button:disabled { color: #63706a; background: #eff3f0; cursor: default; }
.ab-a11y-size output { min-width: 43px; text-align: center; font-size: 15px; }
.ab-a11y-options { display: grid; gap: 9px; }
.ab-a11y-option { display: flex; justify-content: space-between; align-items: center; gap: 15px; width: 100%; min-height: 51px; padding: 11px 13px; text-align: start; font: inherit; font-weight: 700; color: #203a2e; border: 1px solid #c8d7cf; border-radius: 9px; background: #f6f8f4; cursor: pointer; }
.ab-a11y-option[aria-pressed="true"] { border-color: #145c3f; background: #e7f1e9; }
.ab-a11y-switch { width: 34px; height: 20px; border-radius: 20px; padding: 3px; background: #697c70; flex-shrink: 0; direction: ltr; }
.ab-a11y-switch::before { content: ''; display: block; width: 14px; height: 14px; border-radius: 50%; background: white; }
[aria-pressed="true"] .ab-a11y-switch { background: #145c3f; }
[aria-pressed="true"] .ab-a11y-switch::before { transform: translateX(14px); }
.ab-a11y-reset { width: 100%; min-height: 44px; margin-top: 15px; border: 1px solid #145c3f; border-radius: 8px; background: white; color: #145c3f; font: inherit; font-weight: 700; cursor: pointer; }
.ab-a11y-footer { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 19px; padding-top: 15px; border-top: 1px solid #d9e2dd; font-size: 14px; }
.ab-a11y-footer a { color: #145c3f; text-underline-offset: 3px; }
.ab-a11y-footer p { flex-basis: 100%; color: #52645b; font-size: 12px; margin: 0; }
.ab-a11y-links a:not(.ab-skip-link) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px !important; }
.ab-a11y-spacing :where(main p, main li, main h1, main h2, main h3) { line-height: 1.8 !important; letter-spacing: .05em !important; word-spacing: .12em !important; }
.ab-a11y-spacing main p { margin-bottom: 1.5em !important; }
.ab-a11y-motion *, .ab-a11y-motion *::before, .ab-a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.ab-a11y-motion { scroll-behavior: auto !important; }
.ab-a11y-contrast { --bg: #fff; --text: #000; --muted: #222; --line: #222; --panel: #fff; --panel-2: #fff; --green: #00452c; }
.ab-a11y-contrast :where(body,body > header,body > nav,body > footer,main,main section,main article,main div,main p,main span,main strong,main h1,main h2,main h3) { background-color: #fff !important; background-image: none !important; color: #000 !important; text-shadow: none !important; }
.ab-a11y-contrast body::before, .ab-a11y-contrast main ::before, .ab-a11y-contrast main ::after { background: none !important; }
.ab-a11y-contrast :where(header a,main a,footer a,nav a) { color: #00452c !important; }
.ab-a11y-contrast :where(.primary-button,.header-cta,.site-modal-live) { background: #00452c !important; color: #fff !important; }
html[data-ab-text-size]:not([data-ab-text-size="100"]) .site-header { position: relative; grid-template-columns: auto 1fr; }
html[data-ab-text-size]:not([data-ab-text-size="100"]) .nav { flex-wrap: wrap; }
html[data-ab-text-size]:not([data-ab-text-size="100"]) :where(main h1,main h2,main h3,main p) { overflow-wrap: anywhere; }
html[data-ab-text-size]:not([data-ab-text-size="100"]) .hero { grid-template-columns: minmax(0,1fr); }
html[data-ab-text-size]:not([data-ab-text-size="100"]) .site-pair-gallery { grid-template-columns: minmax(0,1fr); }
html[data-ab-text-size]:not([data-ab-text-size="100"]) .landing-deck { min-height: 550px; }
html[data-ab-text-size]:not([data-ab-text-size="100"]) .landing-card { aspect-ratio: auto; min-height: 390px; }
html[data-ab-text-size]:not([data-ab-text-size="100"]) .landing-card-face { min-height: 390px; }
html[data-ab-text-size]:not([data-ab-text-size="100"]) .landing-card-image { flex: 0 0 180px; }
.site-modal { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; background: transparent; color: var(--text); }
.site-modal::backdrop { background: transparent; }
.site-modal-pause { min-height: 44px; padding: 9px 15px; border: 1px solid #145c3f; border-radius: 6px; background: #fff; color: #145c3f; font: inherit; font-weight: 700; cursor: pointer; }
.site-modal-footer { flex-wrap: wrap; }
@media (max-width: 520px) {
  .ab-a11y-launcher { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); width: 54px; height: 54px; }
  #ab-a11y-panel { right: 12px; bottom: max(80px, calc(env(safe-area-inset-bottom) + 70px)); max-height: calc(100dvh - 100px); padding: 20px; }
  html[data-ab-text-size]:not([data-ab-text-size="100"]) .site-header { display: flex; flex-wrap: wrap; }
  html[data-ab-text-size]:not([data-ab-text-size="100"]) .portfolio-section-nav { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } html { scroll-behavior: auto !important; } }
.landing-card-copy strong { font-size: clamp(1rem, 1.4vw, 1.25rem); }
.landing-card-copy > span { font-size: .8125rem; }
.ab-a11y-motion h1 span { border-left: 0; clip-path: none !important; }
.ab-a11y-motion .reveal { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { h1 span { border-left: 0; clip-path: none !important; } .reveal { opacity: 1 !important; transform: none !important; } }
body:has(#ab-a11y-panel[open]) { overflow: hidden; }
