
    :root {
      --green: #075442;
      --green-2: #0b8064;
      --ink: #17332c;
      --muted: #64766f;
      --line: #dbe6e1;
      --bg: #f4f7f5;
      --white: #ffffff;
      --danger: #b42318;
      --warning: #8c5b00;
      --warning-bg: #fff8e6;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-size: 16px;
      line-height: 1.5;
      -webkit-text-size-adjust: 100%;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
      color: var(--ink);
      background: var(--bg);
    }

    button, select, input { font: inherit; }

    button:focus-visible,
    select:focus-visible,
    input:focus-visible {
      outline: 3px solid rgba(11, 128, 100, 0.22);
      outline-offset: 2px;
    }

    .wrap {
      width: min(1120px, calc(100% - 32px));
      margin: auto;
    }

    .hero {
      padding: 34px 0 92px;
      color: var(--white);
      background: linear-gradient(120deg, #043f34, #0a624c 70%, #0d7458);
    }

    .eyebrow {
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: #b9e4c5;
    }

    .hero h1 {
      margin: 10px 0 8px;
      font-size: clamp(32px, 5vw, 54px);
      font-weight: 800;
      line-height: 1.05;
    }

    .hero p {
      max-width: 700px;
      margin: 0;
      font-size: 17px;
      line-height: 1.55;
      color: #d7e8e2;
    }

    .planner {
      margin: -60px auto 30px;
      overflow: hidden;
      background: var(--white);
      border: 1px solid #dce8e3;
      border-radius: 18px;
      box-shadow: 0 18px 55px rgba(7, 59, 47, 0.13);
    }

    .tabs {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      border-bottom: 1px solid var(--line);
    }

    .tab {
      min-width: 0;
      padding: 17px 12px;
      font-size: 16px;
      font-weight: 800;
      color: var(--muted);
      cursor: pointer;
      background: var(--white);
      border: 0;
    }

    .tab.active {
      color: var(--green);
      background: #fbfdfc;
      box-shadow: inset 0 -3px var(--green-2);
    }

    .form { padding: 24px; }

    .mode-note {
      padding: 11px 13px;
      margin: 0 0 18px;
      font-size: 13px;
      line-height: 1.5;
      color: #45665b;
      background: #f3f8f6;
      border-radius: 10px;
    }

    .grid,
    .multi-grid {
      display: grid;
      grid-template-columns: 1.25fr 48px 1.25fr 1fr;
      gap: 12px;
      align-items: end;
    }

    .field label {
      display: block;
      margin: 0 0 7px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.06em;
      color: #526861;
      text-transform: uppercase;
    }

    .field select,
    .field input {
      width: 100%;
      height: 48px;
      padding: 0 12px;
      color: var(--ink);
      background: var(--white);
      border: 1px solid #c9d9d2;
      border-radius: 10px;
    }

    .swap {
      width: 48px;
      height: 48px;
      font-size: 21px;
      color: var(--green-2);
      cursor: pointer;
      background: #f3faf7;
      border: 1px solid #a9c9bc;
      border-radius: 10px;
    }

    .multi-list {
      display: grid;
      gap: 14px;
    }

    .multi-trip {
      padding: 16px;
      background: #fbfdfc;
      border: 1px solid var(--line);
      border-radius: 13px;
    }

    .multi-trip-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }

    .multi-trip-title {
      font-size: 14px;
      font-weight: 850;
      color: var(--green);
    }

    .remove-trip {
      padding: 5px 8px;
      font-size: 12px;
      font-weight: 750;
      color: var(--danger);
      cursor: pointer;
      background: transparent;
      border: 0;
      border-radius: 7px;
    }

    .remove-trip:hover { background: #fff2f0; }

    .multi-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 14px;
    }

    .add-trip {
      min-height: 42px;
      padding: 0 15px;
      font-weight: 800;
      color: var(--green);
      cursor: pointer;
      background: #f3faf7;
      border: 1px solid #a9c9bc;
      border-radius: 9px;
    }

    .add-trip:disabled {
      color: #82948e;
      cursor: not-allowed;
      background: #f4f6f5;
      border-color: var(--line);
    }

    .trip-limit {
      font-size: 12px;
      color: var(--muted);
    }

    .passengers {
      display: flex;
      gap: 12px;
      margin-top: 18px;
    }

    .qty {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 8px 10px;
      background: #f7faf8;
      border: 1px solid var(--line);
      border-radius: 10px;
    }

    .qty span {
      min-width: 72px;
      font-size: 13px;
      font-weight: 700;
    }

    .qty button {
      width: 31px;
      height: 31px;
      font-size: 18px;
      color: var(--green);
      cursor: pointer;
      background: var(--white);
      border: 1px solid #bed1c8;
      border-radius: 8px;
    }

    .qty strong {
      min-width: 18px;
      text-align: center;
    }

    .search {
      height: 48px;
      padding: 0 24px;
      margin-left: auto;
      font-size: 15px;
      font-weight: 850;
      color: var(--white);
      cursor: pointer;
      background: var(--green-2);
      border: 0;
      border-radius: 10px;
    }

    .search:hover { background: var(--green); }

    .status {
      padding: 14px 17px;
      margin: 0 0 20px;
      color: #2b5949;
      background: #edf8f2;
      border: 1px solid #cde7da;
      border-radius: 12px;
    }

    .status.error {
      color: var(--danger);
      background: #fff2f0;
      border-color: #f2c5bf;
    }

    .results {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 330px;
      gap: 20px;
      margin-bottom: 42px;
    }

    .journeys,
    .summary {
      padding: 20px;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 16px;
    }

    .summary {
      position: sticky;
      top: 18px;
      align-self: start;
    }

    .summary-route {
      padding: 10px 12px;
      margin: 0 0 18px;
      font-size: 13px;
      font-weight: 750;
      line-height: 1.45;
      color: #355c50;
      background: #f3f8f6;
      border-radius: 9px;
    }

    .result-group + .result-group {
      padding-top: 28px;
      margin-top: 28px;
      border-top: 1px solid var(--line);
    }

    .section-title {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 14px;
    }

    .section-title h2 {
      margin: 0;
      font-size: 22px;
    }

    .section-title span {
      font-size: 13px;
      color: var(--muted);
    }

    .journey {
      padding: 17px;
      margin: 12px 0;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 14px;
    }

    .journey.watch { border-color: #e8ce92; }

    .journey-head {
      display: flex;
      justify-content: space-between;
      gap: 12px;
    }

    .times {
      display: flex;
      gap: 16px;
      align-items: center;
    }

    .time strong {
      display: block;
      font-size: 24px;
    }

    .time small,
    .muted { color: var(--muted); }

    .arrow {
      font-weight: 900;
      color: var(--green-2);
    }

    .badges {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 7px;
      align-self: flex-start;
    }

    .badge {
      padding: 6px 9px;
      font-size: 12px;
      font-weight: 800;
      color: #216a50;
      background: #e8f6ef;
      border-radius: 999px;
    }

    .badge.warning {
      color: var(--warning);
      background: var(--warning-bg);
    }

    .legs {
      display: grid;
      gap: 8px;
      padding-top: 13px;
      margin-top: 14px;
      border-top: 1px dashed #cddbd5;
    }

    .leg {
      display: grid;
      grid-template-columns: 64px minmax(0, 1fr) auto;
      gap: 10px;
      font-size: 13px;
    }

    .service-code {
      font-weight: 750;
      color: var(--muted);
      text-align: right;
    }

    .connection {
      padding: 8px 10px;
      font-size: 12px;
      color: var(--warning);
      background: var(--warning-bg);
      border-radius: 8px;
    }

    .fare-row {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      margin: 12px 0;
      color: #425c53;
    }

    .fare-row.route-fare {
      align-items: flex-start;
      padding-bottom: 11px;
      border-bottom: 1px dashed var(--line);
    }

    .fare-row.route-fare:last-child {
      padding-bottom: 0;
      border-bottom: 0;
    }

    .fare-label {
      min-width: 0;
      line-height: 1.35;
    }

    .fare-label strong,
    .fare-label small { display: block; }

    .fare-label small {
      margin-top: 3px;
      color: var(--muted);
    }

    .fare-total {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      padding-top: 16px;
      margin-top: 16px;
      font-weight: 900;
      border-top: 1px solid var(--line);
    }

    .fare-total strong {
      font-size: 25px;
      color: var(--green);
    }

    .fare-unavailable {
      padding: 12px;
      margin: 10px 0;
      font-size: 13px;
      line-height: 1.5;
      color: var(--warning);
      background: var(--warning-bg);
      border-radius: 9px;
    }

    .notice {
      margin-top: 16px;
      font-size: 12px;
      line-height: 1.55;
      color: var(--muted);
    }

    .empty {
      padding: 30px;
      color: var(--muted);
      text-align: center;
      border: 1px dashed #c6d7cf;
      border-radius: 12px;
    }

    .hidden { display: none !important; }

    @media (max-width: 850px) {
      .grid,
      .multi-grid {
        grid-template-columns: 1fr 48px 1fr;
      }

      .date-field { grid-column: 1 / -1; }

      .results { grid-template-columns: 1fr; }
      .summary { position: static; }
      .passengers { flex-wrap: wrap; }

      .search {
        flex: 1;
        margin-left: 0;
      }

      .hero { padding-bottom: 80px; }
    }

    @media (max-width: 590px) {
      .wrap { width: min(100% - 20px, 1120px); }

      .tab {
        padding: 14px 5px;
        font-size: 12px;
        line-height: 1.25;
      }

      .grid,
      .multi-grid { grid-template-columns: 1fr; }

      .swap {
        justify-self: center;
        transform: rotate(90deg);
      }

      .passengers {
        display: grid;
        grid-template-columns: 1fr 1fr;
      }

      .search { grid-column: 1 / -1; }
      .form { padding: 17px; }
      .planner { border-radius: 14px; }
      .journey-head { display: block; }

      .badges {
        justify-content: flex-start;
        margin-top: 12px;
      }

      .section-title { display: block; }

      .section-title > span {
        display: block;
        margin-top: 5px;
      }

      .leg { grid-template-columns: 55px minmax(0, 1fr); }

      .service-code {
        grid-column: 2;
        text-align: left;
      }

      .multi-actions {
        align-items: stretch;
        flex-direction: column;
      }
    }


    .hero-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .language-switch {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px;
      color: rgba(255, 255, 255, 0.64);
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 999px;
      backdrop-filter: blur(8px);
    }

    .lang-option {
      min-width: 39px;
      height: 30px;
      padding: 0 9px;
      font-size: 12px;
      font-weight: 850;
      color: rgba(255, 255, 255, 0.72);
      cursor: pointer;
      background: transparent;
      border: 0;
      border-radius: 999px;
    }

    .lang-option.active {
      color: var(--green);
      background: var(--white);
      box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
    }

    .language-separator {
      font-size: 11px;
      user-select: none;
    }

    .remove-trip {
      display: inline-grid;
      width: 36px;
      height: 36px;
      padding: 0;
      place-items: center;
      color: var(--danger);
      cursor: pointer;
      background: transparent;
      border: 0;
      border-radius: 9px;
    }

    .remove-trip svg {
      width: 18px;
      height: 18px;
      pointer-events: none;
    }

    .remove-trip:hover { background: #fff2f0; }

    @media (max-width: 590px) {
      .hero-top { align-items: flex-start; }
      .language-switch { flex: 0 0 auto; }
    }


    /* Final mobile width fixes for embedded iPhone/Android layouts */
    html,
    body {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
    }

    .planner,
    .form,
    .grid,
    .multi-grid,
    .field,
    .date-field,
    .passengers,
    .qty,
    .search,
    .multi-trip,
    .multi-list {
      min-width: 0;
      max-width: 100%;
      box-sizing: border-box;
    }

    .field select,
    .field input,
    .field input[type="date"] {
      display: block;
      width: 100%;
      min-width: 0;
      max-width: 100%;
      box-sizing: border-box;
    }

    @media (max-width: 590px) {
      .form {
        width: 100%;
        padding: 17px;
        overflow: hidden;
      }

      .grid,
      .multi-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        gap: 14px;
      }

      .grid > *,
      .multi-grid > * {
        min-width: 0;
        max-width: 100%;
      }

      .field,
      .date-field {
        grid-column: auto !important;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
      }

      .field select,
      .field input,
      .field input[type="date"] {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 52px;
        padding: 0 12px;
        font-size: 16px;
        box-sizing: border-box;
      }

      /* Safari/iPhone date inputs can retain a large intrinsic width. */
      .field input[type="date"] {
        inline-size: 100% !important;
        min-inline-size: 0 !important;
        max-inline-size: 100% !important;
        -webkit-min-logical-width: 0;
      }

      .field input[type="date"]::-webkit-date-and-time-value {
        min-width: 0;
        width: auto;
        text-align: left;
      }

      .field input[type="date"]::-webkit-calendar-picker-indicator {
        flex: 0 0 auto;
        margin-left: auto;
      }

      .swap {
        width: 52px;
        height: 52px;
        margin: 0 auto;
        justify-self: center;
      }

      .passengers {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100%;
        gap: 12px;
        margin-top: 18px;
      }

      .qty {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px 34px 46px;
        align-items: center;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 10px 12px;
        gap: 8px;
      }

      .qty span {
        width: auto;
        min-width: 0;
        overflow-wrap: anywhere;
      }

      .qty button {
        width: 46px;
        height: 46px;
        padding: 0;
      }

      .qty strong {
        width: 34px;
        min-width: 0;
        text-align: center;
      }

      .search {
        display: block;
        grid-column: auto !important;
        width: 100% !important;
        min-width: 0;
        max-width: 100% !important;
        height: 54px;
        margin: 0;
        padding: 0 16px;
        white-space: normal;
      }
    }

  .field,
    .date-field {
      width: 100%;
      min-width: 0;
      max-width: 100%;
    }

    .field input[type="date"],
    .date-field input[type="date"] {
      display: block;
      width: 100%;
      min-width: 0;
      max-width: 100%;
      height: 52px;
      box-sizing: border-box;
      padding: 0 46px 0 14px;
      border: 1px solid #c9d9d2;
      border-radius: 10px;
      background: #fff;
      color: var(--ink);
      font: inherit;
      appearance: auto;
      -webkit-appearance: auto;
    }

    .date-field {
      overflow: visible;
    }

    @media (max-width: 590px) {
      .field input[type="date"],
      .date-field input[type="date"] {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: 52px;
        font-size: 16px;
        line-height: normal;
      }

      input[type="date"]::-webkit-date-and-time-value {
        text-align: left;
      }

      input[type="date"]::-webkit-calendar-picker-indicator {
        margin: 0;
        padding: 0;
      }
    }
    
  
[hidden],.hidden{display:none!important}
.rail-table-scroll{overflow-x:auto;max-width:100%;border:1px solid var(--line);border-radius:12px;margin-top:14px}
.rail-table{border-collapse:collapse;width:100%;font-size:14px;color:var(--ink)}
.rail-table caption{text-align:left;padding:14px;font-weight:800;background:#f3f8f6}
.rail-table th,.rail-table td{padding:13px 14px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.rail-table th{font-size:12px;background:#f3f8f6;color:var(--green,#075442);white-space:nowrap}
.rail-table td small{display:block;margin-top:5px;color:var(--muted)}
.rail-table td.time-cell{white-space:nowrap;font-size:18px;font-weight:800}
.rail-table tbody tr:last-child td{border-bottom:0}
.rail-table .connection{margin:8px 0;padding:8px}
.rail-pick{border:1px solid var(--line);border-radius:8px;background:white;color:var(--green);padding:7px 10px;cursor:pointer}
.rail-pick[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}
.rail-table tr.selected{background:#f2faf6}
.search:disabled{opacity:.65;cursor:wait}.rail-spinner{display:inline-block;width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:rail-spin .7s linear infinite;margin-right:8px;vertical-align:middle}
@keyframes rail-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.rail-spinner{animation:none}}
#publicNotice{white-space:pre-wrap}
.results{grid-template-columns:minmax(0,1.65fr) minmax(285px,1fr)}
.journeys,.summary,.result-group{min-width:0}
.fare-total strong{font-size:26px}
@media(max-width:850px){.results{grid-template-columns:1fr}.rail-table{font-size:13px}.rail-table th,.rail-table td{padding:10px}.rail-table td.time-cell{font-size:16px}}
/* Keep the fare breakdown readable inside the official summary column. */
#fareLines .rail-table{table-layout:fixed;font-size:12px}
#fareLines .rail-table th,#fareLines .rail-table td{padding:10px 7px;white-space:normal;overflow-wrap:anywhere}
#fareLines .rail-table th:first-child{width:36%}
#fareLines .rail-table th small{display:block;margin-top:6px;font-size:11px;font-weight:400;line-height:1.5;color:var(--muted)}
#fareLines .rail-table td{font-variant-numeric:tabular-nums}

/* Embedded public applications own their typography; no WordPress theme assets load. */
body.is-embedded { background: transparent; }
h2 { font-size: 22px; line-height: 1.3; font-weight: 750; }
button { line-height: 1.3; }
.field select, .field input { font-size: 16px; }
.qty strong { font-size: 16px; }
button:disabled, select:disabled { cursor: not-allowed; }
select:disabled { background: #f3f8f6; color: var(--muted); }
@media (max-width: 590px) {
  .hero { padding-top: 22px; }
  .hero h1 { font-size: clamp(28px, 7.5vw, 34px); line-height: 1.15; }
  .hero p { font-size: 14px; line-height: 1.55; }
  .eyebrow { font-size: 10px; }
  .form { padding: 14px; }
  .passengers { gap: 8px; }
  .qty { grid-template-columns: minmax(0, 1fr) 40px 28px 40px; padding: 8px 10px; }
  .qty button { width: 40px; height: 40px; }
  .qty strong { width: 28px; }
  .search { height: 48px; font-size: 15px; }
  .journeys, .summary { padding: 14px; }
  .rail-table-scroll { border: 0; overflow: visible; }
  #journeyGroups .rail-table, #journeyGroups .rail-table tbody { display: block; }
  #journeyGroups .rail-table caption { display: block; padding: 10px; font-size: 13px; }
  #journeyGroups .rail-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #journeyGroups .rail-table tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; overflow: hidden; }
  #journeyGroups .rail-table td { min-width: 0; padding: 10px; border: 0; font-size: 13px; overflow-wrap: anywhere; }
  #journeyGroups .rail-table td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 750; color: var(--muted); margin-bottom: 4px; }
  #journeyGroups .rail-table td.time-cell { font-size: 20px; }
  #journeyGroups .rail-table td:nth-child(n+3) { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .rail-pick { width: 100%; min-height: 42px; }
}
