/* ===== THE PUBLIC INFORMATION PAGES — styling (§30/§31/§32/§33) ==============================

   Built on the Legal Centre's variables and rhythm (`legal.css`) rather than a second design: the
   same ink, the same lines, the same radius, the same measure. About, Contact, Help and Manage
   Booking should read as the same site as the Terms page, because they are.

   §31 — every directional property here is LOGICAL (`margin-inline`, `padding-inline`,
   `border-inline-start`, `inset-inline`, `text-align: start`). One layout, correct in both
   directions. Phone numbers, references and e-mail addresses are `<bdi>`-isolated in the markup so
   an Arabic line cannot reorder them.

   §32 — nothing has a fixed width. Every grid collapses to one column below its breakpoint, and the
   only element that could exceed 390px (a long booking reference, a ticket number) wraps or scrolls
   inside its own box rather than pushing the page sideways.                                        */

/* ---------------------------------------------------------------- shared ---- */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* The closing call-to-action shared by About and the Help Centre. */
.sv-cta {
  margin-block-start: 2rem;
  background: var(--lg-bg);
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  padding: 1.8rem 1.6rem;
  text-align: center;
}
.sv-cta h2 { margin: 0 0 .5rem; font-size: 1.25rem; font-weight: 800; color: var(--lg-ink); }
.sv-cta p { margin: 0 0 1.2rem; color: var(--lg-ink-2); line-height: 1.8; }

.ab-cta { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.lg-head .ab-cta { justify-content: flex-start; margin-block: 1.1rem .4rem; }
.ab-cta .btn { min-height: 46px; }

/* ------------------------------------------------------------- §3 — about ---- */

.ab-doc { max-width: 78ch; }

.sv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0 1.6rem;
}
.sv-card {
  background: var(--lg-soft);
  border: 1px solid var(--lg-line);
  border-radius: 12px;
  padding: 1.2rem 1.1rem;
}
.sv-card h3 { margin: 0 0 .5rem; font-size: 1.02rem; font-weight: 800; color: var(--lg-accent); }
.sv-card p { margin: 0; font-size: .94rem; line-height: 1.85; color: #1e293b; }

.ab-identity { margin-block: 1.1rem .6rem; }
.ab-identity__more { margin: 0 0 1rem; font-size: .9rem; }
.ab-identity__more a { color: var(--lg-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------------------------------------- §5 — contact ---- */

.ct-cols { display: grid; gap: 1.4rem; align-items: start; }
.ct-cols > * { min-width: 0; }
@media (min-width: 900px) {
  .ct-cols { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
  .ct-side { position: sticky; top: 1rem; }
}

.ct-side, .ct-main {
  background: var(--lg-bg);
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  padding: 1.5rem 1.4rem 1.7rem;
}

.ct-cards { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .8rem; }
.ct-card {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: .85rem .9rem;
  background: var(--lg-soft);
  border: 1px solid var(--lg-line);
  border-radius: 12px;
}
.ct-card__ic {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #fff; border: 1px solid var(--lg-line);
  color: var(--lg-accent);
}
.ct-card__ic svg { width: 18px; height: 18px; }
.ct-card h3 { margin: 0 0 .2rem; font-size: .82rem; font-weight: 700; color: var(--lg-ink-2); text-transform: none; }
.ct-card p { margin: 0; font-size: .96rem; font-weight: 700; color: var(--lg-ink); line-height: 1.7; word-break: break-word; }
.ct-card p a { color: var(--lg-ink); text-decoration: none; }
.ct-card p a:hover { color: var(--lg-accent); text-decoration: underline; }
.ct-card small { display: block; margin-block-start: .2rem; font-size: .8rem; color: var(--lg-ink-2); }

.ct-side__links { border-block-start: 1px solid var(--lg-line); padding-block-start: 1rem; }
.ct-side__links p { margin: 0 0 .5rem; font-size: .89rem; color: var(--lg-ink-2); line-height: 1.7; }
.ct-side__links a { color: var(--lg-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---- the form ---- */

.ct-form { display: grid; gap: 1rem; }
@media (min-width: 640px) { .ct-form { grid-template-columns: 1fr 1fr; } }
.ct-field { display: flex; flex-direction: column; min-width: 0; }
.ct-field--wide { grid-column: 1 / -1; }
.ct-form .ct-actions { grid-column: 1 / -1; }

.ct-field label {
  font-size: .88rem; font-weight: 700; color: var(--lg-ink);
  margin-block-end: .4rem;
}
.ct-req { font-weight: 600; color: var(--lg-ink-2); font-size: .8rem; }

.ct-field input,
.ct-field select,
.ct-field textarea {
  font: inherit; font-size: .95rem;
  color: var(--lg-ink);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: .7rem .8rem;
  min-height: 46px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ct-field textarea { min-height: 130px; resize: vertical; line-height: 1.8; }
.ct-field input:focus-visible,
.ct-field select:focus-visible,
.ct-field textarea:focus-visible {
  outline: none;
  border-color: var(--lg-accent);
  box-shadow: 0 0 0 3px rgba(11, 92, 171, .18);
}
.ct-field [aria-invalid="true"] { border-color: #dc2626; }
.ct-field [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgba(220, 38, 38, .18); }
.ct-field small { margin-block-start: .35rem; font-size: .8rem; color: var(--lg-ink-2); line-height: 1.6; }

.ct-err {
  margin: .35rem 0 0;
  font-size: .82rem; font-weight: 700; color: #dc2626;
  min-height: 0;
}
.ct-err:empty { display: none; }
.ct-formerr { margin: 0; font-size: .88rem; font-weight: 700; color: #dc2626; }
.ct-formerr:empty { display: none; }

.ct-note { grid-column: 1 / -1; margin: 0; font-size: .84rem; color: var(--lg-ink-2); line-height: 1.75; }
.ct-note a { color: var(--lg-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; }
.ct-actions .btn { min-height: 48px; padding-inline: 1.6rem; }

/* The honeypot: out of the layout, out of the tab order, out of a screen reader's path. */
.ct-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ct-ok { text-align: center; padding: 1.5rem .5rem .5rem; }
.ct-ok:focus-visible { outline: 2px solid var(--lg-accent); outline-offset: 6px; border-radius: 12px; }
.ct-ok__ic {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  display: grid; place-items: center;
  border-radius: 50%; background: #dcfce7; color: #16a34a;
}
.ct-ok__ic svg { width: 26px; height: 26px; }
.ct-ok h3 { margin: 0 0 .6rem; font-size: 1.15rem; font-weight: 800; color: var(--lg-ink); }
.ct-ok p { margin: 0 0 .5rem; color: var(--lg-ink-2); line-height: 1.8; }
.ct-ok__ref { font-size: 1rem; }
.ct-ok__ref b { color: var(--lg-ink); letter-spacing: .04em; }
.ct-ok .btn { margin-block-start: 1rem; }

/* -------------------------------------------------------------- §17 — help ---- */

.hc-search { position: relative; margin: 1.1rem 0 .4rem; max-width: 520px; }
.hc-search input {
  font: inherit; font-size: 1rem;
  width: 100%; min-height: 50px;
  padding-block: .75rem;
  padding-inline: 2.9rem .9rem;
  border: 1px solid #cbd5e1; border-radius: 12px;
  background: #fff; color: var(--lg-ink);
}
.hc-search input:focus-visible {
  outline: none; border-color: var(--lg-accent);
  box-shadow: 0 0 0 3px rgba(11, 92, 171, .18);
}
.hc-search__ic {
  position: absolute; inset-inline-start: .9rem; top: 50%; transform: translateY(-50%);
  color: #94a3b8; pointer-events: none; display: grid; place-items: center;
}
.hc-search__ic svg { width: 18px; height: 18px; }
.hc-count { margin: .5rem 0 0; font-size: .85rem; color: var(--lg-ink-2); font-weight: 700; }
.hc-count:empty { display: none; }

.hc-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-end: 1.4rem; }
.hc-nav a {
  display: inline-block;
  padding: .45rem 1rem;
  border: 1px solid var(--lg-line); background: var(--lg-bg);
  border-radius: 999px;
  font-size: .87rem; font-weight: 700; color: var(--lg-ink);
  text-decoration: none;
}
.hc-nav a:hover { border-color: var(--lg-accent); color: var(--lg-accent); }

.hc-cat {
  background: var(--lg-bg);
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  padding: 1.4rem 1.4rem .6rem;
  margin-block-end: 1.2rem;
}
.hc-cat .lg-h2 { margin-block: 0 1rem; }
.hc-cat .lg-h2__n { color: var(--lg-accent); }
.hc-cat .lg-h2__n svg { width: 17px; height: 17px; }

.hc-a { border-block-end: 1px solid var(--lg-line); }
.hc-a:last-of-type { border-block-end: 0; }
.hc-a > summary {
  cursor: pointer;
  list-style: none;
  padding: .95rem 0;
  display: flex; align-items: center; gap: .7rem;
}
.hc-a > summary::-webkit-details-marker { display: none; }
.hc-a > summary::after {
  content: "";
  margin-inline-start: auto;
  flex: 0 0 auto;
  width: 9px; height: 9px;
  border-inline-end: 2px solid #94a3b8; border-block-end: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.hc-a[open] > summary::after { transform: rotate(-135deg); }
.hc-a > summary:focus-visible { outline: 2px solid var(--lg-accent); outline-offset: 3px; border-radius: 8px; }
.hc-a summary h3 { margin: 0; font-size: .99rem; font-weight: 700; color: var(--lg-ink); line-height: 1.6; }
.hc-a__body { padding-block-end: 1rem; }
.hc-a__body p { margin: 0 0 .7rem; font-size: .95rem; line-height: 1.9; color: #1e293b; }

.hc-src { margin: 0 0 .8rem !important; font-size: .84rem !important; }
.hc-src a { color: var(--lg-ink-2); text-decoration: underline; text-underline-offset: 3px; }
.hc-src a:hover { color: var(--lg-accent); }

.hc-esc {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  padding: .8rem .9rem;
  background: var(--lg-soft);
  border: 1px solid var(--lg-line);
  border-radius: 10px;
}
.hc-esc > span { font-size: .87rem; font-weight: 700; color: var(--lg-ink-2); }
.hc-esc__btn {
  display: inline-block;
  padding: .4rem .9rem;
  background: #fff; border: 1px solid var(--lg-line); border-radius: 999px;
  font-size: .85rem; font-weight: 700; color: var(--lg-accent);
  text-decoration: none;
}
.hc-esc__btn:hover { border-color: var(--lg-accent); }

.hc-none {
  background: var(--lg-bg); border: 1px dashed var(--lg-line); border-radius: var(--lg-radius);
  padding: 2rem 1.4rem; text-align: center; color: var(--lg-ink-2); line-height: 1.8; margin: 0;
}

/* --------------------------------------------------- §11 — manage booking ---- */

.mb-wrap { display: block; }

.mb-lookup, .mb-card {
  background: var(--lg-bg);
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  padding: 1.6rem 1.5rem 1.8rem;
  max-width: 720px;
}
.mb-lookup .lg-h2 { margin-block: 0 1.2rem; }
.mb-lookup .lg-h2__n svg { width: 17px; height: 17px; color: var(--lg-accent); }
.mb-form { grid-template-columns: 1fr; }
@media (min-width: 640px) { .mb-form { grid-template-columns: 1fr; } }

.mb-alt { border-block-start: 1px solid var(--lg-line); margin-block-start: 1.4rem; padding-block-start: 1.1rem; }
.mb-alt p { margin: 0 0 .45rem; font-size: .89rem; color: var(--lg-ink-2); line-height: 1.7; }
.mb-alt a { color: var(--lg-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.mb-result:focus-visible { outline: none; }

.mb-sum { display: grid; gap: .9rem 2rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0 0 1.4rem; }
.mb-sum > div { min-width: 0; }
.mb-sum dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--lg-ink-2); margin: 0 0 .25rem; }
.mb-sum dd { margin: 0; font-weight: 800; color: var(--lg-ink); font-size: .98rem; word-break: break-word; }
.mb-ref { letter-spacing: .05em; }

.mb-pill {
  display: inline-block;
  padding: .28rem .8rem;
  border-radius: 999px;
  font-size: .82rem; font-weight: 800;
  background: #f1f5f9; color: #475569; border: 1px solid var(--lg-line);
}
.mb-pill.is-ok { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.mb-pill.is-wait { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.mb-pill.is-warn { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.mb-pill.is-off { background: #f1f5f9; color: #64748b; border-color: var(--lg-line); }

.mb-block { border-block-start: 1px solid var(--lg-line); padding-block: 1.2rem; }
.mb-block h3 { margin: 0 0 .8rem; font-size: .88rem; font-weight: 800; color: var(--lg-ink-2); text-transform: uppercase; letter-spacing: .04em; }

.mb-legs { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.mb-leg { background: var(--lg-soft); border: 1px solid var(--lg-line); border-radius: 10px; padding: .85rem .9rem; }
.mb-leg__route { font-weight: 800; font-size: 1rem; color: var(--lg-ink); line-height: 1.6; }
.mb-leg__meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-block-start: .4rem; font-size: .85rem; color: var(--lg-ink-2); }

.mb-pax { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.mb-pax li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; font-size: .95rem; color: var(--lg-ink); }
.mb-pax small { font-size: .8rem; color: var(--lg-ink-2); }

.mb-codes { margin: 0; font-weight: 800; color: var(--lg-ink); letter-spacing: .03em; word-break: break-word; }

.mb-acts { display: flex; flex-wrap: wrap; gap: .6rem; }
.mb-act {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.1rem; min-height: 44px;
  background: #fff; border: 1px solid var(--lg-line); border-radius: 10px;
  font-size: .9rem; font-weight: 700; color: var(--lg-ink); text-decoration: none;
}
.mb-act:hover { border-color: var(--lg-accent); color: var(--lg-accent); }
.mb-act svg { width: 17px; height: 17px; }
.mb-again { margin-block-start: 1.2rem; }

/* Ticket numbers read beside the passenger they belong to — a column of bare numbers is not
   something a traveller can check their own ticket against. */
.mb-codes { display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.mb-tk { display: inline-flex; flex-direction: column; }
.mb-tk small { font-weight: 600; font-size: .78rem; color: var(--lg-ink-2); letter-spacing: 0; }
