:root {
  --blue: #003a80;
  --blue-2: #0f4b90;
  --blue-3: #6699cc;
  --text: #17375f;
  --muted: #56687f;
  --line: #dfe6ef;
  --bg: #edf1f6;
  --card: #ffffff;
  --red: #ff1e24;
  --orange: #ff8b08;
  --yellow: #f3d500;
  --green: #26b325;
  --royal: #1f5dc7;
  --purple: #6b35ad;
  --black: #111111;
  --brown: #6d4724;
  --trans-blue: #79c3df;
  --trans-pink: #e6a8cb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Ubuntu", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.shell { width: min(1400px, calc(100% - 40px)); margin: 0 auto; }

.topbar { position: sticky; top: 0; z-index: 50; }
.topbar-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--royal), var(--purple));
}
.example-topbar { background: var(--blue); box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.example-topbar-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.example-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.example-brand-mark { width: 42px; height: 42px; object-fit: contain; }
.example-topbar .example-brand-mark { filter: brightness(0) invert(1); }
.example-brand-text {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
}

.mobile-menu {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.main-nav a {
  position: relative;
  color: rgba(255,255,255,.95);
  font-weight: 700;
  padding: 16px 0 14px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}
.main-nav a:hover::after,
.main-nav a.active::after { background: var(--blue-3); }

.example-play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 9px;
  background: #fff;
  color: #0f3164;
  font-weight: 700;
  margin-left: 20px;
}

.primary-button,
.secondary-button,
.ghost-button,
.example-primary-cta,
.example-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 9px;
  font-weight: 700;
}
.primary-button,
.example-primary-cta,
.example-secondary-cta { background: var(--blue); color: #fff; }
.secondary-button { background: #fff; color: var(--blue); border: 1px solid var(--line); }
.ghost-button { background: transparent; border: 1px solid var(--line); color: var(--blue); }

.status-dot {
  display: inline-block;
  width: 10px; height: 10px; border-radius: 50%;
  background: #98a7ba;
  box-shadow: 0 0 0 4px rgba(152,167,186,.2);
  flex-shrink: 0;
}
.status-dot.online { background: #24b053; box-shadow: 0 0 0 4px rgba(36,176,83,.16); }
.status-dot.offline { background: #d43f3f; box-shadow: 0 0 0 4px rgba(212,63,63,.16); }

.site-example-home { background: var(--bg); color: var(--text); }
.example-home-main { background: linear-gradient(180deg, #eef2f7 0%, #f6f8fb 100%); }

.hero { position: relative; overflow: hidden; }
.example-hero-wrap {
  padding: 28px 0 12px;
  background: linear-gradient(rgba(255,255,255,.15), rgba(255,255,255,.15)), url('images/hero-1.png') center/cover no-repeat;
}
.example-hero-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(238,242,247,.98) 0%, rgba(238,242,247,.88) 20%, rgba(238,242,247,.38) 44%, rgba(238,242,247,0) 70%);
}
.example-hero-grid {
  position: relative;
  min-height: 344px;
  display: grid;
  grid-template-columns: 1.02fr 1.3fr;
  gap: 28px;
  align-items: stretch;
}
.example-hero-copy { padding: 10px 0 0; position: relative; z-index: 2; }
.example-hero-copy h1,
.page-hero-copy h1 {
  margin: 0;
  font-size: clamp(58px, 6vw, 78px);
  line-height: .95;
  letter-spacing: -.05em;
  color: #083b82;
}
.example-hero-copy h1 span,
.example-hero-copy h1 strong,
.page-hero-copy h1 span,
.page-hero-copy h1 strong { display: block; }
.example-hero-rule,
.page-hero-rule {
  display: inline-block;
  width: 60px; height: 5px;
  border-radius: 999px;
  background: #7ab3ef;
  margin: 26px 0 18px;
}
.example-hero-copy p,
.page-hero-copy p {
  margin: 0;
  max-width: 540px;
  color: #445a78;
  font-size: 18px;
  line-height: 1.5;
}
.example-hero-actions {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 28px;
}
.example-primary-cta { box-shadow: 0 12px 24px rgba(0,58,128,.14); }
.example-status-pill,
.copy-status-pill {
  min-width: 210px;
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,.82);
  border: 1px solid #d8e1ec;
  box-shadow: 0 10px 24px rgba(0,32,74,.06);
  color: #38506d;
}
.example-status-pill-top,
.copy-status-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; color: #1d2a3a; }
.example-status-pill strong span { color: #1e9c43; }

.example-hero-visual { position: relative; min-height: 344px; }
.example-city-card,
.page-side-card,
.page-logo-card,
.info-card,
.step-card,
.status-card,
.faq-card,
.help-card,
.rule-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(19,42,74,.05);
}
.example-city-card {
  position: absolute;
  top: 34px;
  right: 24px;
  width: 250px;
  overflow: hidden;
}
.example-city-card h2,
.page-side-card h2,
.page-logo-card h2,
.info-card h2,
.section-heading h2,
.status-card h2,
.faq-card h2,
.help-card h2,
.rule-card h2 {
  margin: 0;
  color: #1d2c41;
}
.example-city-card h2 { padding: 16px 18px; font-size: 18px; }
.example-city-stat,
.stat-row {
  display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; border-top: 1px solid #e4eaf0;
}
.example-city-stat span,
.example-city-stat a,
.stat-row span, .stat-row a { color: #4b607b; font-size: 14px; }
.example-city-stat strong,
.stat-row strong { color: #1d2c41; font-size: 14px; text-align: right; }

.example-card-section { padding: 0 0 12px; }
.example-service-grid,
.info-grid,
.steps-grid,
.status-grid,
.help-grid,
.rules-grid {
  display: grid; gap: 16px;
}
.example-service-grid { grid-template-columns: repeat(5, 1fr); }
.info-grid.three { grid-template-columns: repeat(3, 1fr); }
.info-grid.two, .steps-grid.two, .status-grid.two, .help-grid.two { grid-template-columns: repeat(2, 1fr); }
.rules-grid.three { grid-template-columns: repeat(3, 1fr); }
.rules-grid.two { grid-template-columns: repeat(2, 1fr); }

.example-service-card,
.info-card,
.step-card,
.status-card,
.help-card,
.rule-card {
  display: flex; flex-direction: column; padding: 16px;
}
.example-service-head,
.card-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.example-icon-box,
.icon-box {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-2); color: white; font-size: 19px; flex-shrink: 0;
}
.example-service-card h2,
.info-card h2,
.step-card h2,
.status-card h2,
.help-card h2,
.rule-card h2 { font-size: 17px; }
.example-service-card img,
.card-media {
  width: 100%; height: 132px; object-fit: cover; border-radius: 8px; display: block;
}
.example-service-card p,
.info-card p,
.step-card p,
.status-card p,
.help-card p,
.rule-card p,
.rule-card li,
.info-card li,
.help-card li,
.step-card li {
  margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5;
}
.example-service-card ul,
.info-card ul,
.step-card ul,
.help-card ul,
.rule-card ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); }
.example-service-card > a,
.card-link-arrow {
  align-self: flex-end; margin-top: auto; color: #123d79; font-size: 24px; font-weight: 700;
}

.section-heading {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 20px 0 14px;
}
.section-heading p { margin: 6px 0 0; color: var(--muted); max-width: 700px; }
.mini-kicker {
  display: block; color: var(--blue); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: 8px;
}

.example-inclusion-strip { padding: 10px 0 8px; }
.example-inclusion-card {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: #fff;
  border: 1px solid #dce3ed;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--royal), var(--purple), var(--trans-blue), var(--trans-pink)) 1;
  border-radius: 10px; box-shadow: 0 8px 20px rgba(0,34,75,.05);
}
.example-pride-block {
  display: grid; grid-template-columns: 86px 1fr; gap: 18px; padding: 18px 22px; align-items: center;
}
.example-pride-block img { width: 70px; height: auto; object-fit: contain; }
.example-pride-block h2 { margin: 0 0 8px; color: #1d2c41; font-size: 22px; }
.example-pride-block p { margin: 0; color: #5b697d; font-size: 15px; line-height: 1.45; }
.example-values-grid { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.example-value-item { min-height: 100%; padding: 18px 16px; border-left: 1px solid #e3e9f0; }
.example-value-item strong { display: block; color: #123d79; margin-bottom: 6px; }
.example-value-item span { display: block; color: #596779; font-size: 14px; line-height: 1.4; }
.example-secondary-cta { margin: 18px; }

.page-hero {
  padding: 26px 0 14px;
}
.page-hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: stretch;
}
.page-hero-copy,
.page-side-card,
.page-logo-card { padding: 26px; }
.page-hero-copy {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.88));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(19,42,74,.05);
}
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pill {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px;
  border-radius: 999px; background: #eef4fb; border: 1px solid #d7e4f2; color: var(--blue); font-size: 13px; font-weight: 700;
}
.page-logo-card {
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.page-logo-card img.inline-logo-wide { max-height: 96px; width: auto; object-fit: contain; }
.page-logo-card img.inline-logo-mark { width: 72px; height: auto; }
.page-logo-card p,
.page-side-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.page-side-card ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.6; }

.page-section { padding: 8px 0 14px; }
.list-tight { margin: 12px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.6; }
.list-tight li + li { margin-top: 4px; }
.copy-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px;
  border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--blue); font-weight: 700;
}

.status-grid .status-card { min-height: 100%; }
.status-metric { font-size: 36px; font-weight: 700; color: var(--blue); margin-top: 6px; }
.player-list { margin: 14px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }
.inline-status {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px;
}
.inline-status .mini-box {
  padding: 12px; border-radius: 10px; background: #f5f8fc; border: 1px solid #e3eaf2;
}
.inline-status strong { display: block; color: var(--blue); }
.inline-status span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

.faq-toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin: 18px 0 14px; }
.faq-search {
  width: 100%; max-width: 360px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text);
}
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 26px rgba(19,42,74,.05);
}
.faq-question {
  width: 100%; display: flex; justify-content: space-between; gap: 18px; align-items: center;
  text-align: left; border: 0; background: #fff; padding: 18px 20px; color: var(--text); font-weight: 700; cursor: pointer;
}
.faq-question::after { content: "+"; font-size: 24px; color: var(--blue); line-height: 1; }
.faq-item.open .faq-question::after { content: "–"; }
.faq-answer { display: none; padding: 0 20px 18px; color: var(--muted); line-height: 1.6; }
.faq-item.open .faq-answer { display: block; }

.help-highlight,
.community-highlight {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 22px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 26px rgba(19,42,74,.05);
}
.help-highlight img,
.community-highlight img { max-height: 78px; width: auto; object-fit: contain; }
.help-highlight h2,
.community-highlight h2 { margin: 0 0 8px; }
.help-highlight p,
.community-highlight p { margin: 0; color: var(--muted); }

.example-footer {
  margin-top: 8px; background: #f4f6f9; border-top: 1px solid #dbe2eb;
}
.example-footer-top {
  padding: 18px 0 6px; display: grid; grid-template-columns: 1.45fr repeat(4, .8fr) 1.5fr; gap: 24px; align-items: start;
}
.example-footer-brandline { margin-bottom: 10px; }
.example-footer-brandline .example-brand-mark { filter: none; width: 36px; height: 36px; }
.footer-brand-text { color: #123d79; font-size: 24px; }
.example-footer-brand p,
.example-footer-subscribe p,
.example-footer-col a,
.example-footer-bottom span { color: var(--muted); }
.example-footer-col,
.example-footer-subscribe { display: grid; gap: 8px; }
.example-footer-top strong { color: var(--text); font-size: 15px; }
.example-footer-col a { font-size: 14px; }
.example-footer-pride { margin-top: 14px; max-width: 220px; width: 100%; height: auto; }
.example-subscribe-row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 8px;
}
.example-subscribe-row input {
  min-height: 42px; border-radius: 8px; border: 1px solid #d5dee9; background: #fff; padding: 0 14px; color: #29425f;
}
.example-subscribe-row button {
  min-height: 42px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 700; cursor: pointer;
}
.example-footer-bottom { margin-top: 8px; background: var(--blue); }
.example-footer-bottom-inner {
  min-height: 48px; display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center;
}
.example-footer-bottom-inner span,
.example-footer-bottom-inner a { color: rgba(255,255,255,.9); font-size: 13px; }
.example-footer-domain { justify-self: center; font-weight: 700; }
.social-links { display: flex; align-items: center; gap: 8px; }
.social-link {
  width: 30px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); color: #fff;
}
.social-link svg { width: 15px; height: 15px; fill: currentColor; }

@media (max-width: 1280px) {
  .example-hero-grid,
  .page-hero-grid,
  .example-inclusion-card,
  .example-footer-top { grid-template-columns: 1fr; }
  .example-service-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid.three, .rules-grid.three { grid-template-columns: repeat(2, 1fr); }
  .example-values-grid { grid-template-columns: repeat(2, 1fr); }
  .example-city-card { position: static; margin: 20px 0 0 auto; }
  .page-logo-card img.inline-logo-wide { max-height: 82px; }
}

@media (max-width: 860px) {
  .mobile-menu { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); margin-left: 0;
    background: rgba(0,58,128,.98); border-radius: 12px; padding: 8px 14px 12px; box-shadow: 0 18px 36px rgba(0,0,0,.18);
    flex-direction: column; align-items: flex-start; gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 0 14px; }
  .example-play-button { margin-left: 0; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 1400px); }
  .example-topbar-inner { min-height: auto; gap: 16px; padding: 10px 0; flex-wrap: wrap; }
  .example-brand-text { font-size: 24px; }
  .example-play-button { width: 100%; }
  .example-hero-grid,
  .example-service-grid,
  .example-values-grid,
  .page-hero-grid,
  .info-grid.three,
  .info-grid.two,
  .steps-grid.two,
  .status-grid.two,
  .help-grid.two,
  .rules-grid.two,
  .rules-grid.three,
  .example-footer-top,
  .example-footer-bottom-inner,
  .example-subscribe-row,
  .faq-toolbar,
  .help-highlight,
  .community-highlight {
    grid-template-columns: 1fr;
  }
  .example-hero-copy h1,
  .page-hero-copy h1 { font-size: clamp(46px, 13vw, 64px); }
  .example-hero-actions { flex-direction: column; align-items: stretch; }
  .example-primary-cta,
  .example-secondary-cta,
  .secondary-button,
  .ghost-button,
  .primary-button { width: 100%; }
  .example-city-card { width: 100%; margin-top: 16px; }
  .example-pride-block { grid-template-columns: 1fr; }
  .example-value-item { border-left: 0; border-top: 1px solid #e3e9f0; }
  .faq-search { max-width: none; }
  .example-footer-domain { justify-self: start; }
}


/* ---- v9.6 homepage relevance + corrected logo system ---- */
.example-brand--header { gap: 0; }
.example-brand-logo { display: block; width: auto; height: 42px; object-fit: contain; }
.example-topbar .example-brand-logo { max-width: 240px; }
.example-footer-logo-link { display: inline-flex; align-items: center; }
.example-footer-logo { width: min(100%, 280px); height: auto; object-fit: contain; }
.example-footer-pride { margin-top: 16px; max-width: 260px; }

.hero-relevant { padding: 24px 0 14px; }
.hero-relevant.example-hero-wrap::before {
  background: linear-gradient(90deg, rgba(243,246,250,.96) 0%, rgba(243,246,250,.90) 18%, rgba(243,246,250,.72) 35%, rgba(243,246,250,.22) 58%, rgba(243,246,250,0) 80%);
}
.example-hero-grid--single {
  grid-template-columns: 1fr;
  min-height: 420px;
  align-items: end;
}
.example-hero-copy--wide { max-width: 760px; padding: 14px 0 20px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px;
  border-radius: 999px; background: rgba(255,255,255,.72); border: 1px solid rgba(10,51,109,.10);
  color: #31537f; font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.example-hero-copy--wide h1 {
  margin-top: 18px;
  font-size: clamp(48px, 5.2vw, 78px);
  line-height: .94;
}
.example-hero-copy--wide p {
  max-width: 690px;
  color: #355171;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.28;
  font-weight: 500;
}
.hero-ghost-button {
  background: rgba(255,255,255,.75);
  border-color: rgba(8,59,130,.18);
  backdrop-filter: blur(4px);
}
.hero-metrics {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
}
.hero-metric {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.84);
  border: 1px solid #dce5ef;
  box-shadow: 0 8px 22px rgba(18,42,74,.06);
  backdrop-filter: blur(6px);
  min-height: 92px;
}
.hero-metric-label {
  display: block;
  color: #5b6f89;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.hero-metric strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #153764;
  font-size: 22px;
  line-height: 1.2;
}
.copy-chip--hero {
  border: 0;
  padding: 0;
  background: transparent;
  color: #153764;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.example-card-section--tight { padding-top: 8px; }
.example-service-grid--three { grid-template-columns: repeat(3, 1fr); }
.homepage-info-grid {
  padding: 12px 0 22px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
}
.homepage-info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(19,42,74,.05);
  padding: 26px;
}
.homepage-info-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.homepage-info-card h2 { margin: 6px 0 0; font-size: 34px; line-height: 1.05; color: #173a68; }
.homepage-info-card p { margin: 0 0 14px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.homepage-inline-logo { width: 84px; height: auto; object-fit: contain; flex-shrink: 0; }
.homepage-inline-logo--pride { width: 104px; }
.homepage-info-card--pride {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}
.homepage-value-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px;
}
.homepage-value-row span,
.pill {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px;
  background: #f1f5fa; border: 1px solid #dbe4ef; color: #12427f; font-weight: 700; font-size: 14px;
}
.page-logo-card img.inline-logo-mark { width: 120px; max-width: 100%; height: auto; }
.page-logo-card img.inline-logo-wide { max-height: 104px; width: auto; object-fit: contain; }

@media (max-width: 1280px) {
  .homepage-info-grid,
  .hero-metrics,
  .example-service-grid--three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .example-topbar .example-brand-logo { max-width: 190px; height: 34px; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .example-hero-copy--wide p { font-size: 20px; }
  .hero-metrics,
  .homepage-info-grid,
  .example-service-grid--three { grid-template-columns: 1fr; }
  .homepage-info-card__top { flex-direction: column; }
  .example-brand-logo { height: 34px; }
}


/* ---- v9.7 polish fixes ---- */
.copy-chip--hero {
  display: block;
  width: 100%;
  font-size: 18px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hero-metric--copy { min-width: 0; }
.hero-metric--copy strong,
.hero-metric--copy .copy-chip--hero { max-width: 100%; }

.example-service-card--interactive {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #dbe3ee;
  background: #fff;
  box-shadow: 0 10px 24px rgba(19,42,74,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.example-service-card--interactive:hover,
.example-service-card--interactive:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(19,42,74,.10);
  border-color: #c7d7eb;
}
.example-service-card--interactive .example-service-head,
.example-service-card--interactive p,
.example-service-card--interactive .service-card-cta {
  padding-left: 20px;
  padding-right: 20px;
}
.example-service-card--interactive .example-service-head {
  padding-top: 18px;
  padding-bottom: 10px;
}
.example-service-card--interactive img {
  margin: 0 20px;
  width: calc(100% - 40px);
  border-radius: 12px;
}
.example-service-card--interactive p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.service-card-cta {
  margin-top: auto;
  padding-top: 18px;
  padding-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--blue);
  font-weight: 700;
  font-size: 16px;
}
.service-card-cta::before {
  content: '';
  display: block;
  position: absolute;
}
.example-service-card--interactive .service-card-cta span[aria-hidden="true"] {
  font-size: 20px;
}
.example-footer-logo { width: min(100%, 320px); }

@media (max-width: 760px) {
  .copy-chip--hero { font-size: 16px; }
}


/* ---- v9.8 clean hero server strip ---- */
.hero-server-strip {
  margin-top: 24px;
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid #dce5ef;
  box-shadow: 0 10px 24px rgba(18,42,74,.07);
  backdrop-filter: blur(8px);
}
.hero-server-status,
.hero-server-detail,
.hero-ip-button {
  min-height: 68px;
  display: flex;
  align-items: center;
  border-right: 1px solid #e1e8f1;
}
.hero-server-status {
  gap: 12px;
  padding: 0 20px;
  min-width: 210px;
}
.hero-server-status strong,
.hero-server-detail strong {
  display: block;
  color: #12355f;
  font-size: 18px;
  line-height: 1.15;
}
.hero-server-status span:not(.status-dot),
.hero-server-detail span {
  display: block;
  color: #5a6d85;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .035em;
  margin-top: 4px;
}
.hero-server-detail {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 20px;
  min-width: 164px;
}
.hero-server-detail span { margin: 0 0 6px; }
.hero-ip-button {
  appearance: none;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  background: #003a80;
  color: #fff;
  padding: 0 22px;
  min-width: 210px;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, transform .16s ease;
}
.hero-ip-button:hover,
.hero-ip-button:focus-visible {
  background: #0f4b90;
}
.hero-ip-button::before {
  content: "Copy IP";
  display: inline-block;
  margin-right: 10px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-metrics { display: none !important; }
@media (max-width: 860px) {
  .hero-server-strip {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hero-server-status,
  .hero-server-detail,
  .hero-ip-button {
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid #e1e8f1;
  }
  .hero-ip-button {
    grid-column: 1 / -1;
    min-height: 58px;
  }
}
@media (max-width: 540px) {
  .hero-server-strip { grid-template-columns: 1fr; }
  .hero-server-status,
  .hero-server-detail { padding: 14px 16px; min-height: auto; }
}


/* ---- v9.9 white mockup-inspired homepage ---- */
.homepage-v99 {
  background: linear-gradient(180deg, #f3f6fa 0%, #ffffff 12%, #ffffff 100%);
}
.hero-clean-light {
  padding: 0 0 22px;
  border-bottom: 1px solid #e5edf6;
  background: linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)), url('images/hero-2.png') center/cover no-repeat;
}
.hero-clean-light::before {
  background: linear-gradient(90deg, rgba(247,249,252,.98) 0%, rgba(247,249,252,.93) 18%, rgba(247,249,252,.76) 36%, rgba(247,249,252,.30) 56%, rgba(247,249,252,0) 76%);
}
.hero-clean-light .example-hero-grid--single {
  min-height: 410px;
  align-items: center;
}
.hero-clean-light .example-hero-copy--wide {
  max-width: 640px;
  padding: 36px 0 18px;
}
.hero-clean-light .example-hero-copy--wide h1 {
  font-size: clamp(48px, 5.3vw, 78px);
  line-height: .94;
}
.hero-clean-light .example-hero-copy--wide p {
  font-size: 20px;
  line-height: 1.45;
  max-width: 520px;
  color: #375274;
}
.hero-server-strip--clean {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  border: 1px solid #dbe5f0;
  box-shadow: 0 10px 24px rgba(18,42,74,.07);
  backdrop-filter: blur(6px);
}
.hero-server-divider {
  width: 1px;
  align-self: stretch;
  background: #dde7f2;
}
.hero-server-status,
.hero-server-detail {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-server-status strong,
.hero-server-detail strong {
  display: block;
  color: #183a67;
  font-size: 16px;
  line-height: 1.2;
}
.hero-server-status span:last-child,
.hero-server-detail span {
  display: block;
  color: #6a7e98;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.homepage-feature-strip {
  padding-top: 24px;
  padding-bottom: 18px;
}
.homepage-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.homepage-feature-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #dce5ef;
  box-shadow: 0 10px 26px rgba(19,42,74,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.homepage-feature-card:hover,
.homepage-feature-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(19,42,74,.10);
  border-color: #cddbf0;
}
.homepage-feature-image-wrap {
  position: relative;
  height: 192px;
  overflow: hidden;
}
.homepage-feature-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.homepage-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(4,33,73,.16) 100%);
}
.homepage-feature-content {
  padding: 18px 20px 20px;
}
.homepage-feature-kicker {
  display: inline-flex;
  padding-left: 12px;
  position: relative;
  color: #153f77;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.homepage-feature-kicker::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  bottom: 1px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff5f7d 0%, #5a78ff 100%);
}
.homepage-feature-content h2 {
  margin: 12px 0 14px;
  font-size: 25px;
  line-height: 1.18;
  color: #163a68;
}
.homepage-feature-link {
  color: var(--blue);
  font-weight: 700;
}
.homepage-news-section {
  padding: 10px 0 20px;
}
.homepage-news-grid {
  display: grid;
  grid-template-columns: 1.08fr repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.homepage-news-intro {
  border-radius: 18px;
  padding: 28px 24px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
  border: 1px solid #d9e5f2;
  border-top: 5px solid #0d4a95;
  box-shadow: 0 10px 26px rgba(19,42,74,.05);
}
.homepage-news-intro h2 {
  margin: 8px 0 10px;
  font-size: 38px;
  line-height: 1.02;
  color: #143a69;
}
.homepage-news-intro p {
  margin: 0 0 16px;
  color: #56708f;
  font-size: 17px;
}
.homepage-news-intro a {
  color: var(--blue);
  font-weight: 700;
}
.homepage-news-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #dde6f1;
  box-shadow: 0 10px 24px rgba(19,42,74,.05);
}
.homepage-news-card img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  display: block;
}
.homepage-news-card__body {
  padding: 14px 16px 18px;
}
.homepage-news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.homepage-news-meta span {
  color: #7a8da7;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.homepage-news-meta strong {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f2ff;
  color: #0d4a95;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.homepage-news-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
  color: #143a69;
}
.homepage-news-card p {
  margin: 0;
  color: #607792;
  font-size: 15px;
  line-height: 1.5;
}
.homepage-info-grid--compact {
  padding-top: 4px;
}
@media (max-width: 1240px) {
  .homepage-news-grid { grid-template-columns: 1fr 1fr; }
  .homepage-news-intro { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .homepage-feature-grid,
  .homepage-news-grid,
  .homepage-info-grid { grid-template-columns: 1fr; }
  .hero-server-strip--clean { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-server-divider { display: none; }
}
@media (max-width: 720px) {
  .hero-clean-light .example-hero-copy--wide h1 { font-size: 42px; }
  .hero-clean-light .example-hero-copy--wide p { font-size: 18px; }
  .hero-server-strip--clean { grid-template-columns: 1fr; }
  .homepage-news-intro h2 { font-size: 30px; }
}


/* ---- v10.0 closer-to-reference polish ---- */
.hero-eyebrow,
.example-primary-cta,
.hero-ghost-button,
.hero-server-strip--clean,
.homepage-feature-card,
.homepage-news-intro,
.homepage-news-card,
.homepage-info-card,
.example-footer-subscribe,
.example-footer-col,
.example-footer-brand {
  border-radius: 12px !important;
}
.homepage-feature-image-wrap,
.homepage-feature-image-wrap img,
.homepage-news-card img {
  border-radius: 10px 10px 0 0;
}

/* cleaner server info row */
.hero-server-strip--clean {
  margin-top: 20px;
  display: grid !important;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  min-width: min(100%, 920px);
  background: rgba(255,255,255,.92);
  border: 1px solid #dbe4ef;
  box-shadow: 0 8px 20px rgba(19,42,74,.06);
}
.hero-server-divider { display: none !important; }
.hero-server-strip--clean > .hero-server-status,
.hero-server-strip--clean > .hero-server-detail {
  min-height: 82px;
  padding: 0 18px;
  border-right: 1px solid #e3eaf3;
  align-items: center;
}
.hero-server-strip--clean > .hero-server-detail:last-child { border-right: 0; }
.hero-server-status {
  gap: 12px;
}
.hero-server-status div,
.hero-server-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-server-status strong,
.hero-server-detail strong {
  font-size: 17px;
  margin: 0;
}
.hero-server-status span:last-child,
.hero-server-detail span {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: .08em;
}
.hero-server-status .status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
}

/* feature cards a bit more modern */
.homepage-feature-grid {
  gap: 16px;
}
.homepage-feature-card {
  border: 1px solid #d9e4ef;
  box-shadow: 0 8px 22px rgba(19,42,74,.05);
}
.homepage-feature-content {
  padding: 16px 18px 18px;
}
.homepage-feature-content h2 {
  font-size: 23px;
  margin: 10px 0 12px;
}

/* proper blue band for news section like reference */
.homepage-news-section {
  margin-top: 12px;
  padding: 26px 0 28px;
  background: linear-gradient(180deg, #0b3970 0%, #082c57 100%);
}
.homepage-news-grid {
  grid-template-columns: 1.05fr repeat(3, 1fr);
  gap: 16px;
}
.homepage-news-intro {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-top: 4px solid #6699cc;
  box-shadow: none;
}
.homepage-news-intro .mini-kicker,
.homepage-news-intro a,
.homepage-news-intro p,
.homepage-news-intro h2 {
  color: #ffffff;
}
.homepage-news-intro p { opacity: .82; }
.homepage-news-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: none;
}
.homepage-news-card__body {
  padding: 12px 15px 16px;
}
.homepage-news-card h3 {
  font-size: 18px;
}
.homepage-news-card p {
  font-size: 14px;
}
.homepage-news-meta strong {
  background: #e6f0ff;
}

/* info cards a little tighter */
.homepage-info-grid--compact {
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 20px;
}
.homepage-info-card {
  padding: 22px;
  box-shadow: 0 8px 22px rgba(19,42,74,.04);
}

@media (max-width: 1180px) {
  .hero-server-strip--clean {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
  }
  .hero-server-strip--clean > .hero-server-status,
  .hero-server-strip--clean > .hero-server-detail {
    border-right: 1px solid #e3eaf3;
    border-bottom: 1px solid #e3eaf3;
  }
  .hero-server-strip--clean > :nth-child(2n) { border-right: 0; }
  .hero-server-strip--clean > :nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 980px) {
  .homepage-news-grid,
  .homepage-feature-grid,
  .homepage-info-grid { grid-template-columns: 1fr; }
  .homepage-news-section { padding-top: 20px; }
}
@media (max-width: 640px) {
  .hero-server-strip--clean {
    grid-template-columns: 1fr;
  }
  .hero-server-strip--clean > .hero-server-status,
  .hero-server-strip--clean > .hero-server-detail {
    border-right: 0;
    border-bottom: 1px solid #e3eaf3;
    min-height: 72px;
  }
  .hero-server-strip--clean > .hero-server-detail:last-child { border-bottom: 0; }
}


/* ---- v10.1 news band closer to reference ---- */
.homepage-news-section {
  margin-top: 10px;
  padding: 0;
  background: linear-gradient(90deg, #0a376c 0%, #082f5c 52%, #07284f 100%) !important;
}
.homepage-news-grid {
  display: grid;
  grid-template-columns: 280px repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  padding-top: 14px;
  padding-bottom: 14px;
}
.homepage-news-intro {
  min-height: 98px;
  padding: 16px 16px 14px;
  border: 0 !important;
  border-top: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.homepage-news-intro .mini-kicker {
  color: rgba(255,255,255,.72) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.homepage-news-intro h2 {
  margin: 5px 0 8px;
  font-size: 24px !important;
  line-height: 1.05;
  color: #ffffff !important;
}
.homepage-news-intro p {
  display: none;
}
.homepage-news-intro a {
  color: #87b4f0 !important;
  font-size: 14px;
  font-weight: 700;
}
.homepage-news-card {
  min-height: 98px;
  display: grid !important;
  grid-template-columns: 118px 1fr;
  align-items: stretch;
  overflow: hidden;
  border-radius: 10px !important;
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.homepage-news-card:hover,
.homepage-news-card:focus-visible {
  transform: translateY(-2px);
  background: rgba(255,255,255,.09) !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.12) !important;
}
.homepage-news-card img {
  width: 100%;
  height: 100%;
  min-height: 98px;
  object-fit: cover;
  border-radius: 0 !important;
}
.homepage-news-card__body {
  padding: 12px 14px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.homepage-news-meta {
  margin-bottom: 6px;
  align-items: center;
}
.homepage-news-meta span {
  color: rgba(255,255,255,.62) !important;
  font-size: 11px !important;
}
.homepage-news-meta strong {
  background: rgba(102,153,204,.18) !important;
  color: #9fcbff !important;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px !important;
}
.homepage-news-card h3 {
  margin: 0 0 4px !important;
  color: #ffffff !important;
  font-size: 17px !important;
  line-height: 1.2;
}
.homepage-news-card p {
  margin: 0 !important;
  color: rgba(255,255,255,.78) !important;
  font-size: 13px !important;
  line-height: 1.35;
}
@media (max-width: 1280px) {
  .homepage-news-grid {
    grid-template-columns: 1fr 1fr;
  }
  .homepage-news-intro {
    grid-column: 1 / -1;
    min-height: auto;
    padding-left: 6px;
  }
}
@media (max-width: 780px) {
  .homepage-news-grid {
    grid-template-columns: 1fr;
  }
  .homepage-news-card {
    grid-template-columns: 110px 1fr;
  }
}


/* ---- v10.2 cleaner hero stats + interactive news refinement ---- */
.hero-server-strip--clean {
  width: min(100%, 860px);
  max-width: 860px;
  grid-template-columns: 1.1fr 1fr 1fr .95fr;
  border-radius: 10px !important;
}
.hero-server-strip--clean > .hero-server-status,
.hero-server-strip--clean > .hero-server-detail {
  min-width: 0;
  min-height: 78px;
  padding: 14px 18px;
}
.hero-server-status {
  flex-direction: row;
  justify-content: flex-start;
}
.hero-server-status div {
  align-items: flex-start;
}
.hero-server-status strong,
.hero-server-detail strong {
  font-size: 15px;
  line-height: 1.25;
}
.hero-server-status span:last-child,
.hero-server-detail span {
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: .06em;
}
.hero-server-detail {
  align-items: center;
  text-align: center;
}
.hero-server-detail strong {
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-server-detail--players strong {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}
.hero-server-detail--players strong span {
  margin: 0;
  display: inline;
  color: inherit;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}
.hero-server-detail--players strong::before,
.hero-server-detail--players strong::after { content: none; }

.homepage-news-card {
  cursor: pointer;
  position: relative;
}
.homepage-news-card::after {
  content: 'Open';
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.46);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .16s ease, transform .16s ease;
}
.homepage-news-card:hover::after,
.homepage-news-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.homepage-news-card:hover h3,
.homepage-news-card:focus-visible h3 {
  color: #beddff !important;
}
@media (max-width: 1180px) {
  .hero-server-strip--clean {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 640px;
  }
}
@media (max-width: 640px) {
  .hero-server-strip--clean {
    max-width: none;
  }
  .hero-server-status,
  .hero-server-detail,
  .hero-server-status div { text-align: left; align-items: flex-start; }
  .hero-server-detail strong { text-align: left; }
}


/* ---- v10.5 premium hero refinement ---- */
.hero-clean-light {
  padding-bottom: 30px !important;
}
.hero-clean-light::before {
  background:
    linear-gradient(90deg, rgba(248,250,253,.98) 0%, rgba(248,250,253,.92) 22%, rgba(248,250,253,.66) 42%, rgba(248,250,253,.20) 64%, rgba(248,250,253,0) 84%) !important;
}
.hero-clean-light .example-hero-grid--single {
  min-height: 450px !important;
}
.hero-clean-light .example-hero-copy--wide {
  max-width: 760px !important;
  padding: 46px 0 24px !important;
}
.hero-eyebrow {
  border-radius: 8px !important;
  background: rgba(255,255,255,.82) !important;
}
.hero-clean-light .example-hero-copy--wide h1 {
  max-width: 760px;
  font-size: clamp(54px, 5.4vw, 84px) !important;
  line-height: .93 !important;
  letter-spacing: -.055em;
}
.hero-clean-light .example-hero-copy--wide p {
  max-width: 600px !important;
  font-size: clamp(20px, 1.75vw, 26px) !important;
  line-height: 1.36 !important;
  font-weight: 500;
}
.hero-clean-light .example-hero-actions {
  margin-top: 24px !important;
}
.hero-clean-light .example-primary-cta,
.hero-clean-light .hero-ghost-button {
  min-height: 48px;
  border-radius: 9px !important;
  padding-left: 24px;
  padding-right: 24px;
}
.hero-server-strip--premium {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255,255,255,.92);
  border: 1px solid #dce5ef;
  box-shadow: 0 10px 24px rgba(19,42,74,.07);
  backdrop-filter: blur(8px);
}
.hero-server-strip--premium > * {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-right: 1px solid #e2e9f2;
  color: #163a68;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.hero-server-strip--premium > *:last-child {
  border-right: 0;
}
.premium-status {
  gap: 10px;
}
.premium-status .status-dot {
  width: 10px;
  height: 10px;
}
.premium-stat {
  color: #233f63;
}
.premium-stat span {
  display: inline;
}
.premium-copy-ip {
  appearance: none;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  background: #003a80;
  color: #ffffff;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.premium-copy-ip:hover,
.premium-copy-ip:focus-visible {
  background: #0f4b90;
}
.premium-copy-ip::before {
  content: "Copy IP";
  margin-right: 10px;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* hide older strip variants when premium strip exists */
.hero-server-strip--premium .hero-server-divider {
  display: none !important;
}

/* slightly more premium cards under hero */
.homepage-feature-card,
.homepage-news-card,
.homepage-news-intro,
.homepage-info-card {
  border-radius: 10px !important;
}
.homepage-feature-image-wrap,
.homepage-feature-image-wrap img,
.homepage-news-card img {
  border-radius: 9px 9px 0 0 !important;
}

@media (max-width: 860px) {
  .hero-server-strip--premium {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .hero-server-strip--premium > * {
    border-right: 1px solid #e2e9f2;
    border-bottom: 1px solid #e2e9f2;
  }
  .hero-server-strip--premium > :nth-child(2n) {
    border-right: 0;
  }
  .hero-server-strip--premium > :nth-last-child(-n+2) {
    border-bottom: 0;
  }
}
@media (max-width: 560px) {
  .hero-server-strip--premium {
    grid-template-columns: 1fr;
  }
  .hero-server-strip--premium > * {
    border-right: 0;
    border-bottom: 1px solid #e2e9f2;
    justify-content: flex-start;
  }
  .hero-server-strip--premium > :last-child {
    border-bottom: 0;
  }
  .premium-copy-ip {
    justify-content: center;
  }
}


/* ---- v10.6 polish ---- */
/* cleaner premium server strip */
.hero-server-strip--premium {
  gap: 0;
  border-radius: 10px;
}
.hero-server-strip--premium > * {
  flex: 1 1 0;
  min-width: 0;
  min-height: 56px;
  padding: 0 18px;
}
.hero-server-strip--premium .premium-status,
.hero-server-strip--premium .premium-stat,
.hero-server-strip--premium .premium-copy-ip {
  text-align: center;
}
.hero-server-strip--premium .premium-status {
  justify-content: center;
}
.premium-copy-ip {
  font-size: 15px;
  font-weight: 700;
}
.premium-copy-ip::before {
  content: none !important;
}

/* improve heading spacing on subpages */
.page-hero-copy h1 {
  line-height: 1.02;
  letter-spacing: -.045em;
}
.page-hero-copy h1 strong {
  margin-top: .04em;
}

/* button icons */
.example-play-button,
.example-primary-cta,
.secondary-button[data-discord-link],
.ghost-button[data-discord-link],
.hero-ghost-button[data-discord-link] {
  gap: 10px;
}
.example-play-button::before,
.example-primary-cta::before,
.secondary-button[data-discord-link]::before,
.ghost-button[data-discord-link]::before,
.hero-ghost-button[data-discord-link]::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.example-play-button::before,
.example-primary-cta::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 9V7a4 4 0 0 1 4-4h2a4 4 0 0 1 4 4v2h1a3 3 0 0 1 3 3v4a5 5 0 0 1-5 5H8a5 5 0 0 1-5-5v-4a3 3 0 0 1 3-3h1Zm2 0h6V7a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v2Zm-1 4H6v2h2v2h2v-2h2v-2h-2v-2H8v2Zm8-.5a1.5 1.5 0 1 0 0.001 3.001A1.5 1.5 0 0 0 16 12.5Zm3 1.5a1.5 1.5 0 1 0 0.001 3.001A1.5 1.5 0 0 0 19 14Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 9V7a4 4 0 0 1 4-4h2a4 4 0 0 1 4 4v2h1a3 3 0 0 1 3 3v4a5 5 0 0 1-5 5H8a5 5 0 0 1-5-5v-4a3 3 0 0 1 3-3h1Zm2 0h6V7a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v2Zm-1 4H6v2h2v2h2v-2h2v-2h-2v-2H8v2Zm8-.5a1.5 1.5 0 1 0 0.001 3.001A1.5 1.5 0 0 0 16 12.5Zm3 1.5a1.5 1.5 0 1 0 0.001 3.001A1.5 1.5 0 0 0 19 14Z'/%3E%3C/svg%3E");
}
.secondary-button[data-discord-link]::before,
.ghost-button[data-discord-link]::before,
.hero-ghost-button[data-discord-link]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.32 4.37A17.4 17.4 0 0 0 16.03 3l-.22.46c-.27.57-.57 1.34-.77 1.93a16.4 16.4 0 0 0-6.1 0 17.4 17.4 0 0 0-.78-1.93L7.94 3A17.35 17.35 0 0 0 3.65 4.37C.94 8.4.2 12.33.57 16.2A17.78 17.78 0 0 0 5.8 18.9l1.05-1.46c-.58-.22-1.13-.48-1.65-.78.14-.1.28-.2.41-.31 3.17 1.49 6.6 1.49 9.73 0 .14.11.27.21.41.31-.52.3-1.07.56-1.65.78l1.05 1.46a17.7 17.7 0 0 0 5.23-2.7c.44-4.5-.74-8.4-3.06-11.83ZM9.32 13.84c-.95 0-1.72-.88-1.72-1.96 0-1.08.76-1.96 1.72-1.96.96 0 1.74.88 1.72 1.96 0 1.08-.76 1.96-1.72 1.96Zm5.36 0c-.95 0-1.72-.88-1.72-1.96 0-1.08.76-1.96 1.72-1.96.96 0 1.74.88 1.72 1.96 0 1.08-.76 1.96-1.72 1.96Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.32 4.37A17.4 17.4 0 0 0 16.03 3l-.22.46c-.27.57-.57 1.34-.77 1.93a16.4 16.4 0 0 0-6.1 0 17.4 17.4 0 0 0-.78-1.93L7.94 3A17.35 17.35 0 0 0 3.65 4.37C.94 8.4.2 12.33.57 16.2A17.78 17.78 0 0 0 5.8 18.9l1.05-1.46c-.58-.22-1.13-.48-1.65-.78.14-.1.28-.2.41-.31 3.17 1.49 6.6 1.49 9.73 0 .14.11.27.21.41.31-.52.3-1.07.56-1.65.78l1.05 1.46a17.7 17.7 0 0 0 5.23-2.7c.44-4.5-.74-8.4-3.06-11.83ZM9.32 13.84c-.95 0-1.72-.88-1.72-1.96 0-1.08.76-1.96 1.72-1.96.96 0 1.74.88 1.72 1.96 0 1.08-.76 1.96-1.72 1.96Zm5.36 0c-.95 0-1.72-.88-1.72-1.96 0-1.08.76-1.96 1.72-1.96.96 0 1.74.88 1.72 1.96 0 1.08-.76 1.96-1.72 1.96Z'/%3E%3C/svg%3E");
}

/* rules page long-form styling */
.rules-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.rules-detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(19,42,74,.05);
  padding: 22px;
}
.rules-detail-card h2,
.rules-detail-card h3 {
  margin: 0 0 12px;
  color: var(--text);
}
.rules-detail-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0 0;
}
.rules-detail-card .list-tight li + li {
  margin-top: 8px;
}
.rules-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef4fb;
  border: 1px solid #d7e4f2;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.rules-note-card {
  margin-top: 18px;
}

/* footer social centering */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-link svg {
  display: block;
  margin: auto;
}
.social-link[data-discord-link] svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 980px) {
  .rules-detail-grid { grid-template-columns: 1fr; }
}


/* ---- v10.7 hero IP width fix ---- */
.hero-server-strip--premium {
  display: grid !important;
  grid-template-columns: minmax(130px, 1fr) minmax(160px, 1fr) minmax(150px, 1fr) minmax(320px, 1.45fr) !important;
  width: min(100%, 940px) !important;
  max-width: 940px !important;
  overflow: visible !important;
}

.hero-server-strip--premium > * {
  min-width: 0;
}

.premium-copy-ip {
  min-width: 320px;
  padding-left: 26px !important;
  padding-right: 26px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  border-radius: 0 10px 10px 0 !important;
}

@media (max-width: 980px) {
  .hero-server-strip--premium {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 680px !important;
    overflow: hidden !important;
  }

  .premium-copy-ip {
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
    border-radius: 0 !important;
  }
}

@media (max-width: 560px) {
  .hero-server-strip--premium {
    grid-template-columns: 1fr !important;
    max-width: none !important;
  }
}


/* ---- v10.8 header/news/hero polish ---- */
.example-brand-logo--header-mark {
  height: 42px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
}

@media (max-width: 658px) {
  .example-brand-logo--header-mark {
    height: 34px !important;
  }
}

.hero-clean-light .example-hero-copy--wide {
  max-width: 700px !important;
}
.hero-clean-light .example-hero-copy--wide h1 {
  max-width: 700px !important;
  font-size: clamp(48px, 4.95vw, 76px) !important;
  line-height: .98 !important;
  letter-spacing: -.04em !important;
}
.hero-clean-light .example-hero-copy--wide h1 strong {
  display: block;
  margin-top: .06em;
}

.hero-server-strip--premium {
  grid-template-columns: minmax(120px, 1fr) minmax(150px, 1fr) minmax(145px, 1fr) minmax(260px, 1.15fr) !important;
  width: min(100%, 820px) !important;
  max-width: 820px !important;
}
.premium-copy-ip {
  min-width: 260px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  font-size: 14px !important;
}

/* news page */
.news-page-main {
  background: linear-gradient(180deg, #f2f6fb 0%, #ffffff 16%, #ffffff 100%);
}
.page-hero--news {
  padding-bottom: 8px;
}
.page-hero-grid--news {
  grid-template-columns: 1.15fr .85fr;
}
.news-hero-copy h1 {
  max-width: 640px;
}
.news-page-latest {
  margin-top: 8px;
}
.news-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.news-article-card {
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(19,42,74,.05);
}
.news-article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.news-article-card__body {
  padding: 18px 20px 20px;
}
.news-article-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.08;
  color: #153a67;
}
.news-article-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: #55708e;
}
@media (max-width: 1024px) {
  .page-hero-grid--news,
  .news-archive-grid { grid-template-columns: 1fr; }
}


/* ---- v10.9 header-logo + status mini-grid polish ---- */
.example-brand-logo--header-mark {
  height: 38px !important;
  width: auto !important;
  display: block;
}

.inline-status .mini-box {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.inline-status .mini-box strong {
  display: block;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.2;
}
.inline-status .mini-box > span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.inline-status .mini-box strong span {
  display: inline;
  color: inherit;
  font-size: inherit;
  margin: 0;
}


/* ---- v11.0 exact header logo + animated hero ---- */
.example-brand--header {
  display: inline-flex;
  align-items: center;
}

.example-brand-logo--header-mark {
  height: 44px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
  display: block;
}

@media (max-width: 658px) {
  .example-brand-logo--header-mark {
    height: 34px !important;
  }
}

.hero-clean-light {
  background: linear-gradient(180deg, #f3f6fa 0%, #ffffff 100%) !important;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .85s ease, transform 7s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-clean-light::before {
  z-index: 1;
}

.hero-clean-light .example-hero-grid--single {
  position: relative;
  z-index: 2;
}

.hero-clean-light .example-hero-copy--wide {
  max-width: 680px !important;
}

.hero-clean-light .example-hero-copy--wide h1 {
  max-width: 680px !important;
  font-size: clamp(42px, 4.8vw, 74px) !important;
  line-height: .96 !important;
  letter-spacing: -.045em !important;
}

.hero-clean-light .example-hero-copy--wide h1 strong {
  display: block;
  margin-top: .05em;
}

.hero-clean-light .example-hero-copy--wide p {
  max-width: 610px !important;
  font-size: clamp(18px, 1.7vw, 24px) !important;
  line-height: 1.38 !important;
}

.hero-server-strip--premium {
  grid-template-columns: minmax(120px, 1fr) minmax(150px, 1fr) minmax(145px, 1fr) minmax(240px, 1.12fr) !important;
  width: min(100%, 760px) !important;
  max-width: 760px !important;
}

.premium-copy-ip {
  min-width: 240px !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
  font-size: 13.5px !important;
}

.hero-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.hero-dot {
  appearance: none;
  border: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(0,58,128,.20);
  cursor: pointer;
  padding: 0;
  transition: width .18s ease, background .18s ease, transform .18s ease;
}

.hero-dot:hover,
.hero-dot:focus-visible {
  background: rgba(0,58,128,.38);
  transform: translateY(-1px);
}

.hero-dot.active {
  width: 28px;
  background: var(--blue);
}

.inline-status .mini-box--players strong {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.inline-status .mini-box--players strong span {
  display: inline;
}


/* ---- v11.1 use full user image directly in header ---- */
.example-brand--header {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
}

.example-brand-logo--header-mark {
  width: 44px !important;
  height: 56px !important;
  object-fit: cover !important;
  object-position: left center !important;
  display: block;
  max-width: none !important;
  flex: 0 0 auto;
}

@media (max-width: 658px) {
  .example-brand-logo--header-mark {
    width: 34px !important;
    height: 44px !important;
  }
}

/* ---- v11.2 transport pages ---- */
.transport-main {
  background: linear-gradient(180deg, #f2f6fb 0%, #ffffff 18%, #ffffff 100%);
}

.transport-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.transport-mode-card,
.operator-card,
.transport-placeholder-card {
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(19,42,74,.05);
}

.transport-mode-card {
  display: block;
  padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.transport-mode-card:hover,
.transport-mode-card:focus-visible {
  transform: translateY(-4px);
  border-color: #bdd2eb;
  box-shadow: 0 18px 36px rgba(19,42,74,.10);
}

.transport-mode-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-size: 22px;
  margin-bottom: 18px;
  overflow: hidden;
}

.transport-mode-icon--image {
  padding: 8px;
}

.transport-mode-icon__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.transport-mode-icon__image--tfs {
  transform: scale(1.08);
}

.transport-mode-icon__image--lt {
  transform: scale(0.9);
}

.transport-mode-icon__image--rail {
  transform: scale(1.12);
}

.transport-mode-card h2,
.operator-card h2,
.transport-placeholder-card h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.1;
}

.transport-mode-card p,
.operator-card p,
.transport-placeholder-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 16px;
}

.transport-mode-card span:last-child,
.operator-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 700;
}

.operator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.operator-card,
.transport-placeholder-card {
  padding: 22px;
}

.operator-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8f2ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}

.transport-placeholder-card {
  max-width: 760px;
}

@media (max-width: 1100px) {
  .transport-mode-grid,
  .operator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .transport-mode-grid,
  .operator-grid {
    grid-template-columns: 1fr;
  }
}


/* ---- v11.3 Transport for Stockstead inspired layout ---- */
.tfs-page {
  background: #f5f5f5;
}

.tfs-topband {
  background: #1f2025;
  color: #fff;
}

.tfs-topband-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
}

.tfs-brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .05em;
  font-weight: 700;
}

.tfs-brandmark div {
  display: grid;
  gap: 1px;
}

.tfs-roundel {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid #2d6fdb;
  display: inline-block;
  position: relative;
}

.tfs-roundel::after {
  content: '';
  position: absolute;
  left: -7px;
  right: -7px;
  top: 50%;
  height: 7px;
  margin-top: -3.5px;
  background: #2d6fdb;
}

.tfs-quick-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.tfs-quick-nav a {
  color: rgba(255,255,255,.9);
  font-size: 14px;
}

.tfs-hero-section {
  background: #0530cc;
  padding: 0 0 18px;
}

.tfs-hero-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  align-items: stretch;
}

.tfs-journey-card {
  background: #f2f2f2;
  align-self: start;
  margin-top: 16px;
  border: 1px solid #c8c8c8;
  box-shadow: 0 2px 0 rgba(0,0,0,.08);
}

.tfs-panel-title {
  background: #1c1c1c;
  color: #fff;
  font-weight: 700;
  padding: 14px 16px;
  font-size: 27px;
  line-height: 1.1;
}

.tfs-planner-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 12px 0;
}

.tfs-planner-tabs button {
  border: 0;
  background: #fff;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.tfs-planner-tabs button.active {
  background: #2d2d2d;
  color: #fff;
  position: relative;
}

.tfs-planner-tabs button.active::after {
  content: '';
  position: absolute;
  left: 12px;
  bottom: -8px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #2d2d2d;
}

.tfs-form {
  padding: 16px 12px 12px;
  display: grid;
  gap: 11px;
}

.tfs-form label {
  display: grid;
  gap: 5px;
}

.tfs-form label span {
  font-size: 12px;
  color: #4f4f4f;
  font-weight: 700;
}

.tfs-form input {
  width: 100%;
  border: 1px solid #777;
  min-height: 40px;
  padding: 0 10px;
  font: inherit;
  background: #fff;
}

.tfs-inline-link {
  color: #202020;
  font-size: 13px;
  text-decoration: underline;
}

.tfs-primary-button {
  min-height: 40px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, #5e92c8 0%, #2468ad 100%);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
}

.tfs-action-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #cdcdcd;
  background: #fff;
}

.tfs-action-row a {
  min-height: 70px;
  padding: 12px 10px;
  display: grid;
  place-items: center;
  border-right: 1px solid #d7d7d7;
  color: #1b3b73;
  text-align: center;
  font-size: 13px;
}

.tfs-action-row a:last-child { border-right: 0; }

.tfs-hero-promo {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

.tfs-hero-graphic {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0530cc 0%, #0530cc 42%, #fafafa 42%, #fafafa 100%);
}

.tfs-route-shape {
  position: absolute;
  right: 110px;
  top: 14px;
  width: 350px;
  height: 290px;
  border: 6px solid #0b34c8;
  border-top-right-radius: 150px;
  border-bottom-right-radius: 150px;
  border-left: 0;
  transform: rotate(15deg);
  opacity: .92;
}

.tfs-route-lines {
  position: absolute;
  right: 160px;
  top: 48px;
  width: 220px;
  height: 180px;
  border-right: 8px solid #0b34c8;
  box-shadow: -16px 0 0 #0b34c8, 40px 120px 0 0 #9ca7b1;
  transform: rotate(15deg);
}

.tfs-stop-dot {
  position: absolute;
  right: 110px;
  bottom: 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  border: 5px solid #111;
  box-shadow: -40px -18px 0 0 #ffd400, -80px -32px 0 0 #009540, -120px -48px 0 0 #1d59d1;
}

.tfs-download-card {
  position: absolute;
  right: 28px;
  bottom: 34px;
  width: 270px;
  background: rgba(27,27,27,.88);
  color: #fff;
  padding: 18px 18px 16px;
}

.tfs-download-card h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 28px;
  line-height: 1.02;
}

.tfs-download-card p {
  margin: 0 0 12px;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  line-height: 1.45;
}

.tfs-download-card a { color: #fff; font-weight: 700; }

.tfs-content-section {
  padding-top: 14px;
  padding-bottom: 54px;
}

.tfs-content-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
}

.tfs-status-column,
.tfs-tools-column,
.tfs-feature-card,
.tfs-large-aside-card,
.tfs-tool-card,
.tfs-link-row,
.tfs-link-stack a {
  background: #fff;
}

.tfs-status-column {
  border: 1px solid #cdcdcd;
}

.tfs-status-header {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid #dadada;
}

.tfs-line-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 38px;
  font-size: 13px;
  color: #111;
  border-bottom: 1px solid #ececec;
}

.tfs-line-status::before {
  content: '';
  width: 10px;
  align-self: stretch;
  grid-row: 1 / span 2;
  margin-right: 10px;
}

.tfs-line-status {
  padding-right: 12px;
}

.tfs-line-status span:first-child { display: none; }

.tfs-line-status > span,
.tfs-line-status {
  gap: 10px;
}

.tfs-line-status {
  padding-left: 0;
}

.tfs-line-status { position: relative; }
.tfs-line-status { }
.tfs-line-status { }

.tfs-line-status::after {
  content: '›';
  color: #808080;
  margin-left: 8px;
}

.tfs-line-status { }
.tfs-line-status.bakerloo::before { background: #b36305; }
.tfs-line-status.district::before { background: #00782a; }
.tfs-line-status.dlr::before { background: #00afad; }
.tfs-line-status.piccadilly::before { background: #0019a8; }
.tfs-line-status.waterloo::before { background: #76d0bd; }
.tfs-line-status.central::before { background: #dc241f; }
.tfs-line-status.jubilee::before { background: #7c878e; }
.tfs-line-status.metropolitan::before { background: #9b0056; }
.tfs-line-status.suffragette::before { background: #18a95b; }
.tfs-line-status.elizabeth::before { background: #6950a1; }

.tfs-line-status {
  padding-left: 12px;
}

.tfs-line-status b,
.tfs-line-status em {
  font-style: normal;
}

.tfs-line-status {
  font-weight: 500;
}

.tfs-line-status span {
  color: #444;
  font-weight: 400;
}

.tfs-line-status {
  display: flex;
  align-items: center;
}

.tfs-line-status::before {
  flex: 0 0 10px;
  margin-right: 12px;
}

.tfs-line-status span {
  margin-left: auto;
  text-align: right;
}

.tfs-link-row,
.tfs-link-stack a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 14px;
  border-top: 1px solid #ddd;
  color: #17345f;
}

.tfs-link-row::after,
.tfs-link-stack a::after {
  content: '›';
  color: #6d6d6d;
}

.tfs-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tfs-feature-card {
  border: 1px solid #cdcdcd;
  overflow: hidden;
}

.tfs-feature-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.tfs-feature-copy {
  padding: 16px 16px 18px;
}

.tfs-feature-copy h2 {
  margin: 0 0 8px;
  font-size: 31px;
  line-height: 1.02;
  color: #17345f;
}

.tfs-feature-copy p {
  margin: 0 0 14px;
  color: #555;
  line-height: 1.45;
}

.tfs-feature-copy a {
  color: #17345f;
  font-weight: 700;
}

.tfs-feature-card--text {
  min-height: 230px;
}

.tfs-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.tfs-tool-card {
  border: 1px solid #cdcdcd;
  min-height: 112px;
  padding: 12px;
  display: flex;
  align-items: end;
  color: #17345f;
  font-size: 18px;
}

.tfs-large-aside-card {
  border: 1px solid #cdcdcd;
  overflow: hidden;
  margin-bottom: 18px;
}

.tfs-large-aside-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.tfs-large-aside-card div { padding: 14px; }

.tfs-large-aside-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.02;
  color: #17345f;
}

.tfs-large-aside-card p {
  margin: 0 0 12px;
  color: #555;
  line-height: 1.45;
}

.tfs-large-aside-card a { color: #17345f; font-weight: 700; }

.tfs-link-stack {
  border: 1px solid #cdcdcd;
  border-top: 0;
}

.tfs-link-stack a:first-child {
  border-top: 1px solid #ddd;
}

@media (max-width: 1160px) {
  .tfs-hero-grid,
  .tfs-content-grid {
    grid-template-columns: 1fr;
  }

  .tfs-hero-promo {
    min-height: 300px;
  }

  .tfs-feature-grid {
    grid-template-columns: 1fr;
  }

  .tfs-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .tfs-topband-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .tfs-quick-nav {
    gap: 12px;
  }

  .tfs-download-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 24px;
  }

  .tfs-route-shape,
  .tfs-route-lines,
  .tfs-stop-dot {
    opacity: .45;
  }
}

@media (max-width: 640px) {
  .tfs-panel-title { font-size: 23px; }
  .tfs-tools-grid { grid-template-columns: 1fr; }
  .tfs-action-row { grid-template-columns: 1fr; }
  .tfs-action-row a { border-right: 0; border-bottom: 1px solid #d7d7d7; }
  .tfs-action-row a:last-child { border-bottom: 0; }
}


/* ---- v11.4 Stockstead service status panel ---- */
.tfs-page .tfs-content-grid {
  grid-template-columns: 305px minmax(0, 1fr) 250px;
}

.tfs-status-list {
  display: grid;
}

.tfs-status-item {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #d7d7d7;
  background: #fff;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
  align-items: stretch;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.tfs-status-item:last-child { border-bottom: 0; }

.tfs-status-item:hover,
.tfs-status-item.active {
  box-shadow: inset 0 0 0 2px #163b74;
  position: relative;
  z-index: 1;
}

.tfs-status-line {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 16px 18px;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 500;
}

.tfs-status-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px;
  background: #f6f2e8;
  color: #1d507f;
  font-size: 14px;
  line-height: 1.3;
}

.tfs-status-item:not(.is-disrupted) .tfs-status-meta {
  background: #fff;
  color: #1f1f1f;
}

.tfs-status-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f2e8;
  color: #1d507f;
  font-size: 30px;
  line-height: 1;
}

.tfs-status-item:not(.is-disrupted) .tfs-status-plus {
  display: none;
}

.line-bakerloo .tfs-status-line { background: #b36305; }
.line-central .tfs-status-line { background: #dc241f; }
.line-circle .tfs-status-line { background: #ffd300; color: #121212; }
.line-district .tfs-status-line { background: #00782a; }
.line-dlr .tfs-status-line { background: #00afad; color: #111; }
.line-elizabeth .tfs-status-line { background: #6950a1; }
.line-hammersmith .tfs-status-line { background: #e88ca8; color: #111; }
.line-jubilee .tfs-status-line { background: #7c878e; }
.line-liberty .tfs-status-line { background: #6b7377; }
.line-lioness .tfs-status-line { background: #ffb200; color: #111; }
.line-metropolitan .tfs-status-line { background: #9b0056; }
.line-mildmay .tfs-status-line { background: #1d73d8; }
.line-northern .tfs-status-line { background: #000; }
.line-piccadilly .tfs-status-line { background: #0019a8; }
.line-suffragette .tfs-status-line { background: #1eb25f; color: #111; }
.line-tram .tfs-status-line { background: #66c21f; color: #111; }
.line-victoria .tfs-status-line { background: #1d9add; color: #111; }
.line-waterloo .tfs-status-line { background: #76d0bd; color: #111; }
.line-weaver .tfs-status-line { background: #b90065; }
.line-windrush .tfs-status-line { background: #e71f1f; }

.tfs-status-panel {
  background: #fff;
  border: 1px solid #cdcdcd;
  margin-bottom: 18px;
  padding: 22px 24px;
}

.tfs-status-panel-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.tfs-status-kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  color: #65758c;
  font-weight: 700;
}

.tfs-status-panel h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  color: #17345f;
}

.tfs-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.tfs-status-pill.is-alert { background: #fff1de; color: #8a4b00; }
.tfs-status-pill.is-good { background: #e8f7ed; color: #146c37; }

.tfs-status-summary {
  margin: 0 0 14px;
  color: #364861;
  font-size: 16px;
  line-height: 1.5;
}

.tfs-status-detail-list {
  margin: 0;
  padding-left: 20px;
  color: #17345f;
  display: grid;
  gap: 8px;
}

.tfs-status-panel-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e4e4e4;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: #6e7787;
  font-size: 13px;
}

.tfs-status-api-note {
  font-weight: 500;
}

@media (max-width: 1160px) {
  .tfs-page .tfs-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .tfs-status-item {
    grid-template-columns: 1fr;
  }

  .tfs-status-plus { display: none !important; }

  .tfs-status-panel-top {
    flex-direction: column;
  }
}

/* ---- v11.5 inline dropdown status updates ---- */
.tfs-page .tfs-content-grid {
  grid-template-columns: minmax(0, 1fr) 260px !important;
}

.tfs-status-column {
  grid-column: 1 / -1;
  width: 100%;
}

.tfs-status-list {
  border-top: 1px solid #d7d7d7;
}

.tfs-status-item {
  grid-template-columns: 305px minmax(0, 1fr) 54px !important;
  border-bottom: 1px solid #d7d7d7 !important;
}

.tfs-status-item.active {
  box-shadow: inset 0 0 0 2px #162f5f !important;
}

.tfs-status-item.active .tfs-status-plus {
  transform: rotate(45deg);
}

.tfs-status-plus {
  transition: transform .16s ease;
}

.tfs-status-dropdown {
  background: #f7f9fb;
  border-left: 6px solid #0a7f3f;
  border-right: 2px solid #162f5f;
  border-bottom: 2px solid #162f5f;
}

.tfs-status-dropdown[hidden] {
  display: none !important;
}

.tfs-status-dropdown-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  padding: 28px 34px 30px 340px;
}

.tfs-status-dropdown-kicker {
  display: block;
  margin-bottom: 8px;
  color: #36506e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tfs-status-dropdown h3 {
  margin: 0 0 10px;
  color: #102f5c;
  font-size: 26px;
  line-height: 1.1;
}

.tfs-status-dropdown p {
  margin: 0 0 16px;
  color: #10243f;
  line-height: 1.55;
}

.tfs-status-dropdown ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: #10243f;
}

.tfs-status-dropdown-footer {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #d9e0e8;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: #5d6d80;
  font-size: 13px;
}

.tfs-replan-button {
  align-self: end;
  justify-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 2px solid #0530cc;
  border-radius: 7px;
  color: #0530cc;
  background: #fff;
  font-weight: 700;
}

.tfs-status-dropdown.is-good {
  border-left-color: #0a7f3f;
}

.tfs-main-column {
  grid-column: 1 / 2;
}

.tfs-tools-column {
  grid-column: 2 / 3;
}

@media (max-width: 1160px) {
  .tfs-page .tfs-content-grid {
    grid-template-columns: 1fr !important;
  }

  .tfs-main-column,
  .tfs-tools-column {
    grid-column: auto;
  }

  .tfs-status-item {
    grid-template-columns: 240px minmax(0, 1fr) 50px !important;
  }

  .tfs-status-dropdown-inner {
    padding-left: 270px;
  }
}

@media (max-width: 760px) {
  .tfs-status-item {
    grid-template-columns: 1fr !important;
  }

  .tfs-status-dropdown-inner {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .tfs-replan-button {
    justify-self: start;
    min-width: min(100%, 280px);
  }
}


/* ---- v11.6 restore TfS three-column layout with inline accordion ---- */
.tfs-page .tfs-content-grid {
  grid-template-columns: 240px minmax(0, 1fr) 260px !important;
  gap: 18px !important;
  align-items: start !important;
}

.tfs-status-column {
  grid-column: auto !important;
  width: auto !important;
}

.tfs-main-column,
.tfs-tools-column {
  grid-column: auto !important;
}

.tfs-status-list {
  border-top: 0 !important;
  display: block !important;
}

.tfs-status-item {
  grid-template-columns: 112px minmax(0, 1fr) 34px !important;
  min-height: 56px;
}

.tfs-status-line {
  min-height: 56px !important;
  padding: 10px 12px !important;
  font-size: 15px !important;
}

.tfs-status-meta {
  gap: 4px !important;
  padding: 10px 12px !important;
  font-size: 12px !important;
}

.tfs-status-plus {
  font-size: 26px !important;
}

.tfs-status-item:not(.is-disrupted) {
  grid-template-columns: 112px minmax(0, 1fr) !important;
}

.tfs-status-item:not(.is-disrupted) .tfs-status-meta {
  background: #fff !important;
}

.tfs-status-dropdown {
  border-left: 4px solid #163b74 !important;
  border-right: 1px solid #cdcdcd !important;
  border-bottom: 1px solid #cdcdcd !important;
  background: #fff !important;
}

.tfs-status-dropdown-inner {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  padding: 16px 16px 18px 16px !important;
}

.tfs-status-dropdown-kicker {
  margin-bottom: 6px !important;
  font-size: 11px !important;
}

.tfs-status-dropdown h3 {
  font-size: 20px !important;
  margin-bottom: 8px !important;
}

.tfs-status-dropdown p,
.tfs-status-dropdown ul {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.tfs-status-dropdown-footer {
  margin-top: 14px !important;
  padding-top: 12px !important;
  font-size: 12px !important;
}

.tfs-replan-button {
  width: 100%;
  min-height: 42px !important;
  justify-self: stretch !important;
  border-radius: 4px !important;
}

.tfs-feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1160px) {
  .tfs-page .tfs-content-grid {
    grid-template-columns: 1fr !important;
  }

  .tfs-status-item,
  .tfs-status-item:not(.is-disrupted) {
    grid-template-columns: 112px minmax(0, 1fr) 34px !important;
  }
}

@media (max-width: 640px) {
  .tfs-status-item,
  .tfs-status-item:not(.is-disrupted) {
    grid-template-columns: 1fr !important;
  }

  .tfs-status-line,
  .tfs-status-meta {
    min-height: auto !important;
  }

  .tfs-status-plus {
    display: none !important;
  }
}


/* ---- v11.7 Transport for Stockstead hero background image ---- */
.tfs-page .tfs-hero-section {
  background: #0530cc;
}

.tfs-page .tfs-hero-promo {
  background: #0530cc;
}

.tfs-page .tfs-hero-graphic {
  background-image: linear-gradient(90deg, rgba(5,48,204,0.08) 0%, rgba(5,48,204,0.08) 100%), url('images/tfs-hero-background-platform.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.tfs-page .tfs-route-shape,
.tfs-page .tfs-route-lines,
.tfs-page .tfs-stop-dot {
  display: none;
}

.tfs-page .tfs-download-card {
  background: rgba(19, 19, 19, 0.78);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}


/* ---- v11.8 TfS 3-column layout polish ---- */
.tfs-page .tfs-content-grid {
  grid-template-columns: 240px minmax(0, 1.12fr) minmax(0, 0.88fr) !important;
  gap: 18px !important;
}

.tfs-page .tfs-main-column,
.tfs-page .tfs-tools-column {
  min-width: 0;
}

.tfs-page .tfs-feature-grid {
  grid-template-columns: 1fr !important;
  gap: 18px !important;
}

.tfs-page .tfs-feature-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.tfs-page .tfs-large-aside-card img {
  width: 100%;
  height: 176px;
  object-fit: cover;
  display: block;
}

.tfs-page .tfs-large-aside-card--full-image img {
  width: 100%;
  height: 178px;
  object-fit: cover;
}

.tfs-page .tfs-feature-card--text {
  min-height: 0;
}

@media (max-width: 1280px) {
  .tfs-page .tfs-content-grid {
    grid-template-columns: 240px minmax(0, 1fr) minmax(0, 0.9fr) !important;
  }
}

@media (max-width: 1160px) {
  .tfs-page .tfs-content-grid {
    grid-template-columns: 1fr !important;
  }

  .tfs-page .tfs-feature-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ---- v11.8 TfS layout + arrow fix ---- */

/* Hero image should fill the whole hero band, not only the right panel */
.tfs-page .tfs-hero-section {
  background:
    linear-gradient(90deg, rgba(5,48,204,.30) 0%, rgba(5,48,204,.10) 34%, rgba(5,48,204,.04) 100%),
    url('images/tfs-hero-background-platform.png') center center / cover no-repeat !important;
}

.tfs-page .tfs-hero-promo {
  background: transparent !important;
}

.tfs-page .tfs-hero-graphic {
  background: transparent !important;
}

/* Restore the page as three visible columns:
   1 status, 2 content, 3 tools */
.tfs-page .tfs-content-grid {
  grid-template-columns: 240px minmax(0, 1fr) 260px !important;
  gap: 18px !important;
}

.tfs-page .tfs-feature-grid {
  grid-template-columns: 1fr !important;
  gap: 18px !important;
}

.tfs-page .tfs-tools-column {
  grid-column: auto !important;
}

.tfs-page .tfs-main-column {
  grid-column: auto !important;
}

/* Fix status expand icon:
   The whole cell was rotating. Only the arrow should rotate. */
.tfs-status-plus {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f6f2e8 !important;
  color: #1d507f !important;
  font-size: 0 !important;
  line-height: 1 !important;
  transform: none !important;
  transition: none !important;
}

.tfs-status-plus::before {
  content: '›';
  display: block;
  font-size: 28px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .16s ease;
}

.tfs-status-item.active .tfs-status-plus {
  transform: none !important;
}

.tfs-status-item.active .tfs-status-plus::before {
  transform: rotate(90deg);
}

.tfs-status-item.active .tfs-status-meta,
.tfs-status-item.active .tfs-status-plus {
  background: #f6f2e8 !important;
}

@media (max-width: 1160px) {
  .tfs-page .tfs-content-grid {
    grid-template-columns: 1fr !important;
  }

  .tfs-page .tfs-feature-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ---- v11.9 TfS column ratio polish ---- */
/* Make the three main TfS columns match the reference more closely:
   a clear left status column, a broader central content column,
   and a right tools column with similar visual weight. */
.tfs-page .tfs-content-grid {
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.18fr) minmax(320px, 0.95fr) !important;
  align-items: start !important;
}

/* Keep stacked cards neat inside each column */
.tfs-page .tfs-main-column,
.tfs-page .tfs-tools-column,
.tfs-page .tfs-status-column {
  min-width: 0;
}

@media (max-width: 1320px) {
  .tfs-page .tfs-content-grid {
    grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 1.08fr) minmax(280px, 0.92fr) !important;
  }
}


/* ---- v12.0 TfS status list ratio fix ---- */
/* Match the reference better: a wider left status sidebar and
   slightly broader coloured line-name blocks. */
.tfs-page .tfs-content-grid {
  grid-template-columns: 286px minmax(0, 1fr) 286px !important;
  gap: 18px !important;
}

.tfs-status-item {
  grid-template-columns: 124px minmax(0, 1fr) 34px !important;
}

.tfs-status-item:not(.is-disrupted) {
  grid-template-columns: 124px minmax(0, 1fr) !important;
}

.tfs-status-line {
  min-height: 58px !important;
  padding: 10px 14px !important;
  font-size: 15px !important;
}

.tfs-status-meta {
  padding: 10px 14px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.tfs-status-header {
  padding: 14px 16px !important;
}

@media (max-width: 1240px) {
  .tfs-page .tfs-content-grid {
    grid-template-columns: 270px minmax(0, 1fr) 270px !important;
  }

  .tfs-status-item,
  .tfs-status-item:not(.is-disrupted) {
    grid-template-columns: 118px minmax(0, 1fr) 32px !important;
  }
}


/* ---- v12.1 TfS ratio correction ---- */
/* Undo the too-wide centre column from v12.0.
   Keep the TfL-like 3-column page layout, but make the line-name colour block
   inside the status list take more of the left panel width. */
.tfs-page .tfs-content-grid {
  grid-template-columns: 300px minmax(360px, 1fr) 260px !important;
  gap: 18px !important;
}

.tfs-status-item {
  grid-template-columns: 132px minmax(0, 1fr) 32px !important;
}

.tfs-status-item:not(.is-disrupted) {
  grid-template-columns: 132px minmax(0, 1fr) !important;
}

.tfs-status-line {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

.tfs-status-meta {
  padding-left: 14px !important;
  padding-right: 10px !important;
}

@media (max-width: 1240px) {
  .tfs-page .tfs-content-grid {
    grid-template-columns: 286px minmax(340px, 1fr) 240px !important;
  }

  .tfs-status-item,
  .tfs-status-item:not(.is-disrupted) {
    grid-template-columns: 126px minmax(0, 1fr) 30px !important;
  }
}

@media (max-width: 1160px) {
  .tfs-page .tfs-content-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ---- v12.2 TfS three-column balance fix ---- */
/* Make the TfS layout visually even across the three columns:
   balanced left/right side columns, with the centre content column between them. */
.tfs-page .tfs-content-grid {
  grid-template-columns: 300px minmax(0, 1fr) 300px !important;
  gap: 18px !important;
}

@media (max-width: 1240px) {
  .tfs-page .tfs-content-grid {
    grid-template-columns: 280px minmax(0, 1fr) 280px !important;
  }
}

@media (max-width: 1160px) {
  .tfs-page .tfs-content-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ---- v12.3 TfS equal three columns ---- */
/* Force the TfS content area to use three equal columns.
   This overrides earlier ratio attempts. */
.tfs-page .tfs-content-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: start !important;
}

.tfs-page .tfs-status-column,
.tfs-page .tfs-main-column,
.tfs-page .tfs-tools-column {
  min-width: 0 !important;
  width: auto !important;
  grid-column: auto !important;
}

/* Make the line colour block keep the right ratio inside the wider status column */
.tfs-status-item {
  grid-template-columns: 44% minmax(0, 1fr) 34px !important;
}

.tfs-status-item:not(.is-disrupted) {
  grid-template-columns: 44% minmax(0, 1fr) !important;
}

.tfs-status-line {
  min-width: 0 !important;
}

.tfs-status-meta {
  min-width: 0 !important;
}

@media (max-width: 1160px) {
  .tfs-page .tfs-content-grid {
    grid-template-columns: 1fr !important;
  }

  .tfs-status-item,
  .tfs-status-item:not(.is-disrupted) {
    grid-template-columns: 44% minmax(0, 1fr) 34px !important;
  }
}

@media (max-width: 640px) {
  .tfs-status-item,
  .tfs-status-item:not(.is-disrupted) {
    grid-template-columns: 1fr !important;
  }
}

/* v12.4 Transport for Stockstead logo + maps page */
.tfs-brandmark--image {
  display: inline-flex;
  align-items: center;
}

.tfs-brand-image {
  display: block;
  width: auto;
  height: 36px;
}

.tfs-topband--maps {
  background: #2b2f3a;
  border-bottom: 1px solid #1a1d23;
}

.tfs-topband-inner--maps {
  gap: 24px;
}

.tfs-quick-nav--maps {
  gap: 0;
  flex-wrap: wrap;
}

.tfs-quick-nav--maps a {
  padding: 14px 16px;
  color: #fff;
  border-bottom: 3px solid transparent;
}

.tfs-quick-nav--maps a.active,
.tfs-quick-nav--maps a:hover {
  background: rgba(255,255,255,0.06);
  border-bottom-color: #1c59d1;
}

.tfs-maps-main {
  background: #f1f1f1;
}

.tfs-maps-content {
  padding: 22px 0 56px;
}

.tfs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #6c7684;
  margin-bottom: 24px;
}

.tfs-breadcrumb a {
  color: #2c5fa8;
  text-decoration: none;
}

.tfs-breadcrumb strong {
  color: #17345f;
}

.tfs-maps-title-row {
  margin-bottom: 18px;
  border-bottom: 1px solid #cfcfcf;
  padding-bottom: 10px;
}

.tfs-maps-title-row h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  color: #17345f;
}

.tfs-maps-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

.tfs-maps-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tfs-map-card {
  background: #fff;
  border: 1px solid #c7c7c7;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tfs-map-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.tfs-map-card-copy {
  padding: 16px 14px 14px;
}

.tfs-map-card-copy h2 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #111;
}

.tfs-map-card-copy p {
  margin: 0 0 12px;
  color: #434b58;
  line-height: 1.5;
}

.tfs-map-card-copy a {
  color: #17345f;
  font-weight: 700;
  text-decoration: none;
}

.tfs-maps-sidebar {
  display: grid;
  gap: 18px;
}

.tfs-maps-search-card,
.tfs-maps-side-note {
  background: transparent;
  border: 0;
  padding: 6px 0;
}

.tfs-maps-search-card h2 {
  margin: 0 0 10px;
  font-size: 32px;
  color: #17345f;
}

.tfs-maps-search-card p,
.tfs-maps-side-note p {
  margin: 0 0 14px;
  color: #39414d;
  line-height: 1.6;
}

.tfs-maps-search-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.tfs-maps-search-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #737b87;
  background: #fff;
  padding: 12px 12px;
  font: inherit;
}

.tfs-maps-search-form button {
  border: 1px solid #2d5da4;
  background: #2d5da4;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
}

.tfs-maps-side-note {
  background: #fff;
  border: 1px solid #c7c7c7;
  padding: 18px;
}

.tfs-maps-side-note img {
  height: 34px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

@media (max-width: 980px) {
  .tfs-maps-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tfs-maps-cards {
    grid-template-columns: 1fr;
  }

  .tfs-maps-search-form {
    flex-direction: column;
  }

  .tfs-topband-inner--maps {
    align-items: flex-start;
  }
}


/* ---- v12.5 Transport for Stockstead roundel wordmark ---- */
.tfs-brandmark--custom {
  gap: 10px;
  text-decoration: none;
}

.tfs-brandmark-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.tfs-roundel-image {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.tfs-brandmark-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: #fff;
  font-size: 12px;
  line-height: 1.05;
  letter-spacing: .06em;
  font-weight: 700;
}

.tfs-brandmark-text span {
  display: block;
}

.tfs-brandmark-text--navy {
  color: #17345f;
}

.tfs-brandmark-symbol--navy {
  filter: invert(18%) sepia(46%) saturate(1036%) hue-rotate(182deg) brightness(92%) contrast(91%);
}

.tfs-maps-side-note-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tfs-maps-side-note-brand .tfs-roundel-image {
  width: 46px;
  height: 46px;
}

@media (max-width: 820px) {
  .tfs-brandmark--custom {
    gap: 8px;
  }

  .tfs-roundel-image {
    width: 46px;
    height: 46px;
  }

  .tfs-brandmark-text {
    font-size: 11px;
  }
}


/* ---- v12.7 TfS live arrivals page ---- */
/* v12.38: Live arrivals hero uses station screenshot background. */
.tfs-live-main { background: #f3f3f3; }
.tfs-breadcrumb--dark { color: #fff; margin-bottom: 34px; }
.tfs-breadcrumb--dark a,
.tfs-breadcrumb--dark strong { color: #fff; }

.tfs-live-hero {
  background-color: #102bb4;
  background-image: linear-gradient(90deg, rgba(0, 18, 58, .84), rgba(0, 35, 92, .62)), url("/assets/images/tfs-live-arrivals-bg.jpg");
  background-size: cover;
  background-position: center 48%;
  background-repeat: no-repeat;
  color: #fff;
  padding: 34px 0 34px;
}

.tfs-live-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 38px;
  align-items: end;
}

.tfs-live-hero h1 {
  display: inline-block;
  margin: 0 0 44px;
  padding: 10px 14px;
  background: #282c35;
  color: #fff;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.06;
}

.tfs-live-search {
  width: min(100%, 520px);
  background: #f1f1f1;
  padding: 18px;
  color: #111;
}

.tfs-live-search label {
  display: grid;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
}

.tfs-live-search label > div { display: flex; gap: 10px; }

.tfs-live-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid #2d2d2d;
  padding: 12px 12px;
  font: inherit;
}

.tfs-live-search button {
  border: 0;
  background: #2d6faf;
  color: #fff;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tfs-live-app-card {
  background: #2c303a;
  border-bottom: 4px solid #2d6faf;
  padding: 22px;
}

.tfs-live-app-card h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 28px;
}

.tfs-live-app-card p {
  margin: 0 0 14px;
  color: rgba(255,255,255,.9);
  line-height: 1.5;
}

.tfs-live-app-card a { color: #fff; font-weight: 700; }

.tfs-live-content { padding: 28px 0 60px; }

.tfs-live-panel {
  border: 1px solid #c9c9c9;
  background: #fff;
}

.tfs-live-panel-header {
  background: #efefef;
  border-bottom: 1px solid #d2d2d2;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tfs-live-panel-header div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tfs-live-panel-header img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: invert(15%) sepia(76%) saturate(3235%) hue-rotate(220deg) brightness(83%) contrast(100%);
}

.tfs-live-panel-header h2 {
  margin: 0;
  color: #1a1f2c;
  font-size: 28px;
}

.tfs-live-panel-header button {
  border: 0;
  background: transparent;
  color: #17345f;
  font-size: 26px;
  cursor: pointer;
}

.tfs-live-lines-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 10px;
  padding: 22px 24px 26px;
}

.tfs-live-line {
  min-height: 48px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d1d1d1;
  border-left-width: 12px;
  padding: 0 16px;
  color: #17243a;
  font-size: 18px;
  text-decoration: none;
}

.tfs-live-line:hover { background: #eef4fb; }

.tfs-live-line.line-bakerloo { border-left-color: #b36305; }
.tfs-live-line.line-central { border-left-color: #dc241f; }
.tfs-live-line.line-circle { border-left-color: #ffd300; }
.tfs-live-line.line-district { border-left-color: #00782a; }
.tfs-live-line.line-dlr { border-left-color: #00afad; }
.tfs-live-line.line-elizabeth { border-left-color: #6950a1; }
.tfs-live-line.line-hammersmith { border-left-color: #e88ca8; }
.tfs-live-line.line-jubilee { border-left-color: #7c878e; }
.tfs-live-line.line-liberty { border-left-color: #6b7377; }
.tfs-live-line.line-lioness { border-left-color: #ffb200; }
.tfs-live-line.line-cablecar { border-left-color: #dc241f; }
.tfs-live-line.line-metropolitan { border-left-color: #9b0056; }
.tfs-live-line.line-mildmay { border-left-color: #1d73d8; }
.tfs-live-line.line-northern { border-left-color: #000; }
.tfs-live-line.line-piccadilly { border-left-color: #0019a8; }
.tfs-live-line.line-suffragette { border-left-color: #1eb25f; }
.tfs-live-line.line-tram { border-left-color: #66c21f; }
.tfs-live-line.line-victoria { border-left-color: #1d9add; }
.tfs-live-line.line-waterloo { border-left-color: #76d0bd; }
.tfs-live-line.line-weaver { border-left-color: #b90065; }
.tfs-live-line.line-windrush { border-left-color: #e71f1f; }

.tfs-live-secondary-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #c9c9c9;
  background: #fff;
}

.tfs-live-secondary-grid a {
  min-height: 50px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #17345f;
  border-right: 1px solid #d5d5d5;
  text-decoration: none;
  font-weight: 700;
}

.tfs-live-secondary-grid a:last-child { border-right: 0; }

@media (max-width: 1020px) {
  .tfs-live-hero-grid { grid-template-columns: 1fr; }
  .tfs-live-lines-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tfs-live-secondary-grid { grid-template-columns: 1fr; }
  .tfs-live-secondary-grid a {
    border-right: 0;
    border-bottom: 1px solid #d5d5d5;
  }
}

@media (max-width: 640px) {
  .tfs-live-lines-grid { grid-template-columns: 1fr; }
  .tfs-live-search label > div { flex-direction: column; }
  .tfs-live-search button { min-height: 42px; }
}

/* ---- v12.8 station search and station page ---- */
.tfs-live-search {
  position: relative;
  z-index: 4;
}

.tfs-live-search-box {
  position: relative;
}

.tfs-station-results {
  position: absolute;
  left: 18px;
  right: 18px;
  top: calc(100% - 18px);
  background: #fff;
  border: 1px solid #b8b8b8;
  box-shadow: 0 12px 22px rgba(0,0,0,.18);
  z-index: 10;
  color: #111;
}

.tfs-station-result-kicker {
  padding: 8px 12px;
  color: #4f5c70;
  font-size: 12px;
  font-style: italic;
  border-bottom: 1px solid #d6d6d6;
}

.tfs-station-result,
.tfs-station-result-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid #d6d6d6;
  text-decoration: none;
  color: #063b85;
  background: #fff;
}

.tfs-station-result:last-child {
  border-bottom: 0;
}

.tfs-station-result:hover,
.tfs-station-result:focus-visible {
  background: #eef5ff;
}

.tfs-station-result-text {
  display: grid;
  gap: 3px;
}

.tfs-station-result-text strong {
  font-size: 16px;
}

.tfs-station-result-text small {
  color: #25558f;
  font-size: 13px;
  line-height: 1.35;
}

.tfs-station-result-modes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 19px;
}

.tfs-station-hero {
  background: #102bb4;
  color: #fff;
  padding: 28px 0 44px;
}

.tfs-station-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
}

.tfs-station-hero p {
  margin: 0 0 18px;
  max-width: 720px;
  color: rgba(255,255,255,.92);
  font-size: 20px;
  line-height: 1.45;
}

.tfs-station-line-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tfs-station-line-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-weight: 700;
}

.tfs-station-content {
  padding: 28px 0 60px;
}

.tfs-station-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
}

.tfs-station-card {
  background: #fff;
  border: 1px solid #cfcfcf;
  padding: 22px;
}

.tfs-station-card h2 {
  margin: 0 0 16px;
  color: #17345f;
  font-size: 30px;
}

.tfs-station-card h3 {
  margin: 22px 0 10px;
  color: #17345f;
}

.tfs-arrivals-board {
  display: grid;
  border-top: 1px solid #d7d7d7;
}

.tfs-arrival-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border-bottom: 1px solid #d7d7d7;
  gap: 18px;
}

.tfs-arrival-row span {
  font-size: 18px;
}

.tfs-arrival-row strong {
  color: #17345f;
  font-size: 18px;
}

.tfs-station-details {
  display: grid;
  gap: 12px;
  margin: 0;
}

.tfs-station-details div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
}

.tfs-station-details dt {
  font-weight: 700;
  color: #53647a;
}

.tfs-station-details dd {
  margin: 0;
  color: #10243f;
}

@media (max-width: 840px) {
  .tfs-station-grid {
    grid-template-columns: 1fr;
  }

  .tfs-station-results {
    left: 18px;
    right: 18px;
  }
}

/* ---- v12.9 Dispatcher live arrivals API ---- */
.tfs-station-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.tfs-station-card-heading h2 {
  margin-bottom: 0;
}

.tfs-station-card-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  background: #eef4fb;
  color: #17345f;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tfs-arrivals-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}

.tfs-arrivals-tabs button {
  border: 1px solid #17345f;
  background: #fff;
  color: #17345f;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}

.tfs-arrivals-tabs button.active,
.tfs-arrivals-tabs button:hover {
  background: #17345f;
  color: #fff;
}

.tfs-arrival-row span {
  display: grid;
  gap: 3px;
}

.tfs-arrival-row span strong {
  color: #10243f;
  font-size: 18px;
}

.tfs-arrival-row span small {
  color: #53647a;
  font-size: 14px;
}

.tfs-arrival-row--platform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
}

.tfs-arrival-row em {
  color: #17345f;
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

.tfs-arrival-message {
  padding: 18px 0;
  color: #53647a;
  font-weight: 700;
}

.tfs-arrival-message--error {
  color: #9a1d1d;
}

@media (max-width: 640px) {
  .tfs-arrival-row--platform {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
    padding: 12px 0;
  }

  .tfs-arrival-row em {
    text-align: left;
  }
}

/* ---- v12.10 grouped live arrivals ---- */
.tfs-arrival-row--grouped em {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .tfs-arrival-row--grouped em {
    white-space: normal;
  }
}


/* ---- v12.16 TfS official line colours for live arrivals ---- */
.tfs-arrival-service strong {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tfs-line-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  height: 22px;
  padding: 0 10px;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

 .tfs-line-badge.line-bakerloo { background: #B36305; }
.tfs-line-badge.line-central { background: #E32017; }
.tfs-line-badge.line-circle { background: #FFD300; color: #111; }
.tfs-line-badge.line-district { background: #00782A; }
.tfs-line-badge.line-elizabeth { background: #6950A1; }
.tfs-line-badge.line-hammersmith { background: #F3A9BB; color: #111; }
.tfs-line-badge.line-jubilee { background: #A0A5A9; color: #fff; }
.tfs-line-badge.line-metropolitan { background: #9B0056; }
.tfs-line-badge.line-northern { background: #000000; }
.tfs-line-badge.line-piccadilly { background: #003688; }
.tfs-line-badge.line-victoria { background: #0098D4; color: #fff; }
.tfs-line-badge.line-waterloo { background: #95CDBA; color: #fff; }
.tfs-line-badge.line-dlr { background: #00A4A7; color: #fff; }
.tfs-line-badge.line-overground { background: #EE7C0E; color: #fff; }
.tfs-line-badge.line-trams { background: #84B817; color: #fff; }
.tfs-line-badge.line-cable-car { background: #E21836; }
.tfs-line-badge.line-generic { background: #17345f; }

.tfs-arrival-row--grouped em {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.tfs-platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 8px;
  background: #17345f;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 640px) {
  .tfs-arrival-row--grouped em {
    justify-content: flex-start;
  }
  .tfs-line-badge {
    min-width: 110px;
  }
}


/* ---- v12.19 Live arrivals right-column alignment ---- */
.tfs-arrival-row--platform {
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  column-gap: 24px;
}

.tfs-arrival-row--grouped em {
  display: grid;
  grid-template-columns: 36px minmax(120px, 1fr);
  align-items: center;
  justify-content: end;
  column-gap: 16px;
  min-width: 190px;
  white-space: nowrap;
}

.tfs-arrival-row--grouped em span {
  display: block;
  min-width: 120px;
  text-align: left;
  font-size: 20px;
  line-height: 1.15;
}

.tfs-platform-badge {
  width: 32px;
  min-width: 32px;
  height: 28px;
  padding: 0;
  justify-self: end;
}

@media (max-width: 700px) {
  .tfs-arrival-row--platform {
    grid-template-columns: minmax(0, 1fr) minmax(165px, auto);
    column-gap: 12px;
  }

  .tfs-arrival-row--grouped em {
    grid-template-columns: 34px minmax(96px, 1fr);
    min-width: 160px;
    column-gap: 10px;
  }

  .tfs-arrival-row--grouped em span {
    min-width: 96px;
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  .tfs-arrival-row--platform {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tfs-arrival-row--grouped em {
    justify-content: start;
  }
}


/* ---- v12.23 homepage TfS live line status ---- */
.homepage-line-status {
  margin-top: 28px;
  margin-bottom: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(19,42,74,.08);
  padding: 22px;
}

.homepage-line-status__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.homepage-line-status__header h2 {
  margin: 5px 0 0;
  color: #173a68;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.homepage-line-status__header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.homepage-line-status__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 12px;
}

.homepage-line-status__item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: start;
  min-height: 112px;
}

.homepage-line-status__item::before {
  content: "";
  grid-row: 1 / span 4;
  align-self: stretch;
  background: #173a68;
}

.homepage-line-status__item b,
.homepage-line-status__item span,
.homepage-line-status__item small,
.homepage-line-status__item em {
  margin-left: 14px;
  margin-right: 14px;
}

.homepage-line-status__item b {
  margin-top: 13px;
  color: #173a68;
  font-size: 18px;
}

.homepage-line-status__item span {
  margin-top: 3px;
  font-weight: 700;
  color: #0f172a;
}

.homepage-line-status__item small {
  margin-top: 5px;
  color: #5b6778;
  line-height: 1.35;
}

.homepage-line-status__item em {
  margin-top: 8px;
  margin-bottom: 12px;
  color: #728197;
  font-style: normal;
  font-size: 12px;
}

.homepage-line-status__item.line-bakerloo::before { background: #b36305; }
.homepage-line-status__item.line-central::before { background: #dc241f; }
.homepage-line-status__item.line-circle::before { background: #ffd300; }
.homepage-line-status__item.line-district::before { background: #00782a; }
.homepage-line-status__item.line-dlr::before { background: #00afad; }
.homepage-line-status__item.line-elizabeth::before { background: #6950a1; }
.homepage-line-status__item.line-hammersmith::before { background: #f3a9bb; }
.homepage-line-status__item.line-jubilee::before { background: #7c878e; }
.homepage-line-status__item.line-metropolitan::before { background: #9b0056; }
.homepage-line-status__item.line-northern::before { background: #000; }
.homepage-line-status__item.line-piccadilly::before { background: #0019a8; }
.homepage-line-status__item.line-victoria::before { background: #0098d4; }
.homepage-line-status__item.line-waterloo::before { background: #76d0bd; }
.homepage-line-status__item.line-overground::before { background: #ee7c0e; }
.homepage-line-status__item.line-trams::before { background: #84b817; }
.homepage-line-status__item.line-cable-car::before { background: #e21836; }

.homepage-line-status__loading,
.homepage-line-status__empty,
.homepage-line-status__all-good {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f3f6fa;
  color: #4f6074;
}

.homepage-line-status__all-good {
  background: #e9f8ee;
  color: #176b33;
  font-weight: 700;
}

@media (max-width: 720px) {
  .homepage-line-status__header { align-items: flex-start; flex-direction: column; }
}


/* ---- v12.25 Station line overview before live arrivals ---- */
.tfs-station-line-list {
  display: grid;
  border-top: 1px solid #d7d7d7;
}

.tfs-station-line-option {
  display: grid;
  grid-template-columns: minmax(130px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 12px 0;
  border-bottom: 1px solid #d7d7d7;
  color: #17345f;
  text-decoration: none;
}

.tfs-station-line-option:hover,
.tfs-station-line-option:focus-visible {
  background: #f3f7fc;
}

.tfs-station-line-option span {
  color: #10243f;
  font-size: 17px;
  font-weight: 700;
}

.tfs-station-line-option em {
  color: #17345f;
  font-size: 30px;
  font-style: normal;
  line-height: 1;
  padding-right: 6px;
}

.tfs-station-line-back {
  padding: 0 0 14px;
  border-bottom: 1px solid #d7d7d7;
}

.tfs-station-line-back a {
  color: #063b85;
  font-weight: 700;
  text-decoration: none;
}

.tfs-station-line-back a:hover,
.tfs-station-line-back a:focus-visible {
  text-decoration: underline;
}

.tfs-arrivals-board--nested {
  border-top: 0;
}

@media (max-width: 560px) {
  .tfs-station-line-option {
    grid-template-columns: 1fr auto;
  }

  .tfs-station-line-option .tfs-line-badge {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

/* ---- v12.27 TfS line pages and line directory ---- */
.line-liberty { --tfs-line-colour: #61686B; }
.line-lioness { --tfs-line-colour: #FFA600; }
.line-mildmay { --tfs-line-colour: #0077C8; }
.line-suffragette { --tfs-line-colour: #1EB53A; }
.line-weaver { --tfs-line-colour: #9B0056; }
.line-windrush { --tfs-line-colour: #E32017; }
.line-overground { --tfs-line-colour: #EE7C0E; }
.line-tram,
.line-trams { --tfs-line-colour: #84B817; }
.line-cable-car { --tfs-line-colour: #E21836; }
.line-bakerloo { --tfs-line-colour: #B36305; }
.line-central { --tfs-line-colour: #E32017; }
.line-circle { --tfs-line-colour: #FFD300; }
.line-district { --tfs-line-colour: #00782A; }
.line-dlr { --tfs-line-colour: #00A4A7; }
.line-elizabeth { --tfs-line-colour: #6950A1; }
.line-hammersmith { --tfs-line-colour: #F3A9BB; }
.line-jubilee { --tfs-line-colour: #A0A5A9; }
.line-metropolitan { --tfs-line-colour: #9B0056; }
.line-northern { --tfs-line-colour: #000000; }
.line-piccadilly { --tfs-line-colour: #003688; }
.line-victoria { --tfs-line-colour: #0098D4; }
.line-waterloo { --tfs-line-colour: #95CDBA; }
.line-generic { --tfs-line-colour: #17345f; }

.tfs-line-directory {
  border: 1px solid #d2d6dc;
  background: #fff;
  margin: 18px 0 28px;
}

.tfs-line-directory__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: #f3f3f3;
  border-bottom: 1px solid #d2d6dc;
}

.tfs-line-directory__roundel {
  color: #d783d7;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
}

.tfs-line-directory__header h2 {
  margin: 0;
  font-size: 30px;
  color: #001e4f;
}

.tfs-line-directory__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 12px;
  padding: 28px 30px 32px;
}

.tfs-line-directory__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 16px 0 34px;
  color: #001e4f;
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
  border: 1px solid #d2d6dc;
  border-bottom: 0;
  background: #fff;
}

.tfs-line-directory__item:nth-last-child(-n+3) {
  border-bottom: 1px solid #d2d6dc;
}

.tfs-line-directory__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: var(--tfs-line-colour, #17345f);
}

.tfs-line-directory__item:hover,
.tfs-line-directory__item:focus-visible,
.tfs-line-side-link:hover,
.tfs-line-side-link:focus-visible,
.tfs-line-station-row:hover,
.tfs-line-station-row:focus-visible {
  background: #f3f8ff;
}

.tfs-line-directory__item em,
.tfs-line-side-link em,
.tfs-line-station-row em {
  color: #005ea8;
  font-style: normal;
  font-size: 26px;
}

.tfs-line-hero {
  background: #f5f5f5;
  padding: 28px 0 26px;
}

.tfs-line-hero-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.tfs-line-hero h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  color: #1f2d44;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
}

.tfs-line-title-marker {
  display: inline-block;
  width: 10px;
  min-height: 56px;
  background: var(--tfs-line-colour, #17345f);
}

.tfs-line-hero p {
  color: #42526b;
  margin: 0;
  font-size: 18px;
}

.tfs-line-hero-roundel {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.tfs-line-content {
  padding-top: 38px;
  padding-bottom: 54px;
}

.tfs-line-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.tfs-line-main-card,
.tfs-line-side-card,
.tfs-line-status-card,
.tfs-line-stations-card {
  background: #fff;
  border: 1px solid #d2d6dc;
}

.tfs-line-main-card {
  border: 0;
  background: transparent;
  display: grid;
  gap: 24px;
}

.tfs-line-status-card h2,
.tfs-line-stations-card h2,
.tfs-line-side-card h2 {
  margin: 0;
  padding: 16px 18px;
  background: #f3f3f3;
  color: #1f2d44;
  font-size: 20px;
  border-bottom: 1px solid #d2d6dc;
}

.tfs-line-status-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr);
  border-bottom: 1px solid #d2d6dc;
}

.tfs-line-status-name {
  display: block;
  padding: 14px 16px;
  background: var(--tfs-line-colour, #17345f);
  color: #fff;
}

.tfs-line-status-name.line-circle,
.tfs-line-status-name.line-hammersmith {
  color: #111;
}

.tfs-line-status-row span {
  padding: 14px 16px;
  color: #005ea8;
}

.tfs-line-status-card p,
.tfs-line-stations-card p {
  margin: 0;
  padding: 14px 18px;
  color: #42526b;
}

.tfs-line-station-list {
  position: relative;
  padding: 10px 0 14px;
}

.tfs-line-station-list::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 36px;
  width: 6px;
  background: var(--tfs-line-colour, #17345f);
}

.tfs-line-station-row {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 34px;
  align-items: center;
  min-height: 54px;
  text-decoration: none;
  color: #001e4f;
  border-top: 1px solid #edf0f3;
}

.tfs-line-station-row:first-child {
  border-top: 0;
}

.tfs-line-station-marker {
  z-index: 1;
  justify-self: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #111;
}

.tfs-line-station-row.is-terminal .tfs-line-station-marker {
  width: 21px;
  height: 21px;
}

.tfs-line-station-name {
  font-size: 17px;
  font-weight: 500;
}

.tfs-line-side-card {
  padding-bottom: 8px;
}

.tfs-line-side-link {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 10px 0 28px;
  border-bottom: 1px solid #d2d6dc;
  color: #001e4f;
  text-decoration: none;
  font-size: 17px;
}

.tfs-line-side-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 9px;
  background: var(--tfs-line-colour, #17345f);
}

@media (max-width: 900px) {
  .tfs-line-directory__grid,
  .tfs-line-layout {
    grid-template-columns: 1fr;
  }
  .tfs-line-directory__item:nth-last-child(-n+3) {
    border-bottom: 0;
  }
  .tfs-line-directory__item:last-child {
    border-bottom: 1px solid #d2d6dc;
  }
  .tfs-line-hero-inner {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .tfs-line-directory__grid {
    padding: 18px;
  }
  .tfs-line-directory__item {
    font-size: 19px;
  }
  .tfs-line-status-row {
    grid-template-columns: 1fr;
  }
}
.tfs-line-badge.line-liberty { background: #61686B; color: #fff; }
.tfs-line-badge.line-lioness { background: #FFA600; color: #fff; }
.tfs-line-badge.line-mildmay { background: #0077C8; color: #fff; }
.tfs-line-badge.line-suffragette { background: #1EB53A; color: #fff; }
.tfs-line-badge.line-weaver { background: #9B0056; color: #fff; }
.tfs-line-badge.line-windrush { background: #E32017; color: #fff; }
.homepage-line-status__item.line-liberty::before { background: #61686B; }
.homepage-line-status__item.line-lioness::before { background: #FFA600; }
.homepage-line-status__item.line-mildmay::before { background: #0077C8; }
.homepage-line-status__item.line-suffragette::before { background: #1EB53A; }
.homepage-line-status__item.line-weaver::before { background: #9B0056; }
.homepage-line-status__item.line-windrush::before { background: #E32017; }

/* ---- v12.35 Line page hero fix ---- */
.tfs-line-page .tfs-line-hero {
  background: #0530cc;
  color: #fff;
}

.tfs-line-page .tfs-line-hero h1,
.tfs-line-page .tfs-line-hero p,
.tfs-line-page .tfs-breadcrumb--dark,
.tfs-line-page .tfs-breadcrumb--dark a,
.tfs-line-page .tfs-breadcrumb--dark strong {
  color: #fff;
}

.tfs-line-page .tfs-line-hero-roundel {
  opacity: 1;
}

/* ---- v12.36 Line page direction selector ---- */
.tfs-line-direction-controls {
  padding: 0 24px 22px;
}

.tfs-line-direction-label {
  display: block;
  margin: 2px 0 8px;
  color: #1f2d44;
  font-weight: 700;
}

.tfs-line-direction-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  align-items: center;
}

.tfs-line-direction-select,
.tfs-line-direction-switch {
  min-height: 42px;
  border: 1px solid #8a96a8;
  background: #fff;
  color: #001e4f;
  font: inherit;
  font-size: 16px;
}

.tfs-line-direction-select {
  padding: 0 12px;
}

.tfs-line-direction-switch {
  cursor: pointer;
  font-weight: 700;
}

.tfs-line-direction-switch:hover,
.tfs-line-direction-switch:focus-visible {
  background: #f3f8ff;
}

@media (max-width: 640px) {
  .tfs-line-direction-row {
    grid-template-columns: 1fr;
  }
}

/* v12.39 Journey Planner */
.tfs-journey-main {
  background: #eef4fb;
}

.tfs-journey-hero {
  background: linear-gradient(135deg, #003366 0%, #005eb8 100%);
  color: #fff;
  padding: 34px 0 42px;
}

.tfs-journey-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tfs-journey-hero h1 {
  margin: 18px 0 8px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: .95;
}

.tfs-journey-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 1.05rem;
}

.tfs-journey-content {
  padding: 28px 0 56px;
}

.tfs-journey-card,
.tfs-journey-result-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 35, 80, .12);
  border: 1px solid rgba(0, 51, 102, .1);
}

.tfs-journey-card {
  padding: 22px;
  margin-bottom: 22px;
}

.tfs-journey-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.tfs-journey-fields label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: #003366;
}

.tfs-journey-fields input {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 2px solid #c7d7ea;
  padding: 0 14px;
  font: inherit;
}

.tfs-journey-submit,
.tfs-journey-swap {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.tfs-journey-submit {
  background: #005eb8;
  color: #fff;
  padding: 0 22px;
}

.tfs-journey-swap {
  width: 48px;
  background: #e1efff;
  color: #003366;
  font-size: 1.3rem;
}

.tfs-journey-result-card {
  overflow: hidden;
}

.tfs-journey-result-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px;
  background: #003366;
  color: #fff;
}

.tfs-journey-result-header span {
  color: rgba(255,255,255,.78);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .78rem;
}

.tfs-journey-result-header h2 {
  margin: 4px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.tfs-journey-total {
  text-align: right;
  white-space: nowrap;
}

.tfs-journey-total strong {
  display: block;
  font-size: 2rem;
}

.tfs-journey-leg-list {
  padding: 10px 22px 22px;
}

.tfs-journey-leg {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #e5edf6;
}

.tfs-journey-leg:last-child {
  border-bottom: 0;
}

.tfs-journey-leg-marker {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #003366;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.tfs-journey-leg--transfer .tfs-journey-leg-marker {
  background: #5f6f82;
}

.tfs-journey-leg-body h3 {
  margin: 0 0 4px;
  color: #003366;
}

.tfs-journey-leg-body p {
  margin: 6px 0 0;
  color: #3e536b;
}

.tfs-journey-line-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tfs-journey-line-row strong {
  color: #003366;
}

.tfs-journey-manual {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e1efff;
  color: #003366;
  font-weight: 800;
  font-size: .82rem;
}

.tfs-journey-stations {
  margin-top: 10px;
  color: #314b66;
}

.tfs-journey-stations summary {
  cursor: pointer;
  font-weight: 800;
  color: #005eb8;
}

.tfs-journey-stations ol {
  margin: 10px 0 0 1.2rem;
  padding: 0;
  columns: 2;
}

.tfs-journey-result-footer {
  padding: 16px 22px;
  background: #f4f8fc;
  border-top: 1px solid #e5edf6;
}

.tfs-journey-result-footer a {
  color: #005eb8;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 800px) {
  .tfs-journey-fields {
    grid-template-columns: 1fr;
  }
  .tfs-journey-swap {
    width: 100%;
  }
  .tfs-journey-result-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .tfs-journey-total {
    text-align: left;
  }
  .tfs-journey-stations ol {
    columns: 1;
  }
}

/* v12.40 Journey Planner live departure options */
.tfs-journey-option + .tfs-journey-option {
  margin-top: 18px;
}

.tfs-journey-option--later .tfs-journey-leg-list {
  border-top: 1px solid rgba(0, 51, 102, 0.12);
}

.tfs-journey-arrive-line {
  color: rgba(0, 28, 61, 0.72);
  margin-top: -6px !important;
}

.tfs-journey-leg--transfer h3 {
  margin-bottom: 4px;
}

.tfs-journey-leg--transfer p {
  font-weight: 700;
}

/* v12.41 Journey Planner time controls and result layout */
.tfs-journey-fields--planner {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.tfs-journey-time-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(160px, .8fr) minmax(160px, .8fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 16px;
}

.tfs-journey-time-controls > label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: #003366;
}

.tfs-journey-time-controls select,
.tfs-journey-time-controls input[type="time"] {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 2px solid #c7d7ea;
  padding: 0 14px;
  font: inherit;
  background: #fff;
}

.tfs-journey-mode-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tfs-journey-mode-group label {
  display: grid;
  min-height: 48px;
  cursor: pointer;
}

.tfs-journey-mode-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tfs-journey-mode-group span {
  display: grid;
  place-items: center;
  border: 2px solid #c7d7ea;
  border-radius: 14px;
  color: #005eb8;
  font-weight: 900;
  background: #fff;
}

.tfs-journey-mode-group input:checked + span {
  border-color: #003366;
  background: #003366;
  color: #fff;
}

.tfs-journey-result-card {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid #d4dce6;
}

.tfs-journey-result-header {
  background: #fff;
  color: #001f3f;
  padding: 18px 22px 14px;
  border-bottom: 1px solid #dbe3ee;
}

.tfs-journey-result-header h2 {
  margin: 0 0 4px;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  color: #001f3f;
}

.tfs-journey-result-header p {
  margin: 0 0 8px;
  color: #001f3f;
  font-weight: 700;
}

.tfs-journey-chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tfs-journey-chevron {
  color: #001f3f;
  font-weight: 900;
  font-size: 1.25rem;
}

.tfs-journey-total strong {
  color: #001f3f;
  font-size: 1.7rem;
}

.tfs-journey-total span {
  color: #53667a;
  text-transform: none;
  letter-spacing: 0;
  font-size: .9rem;
}

.tfs-journey-detail-list {
  padding: 8px 22px 18px;
}

.tfs-journey-step {
  display: grid;
  grid-template-columns: 64px 28px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e1e7ef;
}

.tfs-journey-step:last-child {
  border-bottom: 0;
}

.tfs-journey-step-time {
  display: grid;
  align-content: start;
  gap: 8px;
  color: #001f3f;
  font-weight: 800;
}

.tfs-journey-step-time span {
  font-size: .92rem;
  color: #53667a;
  font-weight: 700;
}

.tfs-journey-step-rail {
  display: grid;
  justify-items: center;
  grid-template-rows: 12px 1fr 12px;
  min-height: 96px;
  padding-top: 4px;
}

.tfs-journey-stop-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 3px solid #001f3f;
  background: #fff;
  z-index: 1;
}

.tfs-journey-rail-line {
  width: 7px;
  min-height: 58px;
  display: block;
  background: #005eb8;
}

.tfs-journey-rail-line.line-bakerloo { background: #B36305; }
.tfs-journey-rail-line.line-central { background: #E32017; }
.tfs-journey-rail-line.line-circle { background: #FFD300; }
.tfs-journey-rail-line.line-district { background: #00782A; }
.tfs-journey-rail-line.line-elizabeth { background: #6950A1; }
.tfs-journey-rail-line.line-hammersmith-city { background: #F3A9BB; }
.tfs-journey-rail-line.line-jubilee { background: #A0A5A9; }
.tfs-journey-rail-line.line-metropolitan { background: #9B0056; }
.tfs-journey-rail-line.line-northern { background: #000000; }
.tfs-journey-rail-line.line-piccadilly { background: #003688; }
.tfs-journey-rail-line.line-victoria { background: #0098D4; }
.tfs-journey-rail-line.line-waterloo-city { background: #95CDBA; }
.tfs-journey-rail-line.line-dlr { background: #00A4A7; }
.tfs-journey-rail-line.line-tram { background: #84B817; }
.tfs-journey-rail-line.line-liberty { background: #677A81; }
.tfs-journey-rail-line.line-lioness { background: #FFA600; }
.tfs-journey-rail-line.line-mildmay { background: #0072CE; }
.tfs-journey-rail-line.line-suffragette { background: #00A95C; }
.tfs-journey-rail-line.line-weaver { background: #9B0056; }
.tfs-journey-rail-line.line-windrush { background: #E32017; }

.tfs-journey-step-body {
  color: #001f3f;
}

.tfs-journey-step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.tfs-journey-step-head > strong {
  font-size: 1.05rem;
}

.tfs-journey-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 6px;
}

.tfs-journey-platform-pill,
.tfs-journey-live-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  background: #eef1f4;
  color: #001f3f;
  font-weight: 800;
  font-size: .85rem;
}

.tfs-journey-step-body p {
  margin: 5px 0;
  color: #001f3f;
}

.tfs-journey-arrive-station {
  display: block;
  margin-top: 9px;
}

.tfs-journey-step--transfer {
  grid-template-columns: 64px 28px minmax(0, 1fr);
  background: #fafafa;
  margin: 0 -22px;
  padding-left: 22px;
  padding-right: 22px;
}

.tfs-journey-step--transfer .tfs-journey-step-rail {
  min-height: 48px;
  grid-template-rows: 1fr;
}

.tfs-journey-walk-line {
  width: 0;
  height: 42px;
  border-left: 4px dotted #5f6f82;
}

.tfs-journey-step--transfer .tfs-journey-step-body strong {
  display: block;
  margin-top: 2px;
}

.tfs-journey-step--transfer .tfs-journey-step-body p {
  font-weight: 800;
  color: #53667a;
}

.tfs-journey-collapse {
  border-top: 1px solid #dbe3ee;
}

.tfs-journey-collapse summary {
  cursor: pointer;
  padding: 14px 22px;
  color: #005eb8;
  font-weight: 900;
}

.tfs-journey-collapse[open] summary {
  border-bottom: 1px solid #dbe3ee;
}

@media (max-width: 800px) {
  .tfs-journey-fields--planner,
  .tfs-journey-time-controls {
    grid-template-columns: 1fr;
  }
  .tfs-journey-step {
    grid-template-columns: 56px 24px minmax(0, 1fr);
  }
  .tfs-journey-step--transfer {
    grid-template-columns: 56px 24px minmax(0, 1fr);
  }
}


/* ---- v12.42 Journey Planner leg station list polish ---- */
.tfs-journey-rail-line.line-hammersmith { background: #F3A9BB; }
.tfs-journey-rail-line.line-trams { background: #84B817; }

.tfs-journey-stations {
  margin: 8px 0 6px;
}

.tfs-journey-stations summary {
  cursor: pointer;
  color: #005eb8;
  font-weight: 900;
  list-style: none;
}

.tfs-journey-stations summary::-webkit-details-marker {
  display: none;
}

.tfs-journey-stations summary::before {
  content: "▸";
  display: inline-block;
  width: 18px;
  transition: transform .15s ease;
}

.tfs-journey-stations[open] summary::before {
  transform: rotate(90deg);
}

.tfs-journey-station-timeline {
  list-style: none;
  margin: 8px 0 4px;
  padding: 0;
}

.tfs-journey-station-row {
  display: grid;
  grid-template-columns: 58px 18px minmax(0, 1fr);
  gap: 8px;
  min-height: 28px;
  align-items: stretch;
  color: #001f3f;
}

.tfs-journey-station-row time {
  padding-top: 2px;
  font-weight: 800;
  color: #001f3f;
  font-size: .92rem;
}

.tfs-journey-station-row strong {
  padding-top: 2px;
  font-weight: 800;
}

.tfs-journey-mini-rail {
  display: grid;
  grid-template-rows: 1fr 10px 1fr;
  justify-items: center;
  min-height: 28px;
}

.tfs-journey-mini-rail-top,
.tfs-journey-mini-rail-bottom {
  width: 5px;
  background: var(--tfs-line-colour, #005eb8);
  display: block;
}

.tfs-journey-mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 2px solid var(--tfs-line-colour, #005eb8);
  background: #fff;
  display: block;
  align-self: center;
}

.tfs-journey-station-row.is-first .tfs-journey-mini-rail-top,
.tfs-journey-station-row.is-last .tfs-journey-mini-rail-bottom {
  background: transparent;
}

@media (max-width: 800px) {
  .tfs-journey-station-row {
    grid-template-columns: 48px 18px minmax(0, 1fr);
  }
}

/* ---- v12.43 compact homepage transport status tabs ---- */
.homepage-line-status {
  padding: 18px;
}

.homepage-line-status__header {
  align-items: flex-start;
  margin-bottom: 12px;
}

.homepage-line-status__header h2 {
  font-size: clamp(26px, 2.6vw, 36px);
}

.homepage-line-status__header p {
  font-size: 14px;
}

.homepage-line-status__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.homepage-line-status__tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid #d9e4f2;
  border-radius: 999px;
  background: #f3f7fc;
}

.homepage-line-status__tabs button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #174272;
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  padding: 7px 12px;
  cursor: pointer;
}

.homepage-line-status__tabs button.is-active {
  background: #004987;
  color: #fff;
}

.homepage-line-status__list {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 8px;
}

.homepage-line-status__item {
  border-radius: 10px;
  min-height: 54px;
  grid-template-columns: 7px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  background: #fff;
}

.homepage-line-status__item::before {
  grid-row: 1 / span 2;
}

.homepage-line-status__item b,
.homepage-line-status__item span,
.homepage-line-status__item em {
  margin-left: 10px;
  margin-right: 10px;
}

.homepage-line-status__item b {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.homepage-line-status__item span {
  margin-top: 1px;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.15;
  color: #10233d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.homepage-line-status__item small,
.homepage-line-status__item em {
  display: none;
}

.homepage-line-status__item.is-good {
  opacity: .88;
}

.homepage-line-status__item.is-disrupted {
  background: #fbfcff;
}

.homepage-line-status__empty,
.homepage-line-status__loading,
.homepage-line-status__all-good {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

@media (max-width: 720px) {
  .homepage-line-status__actions {
    width: 100%;
    justify-content: flex-start;
  }
  .homepage-line-status__tabs {
    width: 100%;
    overflow-x: auto;
  }
  .homepage-line-status__tabs button {
    white-space: nowrap;
  }
}


/* ---- v12.44 compact homepage transport overview ---- */
.homepage-transport-summary {
  padding: 18px 20px 20px;
}

.homepage-transport-summary__header {
  align-items: end;
  margin-bottom: 14px;
}

.homepage-transport-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.homepage-transport-system-card {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 14px 16px 14px 20px;
  border: 1px solid #dbe5f1;
  border-radius: 14px;
  background: #f8fbff;
  color: #062b57;
  text-decoration: none;
  overflow: hidden;
}

.homepage-transport-system-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: #7a8aa0;
}

.homepage-transport-system-card:hover,
.homepage-transport-system-card:focus-visible {
  background: #eef6ff;
  border-color: #b9cce4;
}

.homepage-transport-system-card__kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #003366;
}

.homepage-transport-system-card strong {
  font-size: clamp(19px, 1.9vw, 25px);
  line-height: 1;
  color: #001e4f;
}

.homepage-transport-system-card small {
  color: #52657a;
  line-height: 1.3;
}

.homepage-transport-system-card.is-good::before { background: #1d8f45; }
.homepage-transport-system-card.is-minor::before { background: #ffb81c; }
.homepage-transport-system-card.is-severe::before { background: #dc241f; }
.homepage-transport-system-card.is-unavailable::before,
.homepage-transport-system-card.is-muted::before,
.homepage-transport-system-card.is-loading::before { background: #7a8aa0; }

.homepage-transport-system-card.is-severe {
  background: #fff8f8;
  border-color: #f0c7c7;
}

.homepage-transport-system-card.is-minor {
  background: #fffaf0;
  border-color: #f0dfb8;
}

.homepage-transport-system-card.is-good {
  background: #f5fff8;
  border-color: #cdebd7;
}

@media (max-width: 850px) {
  .homepage-transport-summary__grid {
    grid-template-columns: 1fr;
  }
  .homepage-transport-system-card {
    min-height: 72px;
  }
}

/* ---- v12.46 unified Transport for Stockstead design system ---- */
:root {
  --tfs-navy: #003366;
  --tfs-navy-2: #001f4f;
  --tfs-blue: #005eb8;
  --tfs-blue-2: #0072ce;
  --tfs-red: #dc241f;
  --tfs-ink: #001e4f;
  --tfs-text: #12233f;
  --tfs-muted: #53667a;
  --tfs-page-bg: #eaf1f8;
  --tfs-card: #ffffff;
  --tfs-border: #d7e3f1;
  --tfs-shadow: 0 18px 45px rgba(0, 38, 84, .10);
}

body.tfs-live-page,
body.tfs-maps-page,
body.tfs-line-page,
body.tfs-station-page,
body.tfs-journey-page,
body:has(.tfs-page) {
  background:
    radial-gradient(circle at 8% -10%, rgba(0,94,184,.18), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, var(--tfs-page-bg) 100%) !important;
  color: var(--tfs-text);
}

.tfs-page,
.tfs-live-main,
.tfs-maps-main,
.tfs-line-main,
.tfs-station-main,
.tfs-journey-main {
  background: transparent !important;
}

.tfs-topband,
.tfs-topband--maps {
  background:
    linear-gradient(90deg, rgba(220,36,31,.96) 0 8px, transparent 8px),
    linear-gradient(135deg, var(--tfs-navy) 0%, #004987 58%, #005eb8 100%) !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 10px 24px rgba(0, 32, 70, .16);
}

.tfs-topband-inner,
.tfs-topband-inner--maps {
  min-height: 72px !important;
  gap: 24px !important;
}

.tfs-brandmark--custom {
  padding: 9px 12px !important;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.tfs-brandmark-symbol {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
}

.tfs-roundel-image {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain;
}

.tfs-brandmark-text {
  color: #fff !important;
  line-height: 1.05;
  letter-spacing: .09em;
}

.tfs-quick-nav,
.tfs-quick-nav--maps {
  gap: 8px !important;
  align-items: center;
}

.tfs-quick-nav a,
.tfs-quick-nav--maps a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #fff !important;
  background: rgba(255,255,255,.09);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px !important;
}

.tfs-quick-nav a:hover,
.tfs-quick-nav a:focus-visible,
.tfs-quick-nav a.active,
.tfs-quick-nav--maps a:hover,
.tfs-quick-nav--maps a:focus-visible,
.tfs-quick-nav--maps a.active {
  background: #fff !important;
  color: var(--tfs-navy) !important;
  border-color: #fff !important;
}

.tfs-hero-section,
.tfs-live-hero,
.tfs-line-hero,
.tfs-station-hero,
.tfs-journey-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0,31,79,.92), rgba(0,94,184,.78)),
    url('/assets/images/tfs-hero-background-platform.png') center center / cover no-repeat !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.tfs-live-hero::after,
.tfs-line-hero::after,
.tfs-station-hero::after,
.tfs-journey-hero::after,
.tfs-hero-section::after {
  content: '';
  position: absolute;
  inset: auto -8% -42px auto;
  width: 320px;
  height: 140px;
  border: 18px solid rgba(255,255,255,.12);
  border-radius: 999px;
  pointer-events: none;
}

.tfs-live-hero > .shell,
.tfs-line-hero-inner,
.tfs-station-hero > .shell,
.tfs-journey-hero-inner,
.tfs-hero-grid {
  position: relative;
  z-index: 1;
}

.tfs-live-hero,
.tfs-line-hero,
.tfs-station-hero,
.tfs-journey-hero {
  padding: 34px 0 42px !important;
}

.tfs-hero-section {
  padding: 26px 0 34px !important;
}

.tfs-live-hero h1,
.tfs-line-hero h1,
.tfs-station-hero h1,
.tfs-journey-hero h1,
.tfs-hero-section h1,
.tfs-maps-title-row h1 {
  margin: 0;
  color: #fff !important;
  font-size: clamp(42px, 5.2vw, 72px) !important;
  line-height: .95 !important;
  letter-spacing: -.04em;
}

.tfs-maps-title-row h1 {
  color: var(--tfs-ink) !important;
}

.tfs-line-hero p,
.tfs-station-hero p,
.tfs-journey-hero p,
.tfs-live-hero p {
  color: rgba(255,255,255,.88) !important;
  font-size: clamp(16px, 1.4vw, 20px) !important;
}

.tfs-breadcrumb,
.tfs-breadcrumb--dark {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255,255,255,.78) !important;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
}

.tfs-breadcrumb a,
.tfs-breadcrumb--dark a,
.tfs-breadcrumb strong,
.tfs-breadcrumb--dark strong {
  color: #fff !important;
  text-decoration: none;
}

.tfs-breadcrumb a:hover,
.tfs-breadcrumb--dark a:hover {
  text-decoration: underline;
}

.tfs-maps-content .tfs-breadcrumb {
  color: var(--tfs-muted) !important;
}
.tfs-maps-content .tfs-breadcrumb a,
.tfs-maps-content .tfs-breadcrumb strong {
  color: var(--tfs-navy) !important;
}

.tfs-journey-card,
.tfs-journey-result-card,
.tfs-live-panel,
.tfs-map-card,
.tfs-maps-search-card,
.tfs-maps-side-note,
.tfs-line-main-card,
.tfs-line-side-card,
.tfs-line-status-card,
.tfs-line-stations-card,
.tfs-station-card,
.tfs-status-column,
.tfs-tools-column,
.tfs-feature-card,
.tfs-large-aside-card,
.tfs-tool-card,
.tfs-link-stack,
.tfs-download-card {
  border: 1px solid var(--tfs-border) !important;
  border-radius: 18px !important;
  background: var(--tfs-card) !important;
  box-shadow: var(--tfs-shadow) !important;
  overflow: hidden;
}

.tfs-content-section,
.tfs-live-content,
.tfs-maps-content,
.tfs-line-content,
.tfs-station-content,
.tfs-journey-content {
  padding-top: 28px !important;
  padding-bottom: 56px !important;
}

.tfs-panel-title,
.tfs-status-header,
.tfs-live-panel-header,
.tfs-line-status-card h2,
.tfs-line-stations-card h2,
.tfs-line-side-card h2,
.tfs-station-card-heading,
.tfs-station-card h2:first-child,
.tfs-maps-search-card h2,
.tfs-map-card-copy h2 {
  color: var(--tfs-ink) !important;
}

.tfs-panel-title,
.tfs-status-header,
.tfs-live-panel-header,
.tfs-station-card-heading,
.tfs-line-status-card h2,
.tfs-line-stations-card h2,
.tfs-line-side-card h2 {
  background: linear-gradient(180deg, #f7fbff, #eef5fc) !important;
  border-bottom: 1px solid var(--tfs-border) !important;
}

.tfs-journey-card {
  padding: 22px !important;
}

.tfs-form input,
.tfs-form select,
.tfs-live-search-box input,
.tfs-maps-search-form input,
.tfs-journey-fields input,
.tfs-journey-time-controls select,
.tfs-journey-time-controls input[type="time"],
.tfs-line-direction-select {
  border: 1px solid #bdd0e6 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--tfs-ink) !important;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
}

.tfs-primary-button,
.tfs-live-search-box button,
.tfs-maps-search-form button,
.tfs-journey-submit,
.tfs-line-direction-switch,
.tfs-replan-button {
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #0072ce, #004987) !important;
  color: #fff !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 18px rgba(0, 72, 135, .20);
}

.tfs-action-row a,
.tfs-link-row,
.tfs-link-stack a,
.tfs-line-side-link,
.tfs-line-station-row,
.tfs-live-secondary-grid a,
.tfs-tool-card {
  color: var(--tfs-navy) !important;
  text-decoration: none !important;
}

.tfs-action-row a:hover,
.tfs-link-row:hover,
.tfs-link-stack a:hover,
.tfs-line-side-link:hover,
.tfs-line-station-row:hover,
.tfs-live-secondary-grid a:hover,
.tfs-tool-card:hover {
  background: #eef6ff !important;
}

.tfs-live-line,
.tfs-line-directory__item,
.tfs-station-line-option {
  border: 1px solid var(--tfs-border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 8px 20px rgba(0, 38, 84, .06);
  color: var(--tfs-ink) !important;
}

.tfs-live-line::before,
.tfs-line-directory__item::before,
.tfs-station-line-option::before,
.tfs-line-side-link::before {
  width: 8px !important;
  border-radius: 999px !important;
}

.tfs-live-lines-grid,
.tfs-line-directory__grid {
  gap: 12px !important;
}

.tfs-line-badge,
.tfs-line-status-name,
.tfs-journey-chip-row .tfs-line-badge {
  border-radius: 4px !important;
  letter-spacing: .03em;
  box-shadow: none !important;
}

.tfs-status-item {
  border-bottom: 1px solid var(--tfs-border) !important;
}

.tfs-status-line {
  font-weight: 900 !important;
}

.tfs-status-meta,
.tfs-status-plus {
  background: #f7f3ea !important;
}

.tfs-status-item:not(.is-disrupted) .tfs-status-meta {
  background: #fff !important;
}

.tfs-status-dropdown {
  background: #fff !important;
  border-color: var(--tfs-border) !important;
  border-left-color: var(--tfs-navy) !important;
}

.tfs-line-title-marker {
  border-radius: 999px !important;
  width: 10px !important;
  min-height: 78px !important;
}

.tfs-line-station-list::before {
  width: 7px !important;
  border-radius: 999px;
}

.tfs-line-station-marker {
  border-width: 3px !important;
  box-shadow: 0 0 0 5px #fff;
}

.tfs-journey-result-card {
  margin-bottom: 18px;
}

.tfs-journey-result-header {
  background: #fff !important;
  border-bottom: 1px solid var(--tfs-border);
}

.tfs-journey-step,
.tfs-journey-step--transfer,
.tfs-journey-collapse {
  border-color: var(--tfs-border) !important;
}

.tfs-journey-step--transfer {
  background: #f8fbff !important;
}

.tfs-journey-rail-line,
.tfs-journey-mini-rail-top,
.tfs-journey-mini-rail-bottom {
  border-radius: 999px;
}

.tfs-arrivals-board,
.tfs-station-line-list {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--tfs-border);
}

.tfs-platform-badge {
  border-radius: 4px !important;
  background: var(--tfs-navy) !important;
}

.tfs-live-app-card {
  border: 1px solid rgba(255,255,255,.26) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.tfs-live-app-card h2,
.tfs-live-app-card p,
.tfs-live-app-card a {
  color: #fff !important;
}

.tfs-download-card {
  background: rgba(0, 31, 79, .88) !important;
  border-color: rgba(255,255,255,.24) !important;
  color: #fff !important;
}
.tfs-download-card h2,
.tfs-download-card p,
.tfs-download-card a {
  color: #fff !important;
}

.tfs-map-card img,
.tfs-feature-card img,
.tfs-large-aside-card img {
  filter: saturate(1.04) contrast(1.02);
}

.tfs-maps-layout,
.tfs-station-grid,
.tfs-line-layout {
  gap: 20px !important;
}

@media (max-width: 900px) {
  .tfs-topband-inner,
  .tfs-topband-inner--maps {
    min-height: auto !important;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .tfs-quick-nav,
  .tfs-quick-nav--maps {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    padding-bottom: 2px;
  }

  .tfs-quick-nav a,
  .tfs-quick-nav--maps a {
    white-space: nowrap;
  }

  .tfs-live-hero,
  .tfs-line-hero,
  .tfs-station-hero,
  .tfs-journey-hero {
    padding: 26px 0 32px !important;
  }
}

@media (max-width: 640px) {
  .tfs-brandmark--custom {
    width: 100%;
    border-radius: 18px;
  }

  .tfs-live-hero h1,
  .tfs-line-hero h1,
  .tfs-station-hero h1,
  .tfs-journey-hero h1,
  .tfs-hero-section h1,
  .tfs-maps-title-row h1 {
    font-size: 42px !important;
  }

  .tfs-journey-card,
  .tfs-live-panel,
  .tfs-station-card,
  .tfs-line-main-card,
  .tfs-line-side-card {
    border-radius: 14px !important;
  }
}


/* ---- v12.48 TfS navigation, search and line list polish ---- */
.tfs-topband,
.tfs-topband--maps {
  overflow: visible !important;
}

.tfs-brandmark--custom {
  border-radius: 12px !important;
}

.tfs-quick-nav a,
.tfs-quick-nav--maps a {
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.24) !important;
  box-shadow: none !important;
  letter-spacing: 0 !important;
}

.tfs-quick-nav a:hover,
.tfs-quick-nav a:focus-visible,
.tfs-quick-nav a.active,
.tfs-quick-nav--maps a:hover,
.tfs-quick-nav--maps a:focus-visible,
.tfs-quick-nav--maps a.active {
  background: #fff !important;
  color: var(--tfs-navy) !important;
}

.tfs-live-hero,
.tfs-journey-hero {
  overflow: visible !important;
}

.tfs-live-hero-grid,
.tfs-live-search,
.tfs-live-search label,
.tfs-live-search-box {
  position: relative;
  overflow: visible !important;
}

.tfs-live-search {
  z-index: 80 !important;
}

.tfs-station-results {
  top: calc(100% + 2px) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  border: 1px solid #bdd0e6 !important;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 32, 70, .22) !important;
}

.tfs-station-result--button {
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tfs-journey-card,
.tfs-journey-form,
.tfs-journey-fields,
.tfs-journey-fields label {
  overflow: visible !important;
}

.tfs-journey-fields label {
  position: relative;
}

.tfs-journey-station-results {
  top: calc(100% + 4px) !important;
  left: 0 !important;
  right: 0 !important;
}

.tfs-live-line,
.tfs-station-line-option {
  position: relative !important;
  border-left: 1px solid var(--tfs-border) !important;
  padding-left: 28px !important;
}

.tfs-live-line::before,
.tfs-station-line-option::before {
  content: "" !important;
  position: absolute !important;
  left: 10px !important;
  top: 10px !important;
  bottom: 10px !important;
  width: 6px !important;
  border-radius: 999px !important;
  background: var(--tfs-line-colour, #005eb8) !important;
}

.tfs-live-line:hover,
.tfs-live-line:focus-visible,
.tfs-station-line-option:hover,
.tfs-station-line-option:focus-visible {
  background: #f5faff !important;
  border-color: #bdd0e6 !important;
}

.tfs-station-line-list--simple {
  display: grid;
  gap: 0 !important;
  border: 1px solid var(--tfs-border) !important;
  border-radius: 14px !important;
  overflow: hidden;
  background: #fff;
}

.tfs-station-line-list--simple .tfs-station-line-option {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  min-height: 50px !important;
  padding: 10px 14px 10px 30px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--tfs-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  gap: 12px !important;
}

.tfs-station-line-list--simple .tfs-station-line-option:last-child {
  border-bottom: 0 !important;
}

.tfs-station-line-list--simple .tfs-station-line-option strong {
  color: var(--tfs-ink);
  font-size: 17px;
  font-weight: 900;
}

.tfs-station-line-list--simple .tfs-station-line-option span {
  color: var(--tfs-muted) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.tfs-station-line-list--simple .tfs-station-line-option em {
  padding: 0 !important;
  font-size: 24px !important;
}

@media (max-width: 720px) {
  .tfs-station-line-list--simple .tfs-station-line-option {
    grid-template-columns: 1fr auto !important;
  }

  .tfs-station-line-list--simple .tfs-station-line-option span {
    grid-column: 1 / -1;
  }
}


/* ---- v12.49 TfS flat button and header stripe cleanup ---- */
.tfs-topband,
.tfs-topband--maps {
  background: linear-gradient(135deg, var(--tfs-navy) 0%, #004987 58%, #005eb8 100%) !important;
  box-shadow: none !important;
}

.tfs-brandmark--custom {
  box-shadow: none !important;
}

.tfs-quick-nav a,
.tfs-quick-nav--maps a {
  border-radius: 9px !important;
  background: #005eb8 !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
  text-shadow: none !important;
}

.tfs-quick-nav a:hover,
.tfs-quick-nav a:focus-visible,
.tfs-quick-nav a.active,
.tfs-quick-nav--maps a:hover,
.tfs-quick-nav--maps a:focus-visible,
.tfs-quick-nav--maps a.active {
  background: #ffffff !important;
  color: var(--tfs-navy) !important;
  box-shadow: none !important;
}

.tfs-primary-button,
.tfs-live-search-box button,
.tfs-maps-search-form button,
.tfs-journey-submit,
.tfs-line-direction-switch,
.tfs-replan-button,
.tfs-live-app-card a,
.tfs-download-card a,
.tfs-action-row a.tfs-primary-button {
  border-radius: 9px !important;
  background: #005eb8 !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  color: #fff !important;
}

.tfs-primary-button:hover,
.tfs-live-search-box button:hover,
.tfs-maps-search-form button:hover,
.tfs-journey-submit:hover,
.tfs-line-direction-switch:hover,
.tfs-replan-button:hover,
.tfs-live-app-card a:hover,
.tfs-download-card a:hover,
.tfs-action-row a.tfs-primary-button:hover {
  background: #004987 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.tfs-planner-tabs button,
.tfs-journey-mode-btn,
.tfs-journey-swap {
  box-shadow: none !important;
}

.tfs-journey-mode-btn.is-active,
.tfs-planner-tabs button.active {
  background: #003366 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.tfs-station-results,
.tfs-journey-station-results {
  box-shadow: 0 10px 24px rgba(0, 32, 70, .14) !important;
}

/* Lynn Transport page */
.lt-page {
  --lt-coral: #ff5a3d;
  --lt-coral-dark: #80241e;
  --lt-peach: #ffe1d8;
  --lt-black: #121212;
  --lt-white: #ffffff;
  --lt-light: #f2f2f2;
  --lt-border: #d8dde5;
  --lt-metro: #ff6b45;
  --lt-tram: #58c4c0;
  --lt-bus: #3e7fc0;
  --lt-rail: #f4c12b;
}

.lt-page .example-topbar { box-shadow: 0 2px 0 rgba(0,0,0,.08); }

.lt-topband {
  background: linear-gradient(180deg, #1b1b1b 0%, #151515 100%);
  color: #fff;
  border-bottom: 4px solid var(--lt-coral);
}

.lt-topband-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.lt-brandmark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.lt-brandmark-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
}

.lt-brandmark-logo {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.lt-quick-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.lt-quick-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-weight: 700;
}

.lt-quick-nav a:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.28);
}

.lt-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255,90,61,.18), transparent 34%),
    linear-gradient(135deg, #1a1a1a 0%, #202020 42%, #121212 100%);
  color: #fff;
  padding: 56px 0 46px;
}

.lt-hero::before,
.lt-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  pointer-events: none;
  opacity: .18;
}

.lt-hero::before {
  bottom: 88px;
  background: repeating-linear-gradient(90deg, transparent 0 90px, rgba(255,255,255,.35) 90px 94px, transparent 94px 180px);
  transform: perspective(900px) rotateX(65deg);
  transform-origin: bottom;
}

.lt-hero::after {
  bottom: 12px;
  background: linear-gradient(90deg, transparent 0 4%, rgba(255,90,61,.9) 4% 7%, transparent 7% 52%, rgba(255,90,61,.9) 52% 54%, transparent 54% 100%);
  height: 6px;
  opacity: .9;
}

.lt-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(560px, 1.25fr);
  gap: 30px;
  align-items: end;
}

.lt-hero-copy {
  padding-bottom: 18px;
}

.lt-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
}

.lt-hero-copy h1 {
  margin: 14px 0 14px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: .98;
  max-width: 12ch;
  color: #fff;
}

.lt-hero-copy p {
  margin: 0;
  max-width: 46ch;
  color: rgba(255,255,255,.82);
  font-size: 18px;
}

.lt-hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.lt-hero-highlights span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-weight: 700;
}

.lt-search-panel {
  position: relative;
  max-width: 920px;
  margin-left: auto;
}

.lt-search-tabs {
  display: flex;
  gap: 10px;
  margin-left: 22px;
}

.lt-search-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 18px 18px 0 0;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  border-bottom: 0;
  color: #fff;
  font-weight: 700;
}

.lt-search-tabs a.is-active {
  background: #fff;
  color: var(--lt-black);
}

.lt-search-body {
  background: #fff;
  color: var(--text);
  border-radius: 20px;
  padding: 26px 24px 22px;
  box-shadow: 0 24px 50px rgba(0,0,0,.22);
}

.lt-search-body h2 {
  margin: 0 0 20px;
  color: var(--lt-black);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.02;
}

.lt-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.lt-search-form label {
  display: grid;
  gap: 8px;
}

.lt-search-form label span {
  color: var(--lt-black);
  font-weight: 700;
}

.lt-search-form input {
  min-height: 56px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--lt-border);
  background: var(--lt-light);
  padding: 0 18px;
  color: var(--lt-black);
}

.lt-swap-button,
.lt-primary-button {
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
}

.lt-swap-button {
  background: var(--lt-peach);
  color: var(--lt-coral-dark);
  font-size: 24px;
}

.lt-primary-button {
  padding: 0 22px;
  background: var(--lt-coral);
  color: #fff;
  box-shadow: none;
}

.lt-search-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.lt-search-links a,
.lt-text-link {
  color: var(--lt-coral-dark);
  font-weight: 700;
}

.lt-section {
  padding: 42px 0 0;
}

.lt-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.lt-section-heading .lt-kicker {
  color: #7b818a;
}

.lt-section-heading h2 {
  margin: 8px 0 0;
  color: var(--lt-black);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.04;
}

.lt-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.lt-status-card,
.lt-service-card,
.lt-info-card,
.lt-link-card {
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--lt-border);
}

.lt-status-card {
  padding: 18px;
  box-shadow: 0 12px 24px rgba(18,18,18,.05);
}

.lt-status-card--metro { border-top: 6px solid var(--lt-metro); }
.lt-status-card--tram { border-top: 6px solid var(--lt-tram); }
.lt-status-card--bus { border-top: 6px solid var(--lt-bus); }
.lt-status-card--rail { border-top: 6px solid var(--lt-rail); }

.lt-status-title-row,
.lt-service-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.lt-status-title-row strong,
.lt-service-card h3,
.lt-info-card h2,
.lt-link-card strong {
  color: var(--lt-black);
}

.lt-status-card p {
  margin: 14px 0 8px;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--lt-black);
}

.lt-status-card small {
  display: block;
  color: #55616f;
  line-height: 1.5;
}

.lt-mode-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 16px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
  flex-shrink: 0;
}

.lt-mode-chip--metro { background: var(--lt-metro); }
.lt-mode-chip--tram { background: var(--lt-tram); }
.lt-mode-chip--bus { background: var(--lt-bus); }
.lt-mode-chip--rail { background: var(--lt-rail); color: #111; }

.lt-network-section {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, .9fr);
  gap: 26px;
  align-items: start;
}

.lt-network-main,
.lt-network-side {
  min-width: 0;
}

.lt-service-grid,
.lt-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lt-service-card {
  padding: 18px;
}

.lt-service-card h3 {
  margin: 0 0 4px;
  font-size: 24px;
}

.lt-service-card p {
  margin: 0;
  color: #55616f;
}

.lt-service-card ul,
.lt-bullet-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #304154;
  line-height: 1.6;
}

.lt-network-side {
  display: grid;
  gap: 16px;
}

.lt-info-card {
  padding: 22px;
}

.lt-info-card h2 {
  margin: 10px 0 10px;
  font-size: 34px;
  line-height: 1.04;
}

.lt-info-card p {
  margin: 0;
  color: #445262;
  line-height: 1.6;
}

.lt-info-card--dark {
  background: linear-gradient(180deg, #1b1b1b 0%, #161616 100%);
  color: #fff;
  border-color: #1a1a1a;
}

.lt-info-card--dark .lt-kicker,
.lt-info-card--dark p,
.lt-info-card--dark h2 {
  color: #fff;
}

.lt-llave-card {
  margin-top: 18px;
  border-radius: 22px;
  min-height: 200px;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,0) 48%),
    linear-gradient(135deg, #ff6e4d 0%, #ff5a3d 55%, #9f3026 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lt-llave-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.lt-llave-card strong {
  font-size: 42px;
  line-height: 1;
}

.lt-llave-card small {
  color: rgba(255,255,255,.88);
}

.lt-links-grid {
  margin-bottom: 44px;
}

.lt-link-card {
  padding: 18px 20px;
  display: grid;
  gap: 8px;
  box-shadow: 0 12px 24px rgba(18,18,18,.05);
}

.lt-link-card strong {
  font-size: 24px;
}

.lt-link-card span {
  color: #55616f;
  line-height: 1.5;
}

@media (max-width: 1200px) {
  .lt-hero-grid,
  .lt-network-section,
  .lt-status-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lt-hero-copy {
    grid-column: 1 / -1;
  }

  .lt-search-panel {
    grid-column: 1 / -1;
    max-width: none;
  }

  .lt-network-main,
  .lt-network-side {
    grid-column: auto;
  }
}

@media (max-width: 980px) {
  .lt-topband-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }

  .lt-quick-nav {
    margin-left: 0;
  }

  .lt-status-grid,
  .lt-service-grid,
  .lt-links-grid,
  .lt-network-section {
    grid-template-columns: 1fr;
  }

  .lt-search-form {
    grid-template-columns: 1fr;
  }

  .lt-swap-button {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .lt-hero {
    padding: 34px 0 28px;
  }

  .lt-search-tabs {
    margin-left: 0;
    gap: 8px;
  }

  .lt-search-tabs a {
    min-height: 46px;
    padding: 0 16px;
    font-size: 14px;
  }

  .lt-search-body {
    padding: 20px 16px 18px;
    border-radius: 18px;
  }

  .lt-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .lt-service-card h3,
  .lt-link-card strong,
  .lt-info-card h2 {
    font-size: 24px;
  }
}

.lt-mode-logo {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(18,18,18,.08);
}

.lt-mode-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tfs-journey-live-warning {
  margin: 0;
  padding: 14px 18px;
  background: #fff4d8;
  border-bottom: 1px solid #ead8a8;
  color: #3d341c;
  font-weight: 700;
}

/* v12.53 Journey Planner live-now simplification */
.tfs-journey-time-controls--now-only {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.tfs-journey-now-note {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 760px) {
  .tfs-journey-time-controls--now-only {
    grid-template-columns: 1fr;
  }
}

/* ---- v12.54 header Parsum wordmark fix ---- */
.example-brand--header {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 56px;
  flex: 0 0 auto;
}

.example-brand-logo--header-mark {
  width: auto !important;
  height: 56px !important;
  max-width: 184px !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
}

@media (max-width: 860px) {
  .example-brand-logo--header-mark {
    height: 44px !important;
    max-width: 146px !important;
  }
}

@media (max-width: 658px) {
  .example-brand-logo--header-mark {
    height: 38px !important;
    max-width: 124px !important;
  }
}

/* ---- v12.55 cleaner selected-line live arrivals ---- */
.tfs-arrivals-board--line-view {
  display: block !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent;
}

.tfs-arrivals-board--line-view .tfs-station-line-back {
  padding: 0 0 16px;
  border-bottom: 0;
}

.tfs-arrivals-board--line-view .tfs-station-line-back a {
  display: inline-flex;
  align-items: center;
  color: #063b85;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.tfs-arrivals-board--line-view .tfs-station-line-back a:hover,
.tfs-arrivals-board--line-view .tfs-station-line-back a:focus-visible {
  text-decoration: underline;
}

.tfs-arrivals-board--line-view .tfs-arrivals-board--nested {
  display: grid;
  border: 1px solid #c8d8ec !important;
  border-radius: 18px !important;
  overflow: hidden;
  background: #fff;
}

.tfs-arrivals-board--line-view .tfs-arrivals-board--nested .tfs-arrival-row {
  min-height: 72px;
  padding: 16px 24px;
  border-bottom: 1px solid #d7dde6;
  column-gap: 24px;
}

.tfs-arrivals-board--line-view .tfs-arrivals-board--nested .tfs-arrival-row:last-child {
  border-bottom: 0;
}

.tfs-arrivals-board--line-view .tfs-arrival-service {
  min-width: 0;
}

.tfs-arrivals-board--line-view .tfs-arrival-service strong {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-wrap: nowrap;
}

.tfs-arrivals-board--line-view .tfs-arrival-service strong > span {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  color: #10243f;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tfs-arrivals-board--line-view .tfs-line-badge {
  height: 30px;
  min-width: 124px;
  padding: 0 12px;
  border-radius: 5px;
  font-size: 16px;
  line-height: 1;
}

.tfs-arrivals-board--line-view .tfs-arrival-row--grouped em {
  display: grid;
  grid-template-columns: 36px minmax(120px, auto);
  align-items: center;
  min-width: 190px;
  column-gap: 16px;
  justify-content: end;
  white-space: nowrap;
}

.tfs-arrivals-board--line-view .tfs-platform-badge {
  width: 32px;
  min-width: 32px;
  height: 30px;
  border-radius: 5px !important;
}

.tfs-arrivals-board--line-view .tfs-arrival-row--grouped em span {
  display: block;
  min-width: 120px;
  color: #10243f;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
}

@media (max-width: 760px) {
  .tfs-arrivals-board--line-view .tfs-arrivals-board--nested .tfs-arrival-row {
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding: 15px 18px;
  }

  .tfs-arrivals-board--line-view .tfs-arrival-service strong {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .tfs-arrivals-board--line-view .tfs-arrival-service strong > span {
    white-space: normal;
  }

  .tfs-arrivals-board--line-view .tfs-arrival-row--grouped em {
    justify-content: start;
  }
}

/* ---- v12.56 Station page cleanup ---- */
.tfs-station-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tfs-station-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.tfs-station-hero-actions a:hover,
.tfs-station-hero-actions a:focus-visible {
  background: rgba(255,255,255,.24);
}

.tfs-station-line-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tfs-station-line-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 5px;
  background: #17345f;
  color: #fff !important;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
}

.tfs-station-line-pill.is-selected {
  outline: 3px solid rgba(255,255,255,.72);
  outline-offset: 2px;
}

.tfs-station-line-pill--generic {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.34);
}

.tfs-station-line-pill.line-bakerloo { background: #B36305; }
.tfs-station-line-pill.line-central { background: #E32017; }
.tfs-station-line-pill.line-circle { background: #FFD300; color: #111 !important; }
.tfs-station-line-pill.line-district { background: #00782A; }
.tfs-station-line-pill.line-elizabeth { background: #6950A1; }
.tfs-station-line-pill.line-hammersmith { background: #F3A9BB; color: #111 !important; }
.tfs-station-line-pill.line-jubilee { background: #A0A5A9; color: #fff !important; }
.tfs-station-line-pill.line-metropolitan { background: #9B0056; }
.tfs-station-line-pill.line-northern { background: #000; }
.tfs-station-line-pill.line-piccadilly { background: #003688; }
.tfs-station-line-pill.line-victoria { background: #0098D4; }
.tfs-station-line-pill.line-waterloo { background: #95CDBA; color: #111 !important; }
.tfs-station-line-pill.line-dlr { background: #00A4A7; }
.tfs-station-line-pill.line-liberty { background: #61686B; }
.tfs-station-line-pill.line-lioness { background: #FFA600; color: #111 !important; }
.tfs-station-line-pill.line-mildmay { background: #006FE6; }
.tfs-station-line-pill.line-suffragette { background: #18A95D; }
.tfs-station-line-pill.line-weaver { background: #9B4F96; }
.tfs-station-line-pill.line-windrush { background: #DC241F; }
.tfs-station-line-pill.line-trams { background: #84B817; color: #111 !important; }

.tfs-station-grid--v1256 {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, .85fr);
  align-items: start;
}

.tfs-station-arrivals-card > .tfs-arrivals-board:not(.tfs-arrivals-board--line-view) {
  margin: 18px;
  border: 1px solid #c8d8ec !important;
  border-radius: 18px !important;
  background: #fff;
  overflow: hidden;
}

.tfs-station-arrivals-card > .tfs-arrivals-board:not(.tfs-arrivals-board--line-view) .tfs-arrival-row {
  min-height: 68px;
  padding: 14px 20px;
  border-bottom: 1px solid #d7dde6;
}

.tfs-station-arrivals-card > .tfs-arrivals-board:not(.tfs-arrivals-board--line-view) .tfs-arrival-row:last-child {
  border-bottom: 0;
}

.tfs-station-arrivals-card > .tfs-arrivals-board:not(.tfs-arrivals-board--line-view) .tfs-arrival-message {
  padding: 20px;
}

.tfs-station-card-kicker {
  display: block;
  margin-bottom: 4px;
  color: #53647a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tfs-station-card-heading {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tfs-station-card-heading h2 {
  margin: 0;
}

.tfs-station-summary-card {
  padding: 0;
}

.tfs-station-summary-card > h2,
.tfs-station-summary-card > h3 {
  margin: 0;
  padding: 18px 20px 0;
}

.tfs-station-summary-card > h2 {
  padding-top: 20px;
}

.tfs-station-details--compact {
  margin: 14px 20px 6px;
  gap: 0;
  border: 1px solid #d5e2f2;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.tfs-station-details--compact div {
  grid-template-columns: 86px minmax(0, 1fr);
  padding: 12px 14px;
  border-bottom: 1px solid #d5e2f2;
}

.tfs-station-details--compact div:last-child {
  border-bottom: 0;
}

.tfs-station-side-links {
  display: grid;
  gap: 0;
  margin: 12px 20px 4px;
  border: 1px solid #d5e2f2;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.tfs-station-side-link {
  display: grid;
  gap: 3px;
  position: relative;
  padding: 13px 14px 13px 18px;
  border-bottom: 1px solid #d5e2f2;
  color: #10243f;
  text-decoration: none;
}

.tfs-station-side-link:last-child {
  border-bottom: 0;
}

.tfs-station-side-link:hover,
.tfs-station-side-link:focus-visible {
  background: #f3f8ff;
}

.tfs-station-side-link--line {
  padding-left: 30px;
}

.tfs-station-side-link--line::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  bottom: 12px;
  width: 6px;
  border-radius: 999px;
  background: var(--tfs-line-colour, #17345f);
}

.tfs-station-side-link strong {
  font-size: 15px;
  font-weight: 900;
}

.tfs-station-side-link span {
  color: #53647a;
  font-size: 13px;
  font-weight: 800;
}

.tfs-station-facilities {
  display: grid;
  gap: 8px;
  margin: 12px 20px 20px;
  padding: 0;
  list-style: none;
}

.tfs-station-facilities li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #10243f;
  font-weight: 800;
}

.tfs-station-facilities li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0072ce;
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .tfs-station-grid--v1256 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .tfs-station-hero-actions a {
    width: 100%;
  }

  .tfs-station-arrivals-card > .tfs-arrivals-board:not(.tfs-arrivals-board--line-view) {
    margin: 14px;
  }

  .tfs-station-arrivals-card > .tfs-arrivals-board:not(.tfs-arrivals-board--line-view) .tfs-arrival-row {
    padding: 14px;
  }
}


/* ---- v12.57 quick journey station dropdowns ---- */
.tfs-journey-card,
.tfs-journey-card .tfs-form,
.tfs-quick-journey-field {
  overflow: visible !important;
}

.tfs-quick-journey-field {
  position: relative;
}

.tfs-quick-station-results {
  top: calc(100% + 4px) !important;
  left: 0 !important;
  right: 0 !important;
  border-radius: 0 0 12px 12px !important;
}

.tfs-quick-station-results .tfs-station-result {
  min-height: 54px;
}

/* ---- v12.58 Parsum service icons ---- */
.tfs-station-result,
.tfs-station-result-empty {
  align-items: center;
  min-height: 58px;
}

.tfs-station-result-text {
  min-width: 0;
}

.tfs-station-result-text strong {
  color: #063b85;
  font-weight: 900;
  line-height: 1.25;
}

.tfs-station-result-text small {
  color: #25558f;
  font-weight: 650;
}

.tfs-station-result-modes {
  gap: 5px;
  min-width: max-content;
  font-size: 0;
}

.tfs-service-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
}

.tfs-service-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.tfs-quick-station-results .tfs-service-icon,
.tfs-journey-station-results .tfs-service-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.tfs-quick-station-results .tfs-service-icon img,
.tfs-journey-station-results .tfs-service-icon img {
  width: 20px;
  height: 20px;
}

@media (max-width: 560px) {
  .tfs-station-result,
  .tfs-station-result-empty {
    gap: 10px;
    padding: 10px;
  }

  .tfs-station-result-modes {
    gap: 3px;
  }

  .tfs-service-icon,
  .tfs-service-icon img {
    width: 18px;
    height: 18px;
  }
}

/* ---- v12.65 compact station pages ---- */
.tfs-station-content {
  padding-top: 20px;
}

.tfs-station-grid--v1256 {
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 300px);
  gap: 14px;
}

.tfs-station-grid--v1256 .tfs-station-card {
  border-radius: 12px;
}

.tfs-station-summary-card {
  font-size: 13px;
}

.tfs-station-summary-card > h2 {
  padding: 14px 14px 0;
  font-size: 22px;
  line-height: 1.1;
}

.tfs-station-summary-card > h3 {
  padding: 14px 14px 0;
  font-size: 14px;
  line-height: 1.15;
}

.tfs-station-details--compact {
  margin: 10px 14px 2px;
  border-radius: 9px;
}

.tfs-station-details--compact div {
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 10px;
}

.tfs-station-details--compact dt,
.tfs-station-details--compact dd {
  font-size: 12px;
  line-height: 1.2;
}

.tfs-station-side-links {
  margin: 9px 14px 2px;
  border-radius: 9px;
}

.tfs-station-side-link {
  gap: 1px;
  padding: 8px 10px 8px 12px;
}

.tfs-station-side-link--line {
  min-height: 28px;
  padding: 7px 10px 7px 24px;
}

.tfs-station-side-link--line::before {
  left: 10px;
  top: 7px;
  bottom: 7px;
  width: 4px;
}

.tfs-station-side-link strong {
  font-size: 12px;
  line-height: 1.15;
}

.tfs-station-side-link span {
  font-size: 10.5px;
  line-height: 1.15;
}

.tfs-station-side-link--line span {
  display: none;
}

.tfs-station-summary-card .tfs-station-facilities {
  margin: 8px 14px 12px;
  gap: 5px;
}

.tfs-station-summary-card .tfs-station-facilities li {
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.tfs-station-summary-card .tfs-station-facilities li::before {
  width: 5px;
  height: 5px;
  margin-top: .45em;
}

.tfs-station-card-heading {
  margin-bottom: 10px;
}

.tfs-station-card-kicker {
  font-size: 10px;
  margin-bottom: 2px;
}

.tfs-station-card-heading h2 {
  font-size: 22px;
}

.tfs-station-card-heading > span {
  min-height: 24px;
  padding: 0 8px;
  font-size: 10px;
}

.tfs-station-arrivals-card > .tfs-arrivals-board:not(.tfs-arrivals-board--line-view) {
  margin: 10px 12px 12px;
  border-radius: 10px !important;
}

.tfs-station-arrivals-card > .tfs-arrivals-board:not(.tfs-arrivals-board--line-view) .tfs-arrival-row {
  min-height: 42px;
  padding: 9px 13px;
}

@media (max-width: 980px) {
  .tfs-station-grid--v1256 {
    grid-template-columns: 1fr;
  }

  .tfs-station-summary-card .tfs-station-facilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tfs-station-summary-card .tfs-station-facilities {
    grid-template-columns: 1fr;
  }
}


/* ---- v12.67 fixed live-arrivals time alignment ---- */
.tfs-arrivals-board--line-view .tfs-arrivals-board--nested .tfs-arrival-row,
.tfs-arrival-row--platform {
  grid-template-columns: minmax(0, 1fr) 210px !important;
}

.tfs-arrivals-board--line-view .tfs-arrival-row--grouped em,
.tfs-arrival-row--grouped em {
  display: grid !important;
  grid-template-columns: 38px 156px !important;
  align-items: center !important;
  justify-content: end !important;
  justify-self: end !important;
  column-gap: 14px !important;
  width: 210px !important;
  min-width: 210px !important;
  max-width: 210px !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.tfs-arrivals-board--line-view .tfs-platform-badge,
.tfs-platform-badge {
  justify-self: end !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 30px !important;
}

.tfs-arrivals-board--line-view .tfs-arrival-row--grouped em span,
.tfs-arrival-row--grouped em span {
  display: block !important;
  width: 156px !important;
  min-width: 156px !important;
  max-width: 156px !important;
  text-align: left !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

@media (max-width: 760px) {
  .tfs-arrivals-board--line-view .tfs-arrivals-board--nested .tfs-arrival-row,
  .tfs-arrival-row--platform {
    grid-template-columns: 1fr !important;
  }

  .tfs-arrivals-board--line-view .tfs-arrival-row--grouped em,
  .tfs-arrival-row--grouped em {
    justify-self: start !important;
  }
}


/* ---- v12.70 status dashboard ---- */
.status-page-main {
  background: #f3f8ff;
}

.status-page-hero .page-hero-copy p {
  max-width: 640px;
}

.status-overview-card {
  border-color: #c8d8ec;
}

.status-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-grid--dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
}

.status-card--state .card-head {
  align-items: center;
}

.status-card--state .status-dot {
  width: 16px;
  height: 16px;
  margin: 0;
}

.status-detail-list {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
  border: 1px solid #c8d8ec;
  border-radius: 14px;
  overflow: hidden;
}

.status-detail-list div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  border-bottom: 1px solid #d9e6f6;
}

.status-detail-list div:last-child {
  border-bottom: 0;
}

.status-detail-list dt,
.status-detail-list dd {
  margin: 0;
  padding: 10px 12px;
  font-weight: 800;
}

.status-detail-list dt {
  background: #f1f6fc;
  color: #31567f;
}

.status-detail-list dd {
  color: #082b5f;
  overflow-wrap: anywhere;
}

.player-list--rich {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.player-list--rich li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #d6e4f5;
  border-radius: 10px;
  background: #f8fbff;
  color: #082b5f;
  font-weight: 800;
}

.player-list--rich li em {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e9eff7;
  color: #31567f;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.player-list--rich li.is-afk {
  color: #31567f;
}

@media (max-width: 760px) {
  .status-overview-grid,
  .status-grid--dashboard {
    grid-template-columns: 1fr;
  }

  .status-detail-list div {
    grid-template-columns: 1fr;
  }

  .status-detail-list dt {
    padding-bottom: 4px;
  }

  .status-detail-list dd {
    padding-top: 4px;
  }
}


/* ---- v12.71 status page layout cleanup ---- */
.status-page-hero--single {
  padding-bottom: 34px;
}

.status-page-hero--single .shell {
  display: block;
}

.status-page-hero-copy {
  max-width: 920px;
}

.status-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.status-hero-chips .pill,
.status-hero-chips .copy-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}

.status-dashboard {
  padding-top: 18px;
}

.status-grid--dashboard {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  align-items: stretch;
}

.status-card--connection {
  grid-column: span 4;
}

.status-card--players {
  grid-column: span 8;
}

.status-card--details {
  grid-column: span 8;
}

.status-card--afk {
  grid-column: span 4;
}

.status-card--players .player-list--rich {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.status-card--players .status-metric,
.status-card--connection .status-metric,
.status-card--afk .status-metric {
  margin-top: 8px;
}

.status-card--details .status-detail-list {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .status-card--connection,
  .status-card--players,
  .status-card--details,
  .status-card--afk {
    grid-column: span 12;
  }
}

@media (max-width: 560px) {
  .status-hero-chips {
    flex-direction: column;
    align-items: stretch;
  }

  .status-hero-chips .pill,
  .status-hero-chips .copy-chip {
    justify-content: center;
  }
}


/* ---- v12.72 status page redesign ---- */
.status-page-main--v1272 {
  background: #edf5ff;
}

.status-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 18px;
  margin-top: 20px;
}

.status-dashboard-hero__copy,
.status-dashboard-hero__metrics,
.status-card--players-v1272,
.status-card--details-v1272 {
  border: 1px solid #c8d8ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(19,42,74,.05);
}

.status-dashboard-hero__copy {
  padding: clamp(24px, 4vw, 42px);
}

.status-dashboard-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: #063b85;
  font-weight: 900;
}

.status-dashboard-hero__kicker .status-dot {
  width: 14px;
  height: 14px;
  margin: 0;
}

.status-dashboard-hero h1 {
  margin: 0;
  max-width: 560px;
  color: #073b83;
  font-size: clamp(46px, 6vw, 78px);
  line-height: .95;
  letter-spacing: -0.04em;
}

.status-dashboard-hero p {
  max-width: 650px;
  margin: 20px 0 0;
  color: #10386a;
  font-size: 17px;
  line-height: 1.45;
}

.status-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.status-api-label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d2e1f4;
  border-radius: 999px;
  background: #f5f9ff;
  color: #24527f;
  font-weight: 800;
}

.status-dashboard-hero__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  align-content: stretch;
}

.status-metric-tile {
  display: grid;
  align-content: center;
  min-height: 96px;
  padding: 14px;
  border: 1px solid #d4e2f4;
  border-radius: 12px;
  background: #f7fbff;
}

.status-metric-tile strong {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  color: #003b85;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.status-metric-tile span {
  color: #31567f;
  font-weight: 700;
}

.status-dashboard--v1272 {
  padding-top: 18px;
}

.status-grid--v1272 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 18px;
}

.status-card--players-v1272,
.status-card--details-v1272 {
  padding: 24px;
}

.status-card--players-v1272 .status-metric {
  margin-top: 10px;
  font-size: clamp(42px, 5vw, 62px);
}

.status-card--players-v1272 p {
  max-width: 620px;
}

.player-list--v1272 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.player-list--v1272 li {
  min-height: 46px;
  align-items: center;
  padding: 10px 12px;
}

.player-list--v1272 li em {
  background: #ffeec2;
  color: #7a4b00;
}

.status-card--details-v1272 .status-detail-list {
  margin-top: 16px;
}

@media (max-width: 980px) {
  .status-dashboard-hero,
  .status-grid--v1272 {
    grid-template-columns: 1fr;
  }

  .status-dashboard-hero__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .status-dashboard-hero {
    margin-top: 12px;
  }

  .status-dashboard-hero__metrics,
  .status-grid--v1272,
  .player-list--v1272 {
    grid-template-columns: 1fr;
  }

  .status-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .status-hero-actions .copy-chip,
  .status-api-label {
    justify-content: center;
  }
}

/* ---- v12.73 rebuilt status page ---- */
.status-page-main--v1273{min-height:100vh;background:radial-gradient(circle at top right,rgba(32,104,190,.10),transparent 32rem),#edf5ff}.status-shell-v1273{padding-top:24px;padding-bottom:34px}.status-hero-v1273{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:18px;align-items:stretch}.status-hero-v1273__copy,.status-connection-card-v1273,.status-summary-tile-v1273,.status-card--players-v1273,.status-card--details-v1273,.status-info-card-v1273{border:1px solid #c8d8ec;border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 14px 32px rgba(19,42,74,.06)}.status-hero-v1273__copy{padding:clamp(28px,5vw,54px)}.status-eyebrow-v1273{display:inline-flex;margin-bottom:14px;color:#0b4a92;font-weight:900;letter-spacing:.02em}.status-hero-v1273 h1{margin:0;max-width:650px;color:#073b83;font-size:clamp(48px,7vw,88px);line-height:.92;letter-spacing:-.045em}.status-hero-v1273 p{max-width:620px;margin:22px 0 0;color:#173e6c;font-size:17px;line-height:1.45}.status-connection-card-v1273{display:grid;align-content:start;gap:12px;padding:24px}.status-connection-card-v1273 .card-head{align-items:center}.status-connection-card-v1273 .status-dot{width:16px;height:16px;margin:0}.status-connection-card-v1273 .status-metric{margin-top:4px;color:#003b85;font-size:clamp(34px,4vw,52px);line-height:1}.status-connection-card-v1273 p{margin:0;color:#31567f}.status-connection-card-v1273 .copy-chip{justify-self:start;margin-top:4px}.status-summary-grid-v1273{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}.status-summary-tile-v1273{min-height:108px;padding:18px;display:grid;align-content:center;gap:8px}.status-summary-tile-v1273 span{color:#31567f;font-weight:800}.status-summary-tile-v1273 strong{display:inline-flex;flex-wrap:wrap;gap:5px;color:#003b85;font-size:clamp(24px,3vw,36px);font-weight:900;line-height:1.05;overflow-wrap:anywhere}.status-main-grid-v1273{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);gap:18px;margin-top:18px}.status-card--players-v1273,.status-card--details-v1273,.status-info-card-v1273{padding:24px}.status-card--players-v1273 .status-metric{margin-top:10px;color:#003b85;font-size:clamp(48px,6vw,72px);line-height:1}.status-card--players-v1273 p{max-width:640px}.player-list--v1273{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px;margin-top:18px}.player-list--v1273 li{min-height:48px;align-items:center;padding:11px 13px;border-radius:12px}.player-list--v1273 li em{background:#ffeec2;color:#7a4b00}.status-side-stack-v1273{display:grid;gap:18px;align-content:start}.status-card--details-v1273 .status-detail-list{margin-top:16px}.status-info-card-v1273 h2{margin:0 0 8px;color:#073b83}.status-info-card-v1273 p{margin:0 0 12px;color:#31567f}.status-info-card-v1273 span{display:inline-flex;min-height:28px;align-items:center;padding:0 10px;border-radius:999px;background:#eef5ff;color:#24527f;font-weight:900}@media (max-width:980px){.status-hero-v1273,.status-main-grid-v1273{grid-template-columns:1fr}.status-summary-grid-v1273{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:560px){.status-shell-v1273{padding-top:12px}.status-summary-grid-v1273,.player-list--v1273{grid-template-columns:1fr}.status-connection-card-v1273 .copy-chip{justify-self:stretch;justify-content:center}}


/* ---- v12.74 compact status page ---- */
.status-page-main--v1274 {
  background:
    radial-gradient(circle at top right, rgba(32, 104, 190, 0.08), transparent 28rem),
    #edf5ff;
}

.status-shell-v1274 {
  padding-top: 14px;
  padding-bottom: 24px;
}

.status-card-v1274 {
  border: 1px solid #c8d8ec;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 22px rgba(19, 42, 74, 0.05);
}

.status-top-grid-v1274 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.6fr);
  gap: 12px;
  align-items: stretch;
}

.status-hero-card-v1274 {
  padding: 26px 28px;
}

.status-eyebrow-v1274 {
  display: inline-flex;
  margin-bottom: 10px;
  color: #0b4a92;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}

.status-hero-card-v1274 h1 {
  margin: 0;
  max-width: 520px;
  color: #073b83;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.status-hero-card-v1274 p {
  max-width: 540px;
  margin: 16px 0 0;
  color: #173e6c;
  font-size: 16px;
  line-height: 1.4;
}

.status-connection-card-v1274 {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px 18px;
}

.status-connection-card-v1274 .card-head {
  align-items: center;
}

.status-connection-card-v1274 .status-dot {
  width: 14px;
  height: 14px;
  margin: 0;
}

.status-connection-card-v1274 .status-metric {
  margin-top: 2px;
  color: #003b85;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.status-connection-card-v1274 p {
  margin: 0;
  color: #31567f;
  font-size: 14px;
  line-height: 1.35;
}

.status-connection-card-v1274 .copy-chip {
  justify-self: start;
  margin-top: 2px;
}

.status-summary-grid-v1274 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 12px;
  margin-top: 12px;
}

.status-summary-tile-v1274 {
  min-height: 88px;
  padding: 14px 16px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.status-summary-tile-v1274 span {
  color: #31567f;
  font-size: 13px;
  font-weight: 800;
}

.status-summary-tile-v1274 strong {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  color: #003b85;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.status-summary-tile-v1274--wide strong {
  font-size: clamp(20px, 2.3vw, 28px);
}

.status-body-grid-v1274 {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 12px;
  margin-top: 12px;
  align-items: start;
}

.status-left-stack-v1274,
.status-right-stack-v1274 {
  display: grid;
  gap: 12px;
  align-content: start;
}

.status-players-card-v1274,
.status-details-card-v1274,
.status-info-card-v1274 {
  padding: 16px 18px;
}

.status-players-card-v1274 .status-metric {
  margin-top: 8px;
  color: #003b85;
  font-size: clamp(42px, 5vw, 60px);
  line-height: 1;
}

.status-players-card-v1274 p {
  margin-top: 6px;
  max-width: 600px;
  color: #31567f;
  font-size: 14px;
  line-height: 1.35;
}

.player-list--v1274 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.player-list--v1274 li {
  min-height: 44px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
}

.player-list--v1274 li em {
  background: #ffeec2;
  color: #7a4b00;
}

.status-details-card-v1274 .status-detail-list {
  margin-top: 12px;
}

.status-info-card-v1274 h2 {
  margin: 0 0 6px;
  color: #073b83;
  font-size: 20px;
}

.status-info-card-v1274 p {
  margin: 0 0 10px;
  color: #31567f;
  font-size: 14px;
  line-height: 1.35;
}

.status-info-card-v1274 span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: #24527f;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .status-top-grid-v1274,
  .status-body-grid-v1274 {
    grid-template-columns: 1fr;
  }

  .status-summary-grid-v1274 {
    grid-template-columns: 1fr 1fr;
  }

  .status-summary-tile-v1274--wide {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .status-shell-v1274 {
    padding-top: 10px;
  }

  .status-summary-grid-v1274,
  .player-list--v1274 {
    grid-template-columns: 1fr;
  }

  .status-summary-tile-v1274--wide {
    grid-column: auto;
  }

  .status-connection-card-v1274 .copy-chip {
    justify-self: stretch;
    justify-content: center;
  }
}


/* ---- v12.75 compact player-count separator ---- */
.status-count-separator {
  display: inline-flex;
  align-items: center;
  align-self: center;
  font-size: 0.52em;
  line-height: 1;
  margin: 0 2px;
  transform: translateY(0.02em);
}


/* ---- v12.76 status top layout cleanup ---- */
.status-page-main--v1276 {
  background:
    radial-gradient(circle at top right, rgba(32, 104, 190, 0.08), transparent 28rem),
    #edf5ff;
}

.status-shell-v1276 {
  padding-top: 14px;
  padding-bottom: 24px;
}

.status-card-v1276 {
  border: 1px solid #c8d8ec;
  border-radius: 16px;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 10px 22px rgba(19,42,74,.05);
}

.status-top-grid-v1276 {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .95fr);
  gap: 12px;
  align-items: stretch;
}

.status-hero-card-v1276,
.status-connection-card-v1276 {
  min-height: 262px;
}

.status-hero-card-v1276 {
  padding: 34px 42px;
  display: grid;
  align-content: center;
}

.status-eyebrow-v1276 {
  display: inline-flex;
  margin-bottom: 10px;
  color: #0b4a92;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}

.status-hero-card-v1276 h1 {
  margin: 0;
  max-width: 520px;
  color: #073b83;
  font-size: clamp(48px, 5vw, 74px);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.status-hero-rule-v1276 {
  width: 60px;
  height: 4px;
  margin: 18px 0 16px;
  border-radius: 999px;
  background: #8eb9ef;
}

.status-hero-card-v1276 p {
  max-width: 560px;
  margin: 0;
  color: #173e6c;
  font-size: 16px;
  line-height: 1.4;
}

.status-connection-card-v1276 {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px 22px;
}

.status-connection-card-v1276 .card-head {
  align-items: center;
}

.status-connection-card-v1276 .status-dot {
  width: 14px;
  height: 14px;
  margin: 0;
}

.status-connection-card-v1276 .status-metric {
  margin-top: 2px;
  color: #003b85;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.status-connection-card-v1276 p {
  margin: 0;
  color: #31567f;
  font-size: 14px;
  line-height: 1.35;
}

.status-connection-card-v1276 .copy-chip {
  justify-self: start;
  margin-top: 2px;
}

.status-connection-stats-v1276 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

.status-connection-stat-v1276 {
  display: grid;
  align-content: center;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid #d4e2f4;
  border-radius: 12px;
  background: #f7fbff;
}

.status-connection-stat-v1276--wide {
  grid-column: span 2;
  min-height: 82px;
}

.status-connection-stat-v1276 span {
  color: #31567f;
  font-size: 13px;
  font-weight: 800;
}

.status-connection-stat-v1276 strong {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
  color: #003b85;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.status-body-grid-v1276 {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 12px;
  margin-top: 12px;
  align-items: start;
}

.status-left-stack-v1276,
.status-right-stack-v1276 {
  display: grid;
  gap: 12px;
  align-content: start;
}

.status-players-card-v1276,
.status-details-card-v1276,
.status-info-card-v1276 {
  padding: 16px 18px;
}

.status-players-card-v1276 .status-metric {
  margin-top: 8px;
  color: #003b85;
  font-size: clamp(42px, 5vw, 60px);
  line-height: 1;
}

.status-players-card-v1276 p {
  margin-top: 6px;
  max-width: 600px;
  color: #31567f;
  font-size: 14px;
  line-height: 1.35;
}

.player-list--v1276 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.player-list--v1276 li {
  min-height: 44px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
}

.player-list--v1276 li em {
  background: #ffeec2;
  color: #7a4b00;
}

.status-details-card-v1276 .status-detail-list {
  margin-top: 12px;
}

.status-info-card-v1276 h2 {
  margin: 0 0 6px;
  color: #073b83;
  font-size: 20px;
}

.status-info-card-v1276 p {
  margin: 0 0 10px;
  color: #31567f;
  font-size: 14px;
  line-height: 1.35;
}

.status-info-card-v1276 span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: #24527f;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .status-top-grid-v1276,
  .status-body-grid-v1276 {
    grid-template-columns: 1fr;
  }

  .status-hero-card-v1276,
  .status-connection-card-v1276 {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .status-shell-v1276 {
    padding-top: 10px;
  }

  .status-hero-card-v1276 {
    padding: 24px 24px 26px;
  }

  .status-connection-stats-v1276,
  .player-list--v1276 {
    grid-template-columns: 1fr;
  }

  .status-connection-stat-v1276--wide {
    grid-column: auto;
  }

  .status-connection-card-v1276 .copy-chip {
    justify-self: stretch;
    justify-content: center;
  }
}

/* ---- v12.77 status page alignment with other subpages ---- */
.status-page-main--v1277 {
  background:
    radial-gradient(circle at top right, rgba(32, 104, 190, 0.06), transparent 28rem),
    #edf5ff;
}

.status-page-hero--v1277 .page-hero-copy,
.status-page-hero--v1277 .page-side-card {
  min-height: 100%;
}

.status-side-card-v1277 {
  padding: 26px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.status-side-card-v1277 .card-head {
  align-items: center;
}

.status-side-card-v1277 .status-dot {
  width: 14px;
  height: 14px;
  margin: 0;
}

.status-side-main-v1277 strong {
  display: block;
  color: #083b82;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

.status-side-main-v1277 span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.status-side-actions-v1277 {
  margin-top: -2px;
}

.status-side-stats-v1277 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.status-side-stats-v1277 .mini-box {
  min-height: 84px;
}

.status-side-stats-v1277 .mini-box--wide {
  grid-column: 1 / -1;
}

.status-side-stats-v1277 .mini-box strong {
  overflow-wrap: anywhere;
}

.status-layout-v1277 {
  padding-top: 0;
}

.status-main-grid-v1277 {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 18px;
  align-items: start;
}

.status-players-panel-v1277,
.status-details-panel-v1277,
.status-info-panel-v1277 {
  padding: 24px;
}

.status-panel-top-v1277 {
  margin-top: 10px;
  margin-bottom: 16px;
}

.status-panel-top-v1277 .status-metric {
  color: #083b82;
  font-size: clamp(44px, 5vw, 60px);
  line-height: 1;
}

.status-panel-top-v1277 p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.player-list--v1277 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.player-list--v1277 li {
  min-height: 46px;
  padding: 10px 12px;
}

.player-list--v1277 li em {
  background: #ffeec2;
  color: #7a4b00;
}

.status-right-stack-v1277 {
  display: grid;
  gap: 18px;
}

.status-info-panel-v1277 h2 {
  margin: 0 0 8px;
}

.status-info-panel-v1277 p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .status-main-grid-v1277 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .status-side-stats-v1277,
  .player-list--v1277 {
    grid-template-columns: 1fr;
  }
}

/* ---- v12.78 status page cleanup ---- */
.status-page-main--v1278 {
  background:
    radial-gradient(circle at top right, rgba(32, 104, 190, 0.06), transparent 28rem),
    #edf5ff;
}

.status-page-hero--v1278 .page-hero-copy,
.status-page-hero--v1278 .page-side-card {
  min-height: 100%;
}

.status-live-card-v1278 {
  padding: 26px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.status-live-title-v1278 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-live-title-v1278 .status-dot {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}

.status-live-title-v1278 h2 {
  margin: 0;
  color: #083b82;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.04em;
}

.status-live-actions-v1278 {
  margin-top: -4px;
}

.status-live-stats-v1278 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.status-stat-box-v1278 {
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid #d8e5f4;
  border-radius: 12px;
  background: #f7fbff;
  display: grid;
  align-content: center;
  gap: 4px;
}

.status-stat-box-v1278 strong {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px;
  color: #083b82;
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.status-stat-box-v1278 span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status-layout-v1278 {
  padding-top: 0;
}

.status-main-grid-v1278 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.status-players-panel-v1278,
.status-details-panel-v1278,
.status-info-panel-v1278 {
  padding: 24px;
}

.status-panel-top-v1278 {
  margin-top: 10px;
  margin-bottom: 16px;
}

.status-panel-top-v1278 .status-metric {
  color: #083b82;
  font-size: clamp(44px, 5vw, 60px);
  line-height: 1;
}

.status-panel-top-v1278 p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.player-list--v1278 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.player-list--v1278 li {
  min-height: 46px;
  padding: 10px 12px;
}

.player-list--v1278 li em {
  background: #ffeec2;
  color: #7a4b00;
}

.status-info-panel-v1278 {
  margin-top: 18px;
}

.status-info-panel-v1278 h2 {
  margin: 0 0 8px;
}

.status-info-panel-v1278 p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .status-main-grid-v1278 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .status-live-stats-v1278,
  .player-list--v1278 {
    grid-template-columns: 1fr;
  }
}

/* ---- v12.79 status page duplicate cleanup ---- */
.status-page-main--v1279 {
  background: #edf5ff;
}

.status-page-hero--v1279 {
  padding-bottom: 14px;
}

.status-hero-grid-v1279 {
  grid-template-columns: 1.15fr .85fr;
}

.status-page-hero--v1279 .page-hero-copy,
.status-connection-card-v1279 {
  min-height: 330px;
}

.status-connection-card-v1279 {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.status-connection-title-v1279 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-connection-title-v1279 .status-dot {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}

.status-connection-title-v1279 h2 {
  margin: 0;
  color: #083b82;
  font-size: clamp(52px, 5vw, 72px);
  line-height: .95;
  letter-spacing: -.045em;
}

.status-connection-card-v1279 p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.status-layout-v1279 {
  padding-top: 0;
}

.status-main-grid-v1279 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.status-panel-v1279 {
  padding: 24px;
  min-height: 300px;
}

.status-player-count-v1279 {
  margin-top: 22px;
  color: #083b82;
  font-size: clamp(50px, 5vw, 72px);
  line-height: 1;
}

.status-players-panel-v1279 p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.player-list--v1279 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.player-list--v1279 li {
  min-height: 46px;
  padding: 10px 12px;
}

.player-list--v1279 li em {
  background: #ffeec2;
  color: #7a4b00;
}

.status-details-panel-v1279 .status-detail-list {
  margin-top: 22px;
}

.status-count-separator {
  display: inline-flex;
  align-items: center;
  align-self: center;
  font-size: 0.52em;
  line-height: 1;
  margin: 0 2px;
  transform: translateY(0.02em);
}

.status-details-panel-v1279 .status-count-separator {
  font-size: .9em;
}

@media (max-width: 980px) {
  .status-hero-grid-v1279,
  .status-main-grid-v1279 {
    grid-template-columns: 1fr;
  }

  .status-page-hero--v1279 .page-hero-copy,
  .status-connection-card-v1279 {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .player-list--v1279 {
    grid-template-columns: 1fr;
  }
}

/* ---- v12.80 status symmetry cleanup ---- */
.status-page-hero--v1279 .page-hero-copy,
.status-connection-card-v1279 {
  min-height: 316px;
}

.status-connection-card-v1279 {
  justify-content: flex-start;
  padding-top: 34px;
}

.status-main-grid-v1279 {
  align-items: stretch;
}

.status-panel-v1279 {
  min-height: 392px;
  display: flex;
  flex-direction: column;
}

.status-players-panel-v1279 .card-head,
.status-details-panel-v1279 .card-head {
  margin-bottom: 2px;
}

.status-player-count-v1279 {
  margin-top: 18px;
  margin-bottom: 10px;
}

.status-players-panel-v1279 p {
  margin-top: 0;
  margin-bottom: 18px;
}

.player-list--v1279 {
  margin-top: 0;
  align-content: start;
}

.status-details-panel-v1279 .status-detail-list {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .status-panel-v1279 {
    min-height: auto;
  }
}

/* ---- v12.81 status page cleanup ---- */
.status-page-main--v1281 {
  background: #edf5ff;
}

.status-page-hero--v1281 {
  padding-bottom: 14px;
}

.status-hero-grid-v1281 {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
}

.status-hero-copy-v1281,
.status-live-card-v1281 {
  min-height: 320px;
}

.status-live-card-v1281 {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.status-live-heading-v1281 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-live-heading-v1281 .status-dot {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}

.status-live-heading-v1281 h2 {
  margin: 0;
  color: #083b82;
  font-size: clamp(54px, 5vw, 72px);
  line-height: .95;
  letter-spacing: -.045em;
}

.status-live-card-v1281 p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.status-layout-v1281 { padding-top: 0; }

.status-main-grid-v1281 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.status-panel-v1281 {
  padding: 22px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.status-player-count-v1281 {
  margin-top: 20px;
  color: #083b82;
  font-size: clamp(52px, 5vw, 72px);
  line-height: 1;
}

.status-players-panel-v1281 p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.player-list--v1281 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  align-content: start;
}

.player-list--v1281 li {
  min-height: 44px;
  padding: 10px 12px;
}

.player-list--v1281 li em {
  background: #ffeec2;
  color: #7a4b00;
}

.status-details-panel-v1281 .status-detail-list {
  margin-top: 20px;
}

.status-count-separator {
  display: inline-flex;
  align-items: center;
  align-self: center;
  font-size: 0.52em;
  line-height: 1;
  margin: 0 2px;
  transform: translateY(0.02em);
}

.status-details-panel-v1281 .status-count-separator { font-size: .9em; }

@media (max-width: 980px) {
  .status-hero-grid-v1281,
  .status-main-grid-v1281 {
    grid-template-columns: 1fr;
  }
  .status-hero-copy-v1281,
  .status-live-card-v1281,
  .status-panel-v1281 { min-height: auto; }
}

@media (max-width: 640px) {
  .player-list--v1281 { grid-template-columns: 1fr; }
}


/* ---- v12.82 actual status page rebuild ---- */
.status-page-v1282 {
  background: #edf5ff !important;
  min-height: calc(100vh - 82px);
}

.status-board-v1282 {
  padding-top: 12px !important;
  padding-bottom: 18px !important;
}

.status-grid-top-v1282,
.status-grid-main-v1282 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
  align-items: stretch !important;
}

.status-grid-main-v1282 {
  margin-top: 16px !important;
}

.status-card-base-v1282 {
  background: #fff !important;
  border: 1px solid #c8d8ec !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(19,42,74,.05) !important;
}

.status-hero-v1282,
.status-connection-v1282 {
  height: 318px !important;
  min-height: 318px !important;
  padding: 28px !important;
}

.status-hero-v1282 {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.status-hero-v1282 h1 {
  margin: 0 !important;
  color: #083b82 !important;
  font-size: clamp(58px, 5vw, 76px) !important;
  line-height: .95 !important;
  letter-spacing: -.05em !important;
}

.status-hero-v1282 h1 span,
.status-hero-v1282 h1 strong {
  display: block !important;
}

.status-hero-v1282 p {
  margin: 0 !important;
  max-width: 560px !important;
  color: var(--muted) !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
}

.status-hero-v1282 .pill-row {
  margin-top: 20px !important;
}

.status-connection-v1282 {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 18px !important;
}

.status-connection-main-v1282 {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.status-connection-main-v1282 .status-dot {
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

.status-connection-main-v1282 strong {
  color: #083b82 !important;
  font-size: clamp(58px, 5vw, 76px) !important;
  font-weight: 700 !important;
  line-height: .95 !important;
  letter-spacing: -.05em !important;
}

.status-connection-v1282 p {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 18px !important;
  line-height: 1.45 !important;
}

.status-players-v1282,
.status-details-v1282 {
  height: 382px !important;
  min-height: 382px !important;
  padding: 22px !important;
  overflow: hidden !important;
}

.status-players-v1282 {
  display: flex !important;
  flex-direction: column !important;
}

.status-players-v1282 .card-head,
.status-details-v1282 .card-head {
  margin-bottom: 12px !important;
}

.status-players-v1282 h2,
.status-details-v1282 h2 {
  font-size: 18px !important;
}

.status-count-v1282 {
  margin-top: 14px !important;
  color: #083b82 !important;
  font-size: clamp(54px, 5vw, 72px) !important;
  font-weight: 700 !important;
  line-height: .95 !important;
}

.status-count-separator {
  display: inline-flex !important;
  align-items: center !important;
  align-self: center !important;
  font-size: .52em !important;
  line-height: 1 !important;
  margin: 0 2px !important;
  transform: translateY(.02em) !important;
}

.status-count-separator--table {
  font-size: .9em !important;
}

.status-players-v1282 p {
  margin: 12px 0 0 !important;
  color: var(--muted) !important;
  line-height: 1.45 !important;
}

.status-player-list-v1282 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 20px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  align-content: start !important;
  max-height: 164px !important;
  overflow: auto !important;
}

.status-player-list-v1282 li {
  min-height: 46px !important;
  padding: 10px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border: 1px solid #d6e4f5 !important;
  border-radius: 10px !important;
  background: #f8fbff !important;
  color: #082b5f !important;
  font-weight: 800 !important;
}

.status-player-list-v1282 li em {
  background: #ffeec2 !important;
  color: #7a4b00 !important;
}

.status-detail-list-v1282 {
  margin-top: 18px !important;
}

.status-detail-list-v1282 div {
  grid-template-columns: 145px minmax(0, 1fr) !important;
}

.status-detail-list-v1282 dt,
.status-detail-list-v1282 dd {
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}

@media (max-width: 980px) {
  .status-grid-top-v1282,
  .status-grid-main-v1282 {
    grid-template-columns: 1fr !important;
  }

  .status-hero-v1282,
  .status-connection-v1282,
  .status-players-v1282,
  .status-details-v1282 {
    height: auto !important;
    min-height: 0 !important;
  }
}

@media (max-width: 640px) {
  .status-player-list-v1282 {
    grid-template-columns: 1fr !important;
    max-height: none !important;
  }
}

/* ---- v12.83 professional status page polish ---- */
.status-page-v1283 {
  background:
    radial-gradient(circle at top right, rgba(75, 131, 206, 0.10), transparent 28rem),
    #edf5ff !important;
  min-height: calc(100vh - 82px);
}

.status-board-v1283 {
  padding-top: 14px !important;
  padding-bottom: 20px !important;
}

.status-grid-top-v1283,
.status-grid-main-v1283 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.status-grid-main-v1283 { margin-top: 18px !important; }

.status-card-base-v1283 {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(251,253,255,0.98) 100%) !important;
  border: 1px solid #c7d8ed !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 32px rgba(16, 42, 74, 0.06) !important;
}

.status-hero-v1283,
.status-connection-v1283 {
  min-height: 312px !important;
  padding: 30px 26px !important;
}

.status-hero-v1283 {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.status-hero-copy-v1283 {
  max-width: 570px !important;
}

.status-hero-v1283 h1 {
  margin: 0 !important;
  color: #083b82 !important;
  font-size: clamp(60px, 5vw, 78px) !important;
  line-height: 0.93 !important;
  letter-spacing: -0.055em !important;
}

.status-hero-v1283 h1 span,
.status-hero-v1283 h1 strong {
  display: block !important;
}

.status-hero-v1283 .page-hero-rule {
  margin: 20px 0 18px !important;
}

.status-hero-v1283 p {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 17px !important;
  line-height: 1.52 !important;
}

.status-pills-v1283 {
  margin-top: 18px !important;
}

.status-connection-v1283 {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 18px !important;
}

.status-connection-main-v1283 {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.status-connection-main-v1283 .status-dot {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

.status-connection-main-v1283 strong {
  color: #083b82 !important;
  font-size: clamp(60px, 5vw, 78px) !important;
  font-weight: 700 !important;
  line-height: 0.93 !important;
  letter-spacing: -0.055em !important;
}

.status-subline-v1283 {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

.status-players-v1283,
.status-details-v1283 {
  min-height: 396px !important;
  padding: 22px !important;
}

.status-players-v1283 {
  display: flex !important;
  flex-direction: column !important;
}

.status-players-v1283 .card-head,
.status-details-v1283 .card-head {
  margin-bottom: 10px !important;
}

.status-players-summary-v1283 {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin-bottom: 18px !important;
}

.status-count-v1283 {
  color: #083b82 !important;
  font-size: clamp(56px, 5vw, 74px) !important;
  font-weight: 700 !important;
  line-height: 0.94 !important;
}

.status-count-separator {
  display: inline-flex !important;
  align-items: center !important;
  align-self: center !important;
  font-size: 0.52em !important;
  line-height: 1 !important;
  margin: 0 2px !important;
  transform: translateY(0.02em) !important;
}

.status-count-separator--table { font-size: 0.9em !important; }

.status-players-summary-v1283 p {
  margin: 0 0 8px !important;
  color: var(--muted) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  text-align: right !important;
}

.status-player-list-v1283 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  align-content: start !important;
}

.status-player-list-v1283 li {
  min-height: 46px !important;
  padding: 10px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border: 1px solid #d3e1f2 !important;
  border-radius: 12px !important;
  background: #f8fbff !important;
  color: #082b5f !important;
  font-weight: 800 !important;
}

.status-player-list-v1283 li em {
  background: #ffeec2 !important;
  color: #7a4b00 !important;
}

.status-detail-list-v1283 {
  margin-top: 16px !important;
  border: 1px solid #d1e0f2 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

.status-detail-list-v1283 div {
  grid-template-columns: 150px minmax(0, 1fr) !important;
}

.status-detail-list-v1283 div:nth-child(odd) dt,
.status-detail-list-v1283 div:nth-child(odd) dd {
  background: rgba(248, 251, 255, 0.9) !important;
}

.status-detail-list-v1283 dt,
.status-detail-list-v1283 dd {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

@media (max-width: 980px) {
  .status-grid-top-v1283,
  .status-grid-main-v1283 {
    grid-template-columns: 1fr !important;
  }

  .status-hero-v1283,
  .status-connection-v1283,
  .status-players-v1283,
  .status-details-v1283 {
    min-height: 0 !important;
  }
}

@media (max-width: 680px) {
  .status-players-summary-v1283 {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .status-players-summary-v1283 p {
    text-align: left !important;
    margin-bottom: 0 !important;
  }

  .status-player-list-v1283 {
    grid-template-columns: 1fr !important;
  }
}


/* ---- v12.84 live API status polish ---- */
.status-connection-main-v1283 strong[data-status-label],
.status-detail-list-v1283 dd[data-status-label] {
  overflow-wrap: anywhere;
}

.status-detail-list-v1283 dd[data-uptime] {
  overflow-wrap: anywhere;
}
