/* Hua Hin Taxis — one destination, three doors out of Bangkok.
 *
 * The price list decides the page. Four pairs, and three of them start in
 * Bangkok: Suvarnabhumi, Don Mueang and the city centre. The sedan fare from
 * all three is the same number. That is the fact this site is built on — where
 * in Bangkok you begin makes no difference — and it is the opposite shape to
 * every other desk in the network, which fan outward. Hua Hin is a sink, not a
 * source, so the page funnels in.
 *
 * The fourth pair is the outlier and gets said as one: Pattaya, half as much
 * again, because it is the only run that does not come down from Bangkok.
 *
 * The visual language is the town's own. Hua Hin railway station — the royal
 * waiting room, red on cream — is the most photographed building here, so the
 * page is set on ticket manila with a stamp red, the fares in typewriter
 * figures, and each route on a stub.
 *
 * The grid rule this network has been bitten by: column widths are written
 * `.row > .col-md-6`, matching the base rule's specificity (0,2,0). Bare, they
 * are (0,1,0), the base rule's width:100% wins, and every grid on the site
 * collapses to one column at every width.
 *
 * This sheet also carries the eight-chapter guide, which was the last thing on
 * this network still loading Tabler from a CDN.
 */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --card:    #f2e9d5;   /* ticket manila: the ground */
  --card-2:  #fbf6ec;   /* raised */
  --card-3:  #e3d6ba;   /* sunken */
  --ink:     #241d16;
  --ink-2:   #5a4d3f;
  /* Measured: this carries the footer stamp line on the sunken ground, where
   * #7d6e5c reached only 3.4:1 at 13px. This clears 4.5 on both grounds. */
  --ink-3:   #5f5347;
  --rule:    #ccbb9c;
  --rule-2:  #a6906d;
  --stamp:   #a01b2e;   /* the accent: fares, the station red */
  --stamp-2: #6f0f1e;
  --on-dark: #f5efe0;

  --wide: 72rem;
  --read: 36rem;        /* running text stays near 65 characters */

  --display: 'Bitter', Georgia, serif;
  --body: 'Karla', -apple-system, 'Segoe UI', sans-serif;
  --fig: 'Courier Prime', 'Courier New', monospace;

  color-scheme: light;
}

/* Trirong is a Thai serif that sits at the same colour as Bitter, so the two
 * languages read as one design. It takes both roles on the Thai sheet. */
:lang(th) {
  --display: 'Trirong', 'Leelawadee UI', Tahoma, serif;
  --body: 'Trirong', 'Leelawadee UI', Tahoma, serif;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--card);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img, svg { max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }

a { color: var(--stamp-2); text-underline-offset: .16em; text-decoration-thickness: .06em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--display); margin: 0 0 .5rem; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; }
h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1rem; }
strong, b { font-weight: 700; }
small { font-size: .85rem; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

:lang(th) h1 { font-size: clamp(1.6rem, 3.8vw, 2.4rem); font-weight: 600; line-height: 1.45; letter-spacing: 0; }
:lang(th) h2 { font-size: clamp(1.25rem, 2.6vw, 1.8rem); font-weight: 600; line-height: 1.5; letter-spacing: 0; }
:lang(th) h3 { font-size: 1.05rem; font-weight: 600; }
:lang(th) body { line-height: 1.9; }

.platform { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }
.scroll-x, .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── masthead ─────────────────────────────────────────────────────────── */

.board { background: var(--stamp); color: var(--on-dark); position: sticky; top: 0; z-index: 50; }
.board .platform { display: flex; align-items: center; gap: .9rem; min-height: 3.4rem; flex-wrap: wrap; }
.boardname {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  color: var(--on-dark); text-decoration: none; margin-right: auto;
}
:lang(th) .boardname { font-size: .96rem; font-weight: 600; }
.boardname img { display: block; }
.times { display: flex; align-items: center; gap: .1rem .9rem; flex-wrap: wrap; }
.times a {
  color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .82rem;
  white-space: nowrap; padding: .25rem 0; border-bottom: 2px solid transparent;
}
.times a:hover { border-bottom-color: var(--on-dark); }
.times a.here { border-bottom-color: var(--on-dark); }
.tongues { display: inline-flex; gap: .45rem; padding-left: .3rem; }
.tongues a { padding: 0; border: 0; opacity: .5; }
.tongues a.here, .tongues a:hover { opacity: 1; }
.tongues img { display: block; border-radius: 1px; }

.punch {
  display: inline-block; white-space: nowrap;
  background: var(--on-dark); color: var(--stamp-2); text-decoration: none;
  font-weight: 700; font-size: .82rem; padding: .46rem 1rem; border-radius: 2px; border: 0;
}
.punch:hover { background: #fff; color: var(--ink); }
.punch-2 {
  display: inline-block; background: transparent; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: .84rem; padding: .44rem 1rem;
  border: 2px solid var(--ink); border-radius: 2px;
}
.punch-2:hover { background: var(--ink); color: var(--card-2); }

/* ── the opening ──────────────────────────────────────────────────────── */

.terminus { padding: 3rem 0 2rem; }
.terminus h1 { max-width: 18ch; }
:lang(th) .terminus h1 { max-width: 26ch; }
.terminus h1 em { font-style: normal; color: var(--stamp); }
.lede { max-width: var(--read); font-size: 1.13rem; color: var(--ink-2); }
.lede b { color: var(--ink); }

.plainly {
  max-width: var(--read); margin: 1.5rem 0 0;
  border-left: 4px solid var(--stamp); padding: .1rem 0 .1rem 1rem; color: var(--ink-2);
}
.plainly p { margin: 0; }
.plainly p + p { margin-top: .55rem; }

/* ── the stubs ────────────────────────────────────────────────────────── */

/* Each route is a ticket. The three Bangkok doors carry the same sedan figure,
 * which is the whole point of the page, so they sit together and the Pattaya
 * stub is set apart. Vehicle capacities ride on the fare columns rather than
 * living in a table of their own — every site in this network has to carry
 * them and no two may carry them in the same shape. */
.stubs { margin: 1.6rem 0 0; display: grid; gap: .9rem; max-width: 54rem; }
.stub {
  display: grid; grid-template-columns: 1fr auto;
  gap: .4rem 1.5rem; align-items: start;
  background: var(--card-2);
  border: 1px solid var(--rule-2); border-radius: 3px;
  padding: .9rem 1.1rem;
  /* the perforated edge of a ticket stub */
  border-left: 3px dashed var(--stamp);
}
.stub-where { font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.2; }
:lang(th) .stub-where { font-size: 1.02rem; font-weight: 600; }
.stub-when { grid-column: 1; font-size: .9rem; color: var(--ink-2); }
.stub-fares {
  grid-column: 2; grid-row: 1 / span 2;
  display: flex; gap: 1.1rem; align-items: baseline; flex-wrap: wrap;
}
.stub-fares div { text-align: right; }
.stub-fares dt {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: .1rem;
}
:lang(th) .stub-fares dt { letter-spacing: 0; text-transform: none; font-size: .78rem; }
.stub-fares dd { margin: 0; }
.fig {
  font-family: var(--fig); font-weight: 700; font-size: 1.15rem;
  color: var(--stamp-2); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.fig:empty::before { content: "—"; opacity: .45; }
.stub-fares .big .fig { font-size: 1.55rem; color: var(--ink); }

.stub-note { grid-column: 1 / -1; margin: .3rem 0 0; font-size: .9rem; color: var(--ink-2); }

.sameprice {
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  margin: 1.4rem 0 0; padding: .8rem 1rem;
  background: var(--stamp); color: var(--on-dark); border-radius: 3px; max-width: 54rem;
}
.sameprice b { font-family: var(--fig); font-size: 1.25rem; }
:lang(th) .sameprice b { font-family: var(--body); font-weight: 600; }
.sameprice span { font-size: .95rem; opacity: .92; }
/* .fig paints itself in the deep stamp tone, which is the right colour on
 * manila and nearly invisible on the stamp-red band. This is the number the
 * whole page is about, so it is the one thing here that has to be loud. */
.sameprice .fig { color: #fff; font-size: 2.2rem; line-height: 1; }
:lang(th) .sameprice .fig { font-size: 1.7rem; }

/* ── a stretch of the page ────────────────────────────────────────────── */

.leg { padding: 2.6rem 0; border-top: 2px solid var(--ink); }
.leg > .platform > p { max-width: var(--read); color: var(--ink-2); }
.leg h2 + p { margin-top: .7rem; }

.aside {
  max-width: var(--read); margin: 1.4rem 0 0; padding-top: .8rem;
  border-top: 1px solid var(--rule); font-size: .95rem; color: var(--ink-2);
}

/* ── the train ────────────────────────────────────────────────────────── */

.rails { background: var(--card-3); }
.timetable { margin: 1.4rem 0 0; border-collapse: collapse; width: 100%; max-width: 50rem; }
.timetable caption {
  text-align: left; font-size: .82rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-2); padding-bottom: .5rem;
}
:lang(th) .timetable caption { letter-spacing: 0; text-transform: none; }
.timetable th, .timetable td {
  text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--rule-2); vertical-align: top;
}
.timetable thead th {
  background: var(--ink); color: var(--on-dark);
  font-family: var(--display); font-size: .82rem; font-weight: 700; border-bottom: 0;
}
.timetable tbody th { font-family: var(--display); font-weight: 700; width: 9rem; }
.timetable td.win { color: var(--stamp-2); font-weight: 700; }

/* ── around town ──────────────────────────────────────────────────────── */

.spots { margin: 1.3rem 0 0; padding: 0; list-style: none; max-width: 54rem; }
.spots li {
  display: grid; grid-template-columns: minmax(10rem, 20rem) 7rem 1fr;
  gap: .1rem .9rem; align-items: baseline;
  padding: .65rem 0; border-top: 1px solid var(--rule);
}
.spots li:first-child { border-top: 2px solid var(--ink); }
.spots b { font-weight: 700; }
.spots .t { font-family: var(--fig); font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.spots .w { font-size: .92rem; color: var(--ink-2); }
.spots .note { grid-column: 1 / -1; font-size: .88rem; color: var(--ink-2); margin-top: .15rem; max-width: 42rem; }

/* ── what carries no price ────────────────────────────────────────────── */

.offlist { margin: 1.3rem 0 0; padding: 0; list-style: none; max-width: 50rem; }
.offlist li { padding: .8rem 0; border-top: 1px solid var(--rule); }
.offlist b { display: block; font-family: var(--display); font-size: 1.08rem; font-weight: 700; }
:lang(th) .offlist b { font-size: 1rem; font-weight: 600; }
.offlist span { color: var(--ink-2); font-size: .95rem; }

.addons { max-width: 46rem; margin: 1.3rem 0 0; color: var(--ink-2); }
.addons p:last-child { margin-bottom: 0; }
.addons b { color: var(--ink); }
.coin { font-family: var(--fig); font-weight: 700; color: var(--stamp-2); white-space: nowrap; }
:lang(th) .coin { font-family: var(--fig); }

/* ── footer ───────────────────────────────────────────────────────────── */

/* A stub of its own, and then the imprint under it: a fifth distinct footer
 * shape in this network after three columns, one run of links, and a list
 * between two paragraphs. */
.endplate { background: var(--card-3); border-top: 2px solid var(--ink); padding: 2.2rem 0 1.8rem; margin-top: 2.4rem; }
.endstub {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: baseline;
  background: var(--card-2); border: 1px solid var(--rule-2);
  border-left: 3px dashed var(--stamp); border-radius: 3px;
  padding: .9rem 1.1rem; margin-bottom: 1.3rem; max-width: 54rem;
  font-size: .92rem; font-weight: 600;
}
.endstub .mark {
  font-family: var(--display); font-weight: 800; font-size: 1rem;
  color: var(--stamp-2); margin-right: .4rem;
}
:lang(th) .endstub .mark { font-weight: 600; }
.imprint { max-width: 46rem; font-size: .93rem; color: var(--ink-2); }
.imprint b { color: var(--ink); }
.stamp-line { font-family: var(--fig); font-size: .8rem; color: var(--ink-3); margin: 1rem 0 0; }

/* ══ inherited application surface ════════════════════════════════════════
 * The booking form, the contact page and the eight-chapter guide arrived on
 * Tabler loaded from a CDN. The markup works and the back office posts to it,
 * so what follows re-skins that markup in this site's palette and removes the
 * CDN as a single point of failure.
 */

.page, .container-xl { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }
.row { display: flex; flex-wrap: wrap; margin-inline: -.5rem; }
.row > [class*="col-"] { padding-inline: .5rem; width: 100%; min-width: 0; }
.g-2 { row-gap: .5rem; } .g-3 { row-gap: 1rem; } .g-4 { row-gap: 1.5rem; }
.row > .col-6 { width: 50%; } .row > .col-12 { width: 100%; }
@media (min-width: 768px) {
  .row > .col-md-3 { width: 25%; } .row > .col-md-4 { width: 33.3333%; }
  .row > .col-md-6 { width: 50%; } .row > .col-md-8 { width: 66.6667%; }
  .text-md-start { text-align: left; } .text-md-end { text-align: right; }
  .mb-md-0 { margin-bottom: 0; } .d-md-block { display: block; }
  .d-md-inline { display: inline; } .d-md-none { display: none; }
  .justify-content-md-start { justify-content: flex-start; }
}
@media (min-width: 992px) {
  .row > .col-lg-3 { width: 25%; } .row > .col-lg-4 { width: 33.3333%; }
  .row > .col-lg-6 { width: 50%; } .row > .col-lg-8 { width: 66.6667%; }
  .row > .col-lg-10 { width: 83.3333%; }
}

.d-none { display: none; } .d-block { display: block; } .d-flex { display: flex; }
@media (min-width: 576px) { .d-sm-inline { display: inline; } }
@media print { .d-print-none { display: none; } }
.flex-wrap { flex-wrap: wrap; } .flex-fill { flex: 1 1 auto; } .flex-row { flex-direction: row; }
.align-items-center { align-items: center; } .align-items-start { align-items: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: 1rem; }
.w-100 { width: 100%; } .h-100 { height: 100%; }
.ms-auto { margin-left: auto; } .mx-auto { margin-inline: auto; } .mx-2 { margin-inline: .5rem; }
.text-center { text-align: center; } .text-start { text-align: left; } .text-end { text-align: right; }
.fw-bold { font-weight: 700; } .fw-medium { font-weight: 600; } .fw-normal { font-weight: 400; }
.fs-5 { font-size: 1.1rem; } .small { font-size: .875rem; }
.text-muted { color: var(--ink-2); }
.text-dark { color: var(--ink); }
.text-white { color: var(--on-dark); }
.text-danger { color: #96170f; }
.text-success { color: #1a5c3a; }
.text-warning { color: var(--stamp-2); }
.text-decoration-none { text-decoration: none; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 2.5rem; } .my-3 { margin-block: 1rem; }
.me-1 { margin-right: .25rem; } .me-2 { margin-right: .5rem; } .me-3 { margin-right: 1rem; }
.ms-2 { margin-left: .5rem; }
.p-2 { padding: .5rem; } .p-3 { padding: 1rem; } .p-4 { padding: 1.5rem; } .px-3 { padding-inline: 1rem; }
.py-1 { padding-block: .25rem; } .py-2 { padding-block: .5rem; } .py-3 { padding-block: 1rem; }
.py-4 { padding-block: 1.5rem; } .py-5 { padding-block: 2.5rem; }
.rounded { border-radius: 3px; } .rounded-circle { border-radius: 50%; }
.border-0 { border: 0; }
.shadow, .shadow-sm { box-shadow: none; }
.h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 700; }
.h5 { font-family: var(--display); font-size: 1.12rem; font-weight: 700; }
.h6 { font-size: .95rem; font-weight: 700; }
.display-1 { font-family: var(--fig); font-size: clamp(3.4rem, 12vw, 7rem); font-weight: 700; color: var(--stamp-2); line-height: 1; }

.card { background: var(--card-2); border: 1px solid var(--rule); border-radius: 3px; margin-bottom: 1.5rem; }
.card-header { background: var(--ink); color: var(--on-dark); padding: .8rem 1.1rem; border-radius: 2px 2px 0 0; }
.card-header .card-title, .card-header h2, .card-header h3 { color: var(--on-dark); margin: 0; }
.card-body { padding: 1.2rem; }
.card-title { font-family: var(--display); font-weight: 700; }

.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: .88rem; padding: .52rem 1.1rem;
  border-radius: 2px; border: 2px solid transparent;
  background: var(--stamp); color: #fff; line-height: 1.4;
}
.btn:hover { background: var(--stamp-2); color: #fff; }
.btn-lg { padding: .68rem 1.4rem; font-size: .98rem; }
.btn-sm { padding: .32rem .8rem; font-size: .8rem; }
.btn-dark, .btn-success, .btn-taxi { background: var(--stamp); color: #fff; }
.btn-dark:hover, .btn-success:hover, .btn-taxi:hover { background: var(--stamp-2); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--card-2); }
/* Every band behind a button on this site is light, so a light outline would
 * render near-invisible; this alias resolves to the dark outline. */
.btn-outline-light { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-light:hover { background: var(--ink); color: var(--card-2); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }

.form-label { display: block; margin-bottom: .3rem; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.form-control, .form-select {
  width: 100%; padding: .55rem .7rem; background: #fff; color: var(--ink);
  border: 1px solid var(--rule-2); border-radius: 2px;
  font-family: var(--body); font-size: 1rem; line-height: 1.5;
}
textarea.form-control { min-height: 7rem; }
.form-control:focus, .form-select:focus { outline: 3px solid var(--stamp); outline-offset: 0; border-color: var(--stamp); }
.form-control::placeholder { color: var(--ink-3); }
.input-group { display: flex; }
.input-group .form-control { border-radius: 2px 0 0 2px; }
.input-group .btn { border-radius: 0 2px 2px 0; }

.alert { padding: .85rem 1rem; border-radius: 2px; border-left: 4px solid; margin-bottom: 1rem; }
.alert-success { background: #dfeadf; border-color: #1a5c3a; color: #143f29; }
.alert-danger { background: #f3dedb; border-color: #96170f; color: #64100b; }

.spinner-border {
  display: inline-block; width: 1.1rem; height: 1.1rem; vertical-align: -.15em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .8s linear infinite;
}
.spinner-border-sm { width: .85rem; height: .85rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner-border { animation-duration: 2.4s; }
  * { scroll-behavior: auto !important; }
}

table { border-collapse: collapse; }
.table { width: 100%; }
.table th, .table td { padding: .55rem .7rem; border-bottom: 1px solid var(--rule); text-align: left; }
.table-sm th, .table-sm td { padding: .38rem .55rem; font-size: .93rem; }
.table-striped tbody tr:nth-child(odd) { background: var(--card-2); }
.table-hover tbody tr:hover { background: var(--card-3); }

/* booking flow */
.step-indicator { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-bottom: 1.5rem; }
.step-number {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 2px;
  background: var(--card-3); color: var(--ink-2); font-family: var(--fig); font-weight: 700; font-size: .95rem;
}
.step-number.active { background: var(--stamp); color: #fff; }
/* No colour here: the label inherits from its step, which is grey when the
 * step is inactive and white on the stamp-red when it is current. Setting
 * it meant the active label stayed dark on red at 1.05:1. */
.step-label { font-size: .8rem; font-weight: 600; }
.step-line { flex: 0 0 2rem; height: 2px; background: var(--rule-2); }

.route-grid-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 1rem; margin-bottom: .5rem; cursor: pointer;
  background: var(--card-2); border: 1px solid var(--rule);
  border-left: 3px dashed var(--rule-2); border-radius: 2px;
}
.route-grid-card:hover { border-left-color: var(--stamp); }
.route-grid-card.selected { border-left-color: var(--stamp); box-shadow: inset 0 0 0 1px var(--stamp); background: #fff; }
.route-from-to { font-weight: 700; }
.route-price { font-family: var(--fig); font-weight: 700; font-size: 1.15rem; color: var(--stamp-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

.car-type-btn {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: .7rem .9rem; margin-bottom: .5rem;
  background: var(--card-2); border: 1px solid var(--rule); border-radius: 2px;
  font-family: var(--body); color: var(--ink);
}
.car-type-btn:hover { border-color: var(--stamp); }
.car-type-btn.selected { border-color: var(--stamp); box-shadow: inset 0 0 0 1px var(--stamp); background: #fff; }
.car-name { font-weight: 700; }
.car-price, .car-price-grid, .car-price-item { font-family: var(--fig); font-weight: 700; color: var(--stamp-2); }
.car-price-grid { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.booking-summary { background: var(--card-3); border-radius: 2px; padding: 1rem; }

.hero-section { padding: 2.4rem 0 1.4rem; }
.hero-title { font-family: var(--display); font-weight: 800; line-height: 1.12; font-size: clamp(1.8rem, 4.4vw, 2.8rem); letter-spacing: -.02em; }
:lang(th) .hero-title { font-size: clamp(1.45rem, 3.2vw, 2rem); font-weight: 600; line-height: 1.5; letter-spacing: 0; }
.hero-subtitle { max-width: var(--read); font-size: 1.06rem; color: var(--ink-2); }
.cta-section { padding: 2.2rem 0; background: var(--card-3); border-top: 2px solid var(--ink); }
.feature-card { padding: 1rem 0; border-top: 1px solid var(--rule); height: 100%; }
.feature-icon { color: var(--stamp); font-size: 1.2rem; }
.feature-title { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-bottom: .2rem; }

/* contact page Q&A — native details/summary where the markup allows it, and
 * the Bootstrap accordion classes below for the pages that still use them. */
.qa-list { max-width: 52rem; }
.qa { border-top: 1px solid var(--rule); }
.qa summary {
  cursor: pointer; padding: .9rem 0; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { margin: 0; font-size: 1.05rem; }
.qa summary::after { content: "+"; font-family: var(--fig); font-weight: 700; font-size: 1.4rem; color: var(--stamp); line-height: 1; }
.qa[open] summary::after { content: "\2013"; }
.qa-body { padding: 0 0 1rem; color: var(--ink-2); max-width: var(--read); }

.accordion { max-width: 52rem; }
.accordion-item { border-top: 1px solid var(--rule); }
.accordion-header { margin: 0; }
.accordion-button {
  width: 100%; text-align: left; cursor: pointer; background: transparent; border: 0;
  padding: .9rem 0; font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.accordion-button::after { content: "\2013"; font-family: var(--fig); color: var(--stamp); font-size: 1.3rem; }
.accordion-button.collapsed::after { content: "+"; }
.accordion-collapse { display: block; }
.accordion-collapse.collapse:not(.show) { display: none; }
.accordion-body { padding: 0 0 1rem; color: var(--ink-2); max-width: var(--read); }

.nf-link { display: block; padding: .6rem .8rem; background: var(--card-2); border: 1px solid var(--rule); border-radius: 2px; text-decoration: none; color: var(--ink); }
.nf-link:hover { border-color: var(--stamp); }

.cf-turnstile { margin-bottom: 1rem; min-height: 65px; }

/* ══ the guide ══════════════════════════════════════════════════════════ */

.navbar { background: var(--stamp); color: var(--on-dark); }
.navbar .platform, .navbar .container-xl { display: flex; align-items: center; gap: .9rem; min-height: 3.4rem; flex-wrap: wrap; }
.navbar-brand { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.navbar-nav { display: flex; align-items: center; gap: .1rem .9rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.navbar-nav a, .navbar a { color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .82rem; }
.navbar-nav a:hover, .navbar a:hover { text-decoration: underline; }
/* `.navbar a` is (0,1,1) and `.punch` is (0,1,0), so inside the guide's
 * masthead the button took the light nav colour on its own light ground —
 * measured at 1:1. This puts the button's own colour back. */
.navbar a.punch { color: var(--stamp-2); }
.navbar a.punch:hover { color: var(--ink); }
.navbar-expand-md { flex-wrap: wrap; }
.lang-flag { display: inline-block; vertical-align: middle; }
.nav-current { border-bottom: 2px solid var(--on-dark); }

.guide-hero { padding: 2.4rem 0 1.2rem; }
.guide-hero h1 { max-width: 22ch; }
.eyebrow {
  font-family: var(--fig); font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--stamp-2); margin-bottom: .5rem;
}
.guide-hero-fig { margin: 1.4rem 0 0; }
.guide-hero-fig img { width: 100%; border-radius: 3px; border: 1px solid var(--rule-2); }
.guide-updated { font-family: var(--fig); font-size: .8rem; color: var(--ink-3); }

.quick-answer {
  max-width: 44rem; margin: 1.4rem 0 0; padding: 1rem 1.15rem;
  background: var(--card-2); border: 1px solid var(--rule-2);
  border-left: 4px solid var(--stamp); border-radius: 3px;
}
.qa-label {
  display: block; font-family: var(--fig); font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--stamp-2); margin-bottom: .35rem;
}
.quick-answer p:last-child { margin-bottom: 0; }

.guide-body { max-width: 42rem; padding: 1.6rem 0 0; }
.guide-body h2 { margin-top: 2.2rem; }
.guide-body h3 { margin-top: 1.5rem; }
.guide-body ul, .guide-body ol { padding-left: 1.2rem; }
.guide-body li { margin-bottom: .4rem; }

.guide-fig { margin: 1.6rem 0; }
.guide-fig img { width: 100%; border-radius: 3px; border: 1px solid var(--rule-2); }
.guide-fig figcaption, .img-note {
  font-size: .86rem; color: var(--ink-2); margin-top: .5rem;
  padding-top: .4rem; border-top: 1px solid var(--rule);
}

.guide-callout {
  margin: 1.5rem 0; padding: .9rem 1.1rem; border-radius: 3px;
  background: var(--card-2); border: 1px solid var(--rule-2); border-left: 4px solid var(--ink-3);
}
.guide-callout p:last-child { margin-bottom: 0; }
.guide-callout-note { border-left-color: var(--stamp); }
.guide-callout-warning { border-left-color: #96170f; background: #f6e7e3; }

.guide-table { margin: 1.5rem 0; width: 100%; max-width: 46rem; }
.guide-table th, .guide-table td { padding: .5rem .7rem; border-bottom: 1px solid var(--rule); text-align: left; font-size: .95rem; }
.guide-table thead th { background: var(--ink); color: var(--on-dark); font-family: var(--display); font-size: .85rem; }

.guide-faq { max-width: 44rem; margin: 2rem 0 0; }
.faq-item { border-top: 1px solid var(--rule); padding: .9rem 0; }
.faq-item h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.faq-item p:last-child { margin-bottom: 0; }

.guide-nav {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  margin: 2.2rem 0 0; padding-top: 1.2rem; border-top: 2px solid var(--ink);
  max-width: 44rem; font-weight: 600;
}
.chapter-card {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: .2rem .9rem; align-items: baseline;
  padding: .9rem 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink);
}
.chapter-card:hover { color: var(--stamp-2); }
.chapter-card .num { font-family: var(--fig); font-weight: 700; color: var(--stamp-2); }
.chapter-card h3 { grid-column: 2; margin: 0 0 .15rem; font-size: 1.05rem; }
.chapter-card p { grid-column: 2; margin: 0; font-size: .93rem; color: var(--ink-2); }

.site-footer { background: var(--card-3); border-top: 2px solid var(--ink); padding: 2rem 0 1.6rem; margin-top: 2.4rem; font-size: .93rem; color: var(--ink-2); }
.site-footer a { color: var(--stamp-2); }
.dir { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }

/* ── narrow ───────────────────────────────────────────────────────────── */

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .board { position: static; }
  .board .platform { padding-block: .55rem; gap: .5rem; }
  .boardname { margin-right: 0; width: 100%; }
  .times { gap: .1rem .75rem; }
  .times a { font-size: .76rem; }
  .terminus { padding: 2rem 0 1.6rem; }
  .leg { padding: 2rem 0; }
  .stub { grid-template-columns: 1fr; }
  .stub-fares { grid-column: 1; grid-row: auto; margin-top: .4rem; gap: 1.4rem; }
  .stub-fares div { text-align: left; }
  .spots li { grid-template-columns: 1fr auto; }
  .spots .w { grid-column: 1 / -1; }
  .chapter-card { grid-template-columns: 2.2rem 1fr; }
}
