/* 55-dynamic: hours table, appointment form, media slots, slot whisper, pause chip. Notes: docs/CSS-NOTES.md */

/* hours table ([ov_hours]) */
.ov-hours { margin: 0; }
.ov-hours table { width: 100%; border-collapse: collapse; font-family: var(--ov-font-body); font-size: var(--fs-body); line-height: 1.4; color: var(--ov-ink); font-variant-numeric: tabular-nums; text-align: left; }
.ov-hours th, .ov-hours td { padding: var(--space-3) 0; border-top: 1px solid var(--ov-line); vertical-align: top; }
.ov-hours tr:last-child th, .ov-hours tr:last-child td { border-bottom: 1px solid var(--ov-line); }
.ov-hours th { font-weight: 500; padding-right: var(--space-4); }
.ov-hours td { text-align: right; white-space: normal; }
.ov-hours__line { margin: 0 0 var(--space-2); font-variant-numeric: tabular-nums; }
.ov-hours__status { margin: var(--space-3) 0 0; font-size: var(--fs-small); color: var(--ov-ink-2); font-variant-numeric: tabular-nums; }

/* dark bands */
.ov-dark .ov-hours table { color: var(--ov-moon); }
.ov-dark .ov-hours th, .ov-dark .ov-hours td { border-color: rgb(237 231 219 / 0.18); }
.ov-dark .ov-hours__status { color: var(--ov-moon-2); }

/* form card ([ov_appointment_form]); the page wraps it in core/group.ov-card */
.ov-form-card { scroll-margin-top: 96px; color: var(--ov-ink); }
form.ov-form { display: grid; gap: var(--space-5); font-family: var(--ov-font-body); font-size: var(--fs-body); line-height: 1.5; }
.ov-form__row { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .ov-form__row { grid-template-columns: 1fr 1fr; } }

.ov-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.ov-field__label { display: block; font-weight: 500; font-size: var(--fs-body); color: var(--ov-ink); margin-bottom: var(--space-2); }
legend.ov-field__label { padding: 0; }
.ov-field__req, .ov-field__opt { font-weight: 400; color: var(--ov-ink-2); font-size: var(--fs-small); }
.ov-field__help { margin: calc(-1 * var(--space-1)) 0 var(--space-2); font-size: var(--fs-small); color: var(--ov-ink-2); }

.ov-input { display: block; width: 100%; min-height: 52px; padding: 0 var(--space-4); font: inherit; font-size: var(--fs-body); color: var(--ov-ink); background: var(--ov-paper-light); border: 1.5px solid var(--ov-line-strong); border-radius: var(--r-sm); box-shadow: none; appearance: none; -webkit-appearance: none; transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease; }
.ov-input::placeholder { color: var(--ov-ink-2); opacity: 1; }
.ov-input:hover { border-color: var(--ov-ink-2); }
.ov-input:focus-visible { outline: 2px solid var(--ov-clay-deep); outline-offset: 3px; border-color: var(--ov-ink-2); }
.ov-input--textarea { min-height: 9rem; padding: var(--space-3) var(--space-4); resize: vertical; line-height: 1.5; }
.ov-input--select { padding-right: calc(var(--space-4) * 2.5); cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M3 6l5 5 5-5' fill='none' stroke='%2315213A' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right var(--space-4) center; }
.ov-field.has-error .ov-input { border-color: var(--ov-clay-deep); border-width: 2px; }
.ov-field__error { margin: var(--space-2) 0 0; font-size: var(--fs-small); color: var(--ov-clay-ink); }
.ov-field__error::before { content: "– "; }

/* choice groups: 44px targets */
.ov-choices { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
.ov-choice { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-3) 0 var(--space-2); border: 1.5px solid var(--ov-line-strong); border-radius: var(--r-sm); background: var(--ov-paper-light); cursor: pointer; font-size: var(--fs-body); color: var(--ov-ink); }
.ov-choice input { width: 24px; height: 24px; margin: 0; accent-color: var(--ov-clay-deep); cursor: pointer; }
.ov-choice:has(input:checked) { border-color: var(--ov-navy); background: var(--ov-paper); }
.ov-choice:has(input:focus-visible) { outline: 2px solid var(--ov-clay-deep); outline-offset: 3px; }
.ov-field--group.has-error .ov-choice { border-color: var(--ov-clay-deep); }

/* honeypot: off-screen for people, present for bots */
.ov-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* error summary (aria-live) */
.ov-form__summary { padding: var(--space-4) var(--space-5); border: 2px solid var(--ov-clay-deep); border-radius: var(--r-sm); background: var(--ov-paper); }
.ov-form__summary[hidden] { display: none; }
.ov-form__summary:focus-visible { outline: 2px solid var(--ov-clay-deep); outline-offset: 3px; }
.ov-form__summary-title { margin: 0 0 var(--space-2); font-family: var(--ov-font-display); font-weight: 400; font-size: var(--fs-h4); line-height: 1.3; color: var(--ov-navy); }
.ov-form__summary-list { margin: 0; padding-left: 1.2em; font-size: var(--fs-small); }
.ov-form__summary-list li + li { margin-top: var(--space-1); }
.ov-form__summary-list a { color: var(--ov-clay-ink); text-decoration: underline; text-underline-offset: 3px; }

/* submit */
.ov-form__actions { margin-top: var(--space-2); }
.ov-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; width: 100%; min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--r-sm); cursor: pointer; font-family: var(--ov-font-body); font-weight: 500; font-size: 1.0625rem; line-height: 1; text-decoration: none; transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
@media (min-width: 640px) { .ov-btn { width: auto; min-width: 14rem; } }
.ov-btn--primary { background: var(--ov-clay-deep); color: var(--ov-cream); }
.ov-btn--primary:hover { background: var(--ov-clay-ink); color: var(--ov-cream); }
.ov-btn:focus-visible { outline: 2px solid var(--ov-clay-deep); outline-offset: 3px; }
.ov-btn__arrow { display: inline-block; transition: transform var(--t-base) var(--ease-out); }
.ov-btn:hover .ov-btn__arrow { transform: translateX(4px); }
.ov-btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.ov-form__privacy { margin: 0; font-size: var(--fs-small); color: var(--ov-ink-2); }
.ov-form__privacy a { color: var(--ov-navy); text-decoration: underline; text-decoration-color: var(--ov-clay-deep); text-underline-offset: 3px; }

/* success state */
.ov-form-success { display: grid; gap: var(--space-4); }
.ov-form-success:focus { outline: none; }
.ov-form-success__title { margin: 0; font-family: var(--ov-font-display); font-weight: 300; font-size: var(--fs-h2); line-height: 1.1; color: var(--ov-navy); letter-spacing: -0.01em; }
.ov-form-success__text { margin: 0; font-size: var(--fs-lede); line-height: 1.45; max-width: 48ch; text-wrap: pretty; }
.ov-form-success .ov-tel { color: var(--ov-navy); font-variant-numeric: tabular-nums; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--ov-clay-deep); text-underline-offset: 3px; }
.ov-form-success .ov-hours { max-width: 28rem; }

/* media slots ([ov_slot]) */
.ov-slot { position: relative; margin: 0; overflow: hidden; background: var(--ov-sage-deep); border-radius: var(--r-md); isolation: isolate; --ov-slot-pos: 50% 40%; }
.ov-slot--band { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 0; }
@media (min-width: 1024px) { .ov-slot--band { aspect-ratio: auto; height: clamp(320px, 36vw, 560px); border-radius: var(--r-md); } }
.ov-slot--16x9 { aspect-ratio: 16 / 9; }
.ov-slot--3x2 { aspect-ratio: 3 / 2; }
.ov-slot--arch { aspect-ratio: 4 / 5; border-radius: var(--arch); --ov-slot-pos: 50% 25%; }
.ov-slot--hex { aspect-ratio: 1.1547; border-radius: 0; clip-path: var(--hex); --ov-slot-pos: 50% 30%; }
.ov-slot__poster, .ov-slot__video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
img.ov-slot__poster { object-fit: cover; object-position: var(--ov-slot-pos); filter: saturate(.88) contrast(1.03); }
.ov-slot__video { object-fit: cover; object-position: var(--ov-slot-pos); opacity: 0; transition: opacity 600ms ease; pointer-events: none; }
.ov-slot.is-playing .ov-slot__video { opacity: 1; }
.ov-slot--photo { position: static; aspect-ratio: auto; background: transparent; overflow: visible; }

.ov-slot--photo.ov-slot--arch { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--arch); }
.ov-slot--photo.ov-slot--hex { position: relative; aspect-ratio: 1.1547; overflow: hidden; }
.ov-slot--photo.ov-slot--arch > img, .ov-slot--photo.ov-slot--hex > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

/* whisper tile filling a slot frame (component: 30-components) */
.ov-whisper--slot { display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%; aspect-ratio: auto; border-radius: inherit; }
.ov-whisper__line { position: relative; margin: 0; max-width: 18ch; text-align: center; font: italic 300 var(--fs-h3) / 1.25 var(--ov-font-display); text-wrap: balance; color: var(--ov-cream); }
.ov-slot--empty .ov-whisper--slot { position: absolute; inset: 0; }

/* monogram hexagon (Nam until a photo exists) */
.ov-monogram { position: absolute; inset: 0; display: grid; place-items: center; background: var(--ov-navy); color: var(--ov-cream); font-family: var(--ov-font-display); font-weight: 300; font-size: clamp(2rem, 40%, 4rem); line-height: 1; }
.ov-monogram span { font-size: 2.6em; }

/* pause/play chip (DESIGN 5) */
.ov-pause { position: absolute; right: var(--space-4); bottom: var(--space-4); z-index: var(--z-chip); display: inline-flex; align-items: center; gap: 0.5em; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ov-line); border-radius: var(--r-sm); background: var(--ov-paper); color: var(--ov-ink); box-shadow: var(--shadow-card); font-family: var(--ov-font-body); font-weight: 500; font-size: var(--fs-small); line-height: 1; cursor: pointer; }
.ov-pause[hidden] { display: none; }
.ov-pause:hover { background: var(--ov-paper-light); }
.ov-pause:focus-visible { outline: 2px solid var(--ov-clay-deep); outline-offset: 3px; }
.ov-pause__icon { width: 16px; height: 16px; flex: none; }
.ov-pause__icon--play { display: none; }
.ov-pause[aria-pressed="true"] .ov-pause__icon--pause { display: none; }
.ov-pause[aria-pressed="true"] .ov-pause__icon--play { display: block; }
.ov-slot--arch .ov-pause, .ov-slot--hex .ov-pause { right: 50%; transform: translateX(50%); }
