/* LewesLive consolidated UI layer.
   Source order intentionally preserves the former cascade:
   1. leweslive-hero-refine.css
   2. leweslive-readability-fixes.css
*/

/* Homepage hero refinement. */
.ll-home-banner-fullwidth .ll-hero,
.ll-home-banner-fullwidth .ll-hero__grid,
.ll-home-banner-fullwidth .ll-beauty-window {
  min-height: calc(88svh - 118px) !important;
}

.ll-home-banner-fullwidth .ll-beauty-window::after {
  background:
    linear-gradient(90deg, rgba(7,16,13,0.42), rgba(7,16,13,0.10) 32%, rgba(7,16,13,0.03) 70%, rgba(7,16,13,0.28)),
    linear-gradient(0deg, rgba(7,16,13,0.16), transparent 42%) !important;
}

.ll-home-banner-fullwidth .ll-scene::before {
  filter: saturate(1.06) contrast(1.02) brightness(1.10) !important;
}

.ll-home-banner-fullwidth .ll-scene::after {
  background:
    linear-gradient(0deg, rgba(7,16,13,0.46), rgba(7,16,13,0.10) 58%, rgba(7,16,13,0.02)),
    linear-gradient(90deg, rgba(7,16,13,0.10), transparent 34%, transparent 70%, rgba(7,16,13,0.12)) !important;
}

.ll-home-banner-fullwidth .ll-panorama-track {
  animation-duration: 72s !important;
}

.ll-home-banner-fullwidth .ll-scene {
  width: 54vw !important;
  min-width: 760px !important;
  flex-basis: 54vw !important;
  padding: clamp(18px, 2.4vw, 34px) !important;
}

.ll-home-banner-fullwidth .ll-scene figcaption {
  max-width: 640px !important;
  padding: 13px 15px !important;
  background: linear-gradient(0deg, rgba(7,16,13,0.58), rgba(7,16,13,0.18)) !important;
}

.ll-home-banner-fullwidth .ll-scene strong {
  font-size: clamp(22px, 2.2vw, 34px) !important;
}

.ll-home-banner-fullwidth .ll-hero__copy {
  width: min(620px, calc(100% - 42px)) !important;
  padding: clamp(28px, 5vw, 62px) !important;
}

.ll-home-banner-fullwidth .ll-hero__copy::before {
  inset: 0 -7vw 0 0 !important;
  background: linear-gradient(90deg, rgba(7,16,13,0.74), rgba(7,16,13,0.46) 58%, transparent) !important;
}

.ll-home-banner-fullwidth .ll-hero h1 {
  font-size: clamp(36px, 4.7vw, 64px) !important;
  max-width: 520px !important;
}

.ll-home-banner-fullwidth .ll-hero__copy p:not(.ll-eyebrow) {
  max-width: 480px !important;
  font-size: clamp(16px, 1.25vw, 20px) !important;
}

@media (max-width: 980px) {
  .ll-home-banner-fullwidth .ll-scene {
    width: 82vw !important;
    min-width: 520px !important;
    flex-basis: 82vw !important;
  }
  .ll-home-banner-fullwidth .ll-hero__copy::before {
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(7,16,13,0.62), rgba(7,16,13,0.20), transparent) !important;
  }
}

@media (max-width: 640px) {
  .ll-home-banner-fullwidth .ll-scene {
    width: 92vw !important;
    min-width: 310px !important;
    flex-basis: 92vw !important;
  }
  .ll-home-banner-fullwidth .ll-hero,
  .ll-home-banner-fullwidth .ll-hero__grid,
  .ll-home-banner-fullwidth .ll-beauty-window {
    min-height: 76svh !important;
  }
  .ll-home-banner-fullwidth .ll-hero h1 {
    font-size: clamp(34px, 10vw, 48px) !important;
  }
}

/* Readable controls, simplified map page and mobile burger menu. */
.ll-v2 button,
.ll-v2 select,
.ll-v2 input,
.ll-v2 textarea,
.ll-v2 .place-meta a,
.ll-v2 .place-meta button,
.ll-v2 .directory-meta a,
.ll-v2 .directory-meta span,
.ll-v2 .map-place-actions a,
.ll-v2 .map-place-actions button,
.ll-v2 .delivery-badge {
  color: #101916;
  background: #fffdf8;
  border-color: rgba(16,25,22,0.22);
}

.ll-v2 button:hover,
.ll-v2 button:focus-visible,
.ll-v2 a:focus-visible,
.ll-v2 .place-meta a:hover,
.ll-v2 .place-meta button:hover,
.ll-v2 .directory-meta a:hover,
.ll-v2 .map-place-actions a:hover,
.ll-v2 .map-place-actions button:hover {
  outline: 3px solid rgba(226,170,66,0.55);
  outline-offset: 2px;
}

.ll-v2 .ll-button,
.ll-v2 .ll-link-row a,
.ll-v2 .ll-link-row button,
.ll-v2 .map-place-actions a:first-child,
.ll-v2 .place-meta button,
.ll-v2 .place-meta a:first-child {
  background: #101916;
  color: #fffaf0;
  border-color: #101916;
}

.ll-v2 .ll-nav a[aria-current="page"],
.ll-v2 .ll-nav a:hover,
.ll-v2 .ll-nav a:focus-visible {
  background: #101916;
  color: #fffaf0;
}

.ll-v2 .ll-calendar-filter button[aria-pressed="true"] {
  background: #101916;
  color: #fffaf0;
}

.ll-menu-toggle {
  display: none;
  width: 48px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(16,25,22,0.18);
  background: #fffdf8;
  color: #101916;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
  flex: 0 0 auto;
}

.ll-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.ll-menu-open .ll-menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.ll-menu-open .ll-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.ll-menu-open .ll-menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.ll-map-page #illustrated-map-toggle {
  display: none !important;
}

.ll-map-page .map-stage {
  display: grid;
  grid-template-rows: minmax(520px, 72svh) auto;
  gap: 14px;
}

.ll-map-page #map {
  min-height: 520px;
}

.ll-map-page .map-place-card {
  position: static !important;
  width: 100% !important;
  max-height: none !important;
  overflow: visible;
  box-shadow: 0 18px 42px rgba(16,25,22,0.12);
}

.ll-map-page .map-place-card[hidden] {
  display: none !important;
}

.ll-map-page .map-place-visual,
.ll-map-page .map-place-kicker,
.ll-map-page .map-place-source,
.ll-map-page .map-place-status {
  display: block;
}

.ll-map-page .map-place-close {
  float: right;
}

@media (max-width: 900px) {
  .ll-header__inner,
  .ll-map-page .ll-header__inner {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: min(96%, 1180px) !important;
    min-height: 112px !important;
    padding: 10px 0 !important;
  }

  .ll-logo,
  .ll-map-page .ll-logo {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .ll-logo img,
  .ll-map-page .ll-logo img {
    width: min(78vw, 510px) !important;
    max-width: 100% !important;
    max-height: 104px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .ll-menu-toggle {
    display: inline-flex !important;
    margin-left: auto !important;
    order: 2 !important;
  }

  .ll-nav,
  .ll-map-page .ll-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none !important;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(16,25,22,0.14);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 22px 52px rgba(16,25,22,0.18);
    z-index: 1000;
  }

  html.ll-menu-open .ll-nav,
  body.ll-menu-open .ll-nav,
  .ll-header.ll-menu-open .ll-nav,
  .ll-header__inner.ll-menu-open .ll-nav,
  .ll-menu-open .ll-nav {
    display: grid !important;
  }

  .ll-nav a {
    display: flex !important;
    justify-content: center;
    min-height: 44px;
    align-items: center;
    border-radius: 12px;
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .ll-header__inner,
  .ll-map-page .ll-header__inner {
    min-height: 82px !important;
    padding: 6px 0 !important;
  }

  .ll-logo img,
  .ll-map-page .ll-logo img {
    width: min(64vw, 360px) !important;
    max-height: 68px !important;
  }

  .ll-menu-toggle {
    width: 46px;
    height: 44px;
  }

  .ll-map-page .map-stage {
    grid-template-rows: minmax(440px, 60svh) auto;
  }
  .ll-map-page #map {
    min-height: 440px;
  }
}

/* NewLive primary hero links */
.ll-hero-primary-links{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:1.25rem}
.ll-hero-primary-links a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:.78rem 1.15rem;border-radius:4px;background:#050505;color:#fff!important;text-decoration:none;font-weight:950;letter-spacing:.08em;border:1px solid rgba(255,255,255,.22);box-shadow:0 6px 18px rgba(0,0,0,.28)}
.ll-hero-primary-links a:hover,.ll-hero-primary-links a:focus-visible{background:#1b1b1b;transform:translateY(-1px)}
@media(max-width:520px){.ll-hero-primary-links{gap:.5rem}.ll-hero-primary-links a{flex:1 1 30%;padding:.72rem .65rem;font-size:.88rem}}

/* Homepage Darwin rail board */
/* Lewes station live board — station-information inspired, accessible and responsive. */
.ll-rail-live {
  --rail-bg: #07100d;
  --rail-panel: #0d1713;
  --rail-line: rgba(255,255,255,.14);
  --rail-text: #fffdf7;
  --rail-amber: #f6c945;
  --rail-green: #7fe2a8;
  margin: clamp(22px, 4vw, 42px) 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: var(--rail-bg);
  color: var(--rail-text);
  box-shadow: 0 24px 60px rgba(7,16,13,.22);
}
.ll-rail-live__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rail-line);
  background: #111c18;
}
.ll-rail-live__station { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.ll-rail-live__station strong { font-size: clamp(22px, 3vw, 34px); letter-spacing:.01em; }
.ll-rail-live__code { color:var(--rail-amber); font:700 15px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing:.16em; }
.ll-rail-live__state { display:flex; align-items:center; gap:8px; font:700 13px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform:uppercase; letter-spacing:.08em; color:var(--rail-green); }
.ll-rail-live__state::before { content:""; width:8px; height:8px; border-radius:50%; background:currentColor; box-shadow:0 0 0 4px rgba(127,226,168,.12); }
.ll-rail-live__controls { display:flex; gap:8px; padding:14px 20px; border-bottom:1px solid var(--rail-line); background:#0a1410; }
.ll-rail-live__controls button { appearance:none; border:1px solid rgba(255,255,255,.22); border-radius:999px; padding:9px 14px; background:transparent; color:#fffdf7; font-weight:800; cursor:pointer; }
.ll-rail-live__controls button[aria-pressed="true"] { background:var(--rail-amber); color:#16130a; border-color:var(--rail-amber); }
.ll-rail-live__heading { margin:0; padding:17px 20px 9px; color:var(--rail-text); font-size:clamp(18px,2.4vw,26px); }
.ll-rail-grid { width:100%; }
.ll-rail-head,
.ll-rail-row { display:grid; grid-template-columns:90px minmax(0,1fr) 86px 126px; align-items:start; gap:12px; padding:11px 20px; }
.ll-rail-head { color:rgba(255,255,255,.64); border-bottom:1px solid var(--rail-line); font:700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform:uppercase; letter-spacing:.11em; }
.ll-rail-row { min-height:52px; border-bottom:1px solid rgba(255,255,255,.08); font:700 clamp(15px,2vw,20px)/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ll-rail-row:last-child { border-bottom:0; }
.ll-rail-time,
.ll-rail-platform { color:var(--rail-amber); }
.ll-rail-expected { color:var(--rail-green); text-align:right; }
.ll-rail-destination { min-width:0; overflow-wrap:anywhere; }
.ll-rail-note { margin-top:4px; color:#ffd3c8; font:600 12px/1.35 system-ui, sans-serif; }
.ll-rail-row.is-cancelled .ll-rail-expected { color:#ff9b88; }
.ll-rail-empty { padding:26px 20px; color:rgba(255,255,255,.8); }
.ll-rail-empty a { color:var(--rail-amber); }
.ll-rail-live__foot { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 20px; border-top:1px solid var(--rail-line); color:rgba(255,255,255,.67); font-size:12px; }
.ll-rail-live__foot a { color:#fffdf7; }
.ll-rail-live.is-loading .ll-rail-live__state { opacity:.7; }
@media (max-width: 700px) {
  .ll-rail-live { border-radius:16px; }
  .ll-rail-live__top,
  .ll-rail-live__foot { align-items:flex-start; flex-direction:column; }
  .ll-rail-head,
  .ll-rail-row { grid-template-columns:62px minmax(0,1fr) 48px 84px; gap:8px; padding-left:12px; padding-right:12px; }
  .ll-rail-head { font-size:9px; }
  .ll-rail-row { font-size:13px; }
  .ll-rail-live__controls,
  .ll-rail-live__heading { padding-left:12px; padding-right:12px; }
}

.ll-home-rail{padding:1.4rem 0 .4rem}.ll-home-rail .ll-rail-live{max-width:none}.ll-home-rail .ll-rail-live__heading{font-size:clamp(1.25rem,2vw,1.7rem);margin:.85rem 0}.ll-home-rail .ll-rail-row{min-height:3.3rem}.ll-home-rail .ll-rail-live__foot{padding-top:.75rem}@media(max-width:640px){.ll-home-rail{padding-top:.8rem}.ll-home-rail .ll-rail-live{border-radius:18px}.ll-home-rail .ll-rail-head,.ll-home-rail .ll-rail-row{grid-template-columns:3.5rem minmax(0,1fr) 2.6rem 5.1rem;gap:.35rem}.ll-home-rail .ll-rail-live__foot{align-items:flex-start;flex-direction:column}}
