/* EuroRail Times — shared mobile/responsive fixes (v1.8)
   Loads LAST — layout alignment overrides for inline critical CSS.
   v1.5: mobile sticky Book bar (routes / guides / operators).
   v1.6: blog heroes — kill homepage search min-height; index rail 900px.
   v1.8: footer social inset + muted icon color matching ©. */

:root{
  --page-max: 1200px;
  --page-gutter: 24px;
  --page-gutter-sm: 16px;
}

/* Prevent horizontal page scroll */
html {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  overflow-x: clip;
  max-width: 100%;
}

/* ─── Content rail alignment (desktop + mobile) ───
   Nav gutters live on <nav>, not .nav-inner — matches .section/.hero/.lang-bar.
   Force mismatched 1000/1100/1152 max-widths onto the shared 1200 rail. */
nav:not(.footer-social){
  padding-left: var(--page-gutter) !important;
  padding-right: var(--page-gutter) !important;
  box-sizing: border-box;
}
.nav-inner{
  max-width: var(--page-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100%;
  box-sizing: border-box;
}
.lang-bar{
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  box-sizing: border-box;
}
.lang-inner,
.wrap,
.aff-inner,
.newsletter-inner,
.footer-grid,
.footer-bar,
.foot-inner,
.foot-bot,
.sleep-near .ayb-inner,
.calc-card{
  max-width: var(--page-max) !important;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
/* Homepage/route heroes use full rail; blog heroes stay 800px via rule below */
.hero-inner{
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.station-hotels{
  width: min(100% - 2 * var(--page-gutter), var(--page-max)) !important;
  max-width: var(--page-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}
.container{
  max-width: var(--page-max) !important;
  padding-left: var(--page-gutter) !important;
  padding-right: var(--page-gutter) !important;
  box-sizing: border-box;
}
.sec-title,
.hero h1,
article h2,
article h3{
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
.kl-search-card{
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: min(1040px, 100%);
  box-sizing: border-box;
}
.kl-sub-bar{
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.kl-grid,
.kl-field{
  min-width: 0;
}
.op-guides-rail{
  width: min(100% - 2 * var(--page-gutter), var(--page-max)) !important;
  max-width: var(--page-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Notched phones (iPhone X+) */
@supports (padding: max(0px)) {
  .lang-bar {
    padding-left: max(var(--page-gutter-sm), env(safe-area-inset-left));
    padding-right: max(var(--page-gutter-sm), env(safe-area-inset-right));
  }
  nav:not(.footer-social) {
    padding-left: max(var(--page-gutter-sm), env(safe-area-inset-left)) !important;
    padding-right: max(var(--page-gutter-sm), env(safe-area-inset-right)) !important;
  }
  footer {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}

/* ─── Mobile hamburger navigation ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-right: 4px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white, #fff);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 98;
  pointer-events: none;
}
nav.nav-open .nav-backdrop {
  display: block;
  pointer-events: auto;
}

@media (max-width: 900px) {
  :root { --page-gutter: 20px; }
  .hero,
  .section,
  .results-section,
  .calc-section,
  .newsletter-section,
  .aff-strip,
  .sleep-near,
  footer {
    padding-left: var(--page-gutter) !important;
    padding-right: var(--page-gutter) !important;
  }
}

@media (max-width: 600px) {
  :root { --page-gutter: var(--page-gutter-sm); }

  nav:not(.footer-social) {
    position: relative;
    z-index: 100;
    padding-left: var(--page-gutter) !important;
    padding-right: var(--page-gutter) !important;
  }
  nav .nav-inner {
    position: relative;
    z-index: 102;
    padding-left: 0 !important;
    padding-right: 0 !important;
    height: 54px;
  }
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 103;
  }

  /* Override inline display:none from page CSS */
  nav .nav-links {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    top: 54px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: var(--steel-mid, #253545);
    z-index: 101;
    padding: 8px 0 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  nav.nav-open .nav-links {
    display: flex !important;
    visibility: visible;
    pointer-events: auto;
  }
  nav .nav-links li {
    width: 100%;
  }
  nav .nav-links a {
    width: 100%;
    height: auto;
    min-height: 48px;
    padding: 14px 24px;
    border-bottom: none;
    border-left: 3px solid transparent;
    margin-bottom: 0;
    font-size: 0.95rem;
  }
  nav .nav-links a:hover,
  nav.nav-open .nav-links a:active {
    border-left-color: var(--amber, #e8a020);
    background: rgba(255, 255, 255, 0.05);
  }
  .nav-ticket {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .lang-bar {
    padding-left: var(--page-gutter) !important;
    padding-right: var(--page-gutter) !important;
  }
  .hero,
  .section,
  .results-section,
  .calc-section,
  .newsletter-section,
  .aff-strip,
  .sleep-near,
  footer {
    padding-left: var(--page-gutter) !important;
    padding-right: var(--page-gutter) !important;
  }
  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }
}

/* Search tabs — horizontal scroll on narrow screens */
@media (max-width: 600px) {
  .search-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .search-tabs::-webkit-scrollbar {
    display: none;
  }
  .stab {
    flex-shrink: 0;
    min-height: 44px;
    padding: 12px 16px;
  }
  .kl-alert {
    font-size: 0.78rem;
    line-height: 1.45;
  }
}

/* Route card dual buttons — stack full width */
@media (max-width: 600px) {
  .rc > div[style*="display:flex"] {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .rc-book {
    width: 100% !important;
    flex: none !important;
    display: flex !important;
    min-height: 44px;
    text-align: center;
    box-sizing: border-box;
  }
}

/* Pass calculator & multi-city */
@media (max-width: 600px) {
  .calc-card {
    padding: 16px !important;
    margin-left: 0;
    margin-right: 0;
  }
  .multicity-leg {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .mc-delete-btn {
    align-self: flex-end;
  }
  .mc-result-card {
    flex-direction: column;
    align-items: stretch;
  }
  .mc-result-right button {
    width: 100%;
    min-height: 44px;
  }
}

/* Newsletter form stack */
@media (max-width: 600px) {
  .news-form {
    flex-direction: column;
  }
  .news-btn {
    width: 100%;
    min-height: 44px;
  }
  .news-input {
    font-size: 1rem; /* prevent iOS zoom */
  }
}

/* Tables — blog fact tables + price tables */
@media (max-width: 600px) {
  article {
    overflow-x: hidden;
    max-width: 100%;
  }
  .facttable-wrap {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin: 18px 0;
  }
  table.facttable {
    display: table;
    min-width: 480px;
    width: max-content;
    max-width: none;
  }
  .facttable-wrap table.facttable,
  article > table.facttable {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
}

/* All Aboard native search rows */
@media (max-width: 600px) {
  #aa-journey-embed,
  #aa-tickets-section .wrap {
    overflow-x: hidden;
    max-width: 100%;
  }
  .aa-jrow {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .aa-selbtn,
  .aa-choose {
    width: 100% !important;
    min-height: 44px;
    text-align: center;
    white-space: normal !important;
  }
  .aa-fare {
    flex-direction: column !important;
    align-items: stretch !important;
    margin-left: 0 !important;
  }
  .aa-ac {
    max-width: calc(100vw - 32px) !important;
  }
}

/* Blog pages */
@media (max-width: 640px) {
  article {
    padding: 28px 16px 16px;
  }
  .hero {
    padding: 40px 16px 32px;
  }
  .hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .bloglist {
    padding: 28px 16px;
  }
  .postcard-body {
    padding: 18px 16px;
  }
  .foot-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .foot-links a {
    margin: 0 12px 8px 0;
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
  }
  .disclaimer {
    padding: 0 16px;
  }
}

/* Guide / page modals */
@media (max-width: 600px) {
  .guide-overlay,
  .modal-overlay.open {
    padding: 8px;
    align-items: flex-end;
  }
  .guide-modal {
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 14px 14px 0 0;
    margin-bottom: 0;
  }
  .gm-body {
    padding: 20px 16px 28px;
  }
}

/* Touch targets — language bar */
@media (max-width: 640px) {
  .lang-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .lang-bar::-webkit-scrollbar {
    display: none;
  }
  .lang-inner {
    flex-wrap: nowrap;
    min-width: max-content;
    justify-content: flex-start;
  }
}
.lang-btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* iOS input zoom prevention */
@media (max-width: 600px) {
  input,
  select,
  textarea,
  .kl-input,
  .sf input {
    font-size: 16px !important;
  }
}

/* Map container on route pages */
@media (max-width: 600px) {
  #route-map {
    height: 220px !important;
  }
}

/* Price tables on homepage + route pages */
@media (max-width: 600px) {
  .price-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .price-wrap table {
    min-width: 520px;
  }
  .wrap,
  .section,
  .hero,
  .calc-section {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Blog reading column stays narrower than chrome rail.
   Index hero aligns with .bloglist (900); articles keep 800. */
body:has(article) .hero-inner {
  max-width: 800px !important;
}
body:has(.bloglist) .hero-inner {
  max-width: 900px !important;
}
/* Compact blog heroes — never inherit homepage search-hero min-height */
body:has(article) .hero,
body:has(.bloglist) .hero {
  min-height: 0 !important;
  height: auto;
}

/* ─── Mobile sticky Book bar ─── */
.ert-sticky-book {
  display: none;
}
@media (max-width: 768px) {
  body.ert-has-sticky-book {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .ert-sticky-book {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    align-items: center;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(28, 43, 58, 0.96);
    border-top: 3px solid var(--amber, #E8A020);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .ert-sticky-book[hidden] {
    display: none !important;
  }
  .ert-sticky-book__meta {
    flex: 1;
    min-width: 0;
    color: #fff;
    font: 600 0.78rem/1.25 'DM Sans', system-ui, sans-serif;
  }
  .ert-sticky-book__meta span {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    font-size: 0.7rem;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ert-sticky-book__btn {
    flex-shrink: 0;
    appearance: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    background: var(--amber, #E8A020);
    color: #1a1a1a;
    font: 700 0.88rem/1 'DM Sans', system-ui, sans-serif;
    padding: 12px 16px;
    border-radius: 8px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .ert-sticky-book__btn:active {
    transform: scale(0.98);
  }
  body.nav-scroll-lock .ert-sticky-book,
  body:has(.guide-overlay.open) .ert-sticky-book,
  body:has(#page-modal.open) .ert-sticky-book {
    display: none;
  }
}

/* Footer rail + social — loads LAST; beats inline station/about chrome */
footer{
  padding-left: var(--page-gutter) !important;
  padding-right: var(--page-gutter) !important;
  box-sizing: border-box;
}
.footer-bar{
  --footer-muted: rgba(255, 255, 255, 0.55);
  max-width: var(--page-max) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "social copy";
  align-items: center;
  column-gap: 24px;
  row-gap: 12px;
  box-sizing: border-box;
}
.footer-bar:has(.footer-logo){
  grid-template-areas:
    "brand copy"
    "social copy";
}
.footer-bar > .footer-inner{
  display: contents !important;
}
.footer-bar .footer-logo{
  grid-area: brand;
  justify-self: start;
  align-self: end;
}
.footer-bar > .footer-inner > span{
  grid-area: copy;
  justify-self: end;
  align-self: center;
  text-align: right;
  max-width: min(42ch, 100%);
  color: var(--footer-muted, rgba(255, 255, 255, 0.55)) !important;
  font-size: 0.75rem;
}
.footer-bar > .footer-bot,
.footer-bar > .foot-bot,
.footer-bar > .fin{
  grid-area: copy;
  justify-self: end;
  align-self: center;
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: flex-end;
  align-items: center;
  text-align: right;
  margin: 0 !important;
  padding: 0 !important;
  max-width: min(52ch, 100%);
  color: var(--footer-muted, rgba(255, 255, 255, 0.55)) !important;
  font-size: 0.75rem;
}
@media (max-width: 700px){
  .footer-bar,
  .footer-bar:has(.footer-logo){
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "social"
      "copy";
    justify-items: start;
  }
  .footer-bar:not(:has(.footer-logo)){
    grid-template-areas:
      "social"
      "copy";
  }
  .footer-bar > .footer-bot,
  .footer-bar > .foot-bot,
  .footer-bar > .fin,
  .footer-bar > .footer-inner > span{
    justify-self: start;
    text-align: left;
    max-width: none;
  }
}

/* Footer social icons — muted gray matching © / @handle (not stark white) */
nav.footer-social,
.footer-social {
  grid-area: social;
  justify-self: start;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 14px;
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  width: auto !important;
  max-width: 100%;
  box-shadow: none !important;
}
.footer-social a.fsoc,
.footer-social a.fsoc:link,
.footer-social a.fsoc:visited,
.footer-social a[aria-label],
.footer-social a[aria-label]:link,
.footer-social a[aria-label]:visited {
  color: rgba(255, 255, 255, 0.55) !important;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-social a.fsoc:hover,
.footer-social a.fsoc:focus-visible,
.footer-social a[aria-label]:hover,
.footer-social a[aria-label]:focus-visible {
  color: var(--amber, #e8a020) !important;
  border-color: var(--amber, #e8a020);
  background: rgba(232, 160, 32, 0.1);
}
.footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}
.footer-social-handle {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  margin-left: 2px;
}

:root{--amber-text:#7A4F00;--amber-on-dark:#E8A020}
/* ---- C46 amber text contrast layer (WCAG 1.4.3). Brand amber --amber/--amber-dim stays for borders, fills,
   hover backgrounds and decorative marks; only TEXT on light surfaces uses --amber-text. Higher specificity than
   per-page inline <style> and !important only for inline style="" attributes, so no HTML bulk edit is needed.
   Logotype (.logo em / .logo span) is exempt from 1.4.3 and keeps the brand colour. ---- */
html body .sec-pre,html body .gc-cat,html body .ayb-pre,html body .aff-label,html body .gm-cat,
html body .gm-tip strong,html body .gm-grid-num,html body .calc-30s-kicker,html body .calc-30s-links a,
html body .mc-leg-num,html body .others a,html body .postcard .more{color:var(--amber-text)}
html [style*="color:var(--amber-dim)"]{color:var(--amber-text) !important}
html [style*="color:var(--amber,"]{color:var(--amber-text) !important}
html [style*="color:var(--amber)"]{color:var(--amber-text) !important}
html .api-section .sec-pre,html .api-section [style*="color:var(--amber"],html footer [style*="color:var(--amber"],
html .hero [style*="color:var(--amber"],html [class*="dark"] [style*="color:var(--amber"]{color:var(--amber-on-dark) !important}
html body .calc-section > .wrap .sec-head .sec-pre,html body #operators-strip a{color:var(--amber-on-dark) !important}

/* C46 keyboard focus: the search inputs set outline:none and had no replacement indicator (WCAG 2.4.7) */
html body .kl-input:focus-visible,html body .kl-select:focus-visible,html body .kl-input[type=date]:focus{outline:2px solid var(--amber-text,#7A4F00);outline-offset:3px;border-radius:4px}

/* BLOCK 18 neutral/semantic text tokens (AA): --muted 4.4-3.8:1 on chalk -> >=4.8:1; green text 2.9:1 -> 5:1; small grey labels on steel/chalk */
html:root{--muted:#4B6073;--signal-g:#1A7F43}
html body .hstat-l{color:rgba(255,255,255,.62)}
html body .kl-alert span{color:var(--amber-text)}
html body .crumb{color:var(--muted)}
html body .calc-section > .wrap > p[style*="--muted"],html body #operators-strip p[style*="--muted"]{color:rgba(255,255,255,.72) !important}
/* C63 mobile touch targets (WCAG 2.5.8 AA: >= 24x24 CSS px; language switcher must be reachable)
   - 8 language buttons did not fit on phones (3 off-screen at 320 px, 2 at 390 px, bar not scrollable).
   - footer/quick links were 14-19 px tall. */
@media (max-width:480px){
  html body .lang-inner{flex-wrap:nowrap;justify-content:space-between;gap:0}
  html body .lang-inner .lang-sep{display:none}
  html body .lang-inner .lang-btn{flex:1 1 0;min-width:0;padding-left:0;padding-right:0;text-align:center}
}
@media (max-width:900px){
  html body footer a{display:inline-block;padding-top:3px;padding-bottom:3px}
  html body .see-all,html body .qlink{display:inline-block;min-height:24px;box-sizing:border-box}
  html body .see-all{padding-top:3px;padding-bottom:3px}
}
html body .hero .crumbs,html body .hero-inner .crumbs{color:rgba(255,255,255,.62)}
html body footer:not(:has(.footer-aff)) .ert-cookie-link{color:rgba(255,255,255,.72)}

/* BLOCK 24 legal-page header nav: 6 links overflowed phones (the last link was off-screen at 390 px); wrap and keep 24 px targets */
html body nav.top{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;row-gap:2px}
html body nav.top a{padding-top:4px;padding-bottom:4px}

/* W4-2 phone link targets on station pages: back link and card CTAs (standalone links) >= 24 px */
@media (max-width:900px){
  html body a.back-link,html body .bullet-list > li > a:only-child,html body a[target="_blank"][style*="margin-top:auto"]{display:inline-flex;align-items:center;min-height:24px;box-sizing:border-box}
}

/* === W11-1 phone tap targets START ===
   Phones (<= 600 px): standalone interactive controls get a >= 44x44 CSS px hit area via min-height/min-width/padding.
   Links inside running text (p/li sentences) are intentionally left alone. Desktop (> 600 px) is untouched. */
@media (max-width:600px){
  /* header, nav, logo, language switcher */
  html body .lang-bar .lang-btn,html body nav a.logo,html body .nav-inner > a,html body header .wrap > a,html body a.logo,html body a.footer-logo,html body nav.top a,
  html body a.back-link,html body .crumb a,html body .crumbs a,html body .see-all,html body .qlink,html body .ert-cookie-link{display:inline-flex !important;align-items:center;box-sizing:border-box;min-height:44px}
  html body .lang-bar .lang-btn{justify-content:center}
  html body a.logo,html body a.footer-logo,html body .crumb a,html body .crumbs a,html body .see-all,html body .qlink,html body .ert-cookie-link,html body nav a.back-link,html body header .wrap > a:not(.logo):not(.btn){min-width:44px}
  /* footer link lists */
  html body footer a,html body footer li > a,html body .f-stations-list li > a{display:inline-flex !important;align-items:center;box-sizing:border-box;min-height:44px;min-width:44px}
  html body a.fsoc,html body .footer-social a{display:inline-flex !important;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;min-width:44px}
  /* link lists, cards, chips, table link cells */
  html body li > a:only-child,html body td > a:only-child,html body .routes > a,html body .others > a,html body .links > a,html body .ilinks > a,
  html body .gsec a.btn,html body a.btn,html body a[href][style*="display:inline"],html body .feat-item > a,html body .cta > a,html body .kl-alert a{display:inline-flex !important;align-items:center;box-sizing:border-box;min-height:44px}
  html body a.btn,html body .routes > a,html body .others > a,html body a[href][style*="display:inline"]{justify-content:center;text-align:center}
  html body li > a:only-child,html body td > a:only-child{min-width:44px}
  html body div > a:only-child[style*="font"]{display:inline-flex;align-items:center;min-height:44px}
  /* form controls and buttons */
  html body .kl-input,html body .kl-select,html body .kl-swap-btn,html body .calc-pill,html body .results-back,
  html body .wrap > p > button,html body button:not(.ert-ck-link):not(.ert-ck-main):not(.ert-ck-alt),html body input:not([type=checkbox]):not([type=radio]):not([type=hidden]),html body select,html body textarea{min-height:44px;box-sizing:border-box}
  html body .kl-swap-btn{min-width:44px}
  html body button.ert-ck-main,html body button.ert-ck-alt{min-height:44px}
  /* higher-specificity W4-2 24 px rules and tight rows */
  html body a.back-link,html body .bullet-list > li > a:only-child,html body a[target="_blank"][style*="margin-top:auto"],html body section > .wrap > a[href],html body div > a:only-child[style]{display:inline-flex !important;align-items:center;box-sizing:border-box;min-height:44px}
  html body .lang-bar,html body .lang-bar .lang-inner{padding-left:0;padding-right:0}
  html body .lang-bar .lang-btn{min-width:min(44px,calc((100vw - 24px) / 8));box-sizing:border-box}
  html body .kl-swap-btn,html body .wrap > p > button{min-width:44px !important}
  html body #search-section .kl-swap-btn,html body .kl-swap-btn{min-height:44px;min-width:44px;margin-top:-6px;margin-bottom:-6px;position:relative;z-index:1}
  html body header .wrap > a[href]:not(.btn){min-height:44px !important;display:inline-flex !important;align-items:center}
  /* search fields: the 44 px hit area is the control itself, extended up under its label (label stays visible, taps pass through), so the form does not grow and the Search button stays above the cookie banner */
  html body .kl-field > .kl-label{position:relative;z-index:1;pointer-events:none}
  html body .kl-field > .kl-label + :is(.kl-input,.kl-select){min-height:44px;margin-top:-18px;padding-top:22px;box-sizing:border-box}
  html body p > a[href$="/routes/"]:only-child{display:inline-flex;align-items:center;min-height:44px}
}
/* === W11-1 END === */
