/* Small, shared accessibility foundations; each page keeps its own design. */
:root { color-scheme: light; }
* { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
input, select, textarea { max-width: 100%; min-width: 0; font-size: 16px; }
button { cursor: pointer; }
.skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; padding: 12px 18px; background: #fff; color: #14181b; transform: translateY(-180%); border: 2px solid #14181b; }
.skip-link:focus { transform: none; }
.demo-bar a, footer a { text-decoration: underline !important; text-underline-offset: 4px; }
.tool-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 20px; }
.contact-grid, .cgrid, .text-grid { min-width: 0; }
.contact-grid > *, .cgrid > *, .text-grid > *, .panel-inner, .cartus > *, .cbox { min-width: 0; }
.cinfo a { overflow-wrap: anywhere; }
.cartus { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.cartus b { overflow-wrap: anywhere; }
@media(max-width:939px) { .hero-fig, .hero-media, .essay-fig, .radar { overflow: clip; } }
.tool-fields label { display: grid; gap: 8px; flex: 1 1 170px; min-width: 0; font-size: 14px; font-weight: 600; }
.tool-fields input, .tool-fields select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid currentColor; border-radius: 0; background: transparent; color: inherit; }
.tool-fields option { background: #fff; color: #14181b; }
.tool-result { display: block; margin-top: 24px; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.tool-note { font-size: 14px; margin: 12px 0 0; max-width: 65ch; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tool-actions button { min-height: 44px; padding: 9px 16px; background: transparent; color: inherit; border: 1px solid currentColor; }
.tool-actions button[aria-pressed="true"] { background: var(--ink, #14181b); color: var(--bg, #fff); }
.menu-filter { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; align-items: center; }
.menu-filter label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.menu-filter input { width: 20px; height: 20px; accent-color: #963b21; }
.menu-filter small { color: #5d5044; }
.dish-desc { color: #655747 !important; }
.dish-price, .dish-name .tag { color: #853415 !important; }
.strip { scrollbar-width: thin; }
.hero-media { overflow: clip; }
.story figure { overflow: clip; }
.team-grid .person { overflow: clip; }
.qdot { width: 32px !important; height: 32px !important; border: 11px solid #16211a !important; background-clip: padding-box; }
.rail-call > span { opacity: 1 !important; }
.edge, .edge-word { opacity: 1 !important; }
.edge-l, .edge-r { color: inherit !important; }
.edge { background: var(--f-bg); padding: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.edge-word { color: #0e1316 !important; }
.vc-footer { line-height: 1.5; }
.vc-input { font-size: 16px !important; }
.vc-card-v { overflow-wrap: anywhere; min-width: 0; }
.vc-panel { max-height: calc(100dvh - 100px); }
.dental-guide { margin: 32px 0; padding: 28px; background: #edf4f9; border-left: 4px solid #0b6fa4; color: #173747; }
.dental-guide h3 { margin: 0 0 18px; }
.dental-guide .tool-result { font-size: 1.2rem; }
.estimate-console { margin: 32px 0; padding: clamp(20px, 4vw, 36px); border: 1px solid #697077; background: #10151a; color: #f1f4f6; font-family: monospace; }
.estimate-console h3 { color: #ffb020; font-size: 20px; margin: 0 0 22px; }
.estimate-console .tool-result { color: #ffb020; }
.stay-planner { margin: 26px 0 0; padding: clamp(20px, 3vw, 30px); border: 1px solid #8a9c83; background: #e8eee3; color: #16211a; }
.stay-planner h3 { margin: 0 0 20px; }
.daily-workout { margin: 28px 0; }
.daily-workout .tool-actions { margin: 0 0 20px; }
.daily-workout .tool-actions button { font-family: var(--poster); text-transform: uppercase; flex: 1 1 80px; }
.daily-workout .tool-actions button[aria-pressed="true"] { background: #c8f73c; color: #111; border-color: #c8f73c; }
.day-sessions { border-top: 2px solid #c8f73c; }
.day-session { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid #4b5051; }
.day-session time { color: #c8f73c; font-size: 1.5rem; font-family: var(--poster); }
.day-session b { display: block; font-size: 18px; }
.day-session span { color: #c1c7c4; font-size: 14px; }
.sched-wrap { outline-offset: 4px; }
.sched-wrap.rv { opacity: 1; transform: none; }
.visit-checklist { background: #f7efd9; color: #482750; padding: clamp(22px, 4vw, 38px); margin: 32px 0; border: 1px solid #bdb08c; box-shadow: 5px 5px 0 #ded2b3; }
.visit-checklist h3 { margin: 0 0 12px; }
.visit-checklist label { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #c4b695; cursor: pointer; }
.visit-checklist input { width: 21px; height: 21px; accent-color: #5a2c63; flex: none; }
.visit-checklist label:has(:checked) span { text-decoration: line-through; }
.visit-checklist .tool-result { font-size: 17px; }
.cake-studio { margin: 32px 0; padding: clamp(22px, 4vw, 38px); background: #faf3ea; color: #271b16; border-top: 6px solid #f0879c; }
.cake-studio h3 { font-family: var(--serif); font-size: 2.1rem; margin: 0 0 20px; }
.cake-studio .tool-result { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.7rem); }
.project-filter button { font-family: monospace; text-transform: uppercase; }
.project-filter button[aria-pressed="true"] { background: #f26a21; color: #101a26; }
.filter-count { font-family: monospace; font-size: 14px; margin: 12px 0; }
.gal-grid figure { position: relative; }
.gallery-open { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; color: #fff; display: flex; align-items: end; padding: 16px; }
.gallery-open span { background: #241f1a; padding: 8px 12px; font-size: 13px; }
.gallery-dialog { padding: 0; width: min(900px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 0; background: #f4ece6; color: #241f1a; }
.gallery-dialog::backdrop { background: rgba(15,12,10,.85); }
.gallery-dialog img { width: 100%; max-height: 70dvh; object-fit: contain; background: #181818; }
.gallery-dialog header { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 16px 20px; }
.gallery-dialog button { border: 1px solid currentColor; padding: 10px 18px; background: transparent; color: inherit; min-height: 44px; }
.topt[aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: -4px; }
@media (max-width: 599px) {
  .tool-fields { gap: 16px; }
  .tool-fields label { flex-basis: 100%; }
  .daily-workout .tool-actions button { flex: 1 1 22%; padding-inline: 10px; }
  .sched-wrap { display: none; }
  .gallery-dialog header { padding: 14px; }
  .gallery-dialog h2 { font-size: 20px; }
  .plan, .svc, .note, .room-body, .tool-fields > * { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; scroll-snap-type: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .reveal { opacity: 1 !important; transform: none !important; }
}
