.stf2 {
    --ink: #00273f;
    --secondary: #34576c;
    --blue: #145777;
    --light: #eef6fb;
    --border: #c7dce8;
    width: min(1080px, 100%);
    margin: clamp(24px, 5vw, 68px) auto;
    color: var(--ink);
    font: 20px/1.55 Montserrat, Arial, sans-serif;
    overflow-wrap: break-word;
    text-align: left;
}
.stf2 *, .stf2 *::before, .stf2 *::after { box-sizing: border-box; }
.stf2 [hidden] { display: none !important; }
.stf2 :where(*) { font-size: max(20px, 1em); }
/* Match the published Divi timetable even when a shortcode is pasted as plain text. */
.stf2 :is(.stf2-hero, .stf2-panel, .stf2-plan) { font-family: "Courier New", monospace; font-weight: 700; }
/* The same title styles also cover cached shortcode markup from earlier releases. */
.stf2 :is(.stf2-title, .stf2-section-title, h1, h2) {
    margin: 0; padding: 0; color: var(--ink); font-family: inherit;
    line-height: 1.12; font-weight: 800; letter-spacing: -.035em;
    font-style: normal; text-transform: none; text-align: inherit;
}
.stf2 :is(.stf2-title, h1) { font-size: clamp(36px, 5vw, 66px); }
.stf2 :is(.stf2-section-title, h2) { font-size: clamp(29px, 3.5vw, 40px); }
.stf2 p { margin: 0; padding: 0; color: inherit; font-size: 20px; line-height: 1.55; }
.stf2 a { color: var(--blue); font-size: 20px; font-weight: 750; text-decoration: underline; text-underline-offset: .17em; }
.stf2 :is(a, button, select, summary):focus-visible, .stf2-guide-entry a:focus-visible {
    outline: 3px solid #135478; outline-offset: 3px; box-shadow: 0 0 0 3px white;
}
.stf2 .stf2-hero {
    padding: clamp(22px, 5vw, 62px); border-radius: 20px; color: #edf7ff;
    background: radial-gradient(ellipse at 100% 100%, #195575 0%, transparent 65%), linear-gradient(120deg, #00273f, #073b57);
}
.stf2 .stf2-hero :is(.stf2-title, h1) { color: white; margin: 12px 0; }
.stf2 .stf2-hero > p:last-child { max-width: 58ch; }
.stf2 .stf2-kicker { color: var(--blue); font-size: 20px; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.stf2 .stf2-hero .stf2-kicker { color: #bce6ff; }
.stf2 .stf2-kicker span { margin-inline: .15em; color: inherit; }
.stf2 .stf2-panel, .stf2 .stf2-plan {
    margin-top: 22px; padding: clamp(16px, 3.6vw, 40px); border-radius: 20px; color: var(--ink);
}
.stf2 .stf2-panel {
    scroll-margin-top: 110px; background: #fff; border: 1px solid var(--border); box-shadow: 0 12px 36px #00273f0c;
    container: stf2-panel / inline-size;
}
.stf2 .stf2-topline {
    display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 22px;
}
.stf2 .stf2-local { font-size: 20px; font-weight: 650; color: var(--secondary); }
.stf2 fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.stf2 :is(legend, label) { display: block; margin-bottom: 8px; padding: 0; color: var(--ink); font-size: 20px; font-weight: 750; }
.stf2 .stf2-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.stf2 .stf2-buttons button, .stf2 select {
    min-width: 0; min-height: 48px; max-width: 100%; padding: 9px 14px;
    border: 1px solid #69879a; border-radius: 9px;
    background: #fff; color: var(--ink); font: 700 20px/1.4 Montserrat, Arial, sans-serif;
    letter-spacing: normal; text-transform: none;
}
.stf2 .stf2-buttons button { cursor: pointer; white-space: normal; }
.stf2 .stf2-buttons button:hover { background: #e3f2fb; border-color: var(--blue); }
.stf2 .stf2-buttons button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.stf2 .stf2-routes button { flex: 1 1 250px; min-height: 54px; }
.stf2 .stf2-refine { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 24px; margin-top: 20px; }
.stf2 select { width: 100%; padding-right: 26px; }
.stf2 select option { background: white; color: var(--ink); font-size: 20px; }
.stf2 select:disabled { color: var(--secondary); background: #f2f6f9; opacity: 1; }
.stf2 .stf2-directions button { flex: 1 1 auto; }
.stf2 .stf2-results { margin-top: 26px; }
.stf2 .stf2-status { color: var(--ink); font-weight: 750; }
.stf2 .stf2-notice { color: var(--secondary); margin-top: 6px; }
.stf2 .stf2-grid {
    list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 188px), 1fr));
    margin: 14px 0 0; padding: 0; gap: 10px;
}
.stf2 .stf2-grid li {
    list-style: none; margin: 0; padding: 13px 16px; color: var(--ink); background: var(--light);
    border-radius: 10px; border: 1px solid var(--border);
}
.stf2 .stf2-grid time { display: block; color: var(--ink); font-size: 28px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stf2 .stf2-grid span { display: block; margin-top: 3px; color: var(--secondary); font-size: 20px; line-height: 1.4; }
.stf2 .stf2-grid li.stf2-next {
    grid-column: 1 / -1; display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    grid-template-areas: "time badge" "operator operator";
    align-content: start; align-items: start; gap: 3px 8px;
    border: 2px solid #27739b; padding: 12px 15px; background: #d7edfc;
}
.stf2 .stf2-next time { grid-area: time; white-space: nowrap; }
.stf2 .stf2-next .stf2-operator { grid-area: operator; margin: 0; }
.stf2 .stf2-grid .stf2-next-label {
    grid-area: badge; justify-self: end; max-width: 100%; margin: 0; padding: 3px 5px;
    border-radius: 8px; background: var(--ink); color: white; text-align: center;
    font-size: 20px; line-height: 1.12; font-weight: 750;
}
.stf2 .stf2-past { margin-top: 18px; }
.stf2 .stf2-past > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    list-style: none; width: fit-content; max-width: 100%; min-height: 46px;
    margin: 0; padding: 8px 14px; border: 1px solid #69879a; border-radius: 9px;
    background: white; color: var(--blue); font: 700 20px/1.35 Montserrat, Arial, sans-serif;
    cursor: pointer;
}
.stf2 .stf2-past > summary:hover { background: #e3f2fb; }
.stf2 .stf2-past > summary::-webkit-details-marker { display: none; }
.stf2 .stf2-past > summary::after {
    content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin: -4px 2px 0 0;
    border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.stf2 .stf2-past[open] > summary::after { margin-top: 4px; transform: rotate(225deg); }
.stf2 .stf2-plan { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; background: #e5f1f9; }
.stf2 .stf2-plan > div:first-child { flex: 1 1 460px; }
.stf2 .stf2-plan :is(.stf2-section-title, h2) { margin: 5px 0 8px; }
.stf2 .stf2-plan-links { display: flex; flex-direction: column; gap: 10px; }
p.stf2-guide-entry { margin: 1em 0; padding: 14px 18px !important; border-left: 4px solid #145777; background: #e5f1f9; color: #00273f; font-size: 20px; line-height: 1.55; }
p.stf2-guide-entry a { color: #145777; font-size: 20px; font-weight: 800; text-decoration: underline; }
@media (max-width: 680px) {
    .stf2 .stf2-refine { grid-template-columns: minmax(0, 1fr); }
    .stf2 .stf2-hero, .stf2 .stf2-panel, .stf2 .stf2-plan { border-radius: 14px; }
    .stf2 .stf2-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr)); }
    .stf2 .stf2-grid li { padding-inline: 12px; }
    .stf2 .stf2-grid li.stf2-next { padding-inline: 11px; }
}
@container stf2-panel (max-width: 265px) {
    .stf2 .stf2-grid { grid-template-columns: minmax(0, 1fr); }
    .stf2 .stf2-grid li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }
    .stf2 .stf2-grid span { margin: 0; }
    .stf2 .stf2-grid li.stf2-next { grid-template-columns: max-content minmax(0, 1fr); align-items: start; column-gap: 6px; }
    .stf2 .stf2-grid .stf2-next-label { width: min-content; padding-inline: 6px; }
}
@container stf2-panel (min-width: 640px) {
    .stf2 .stf2-grid li.stf2-next { grid-column: span 2; }
}
