/* Ayutthaya Taxis — river-island ruins.
 * Maroon of the temple murals for the frame, jade for every action, warm
 * white paper, brick for accents, thin double rules like a mural border.
 * Near-square corners. System fonts only: nothing to download. */
:root {
  --maroon: #6a1b2a; --maroon-d: #4a111c; --maroon-l: #f3e6e3;
  --jade: #127a5c; --jade-d: #0c5e46; --jade-l: #e3f2ec;
  --paper: #fbf7f2; --card: #fff; --brick: #a4462b; --gold: #e9b872;
  --ink: #2a1a16; --ink-2: #5b4943; --line: #e5d8cb;
  --r: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Thai", "Leelawadee UI", Thonburi, Tahoma, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--paper); }
:lang(th) body { line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--jade-d); }
h1, h2, h3 { margin: 0 0 .45em; line-height: 1.18; }
:lang(th) h1, :lang(th) h2, :lang(th) h3 { line-height: 1.4; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; color: var(--maroon); }
h3 { font-size: 1.08rem; font-weight: 750; }
p { margin: 0 0 1em; }
.in { width: min(100% - 32px, 1180px); margin-inline: auto; }
.nw { white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the mural double rule, used as a divider and a frame */
.rule { border: 0; border-top: 4px double var(--brick); margin: 0; opacity: .75; }

/* ── masthead ─────────────────────────────────────────── */
.mast { background: var(--maroon); color: #fff; position: sticky; top: 0; z-index: 30; border-bottom: 4px double var(--gold); }
.mast-in { display: flex; align-items: center; gap: 10px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; min-width: 0; }
.brand img { width: 38px; height: 38px; border-radius: 6px; flex: none; }
.brand b { display: block; font-size: 1.06rem; font-weight: 800; letter-spacing: .01em; line-height: 1.1; }
.brand small { display: block; font-size: .72rem; color: #f1d9c2; font-weight: 600; line-height: 1.2; }
@media (max-width: 359px) { .mast .brand small { display: none; } }
.mnav { display: none; }
.mtools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang { color: #fff; text-decoration: none; font-size: .85rem; font-weight: 700; padding: 5px 9px; border: 1px solid rgba(255,255,255,.45); border-radius: var(--r); }
.mwa { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r); background: #fff; color: #0b6b3a; }
.mwa svg { width: 22px; height: 22px; }
.mbook { display: none; }
@media (min-width: 1000px) {
  .mast-in { min-height: 64px; gap: 20px; }
  .mnav { display: flex; gap: 20px; margin-left: 12px; }
  .mnav a { color: #fbeee6; text-decoration: none; font-weight: 600; font-size: .95rem; }
  .mnav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
  .mbook { display: inline-block; background: var(--jade); color: #fff; font-weight: 800; text-decoration: none; padding: 9px 16px; border-radius: var(--r); }
  .mbook:hover { background: var(--jade-d); }
}

/* ── first screen: copy + photo plate, then the booking desk ─── */
.arrive { padding: 10px 0 20px; }
.arrive-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(112px, 33vw, 250px);
  grid-template-areas: "copy shot" "trust trust" "perks perks" "desk desk"; gap: 8px 12px; }
.arrive-copy { grid-area: copy; align-self: center; min-width: 0; }
.arrive h1 { font-size: clamp(1.36rem, 5.6vw, 2.3rem); font-weight: 850; color: var(--maroon); margin: 0 0 6px; letter-spacing: -.01em; }
:lang(th) .arrive h1 { font-size: clamp(1.3rem, 5.4vw, 2.1rem); letter-spacing: 0; }
.anchor { margin: 0; font-size: 1rem; font-weight: 650; }
.anchor b { color: var(--brick); font-size: 1.12em; }
.trust { grid-area: trust; margin: 0; font-size: .8rem; color: var(--ink-2); line-height: 1.4; }
.trust b { color: var(--ink); }
.trust .st { color: var(--brick); letter-spacing: 1px; }
.arrive-shot { grid-area: shot; position: relative; border: 4px double var(--brick); padding: 2px; border-radius: 8px; background: #fff; align-self: start; }
.arrive-shot img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 3px; }
.arrive-shot figcaption { display: none; }
.perks { grid-area: perks; display: flex; flex-wrap: wrap; gap: 2px 14px; list-style: none; margin: 0; padding: 0; font-size: .8rem; font-weight: 650; color: var(--ink); line-height: 1.45; }
.perks li { position: relative; padding-left: 16px; }
.perks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 8px; height: 5px; border-left: 2px solid var(--jade); border-bottom: 2px solid var(--jade); transform: rotate(-45deg); }

/* the booking desk (form[data-widget]) */
.desk { grid-area: desk; background: var(--card); border: 1px solid var(--line); border-top: 5px double var(--maroon); border-radius: var(--r); padding: 10px 12px 12px; box-shadow: 0 10px 30px rgba(74,17,28,.08); min-width: 0; }
.desk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.desk-t { margin: 0; font-weight: 800; font-size: .95rem; color: var(--maroon); }
@media (max-width: 999px) {
  .desk-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .desk-head .dir { flex: 1 1 auto; }
  .perks .d-only { display: none; }
}
.dir { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--maroon); border-radius: var(--r); overflow: hidden; flex: none; }
.dir button { font: inherit; font-size: .8rem; font-weight: 750; border: 0; background: #fff; color: var(--maroon); padding: 6px 10px; cursor: pointer; line-height: 1.25; }
.dir button[aria-pressed="true"] { background: var(--maroon); color: #fff; }
.picks, .cars { border: 0; margin: 0; padding: 0; min-width: 0; }
.picks legend, .cars legend, .when label > span { font-size: .78rem; font-weight: 700; color: var(--brick); padding: 0; margin-bottom: 3px; line-height: 1.3; }
.pk { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid var(--line); border-top-width: 0; cursor: pointer; background: #fff; }
.pk:first-of-type { border-top-width: 1px; border-radius: var(--r) var(--r) 0 0; }
.pk:last-of-type { border-radius: 0 0 var(--r) var(--r); }
.pk input { accent-color: var(--jade); width: 17px; height: 17px; margin: 0; }
.pk-n { font-weight: 650; font-size: .95rem; line-height: 1.3; }
.pk-p { font-weight: 800; font-size: 1rem; white-space: nowrap; }
.pk:has(input:checked) { background: var(--jade-l); box-shadow: inset 3px 0 0 var(--jade); }
.cars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.cars legend { grid-column: 1 / -1; }
.car { position: relative; display: grid; gap: 0; border: 1.5px solid var(--line); border-radius: var(--r); padding: 5px 8px 6px; cursor: pointer; background: #fff; line-height: 1.25; }
.car input { position: absolute; opacity: 0; pointer-events: none; }
.car span { font-weight: 800; font-size: .88rem; }
.car small { font-size: .72rem; color: var(--ink-2); }
.car b { font-size: .98rem; }
.car:has(input:checked) { border-color: var(--jade); box-shadow: inset 0 0 0 1.5px var(--jade); background: var(--jade-l); }
.car:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 1px; }
.when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.when label { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
select, input, textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 8px 10px; width: 100%; min-width: 0; }
select:focus, input:focus, textarea:focus { border-color: var(--jade); outline: 2px solid rgba(18,122,92,.25); outline-offset: 0; }
.go { width: 100%; margin-top: 10px; font: inherit; font-size: 1.05rem; font-weight: 850; line-height: 1.3; color: #fff; background: var(--jade); border: 0; border-radius: var(--r); padding: 12px 14px; cursor: pointer; display: flex; justify-content: center; gap: 6px; }
.go:hover { background: var(--jade-d); }
.go:disabled { opacity: .6; cursor: not-allowed; }
.fine { margin: 6px 0 0; font-size: .78rem; color: var(--ink-2); text-align: center; line-height: 1.4; text-wrap: balance; }
@media (min-width: 1000px) {
  .arrive { padding: 0; }
  .arrive-grid { width: 100%; grid-template-columns: 58fr 42fr; grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "shot copy" "shot trust" "shot perks" "shot desk"; gap: 0; }
  .arrive-copy, .trust, .perks, .desk { margin-left: clamp(28px, 3vw, 52px); margin-right: clamp(16px, 3vw, 52px); max-width: 540px; }
  .anchor { margin-bottom: 6px; }
  .arrive-copy { padding-top: 26px; }
  .perks { margin-top: 12px; }
  .desk { margin-top: 14px; margin-bottom: 26px; padding: 12px 16px 14px; align-self: start; }
  .arrive-shot { border: 0; padding: 0; border-radius: 0; min-height: 100%; }
  .arrive-shot img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 54% 60%; border-radius: 0; }
  .arrive-shot::after { content: ""; position: absolute; inset: 16px; border: 4px double rgba(255,247,235,.85); pointer-events: none; }
  .arrive-shot figcaption { display: block; position: absolute; left: 32px; bottom: 32px; background: var(--maroon); color: #fff; font-size: .82rem; font-weight: 650; padding: 5px 10px; border-radius: 4px; }
  .trust { font-size: .88rem; }
  .pk { padding: 9px 12px; }
}

/* ── sections ─────────────────────────────────────────── */
.sec { padding: 44px 0; }
[id] { scroll-margin-top: 76px; }
.sec.alt { background: #fff; border-block: 1px solid var(--line); }
.eyebrow { font-size: .82rem; font-weight: 750; color: var(--brick); margin: 0 0 4px; }
.sec h2::after { content: ""; display: block; width: 72px; margin-top: 10px; border-top: 4px double var(--brick); }
.lead { color: var(--ink-2); max-width: 46rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; text-decoration: none; border-radius: var(--r); padding: 11px 18px; line-height: 1.25; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.jade { background: var(--jade); color: #fff; }
.btn.jade:hover { background: var(--jade-d); }
.btn.plain { background: #fff; color: #0b6b3a; border: 1.5px solid #cfe3d6; }
.btn.plain:hover { border-color: #0b6b3a; }

/* (1) the fare table, both directions */
.fares-wrap { margin-top: 18px; overflow-x: auto; }
.fares { width: 100%; border-collapse: collapse; background: #fff; border: 4px double var(--maroon); font-variant-numeric: tabular-nums; }
.fares th, .fares td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); }
.fares thead th { background: var(--maroon); color: #fff; font-size: .82rem; font-weight: 750; }
.fares thead th:first-child { text-align: left; }
.fares .grp th { text-align: left; background: var(--maroon-l); color: var(--maroon); font-size: .98rem; font-weight: 800; padding-top: 10px; }
.fares .grp small { display: block; font-weight: 600; color: var(--ink-2); font-size: .8rem; }
.fares tbody th[scope="row"] { text-align: left; font-weight: 600; font-size: .9rem; color: var(--ink); }
.fares td a { font-weight: 800; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--jade); }
.fares td a:hover { color: var(--jade-d); }
.fares-note { font-size: .85rem; color: var(--ink-2); margin: 10px 0 0; }
@media (max-width: 400px) {
  .fares th, .fares td { padding: 7px 6px; }
  .fares tbody th[scope="row"] { font-size: .84rem; }
  .fares td a { font-size: .92rem; }
}
.facts { display: grid; gap: 14px; margin-top: 22px; }
.facts > div { background: #fff; border: 1px solid var(--line); border-left: 4px double var(--brick); border-radius: var(--r); padding: 14px 16px; }
.facts h3 { color: var(--maroon); margin-bottom: 6px; }
.facts ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.facts li + li { margin-top: 4px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* (2) a day in Ayutthaya */
.day-grid { display: grid; gap: 20px; margin-top: 16px; }
.day-pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 4px double var(--brick); padding: 2px; background: #fff; border-radius: 8px; }
.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ways li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.ways b { display: block; color: var(--maroon); margin-bottom: 2px; }
.ways span { color: var(--ink-2); }
.day-note { font-size: .88rem; color: var(--ink-2); margin: 12px 0 0; }
.founder { margin: 14px 0 0; padding-top: 12px; border-top: 4px double var(--line); font-size: .92rem; color: var(--ink); }
@media (min-width: 900px) { .day-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; } }

/* (3) from Ayutthaya onwards — a road list with the town at its head */
.origin { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-weight: 850; color: var(--maroon); font-size: 1.1rem; }
.origin img { width: 34px; height: 34px; border-radius: 6px; }
.onward { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.onward::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 30px; border-left: 4px double var(--brick); }
.onward li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.onward li::before { content: ""; position: absolute; left: -25px; top: 19px; width: 12px; height: 12px; background: var(--paper); border: 3px solid var(--jade); border-radius: 50%; }
.onward .to { font-weight: 800; font-size: 1.08rem; }
.onward .how { grid-column: 1; color: var(--ink-2); font-size: .88rem; }
.onward .back { grid-column: 1; font-size: .82rem; color: var(--ink-2); }
.onward .fare { grid-row: 1 / span 3; grid-column: 2; text-align: right; display: grid; gap: 2px; justify-items: end; align-content: start; }
.onward .fare b { font-size: 1.3rem; line-height: 1.1; }
.onward .fare small { font-size: .78rem; color: var(--ink-2); }
.onward .fare a { font-weight: 800; font-size: .88rem; color: #fff; background: var(--jade); text-decoration: none; padding: 5px 10px; border-radius: var(--r); margin-top: 4px; }
.onward .fare a:hover { background: var(--jade-d); }
@media (min-width: 900px) { .onward-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; align-items: start; } }
/* route names that open their route page (English) */
.fares tbody th a, .onward a.to, .onward .back a { color: inherit; text-decoration-color: var(--jade); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.fares tbody th a:hover, .onward a.to:hover, .onward .back a:hover { color: var(--jade-d); }

/* (4) the three cars */
.fleet-pic img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r); margin-top: 16px; }
.garage { display: grid; background: #fff; border: 4px double var(--maroon); margin-top: 14px; }
.garage > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.garage > div:last-child { border-bottom: 0; }
.garage h3 { margin: 0; color: var(--maroon); }
.garage p { margin: 0; grid-column: 1; color: var(--ink-2); font-size: .88rem; }
.garage .from { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-size: .78rem; color: var(--ink-2); }
.garage .from b { display: block; font-size: 1.2rem; color: var(--ink); }
@media (min-width: 900px) { .garage { grid-template-columns: repeat(3, minmax(0, 1fr)); } .garage > div { border-bottom: 0; border-right: 1px solid var(--line); } .garage > div:last-child { border-right: 0; } }

/* (5) three steps, numbered like temple tablets */
.steps { list-style: none; counter-reset: s; display: grid; gap: 16px; padding: 0; margin: 18px 0 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start; }
.steps li::before { content: counter(s); font-size: 2.1rem; font-weight: 850; color: var(--brick); line-height: 1; text-align: center; padding-bottom: 6px; border-bottom: 4px double var(--brick); }
:lang(th) .steps li::before { content: counter(s, thai); }
.steps b { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.steps span { color: var(--ink-2); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }

/* (6) questions, all open */
.qa { display: grid; gap: 0 36px; margin: 14px 0 0; }
.qa > div { padding: 14px 0; border-top: 1px solid var(--line); }
.qa dt { font-weight: 800; color: var(--maroon); margin-bottom: 4px; }
.qa dd { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) { .qa { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* (7) closing band */
.last { background: var(--maroon); color: #fff; padding: 8px; border-radius: var(--r); }
.last-in { border: 4px double var(--gold); border-radius: 4px; padding: 26px 20px; display: grid; gap: 14px; }
.last h2 { color: #fff; margin: 0; }
.last h2::after { display: none; }
.last p { margin: 0; color: #f4e4dc; }
.last .acts { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .last-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 30px 34px; } }

/* footer */
.foot { background: var(--maroon-d); color: #f0e0d8; padding: 36px 0 100px; font-size: .92rem; border-top: 4px double var(--gold); }
.foot a { color: #fff; }
.foot-cols { display: grid; gap: 22px; }
.foot h3 { color: var(--gold); font-size: .92rem; margin-bottom: 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot .brand { margin-bottom: 10px; }
.smile { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(233,184,114,.35); display: grid; justify-items: center; gap: 8px; text-align: center; }
.smile p { margin: 0; }
.smile span { margin: 0 6px; color: #d9bfb3; }
.op { margin: 16px 0 0; font-size: .82rem; color: #e3cfc6; text-align: center; }
@media (min-width: 900px) { .foot-cols { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
@media (min-width: 1000px) { .foot { padding-bottom: 36px; } }

/* mobile thumb bar: Book · WhatsApp · LINE */
.thumb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 6px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 4px double var(--maroon); box-shadow: 0 -6px 18px rgba(74,17,28,.12); }
.thumb a { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: .92rem; text-decoration: none; border-radius: var(--r); padding: 10px 6px; line-height: 1.2; }
.thumb svg { width: 18px; height: 18px; flex: none; }
.thumb .t-book { background: var(--jade); color: #fff; }
.thumb .t-wa, .thumb .t-line { background: #fff; color: #0b6b3a; border: 1.5px solid #cfe3d6; }
@media (min-width: 1000px) { .thumb { display: none; } }

/* ── booking and contact pages ────────────────────────── */
.page-top { padding: 22px 0 6px; }
.page-top h1 { font-size: clamp(1.5rem, 4.4vw, 2.2rem); font-weight: 850; color: var(--maroon); }
.page-top p { color: var(--ink-2); max-width: 44rem; margin: 0; }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "stub" "form" "side"; gap: 16px; padding: 14px 0 50px; }
.bk-grid > form { grid-area: form; }
.bk-grid > .stub { grid-area: stub; }
.bk-grid > .side { grid-area: side; }
.bk-grid:not(:has(> .stub)) { grid-template-areas: "form" "side"; }
.sheet { background: #fff; border: 1px solid var(--line); border-top: 5px double var(--maroon); border-radius: var(--r); padding: 16px; min-width: 0; }
.sheet h2 { font-size: 1.05rem; margin: 18px 0 10px; }
.sheet h2:first-child { margin-top: 0; }
.sheet h2::after { display: none; }
.fields { display: grid; gap: 12px; }
.fields label, .lbl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; font-size: .86rem; font-weight: 700; min-width: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 519px) { .two.stack { grid-template-columns: minmax(0, 1fr); } }
.phone { display: flex; gap: 6px; min-width: 0; }
.phone select { flex: 0 0 112px; }
.phone input { flex: 1 1 auto; min-width: 0; }
.hint { font-size: .8rem; color: var(--ink-2); font-weight: 500; }
.bk-cars { margin-top: 10px; }
.stub { background: var(--maroon); color: #fff; border-radius: var(--r); padding: 6px; }
.stub-in { border: 4px double var(--gold); border-radius: 4px; padding: 14px 16px; display: grid; gap: 4px; }
.stub small { color: #f1d9c2; font-size: .8rem; }
.stub b { font-size: 1.05rem; }
.stub .amt { font-size: 1.7rem; font-weight: 900; color: var(--gold); line-height: 1.1; }
.side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.side .sheet p { margin: 0 0 8px; color: var(--ink-2); }
.side ol { margin: 0; padding-left: 20px; color: var(--ink-2); }
.side ol li + li { margin-top: 4px; }
.alert { border-radius: var(--r); padding: 12px 14px; }
.alert.good { background: #e6f4ee; border: 1px solid #9ccfb8; color: #0a3d2c; }
.alert.bad { background: #fbeceb; border: 1px solid #ecb3ad; color: #6b1a14; }
.cf-turnstile { min-height: 66px; }
.acts-col { display: grid; gap: 8px; }
@media (min-width: 1000px) {
  .bk-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-areas: "form stub" "form side"; grid-template-rows: auto 1fr; align-items: start; gap: 18px 22px; }
  .bk-grid:not(:has(> .stub)) { grid-template-areas: "form side"; grid-template-rows: auto; }
}
.lost { padding: 48px 0 60px; min-height: 52vh; }
.lost h1 { color: var(--maroon); font-size: clamp(1.6rem, 5vw, 2.4rem); }
.lost .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* iPhone gives date and time inputs an intrinsic width of their own, which can
   push a two-column row wider than the screen: let them fill and shrink. */
input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; min-height: 42px; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; }
:is(label, div, p):has(> input[type="date"]), :is(label, div, p):has(> input[type="time"]) { grid-template-columns: minmax(0, 1fr); min-width: 0; }
/* Turnstile is a fixed 300px box; on a 320px phone scale it with zoom (a
   transform would leave the 300px box in the layout). */
@media (max-width: 359px) { .cf-turnstile { zoom: .86; max-width: 100%; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
