/* English letters (A–Z, a–z) everywhere use Aboreto; Thai, Chinese, digits and pinyin tone marks
   fall through to the next font in each stack. */
@font-face {
  font-family: "IWISH Latin";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/aboreto/v2/5DCXAKLhwDDQ4N8bpKPUAk6t1Sc.woff2) format("woff2");
  unicode-range: U+0041-005A, U+0061-007A;
}
/* IWISH THAILAND — red & white theme */
:root {
  --white: #FFFFFF;
  --red: #9B1C24;
  --red-dark: #7A141B;
  --red-soft: #FBF1F1;
  --red-line: #F0DCDD;
  --ink: #2B1F20;
  --ink-2: #5E5354;
  --ink-3: #7A6E6F;
  --on-red-2: rgba(255, 255, 255, 0.82);
  --shadow: 0 12px 32px rgba(122, 20, 27, 0.10), 0 2px 6px rgba(122, 20, 27, 0.06);
  --radius: 24px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "IWISH Latin", "Kanit", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: "IWISH Latin", "Kanit", sans-serif; line-height: 1.35; margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 640px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.ambient { display: none; }

/* Cards (class name kept from the earlier glass style) */
.glass { background: var(--white); border: 1px solid var(--red-line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: #fff;
}
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; gap: 12px; }
.header-inner > .btn { justify-self: end; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-star { width: 28px; height: 28px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: "IWISH Latin", "Kanit", sans-serif; font-size: 20px; letter-spacing: .14em; font-weight: 600; color: var(--ink); }
.logo-text small { font-size: 9.5px; letter-spacing: .42em; color: var(--red); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--red); }
@media (max-width: 720px) { .nav { display: none; } .header-inner { grid-template-columns: 1fr auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--red); color: #fff; font: inherit; font-weight: 500; font-size: 16px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 20px rgba(155, 28, 36, .22);
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ghost { background: #fff; color: var(--red); border: 1px solid var(--red); box-shadow: none; }
.btn-ghost:hover { background: var(--red-soft); }
.btn-block { width: 100%; margin-top: 8px; }

/* Text helpers */
.eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); font-weight: 500; margin-bottom: 10px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

/* Sections */
.section { padding: 48px 0; scroll-margin-top: 64px; }
@media (min-width: 900px) { .section { padding: 72px 0; } }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 5vw, 36px); font-weight: 500; margin-bottom: 12px; }


/* ---------- Birth form (white, underline fields, rose accents) ---------- */
:root { --rose: #9B1C24; --rose-dark: #7A141B; --rose-line: #E6C3C5; --f-line: #CFCFCF; --f-label: #8A8A8A; }
.form-section { background: #fff; }
.form-wrap { max-width: 760px; }
.f-head { text-align: center; margin-bottom: 36px; }
.f-head h2 { font-family: "IWISH Latin", "Kanit", sans-serif; font-weight: 500; font-size: clamp(30px, 6vw, 44px); color: #3A3A3A; }
.f-head p { color: #8A8A8A; font-size: 17px; margin-top: 6px; }
.f-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; }
@media (min-width: 640px) { .f-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.f-field { margin-bottom: 26px; }
.f-field > label, .f-label { display: block; font-size: 15px; color: var(--f-label); margin-bottom: 4px; }
.f-req { color: var(--rose); }
.f-field input, .f-field select, .f-picker {
  width: 100%; min-height: 54px; padding: 10px 6px; margin: 0;
  font: inherit; font-size: 19px; color: #333; background: transparent;
  border: 0; border-bottom: 1px solid var(--f-line); border-radius: 0;
  -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s;
}
.f-field input::placeholder { color: #B5B5B5; }
.f-field input:focus, .f-field select:focus, .f-picker:focus-visible { outline: none; border-bottom-color: #333; box-shadow: 0 1px 0 #333; }
.f-select { position: relative; }
.f-select::after { content: ""; position: absolute; right: 12px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 1.6px solid #777; border-bottom: 1.6px solid #777; transform: rotate(45deg); pointer-events: none; }
.f-select select { padding-right: 36px; cursor: pointer; }
.f-select select:invalid, .f-select select option[value=""] { color: #B5B5B5; }
.f-picker { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer; }
.f-picker svg { flex: none; width: 26px; height: 26px; fill: none; stroke: #888; stroke-width: 1.4; stroke-linecap: round; }
.f-ph { color: #B5B5B5; }
.f-picker.has-value .f-ph { color: #333; }
[aria-invalid="true"] { border-bottom-color: var(--rose) !important; }
.f-err { color: var(--rose); font-size: 14px; margin-top: 6px; }
.f-err:empty { display: none; }
.f-err.center { text-align: center; }
.f-confirm { color: var(--rose-dark); font-size: 16px; margin: -12px 0 24px; }
.f-confirm:empty { display: none; }
.f-submit { display: block; width: min(100%, 780px); margin: 12px auto 0; min-height: 64px; border: 1px solid var(--rose-line); border-radius: 999px;
  background: var(--rose); color: #fff; font: inherit; font-size: 20px; font-weight: 500; cursor: pointer; transition: background .15s; }
.f-submit:hover { background: var(--rose-dark); }
.f-submit:focus-visible, .f-btn:focus-visible { outline: 2px solid var(--rose-dark); outline-offset: 3px; }
.f-fine { font-size: 13px; color: #9A9A9A; text-align: center; margin-top: 14px; }

.f-btn { min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0; background: var(--rose); color: #fff; font: inherit; font-size: 17px; font-weight: 500; cursor: pointer; }
.f-btn:hover { background: var(--rose-dark); }
.f-btn.soft { background: #F3F3F3; color: #555; } .f-btn.soft:hover { background: #E9E9E9; }
.f-btn.ghost { background: #fff; color: var(--rose); border: 1px solid var(--rose-line); }
.f-btn.ghost:hover { background: #FBF1F1; }
.f-btn.danger { color: #B6475E; }
.f-btn.wide { width: 100%; border-radius: 10px; }
.f-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Summary */
.f-summary { text-align: center; }
.f-summary:focus { outline: none; }
.f-summary h3 { font-family: "IWISH Latin", "Kanit", sans-serif; font-weight: 500; font-size: 26px; color: #3A3A3A; margin-bottom: 18px; }
.f-sumlist { text-align: left; margin: 0 0 12px; padding: 4px 20px; border: 1px solid #EEE; border-radius: 16px; }
.f-sumlist div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #F0F0F0; }
.f-sumlist div:last-child { border-bottom: 0; }
.f-sumlist dt { color: var(--f-label); font-size: 15px; flex: none; }
.f-sumlist dd { margin: 0; text-align: right; font-weight: 500; color: #333; }
.f-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.f-actions .f-btn { flex: 1 1 160px; }

/* Modals */
body.m-open { overflow: hidden; }
.m-backdrop, .d-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(40, 40, 40, .5); display: grid; place-items: center; padding: 16px; }
.m-backdrop[hidden], .d-backdrop[hidden] { display: none; }
.m-box { background: #fff; border-radius: 22px; padding: 26px 26px 24px; width: min(100%, 460px); box-shadow: 0 24px 60px rgba(0,0,0,.25); border: 1px solid var(--rose-line); }
.cal-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-bottom: 10px; }
.f-select.sm select { width: 100%; min-height: 42px; padding: 0 34px 0 14px; font: inherit; font-size: 17px; color: #333; border: 1px solid #DDD; border-radius: 8px; background: #fff; -webkit-appearance: none; appearance: none; }
.f-select.sm select:focus { outline: none; border-color: #8FB3F5; box-shadow: 0 0 0 3px rgba(143,179,245,.35); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; margin-bottom: 16px; }
.cal-grid .dow { font-size: 14px; color: #9A9A9A; padding: 8px 0; }
.cal-grid button { aspect-ratio: 1; border: 0; background: none; border-radius: 50%; font: inherit; font-size: 18px; color: #333; cursor: pointer; }
.cal-grid button:hover { background: #FBF1F1; }
.cal-grid button[aria-pressed="true"] { background: var(--rose); color: #fff; }
.cal-grid button:disabled { color: #CCC; cursor: default; background: none; }
.cal-grid button:focus-visible { outline: 2px solid var(--rose); outline-offset: -2px; }
.m-close { width: 100%; min-height: 50px; border-radius: 10px; border: 1px solid var(--rose-line); background: #fff; color: var(--rose); font: inherit; font-size: 18px; cursor: pointer; }
.m-close:hover { background: #FBF1F1; }

.m-box.time { text-align: center; }
.m-box.time h3 { font-family: "IWISH Latin", "Kanit", sans-serif; font-weight: 500; font-size: 20px; color: #333; margin-bottom: 14px; }
.t-row { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.t-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15px; color: #8A8A8A; }
.t-cell input { width: 108px; height: 76px; text-align: center; font: inherit; font-size: 34px; font-weight: 500; color: #333;
  border: 2px solid #E2E2E2; border-radius: 12px; -webkit-appearance: none; appearance: none; }
.t-cell input:focus { outline: none; border-color: var(--rose); }
.t-colon { font-size: 34px; font-weight: 600; color: var(--rose); line-height: 76px; }
.t-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.t-or { display: flex; align-items: center; gap: 16px; color: #9A9A9A; margin: 18px 12px 14px; font-size: 15px; }
.t-or::before, .t-or::after { content: ""; flex: 1; height: 1px; background: var(--rose-line); }
.t-unknown { display: inline-flex; align-items: center; gap: 12px; color: var(--rose); font-size: 17px; cursor: pointer; position: relative; }
.t-unknown input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.t-unknown .box { width: 24px; height: 24px; border: 2px solid #777; border-radius: 7px; display: grid; place-items: center; }
.t-unknown input:checked + .box { background: var(--rose); border-color: var(--rose); }
.t-unknown input:checked + .box::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px,-1px); }
.t-unknown input:focus-visible + .box { outline: 2px solid var(--rose); outline-offset: 2px; }

/* Place drawer (right side; full screen on phones) */
.d-backdrop { place-items: stretch end; padding: 0; }
.d-panel { width: min(100%, 560px); height: 100%; background: #fff; display: flex; flex-direction: column; gap: 18px; padding: 26px 24px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; box-shadow: -20px 0 50px rgba(0,0,0,.2); }
.d-head { display: flex; align-items: center; justify-content: space-between; }
.d-head h3 { font-family: "IWISH Latin", "Kanit", sans-serif; font-weight: 500; font-size: 24px; color: var(--rose); }
.d-x { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.d-x:hover { background: #F5F5F5; }
.d-x svg { width: 26px; height: 26px; stroke: #333; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.d-search { width: 100%; min-height: 58px; padding: 0 18px; font: inherit; font-size: 18px; border: 2px solid #E6E6E6; border-radius: 12px; -webkit-appearance: none; appearance: none; }
.d-search:focus { outline: none; border-color: var(--rose-line); }
.d-map { flex: 1 1 auto; min-height: 320px; border-radius: 12px; border: 1px solid #E6E6E6; overflow: hidden; background: #F2F0EC; }
.d-picked { font-size: 15px; color: #666; }
.combo { position: relative; z-index: 1100; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 1100; list-style: none; margin: 0; padding: 6px;
  max-height: 300px; overflow-y: auto; border-radius: 12px; background: #fff; border: 1px solid #E6E6E6; box-shadow: 0 14px 30px rgba(0,0,0,.12); }
.combo-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.combo-list li small { color: #999; font-size: 13px; text-align: right; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: #FBF1F1; }
.combo-list li.empty { cursor: default; color: #999; background: none; }

/* Section headings (centred, like a catalogue page) */
.section-grey { background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%); }
.section-grey .section-title { color: #fff; }
.section-grey .section-sub { color: rgba(255,255,255,.85); }
.section-title { text-align: center; font-family: "IWISH Latin", "Kanit", sans-serif; font-weight: 500; font-size: clamp(26px, 4.6vw, 36px); }
.section-sub { text-align: center; color: var(--ink-2); max-width: 36em; margin: 8px auto 32px; font-size: 15px; }

/* Hero video (full clip, never cropped: it carries its own text and logo) */
.hero-video { position: relative; background: #fff; line-height: 0; }
.hv-frame { overflow: hidden; background: #fff; }
/* Scale 1% and clip: hides the dark hairline some browsers (Safari) draw at the edges of a scaled video */
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 756; background: #fff; transform: scale(1.012); transform-origin: center; }
.hv-toggle { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; z-index: 2;
  display: grid; place-items: center; background: rgba(255,255,255,.75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.hv-toggle svg { width: 18px; height: 18px; fill: var(--red-dark); }
.hv-toggle .i-play { display: none; }
.hv-toggle[aria-pressed="true"] .i-play { display: block; } .hv-toggle[aria-pressed="true"] .i-pause { display: none; }
.hc-cta { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 999px; text-decoration: none; color: var(--red-dark); font-weight: 500; white-space: nowrap;
  background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,.14); transition: background .2s, transform .2s; }
.hc-cta:hover { transform: translateX(-50%) translateY(-1px); }
/* Footer */
.site-footer { background: var(--red-dark); padding: 40px 0 calc(24px + env(safe-area-inset-bottom)); }
.footer-card { background: #fff; border-radius: 10px; padding: 32px 24px 20px; }
.footer-cols { display: grid; gap: 24px; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: 1.3fr 1fr 1.3fr; padding: 0 24px; } }
.footer-cols h4 { margin: 0 0 8px; font-size: 14px; font-weight: 500; }
.footer-cols a { display: block; font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 2px 0; }
.footer-cols a:hover { color: var(--red); }
.footer-cols p, .footer-note { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.small-logo .logo-star { width: 22px; height: 22px; }
.small-logo .logo-text strong { font-size: 16px; }
.copyright { border-top: 1px solid #EEE; margin-top: 24px; padding-top: 16px; text-align: center; font-size: 13px; color: var(--ink-3); }



/* Logo image (white artwork) on the red header */
.logo-img { display: block; height: 34px; width: auto; filter: brightness(0); } /* white artwork rendered black */
.footer-logo { display: block; width: 150px; height: auto; margin: 0 auto 28px; }
.footer-cols .footer-brand { font-weight: 500; font-size: 15px; letter-spacing: .08em; color: var(--red-dark); margin-top: 0 !important; }

@media (max-width: 640px) { .hc-cta { position: relative; left: auto; bottom: auto; transform: none; display: flex; width: max-content; margin: 14px auto 0; line-height: 1.6; background: var(--red-soft); } .hc-cta:hover { transform: none; } .hv-toggle { width: 36px; height: 36px; right: 10px; top: 10px; bottom: auto; } .hero-video { padding-bottom: 14px; } }

/* CTA: soft rose glass pill, sparkle icon, light tracing around the border */
@property --cta-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.hc-cta {
  isolation: isolate; gap: 18px; padding: 15px 34px 15px 28px;
  font-size: 18px; font-weight: 400; letter-spacing: .01em; color: #8A4249;
  background: rgba(255, 246, 245, .86);
  border: 1px solid rgba(168, 85, 92, .14);
  -webkit-backdrop-filter: blur(12px) saturate(120%); backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 8px 24px rgba(122, 40, 46, .12);
  animation: none;
}
.hc-cta:hover { background: rgba(255, 250, 249, .95); }
.hc-cta .cta-spark { width: 22px; height: 22px; fill: #A8555C; flex: none; }
.hc-cta::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--cta-a), rgba(168,85,92,0) 0deg, rgba(168,85,92,0) 150deg, rgba(168,85,92,.95) 250deg, rgba(168,85,92,0) 340deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ctaTrace 3.2s linear infinite;
}
.hc-cta::after { content: none; }
@keyframes ctaTrace { to { --cta-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .hc-cta::before { animation: none; } }
@media (max-width: 640px) { .hc-cta { background: #FFF6F5; font-size: 16px; padding: 12px 28px 12px 22px; gap: 14px; } .hc-cta .cta-spark { width: 19px; height: 19px; } }

/* Header: logo only, centred */
.header-inner { display: flex !important; justify-content: center; }

.f-select select { color: #B5B5B5; } .f-select select option { color: #333; }

/* Compact custom dropdown (native Safari menus render at full field size) */
.f-dd { position: relative; }
.f-chev { width: 9px; height: 9px; margin: 0 6px 4px 0; border-right: 1.6px solid #777; border-bottom: 1.6px solid #777; transform: rotate(45deg); transition: transform .15s; flex: none; }
.f-picker[aria-expanded="true"] .f-chev { transform: rotate(-135deg); margin-bottom: -4px; }
.f-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 200px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid #EAEAEA; border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.f-menu li { padding: 9px 14px; border-radius: 8px; font-size: 16px; color: #333; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.f-menu li::before { content: ""; width: 14px; flex: none; }
.f-menu li[aria-selected="true"]::before { content: "✓"; color: var(--rose); font-weight: 500; }
.f-menu li:hover, .f-menu li.active { background: #FBF1F1; }

.cal-grid button.is-today { box-shadow: inset 0 0 0 1.5px var(--rose); color: var(--rose); font-weight: 500; }
.cal-grid button.is-today[aria-pressed="true"] { color: #fff; }

.f-form-msg { color: var(--rose); text-align: center; margin: 4px 0 10px; }
.f-form-msg:empty { display: none; }
.f-submit:disabled { opacity: .6; cursor: wait; }
.cal-era { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #F4F1F1; margin-bottom: 10px; }
.cal-era button { border: 0; background: none; font: inherit; font-size: 14px; padding: 4px 14px; border-radius: 999px; cursor: pointer; color: #666; }
.cal-era button[aria-pressed="true"] { background: #fff; color: var(--rose); font-weight: 500; box-shadow: 0 1px 4px rgba(0,0,0,.1); }

/* pinyin keeps a font with tone marks (Aboreto has none) */
.pinyin, .pinyin * { font-family: "Helvetica Neue", Arial, sans-serif !important; }
button, input, select, textarea { font-family: inherit; }

/* Thai typeface: Kanit (owner request 2026-11-13) — light body text, medium headings */
body { font-weight: 300; }
h1, h2, h3, h4, strong, b { font-weight: 500; }

/* remember-me (form) */
.f-remember { margin: 6px 0 4px; }
.f-remember-label { font-size: 16px; color: #3A3A3A; }
.f-remember-note { margin: 10px 0 0; font-size: 14px; color: #6A5557; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.f-forget { font: inherit; font-size: 14px; color: var(--rose); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.f-remember-msg { min-height: 1em; margin: 6px 0 0; font-size: 14px; color: #2E6B3A; }

/* ===== responsive pass (2026-11-13): layout and sizing only — colours, fonts and images unchanged ===== */
button, a, summary, label, .f-picker { touch-action: manipulation; }          /* no double-tap zoom delay on touch */
/* modals and drawer: never wider or taller than the screen; content scrolls inside */
.m-box { max-width: 100%; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.d-panel { overscroll-behavior: contain; }
/* time picker: the two number boxes shrink on narrow phones (was 314px wide at 320px screens) */
.t-row { gap: clamp(8px, 3vw, 18px); }
.t-cell input { width: clamp(76px, 26vw, 108px); height: clamp(62px, 19vw, 76px); font-size: clamp(28px, 8.5vw, 34px); }
.t-colon { line-height: clamp(62px, 19vw, 76px); }
@media (max-width: 360px) {
  .m-backdrop { padding: 10px; }
  .m-box { padding: 20px 16px 18px; border-radius: 18px; }
  .t-actions { gap: 10px; }
  .cal-grid button { font-size: 16px; }
}
/* remember-me note: respect [hidden] (display:flex was overriding it) and give the link a finger-sized target */
.f-remember-note[hidden] { display: none; }
.f-forget { min-height: 40px; padding: 8px 4px; }
.f-remember-label { min-height: 44px; }
/* touch screens: small controls get at least a 40px target */
@media (pointer: coarse) {
  .f-forget, .m-close { min-height: 44px; }
}
