/* Compact home composition: one daily dashboard, one discovery flow and no duplicated feeds. */
body.home .site-main {
    gap: 0;
}

body.home .home-section {
    padding-block: clamp(30px, 5vw, 58px);
}

.mrt-home-hero-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #087158;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.home .mrt-home-hero {
    position: relative;
    z-index: 20;
}

body.home .mrt-home-hero .hero-shell {
    overflow: visible;
}

body.home .mrt-home-hero .hero-copy {
    position: relative;
    z-index: 2;
}

body.home .mrt-home-hero .hero-lead {
    margin: 12px 0 4px;
    color: #143e33;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 850;
}

.mrt-home-hero .hero-description {
    box-sizing: border-box;
    width: fit-content;
    max-width: 590px;
    padding: 5px 9px;
    border-radius: 10px;
    background: rgba(251, 250, 244, .88);
    color: #2d453e;
    text-shadow: 0 1px #fff;
}

body.home .mrt-home-hero .mrt-home-search {
    z-index: 30;
}

body.home .mrt-home-hero .mrt-search-suggestions {
    z-index: 100;
    max-height: min(430px, 62vh);
}

.mrt-home-hero .hero-actions svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.mrt-home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.mrt-home-section-head h2 {
    margin: 5px 0 6px;
}

.mrt-home-section-head p {
    max-width: 690px;
    margin: 0;
    color: #61716d;
}

/* Daily dashboard. Existing data providers are restyled into one compact surface. */
.mrt-home-now {
    padding-top: clamp(24px, 4vw, 44px);
}

.mrt-home-now-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(390px, .75fr);
    gap: 12px;
    align-items: stretch;
}

.mrt-home-now-main,
.mrt-home-now-side {
    min-width: 0;
}

.mrt-home-now-side {
    display: contents;
}

body.home .mrt-home-now :where(.mrt-today-reference, .weather-reference, .mrt-transport-home).home-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.mrt-home-now :where(.mrt-today-reference, .weather-reference, .mrt-transport-home) > .mrt-container {
    width: 100% !important;
    height: 100%;
    max-width: none !important;
}

.mrt-home-now-main,
.mrt-home-now-main > .mrt-today-reference,
.mrt-home-now .mrt-today-panel,
.mrt-home-now .weather-reference,
.mrt-home-now .mrt-weather-panel {
    height: 100%;
}

.mrt-home-now .mrt-today-panel {
    padding: clamp(19px, 2.5vw, 28px);
    border-radius: 23px;
    box-shadow: 0 12px 32px rgba(18, 91, 72, .07);
}

.mrt-home-now .mrt-today-head {
    align-items: center;
    margin-bottom: 14px;
}

.mrt-home-now .mrt-today-head > div:first-child,
.mrt-home-now .mrt-today-grid {
    display: none;
}

.mrt-home-now .mrt-today-tools {
    width: 100%;
    justify-content: space-between;
}

.mrt-home-now .mrt-smart-search {
    max-width: none;
}

.mrt-home-now .mrt-today-guest {
    margin-top: 12px;
}

.mrt-home-now .mrt-today-actions {
    margin-top: 12px;
}

.mrt-home-now .mrt-weather-panel {
    min-height: 154px;
    border-radius: 22px;
}

.mrt-home-now .mrt-weather-current {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    padding: 19px 21px;
}

.mrt-home-now .mrt-weather-current h2 {
    font-size: 20px;
    white-space: nowrap;
}

.mrt-home-now .mrt-weather-icon {
    font-size: 39px;
}

.mrt-home-now .mrt-weather-temperature {
    font-size: 43px;
}

.mrt-home-now .mrt-weather-days,
.mrt-home-now .mrt-weather-panel > footer {
    display: none;
}

.mrt-home-now .mrt-weather-current dl {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    margin-top: 5px;
}

.mrt-home-now .mrt-weather-current dl div {
    min-width: 0;
    padding: 8px 10px;
}

.mrt-home-now .mrt-weather-current dl div:first-child {
    padding-left: 0;
    border-left: 0;
}

.mrt-home-now .mrt-weather-current dd {
    font-size: 15px;
}

.mrt-home-now .mrt-transport-home-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(225px, .55fr) minmax(0, 1.45fr);
    grid-template-areas:
        "heading toolbar"
        "heading routes";
    align-items: center;
    gap: 5px 24px;
    padding: 18px 20px;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(132deg, #053f33 0%, #087158 62%, #0b8567 100%);
    color: #fff;
    box-shadow: 0 18px 44px rgba(6, 75, 58, .17);
}

.mrt-home-now .mrt-transport-home-head {
    grid-area: heading;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
    gap: 12px;
}

.mrt-home-now .mrt-transport-home-head .card-meta {
    color: #ffc45e;
}

.mrt-home-now .mrt-transport-home-head h2 {
    margin: 3px 0 0;
    color: #fff;
    font-size: 23px;
}

.mrt-home-now .mrt-transport-home-head p,
.mrt-home-now .mrt-transport-home-clock span,
.mrt-home-now .mrt-transport-home-panel > footer {
    display: none;
}

.mrt-home-now .mrt-transport-home-clock {
    display: grid;
    min-width: 112px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    text-align: left;
}

.mrt-home-now .mrt-transport-home-clock strong {
    color: #fff;
    font-size: 24px;
    font-variant-numeric: tabular-nums;
}

.mrt-home-now .mrt-transport-home-toolbar {
    grid-area: toolbar;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 5px;
}

.mrt-home-now .mrt-transport-home-toolbar > strong {
    display: none;
}

.mrt-home-now .mrt-transport-home-toolbar > a {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 850;
}

.mrt-home-now .mrt-transport-home-list {
    grid-area: routes;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 9px;
}

.mrt-home-now .mrt-transport-home-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 9px;
    min-height: 64px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .19);
    border-radius: 15px;
    background: rgba(255, 255, 255, .96);
    color: #17372e;
}

.mrt-home-now .mrt-transport-home-row time {
    grid-column: 3;
    grid-row: 1;
    color: #087158;
    font-size: 17px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.mrt-home-now .mrt-transport-home-number {
    display: grid;
    grid-row: 1 / 3;
    min-width: 40px;
    height: 38px;
    padding: 0 6px;
    place-items: center;
    border-radius: 11px;
    background: #e5f4ee;
    color: #087158;
    font-size: 13px;
    font-weight: 950;
}

.mrt-home-now .mrt-transport-home-row > span:nth-child(2) {
    grid-row: 1 / 3;
    min-width: 0;
}

.mrt-home-now .mrt-transport-home-row strong,
.mrt-home-now .mrt-transport-home-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mrt-home-now .mrt-transport-home-row strong {
    color: #17372e;
    font-size: 13px;
}

.mrt-home-now .mrt-transport-home-row small {
    margin-top: 3px;
    color: #698078;
    font-size: 10px;
}

.mrt-home-now .mrt-transport-home-row em {
    grid-column: 3;
    grid-row: 2;
    color: #b76013;
    font-size: 9px;
    font-style: normal;
    font-weight: 850;
    text-align: right;
}

.mrt-home-now .mrt-transport-home {
    grid-column: 1 / -1;
}

.mrt-home-now .mrt-today-actions > a {
    grid-template-columns: 42px minmax(112px, 1fr) auto;
}

.mrt-home-now .mrt-today-actions small {
    overflow: visible;
    white-space: normal;
}

/* Six frequent actions replace the full catalogue on the home page. */
.mrt-home-actions {
    background: #eef6f2;
}

.services-reference .mrt-home-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.services-reference .mrt-home-action-grid .service-card,
.services-reference .mrt-home-action-grid .service-card--all {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 28px;
    grid-template-rows: 1fr;
    align-items: center;
    min-height: 112px;
    padding: 17px;
    text-align: left;
}

.services-reference .mrt-home-action-grid .service-card--all {
    border-color: #075c46;
    background: #075c46;
}

.services-reference .mrt-home-action-grid .service-icon,
.services-reference .mrt-home-action-grid .service-card--all .service-icon {
    grid-column: 1;
    grid-row: 1;
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 14px;
}

.services-reference .mrt-home-action-grid .service-icon svg,
.services-reference .mrt-home-action-grid .service-card--all .service-icon svg {
    width: 30px;
    height: 30px;
}

.mrt-home-action-copy {
    min-width: 0;
}

.services-reference .mrt-home-action-grid h3,
.services-reference .mrt-home-action-grid .service-card--all h3 {
    margin: 0 0 4px;
    color: #17372e;
    font-size: 16px;
}

.services-reference .mrt-home-action-grid p,
.services-reference .mrt-home-action-grid .service-card--all p {
    display: block;
    margin: 0;
    color: #687a74;
    font-size: 12px;
    line-height: 1.4;
}

.services-reference .mrt-home-action-grid .service-card--all h3 {
    color: #fff;
}

.services-reference .mrt-home-action-grid .service-card--all p {
    color: #cfe6de;
}

.services-reference .mrt-home-action-grid em,
.services-reference .mrt-home-action-grid .service-card--all em {
    display: grid;
    grid-column: 3;
    grid-row: 1;
    width: 28px;
    min-height: 28px;
    place-items: center;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: #edf6f2;
    color: #075c46;
    font-size: 18px;
    opacity: 1;
    transform: none;
}

/* Unified event and cinema section. */
.mrt-home-discovery {
    background: linear-gradient(180deg, #fffaf0, #f8faf8);
}

.mrt-home-tabs {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 5px;
    padding: 5px;
    border: 1px solid #d6e4de;
    border-radius: 15px;
    background: #edf4f1;
}

.mrt-home-tabs button {
    min-height: 42px;
    padding: 9px 17px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #506d63;
    font-weight: 850;
    cursor: pointer;
}

.mrt-home-tabs button[aria-selected="true"] {
    background: #fff;
    color: #075c46;
    box-shadow: 0 5px 15px rgba(23, 75, 64, .09);
}

.mrt-home-tab-panel[hidden],
.mrt-home-market-panel[hidden] {
    display: none !important;
}

.mrt-home-card-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.mrt-home-media-card,
.mrt-home-news-grid article {
    overflow: hidden;
    border: 1px solid #d9e5df;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(15, 72, 58, .055);
}

.mrt-home-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e9f2ee;
}

.mrt-home-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.mrt-home-media-card:hover .mrt-home-media img,
.mrt-home-news-grid article:hover .mrt-home-media img {
    transform: scale(1.025);
}

.mrt-home-media-placeholder,
.mrt-home-place-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: linear-gradient(145deg, #ddecE6, #f4ead6);
    color: #087158;
}

.mrt-home-media-placeholder.is-movie {
    background: linear-gradient(145deg, #dfe7f1, #eee2cb);
}

.mrt-home-media-placeholder.is-news {
    background: linear-gradient(145deg, #e5f1ec, #f7efd9);
}

.mrt-home-media-placeholder svg,
.mrt-home-place-placeholder svg {
    width: 54px;
    height: 54px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
    opacity: .8;
}

.mrt-home-media-card > div {
    min-width: 0;
    padding: 15px;
}

.mrt-home-media-card h3 {
    margin: 6px 0;
    font-size: 17px;
    line-height: 1.25;
}

.mrt-home-media-card p {
    margin: 0;
    color: #65766f;
    font-size: 12px;
}

.mrt-home-times {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.mrt-home-times span {
    padding: 5px 8px;
    border-radius: 8px;
    background: #edf6f2;
    color: #075c46;
    font-weight: 800;
}

.mrt-home-more {
    display: inline-flex;
    margin-top: 17px;
    color: #075c46;
    font-size: 13px;
    font-weight: 850;
}

/* Places and map share one section. */
.mrt-home-nearby-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .7fr);
    gap: 14px;
}

.mrt-home-nearby .places-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mrt-home-nearby .place-card {
    overflow: hidden;
}

.mrt-home-nearby .place-media {
    aspect-ratio: 16 / 10;
}

.mrt-home-nearby .place-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mrt-home-map-preview {
    position: relative;
    display: grid;
    align-content: end;
    min-height: 300px;
    overflow: hidden;
    padding: 24px;
    border-radius: 21px;
    background: linear-gradient(145deg, #075c46, #13866a);
    color: #fff;
}

.mrt-home-map-preview:before,
.mrt-home-map-preview:after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    content: "";
}

.mrt-home-map-preview:before {
    top: -75px;
    right: -55px;
    width: 210px;
    height: 210px;
}

.mrt-home-map-preview:after {
    top: 15px;
    right: 28px;
    width: 86px;
    height: 86px;
}

.mrt-home-map-art {
    position: absolute;
    top: 28px;
    left: 25px;
}

.mrt-home-map-art svg {
    width: 70px;
    height: 70px;
    fill: none;
    stroke: #ffbd55;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
}

.mrt-home-map-preview > div {
    position: relative;
    z-index: 1;
}

.mrt-home-map-preview .card-meta {
    color: #ffcf7d;
}

.mrt-home-map-preview h3 {
    margin: 5px 0 6px;
    color: #fff;
}

.mrt-home-map-preview p {
    margin: 0;
    color: #d5ebe4;
    font-size: 13px;
}

.mrt-home-map-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.mrt-home-map-links a {
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.mrt-home-map-details {
    margin-top: 14px;
    border: 1px solid #cfe0da;
    border-radius: 19px;
    background: #fff;
}

.mrt-home-map-details > summary {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 12px 17px;
    color: #075c46;
    cursor: pointer;
    list-style: none;
}

.mrt-home-map-details > summary::-webkit-details-marker {
    display: none;
}

.mrt-home-map-details > summary > svg {
    width: 38px;
    height: 38px;
    padding: 7px;
    border-radius: 11px;
    background: #e8f4ef;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
}

.mrt-home-map-details > summary span {
    display: grid;
}

.mrt-home-map-details > summary small {
    color: #6a7a75;
    font-weight: 500;
}

.mrt-home-map-details > summary b {
    font-size: 24px;
    transition: transform .2s ease;
}

.mrt-home-map-details[open] > summary b {
    transform: rotate(45deg);
}

.mrt-home-map-details .mrt-city-map-reference {
    padding: 0 12px 12px;
}

.mrt-home-map-details .mrt-city-map-reference > .mrt-container {
    width: 100% !important;
    max-width: none !important;
}

.mrt-home-map-details .mrt-city-map-reference .section-heading {
    display: none;
}

.mrt-home-map-details .mrt-city-map {
    height: min(58vh, 470px);
}

/* Marketplace tabs replace four large promotional blocks. */
.mrt-home-marketplace {
    margin: 0;
    background: #075c46;
    color: #fff;
}

.mrt-home-marketplace > .mrt-container {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.mrt-home-marketplace > .mrt-container:before {
    display: none !important;
}

.mrt-home-marketplace .mrt-home-section-head h2,
.mrt-home-marketplace .mrt-home-section-head p {
    color: #fff;
}

.mrt-home-marketplace .mrt-section-kicker {
    color: #ffbf59;
}

.mrt-home-market-shell {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 23px;
    background: rgba(255, 255, 255, .08);
}

.mrt-home-tabs.is-market {
    display: flex;
    overflow-x: auto;
    padding: 9px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
    border-radius: 0;
    background: transparent;
}

.mrt-home-tabs.is-market button {
    flex: 0 0 auto;
    color: #d5e9e3;
}

.mrt-home-tabs.is-market button[aria-selected="true"] {
    color: #075c46;
}

.mrt-home-market-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    min-height: 210px;
    padding: clamp(24px, 4vw, 42px);
}

.mrt-home-market-panel > div:first-child {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 5px 16px;
    align-items: center;
}

.mrt-home-market-icon {
    display: grid;
    grid-row: 1 / 3;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 16px;
    background: #ffbd55;
    color: #17372e;
    font-size: 25px;
    font-weight: 900;
}

.mrt-home-market-panel h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 3vw, 31px);
}

.mrt-home-market-panel p {
    max-width: 650px;
    margin: 0;
    color: #cee5de;
}

.mrt-home-market-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mrt-home-marketplace .mrt-secondary-button {
    border-color: rgba(255, 255, 255, .35);
    background: transparent;
    color: #fff;
}

/* News uses the same media contract as the discovery cards. */
.mrt-home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.mrt-home-news-grid article > div {
    padding: 17px;
}

.mrt-home-news-grid time {
    color: #087158;
    font-size: 11px;
    font-weight: 850;
}

.mrt-home-news-grid h3 {
    margin: 6px 0 8px;
    font-size: 19px;
}

.mrt-home-news-grid p {
    margin: 0;
    color: #61716d;
    font-size: 13px;
}

/* Only emergency contacts remain on the home page. */
.mrt-home-help {
    padding-bottom: clamp(34px, 5vw, 64px);
}

.mrt-home-help-panel {
    display: grid;
    grid-template-columns: minmax(220px, .75fr) minmax(0, 1.4fr) auto;
    align-items: center;
    gap: 20px;
    padding: 23px;
    border: 1px solid #d5e3de;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(18, 91, 72, .06);
}

.mrt-home-help-panel h2 {
    margin: 4px 0;
    font-size: 25px;
}

.mrt-home-help-panel p {
    margin: 0;
    color: #61716d;
    font-size: 12px;
}

.mrt-home-emergency-numbers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.mrt-home-emergency-numbers a {
    display: grid;
    min-height: 62px;
    align-content: center;
    padding: 9px 11px;
    border-radius: 13px;
    background: #edf6f2;
    color: #075c46;
}

.mrt-home-emergency-numbers strong {
    font-size: 20px;
}

.mrt-home-emergency-numbers small {
    color: #61716d;
    font-size: 10px;
}

/* The install suggestion is inline on phones and no longer covers navigation/content. */
body.home .mrt-pwa-prompt:not(.is-update) {
    position: static;
    width: min(calc(100% - 24px), var(--mrt-container));
    margin: 14px auto 28px;
}

@media (max-width: 1050px) {
    .mrt-home-now-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mrt-home-now-main {
        grid-column: 1 / -1;
    }

    .mrt-home-now .weather-reference,
    .mrt-home-now .mrt-transport-home {
        grid-column: 1 / -1;
    }

    .mrt-home-now .mrt-transport-home-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mrt-home-nearby-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .services-reference .mrt-home-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mrt-home-card-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mrt-home-help-panel {
        grid-template-columns: minmax(200px, .7fr) minmax(0, 1.3fr);
    }

    .mrt-home-help-panel > .mrt-secondary-button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    body.home .home-section {
        padding-block: 30px;
    }

    .mrt-home-hero {
        padding-top: 10px;
    }

    .mrt-home-hero .hero-shell {
        min-height: 380px;
        padding: 24px 19px;
    }

    .mrt-home-hero .hero-description br {
        display: none;
    }

    .mrt-home-hero .hero-actions {
        width: 100%;
        align-items: stretch;
    }

    .mrt-home-hero .hero-actions a {
        width: 100%;
    }

    .mrt-home-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 17px;
    }

    .mrt-home-section-head h2 {
        font-size: 28px;
    }

    .mrt-home-now-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mrt-home-now-main {
        grid-column: auto;
    }

    .mrt-home-now .mrt-today-tools {
        align-items: stretch;
        flex-direction: row;
    }

    .mrt-home-now .mrt-city-clock {
        min-width: 0;
    }

    .mrt-home-now .mrt-today-settings {
        width: auto;
        min-height: 48px;
        flex: 0 0 auto;
        justify-content: center;
        gap: 6px;
        padding: 10px 13px;
        white-space: nowrap;
    }

    .mrt-home-now .mrt-smart-search > button span {
        display: inline;
    }

    .mrt-home-now .mrt-today-guest > div {
        align-items: flex-start;
    }

    .mrt-home-now .mrt-today-guest small {
        line-height: 1.4;
    }

    .mrt-home-now .mrt-weather-current {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 17px;
    }

    .mrt-home-now .mrt-weather-current h2 {
        font-size: 20px;
        white-space: normal;
    }

    .mrt-home-now .mrt-weather-current p {
        font-size: 12px;
    }

    .mrt-home-now .mrt-weather-icon {
        font-size: 31px;
    }

    .mrt-home-now .mrt-weather-temperature {
        font-size: 34px;
    }

    .mrt-home-now .mrt-weather-current dl {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 7px;
        border-top: 1px solid rgba(7, 92, 70, .12);
    }

    .mrt-home-now .mrt-weather-current dl div {
        padding: 9px 8px 2px;
    }

    .mrt-home-now .mrt-weather-current dl dt {
        font-size: 9px;
    }

    .mrt-home-now .mrt-weather-current dl dd {
        font-size: 13px;
    }

    .mrt-home-now .mrt-transport-home-panel {
        display: block;
        padding: 18px;
    }

    .mrt-home-now .mrt-transport-home-head {
        align-items: center;
        flex-direction: row;
    }

    .mrt-home-now .mrt-transport-home-toolbar {
        margin: 10px 0 9px;
    }

    .mrt-home-now .mrt-transport-home-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .services-reference .mrt-home-action-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .services-reference .mrt-home-action-grid .service-card,
    .services-reference .mrt-home-action-grid .service-card--all {
        grid-template-columns: 48px minmax(0, 1fr) 28px;
        min-height: 88px;
        padding: 13px;
    }

    .services-reference .mrt-home-action-grid .service-icon,
    .services-reference .mrt-home-action-grid .service-card--all .service-icon {
        width: 42px;
        height: 42px;
    }

    .mrt-home-tabs {
        width: 100%;
    }

    .mrt-home-tabs button {
        flex: 1;
    }

    .mrt-home-card-rail,
    .mrt-home-news-grid {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 1px 1px 10px;
        scroll-snap-type: x mandatory;
    }

    .mrt-home-media-card,
    .mrt-home-news-grid article {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }

    .mrt-home-nearby .places-grid {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 9px;
        scroll-snap-type: x mandatory;
    }

    .mrt-home-nearby .place-card {
        flex: 0 0 78%;
        scroll-snap-align: start;
    }

    .mrt-home-map-preview {
        min-height: 250px;
    }

    .mrt-home-map-details > summary {
        min-height: 66px;
    }

    .mrt-home-market-panel {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        padding: 22px 16px;
    }

    .mrt-home-market-panel > div:first-child {
        grid-template-columns: 45px minmax(0, 1fr);
    }

    .mrt-home-market-icon {
        width: 45px;
        height: 45px;
        border-radius: 13px;
        font-size: 21px;
    }

    .mrt-home-market-panel p {
        grid-column: 1 / -1;
        margin-top: 7px;
    }

    .mrt-home-market-actions {
        display: grid;
        justify-content: stretch;
    }

    .mrt-home-market-actions a {
        width: 100%;
    }

    .mrt-home-help-panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
        padding: 18px;
    }

    .mrt-home-emergency-numbers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mrt-home-help-panel > .mrt-secondary-button {
        grid-column: auto;
        width: 100%;
    }

    body.home .mrt-pwa-prompt:not(.is-update) {
        left: auto;
        right: auto;
        bottom: auto;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        width: min(calc(100% - 20px), var(--mrt-container));
        margin-bottom: 18px;
    }
}

/* Stage 6: task-first first screen for the public launch. */
.mrt-home-hero .hero-shell {
    min-height: 318px;
    padding: clamp(38px, 5vw, 62px) clamp(28px, 6vw, 76px);
    background-position: 62% center;
}

.mrt-home-hero .hero-copy {
    max-width: 760px;
}

.mrt-home-hero h1 {
    max-width: 720px;
    color: #0b4f3e;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.02;
}

.mrt-home-hero .hero-description {
    max-width: 660px;
    margin-top: 16px;
    color: #344b44;
    font-size: 17px;
}

.mrt-home-search {
    max-width: 690px;
    margin-top: 24px;
    border: 1px solid rgba(7, 92, 70, .2);
    box-shadow: 0 14px 34px rgba(6, 65, 51, .13);
}

.mrt-home-search input {
    min-height: 48px;
    font-size: 16px;
}

.mrt-home-actions {
    padding-block: 16px 38px !important;
    background: transparent;
}

.services-reference .mrt-home-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.services-reference .mrt-home-action-grid .service-card,
.services-reference .mrt-home-action-grid .service-card--all {
    grid-column: auto;
    min-height: 100px;
    border-color: #d3e2dc;
    background: #fff;
    box-shadow: 0 10px 27px rgba(17, 82, 65, .06);
}

.services-reference .mrt-home-action-grid h2 {
    width: 100%;
    margin: 0 0 4px;
    color: #17372e;
    font-size: 17px;
    line-height: 1.2;
}

.mrt-home-now-grid {
    grid-template-columns: minmax(0, 1.38fr) minmax(330px, .72fr);
}

.mrt-home-now-side {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
}

.mrt-home-now .weather-reference,
.mrt-home-now .mrt-weather-panel {
    height: auto;
}

.mrt-home-now-alert {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 12px;
    min-height: 110px;
    padding: 17px;
    border: 1px solid #f0d6a7;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff9eb, #fffdf7);
    box-shadow: 0 12px 30px rgba(107, 72, 15, .06);
}

.mrt-home-now-alert__icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: #fff0cc;
    font-size: 22px;
}

.mrt-home-now-alert__copy {
    min-width: 0;
}

.mrt-home-now-alert .card-meta {
    color: #96600b;
    font-size: 10px;
}

.mrt-home-now-alert h3 {
    overflow: hidden;
    margin: 3px 0 4px;
    color: #2f332f;
    font-size: 15px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mrt-home-now-alert p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #6d706c;
    font-size: 11px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mrt-home-now-alert > a {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: #075c46;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

@media (max-width: 1050px) {
    .services-reference .mrt-home-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mrt-home-now-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }
}

@media (max-width: 700px) {
    .mrt-home-hero .hero-shell {
        min-height: 330px;
        padding: 28px 19px;
        background-position: 69% center;
    }

    .mrt-home-hero h1 {
        max-width: 320px;
        font-size: clamp(36px, 11vw, 46px);
    }

    .mrt-home-hero .hero-description {
        max-width: 310px;
        font-size: 14px;
    }

    .mrt-home-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        max-width: 100%;
        margin-top: 20px;
    }

    .mrt-home-search input {
        width: 100%;
        min-height: 44px;
        padding: 9px 10px;
        font-size: 14px;
    }

    .mrt-home-search button {
        padding-inline: 15px;
    }

    .mrt-home-actions {
        padding-block: 10px 28px !important;
    }

    .services-reference .mrt-home-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .services-reference .mrt-home-action-grid .service-card,
    .services-reference .mrt-home-action-grid .service-card--all {
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-rows: auto;
        min-height: 88px;
        gap: 10px;
        padding: 12px;
    }

    .services-reference .mrt-home-action-grid .service-icon,
    .services-reference .mrt-home-action-grid .service-card--all .service-icon {
        width: 40px;
        height: 40px;
    }

    .services-reference .mrt-home-action-grid .service-icon svg,
    .services-reference .mrt-home-action-grid .service-card--all .service-icon svg {
        width: 24px;
        height: 24px;
    }

    .services-reference .mrt-home-action-grid h2 {
        font-size: 14px;
    }

    .services-reference .mrt-home-action-grid p,
    .services-reference .mrt-home-action-grid em {
        display: none;
    }

    .mrt-home-now-side {
        grid-template-columns: minmax(0, 1fr);
    }

    .mrt-home-now-alert {
        min-height: 96px;
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mrt-home-media img,
    .mrt-home-map-details > summary b {
        transition: none;
    }
}

/* Quick actions: stable two-column desktop layout and one clean mobile column. */
.services-reference .mrt-home-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.services-reference .mrt-home-action-grid .service-card,
.services-reference .mrt-home-action-grid .service-card--all {
    box-sizing: border-box;
    width: 100%;
    min-height: 104px;
    grid-template-columns: 50px minmax(0, 1fr) 34px;
    column-gap: 15px;
    padding: 16px 18px;
}

.services-reference .mrt-home-action-grid .service-card--all {
    grid-column: 1 / -1;
}

.services-reference .mrt-home-action-grid .service-icon,
.services-reference .mrt-home-action-grid .service-card--all .service-icon {
    width: 48px;
    height: 48px;
}

.services-reference .mrt-home-action-copy {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    align-content: center;
    justify-items: start;
    text-align: left;
}

.services-reference .mrt-home-action-grid h3,
.services-reference .mrt-home-action-grid .service-card--all h3 {
    width: 100%;
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.25;
    text-align: left;
}

body.home .services-reference .mrt-home-action-grid .mrt-home-action-copy :is(h3, p) {
    justify-self: stretch;
    text-align: left !important;
}

.services-reference .mrt-home-action-grid p,
.services-reference .mrt-home-action-grid .service-card--all p {
    width: 100%;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
}

.services-reference .mrt-home-action-grid em,
.services-reference .mrt-home-action-grid .service-card--all em {
    grid-column: 3;
    justify-self: end;
}

@media (max-width: 700px) {
    .services-reference .mrt-home-action-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .services-reference .mrt-home-action-grid .service-card,
    .services-reference .mrt-home-action-grid .service-card--all {
        grid-column: auto;
        grid-template-columns: 46px minmax(0, 1fr) 32px;
        min-height: 86px;
        column-gap: 12px;
        padding: 13px 14px;
    }

    .services-reference .mrt-home-action-grid .service-icon,
    .services-reference .mrt-home-action-grid .service-card--all .service-icon {
        width: 44px;
        height: 44px;
    }

    .services-reference .mrt-home-action-grid h3,
    .services-reference .mrt-home-action-grid .service-card--all h3 {
        font-size: 15px;
    }
}

/* Compact community video shelf on the home page. */
.mrt-home-videos {
    background: linear-gradient(180deg, #f5faf7, #fffaf1);
}

.mrt-home-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mrt-home-video-grid article {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d5e3de;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 72, 57, .07);
}

.mrt-home-video-media {
    display: grid;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #063f34;
}

.mrt-home-video-media iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.mrt-home-video-media > a,
.mrt-home-video-unavailable {
    display: grid;
    height: 100%;
    place-content: center;
    justify-items: center;
    gap: 7px;
    color: #fff;
    text-decoration: none;
}

.mrt-home-video-media > a span,
.mrt-home-video-unavailable span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: #ffb744;
    color: #17342c;
}

.mrt-home-video-grid article > div:last-child {
    padding: 15px 16px 17px;
}

.mrt-home-video-grid time {
    color: #087158;
    font-size: 10px;
    font-weight: 850;
}

.mrt-home-video-grid h3 {
    margin: 5px 0;
    font-size: 18px;
    line-height: 1.25;
}

.mrt-home-video-grid p {
    margin: 0;
    color: #64776f;
    font-size: 12px;
    line-height: 1.45;
}

.mrt-home-video-actions,
.mrt-home-video-empty {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mrt-home-video-actions {
    margin-top: 14px;
}

.mrt-home-video-actions small {
    color: #61756d;
}

.mrt-home-video-success {
    margin: 0 0 14px;
    padding: 12px 15px;
    border: 1px solid #9bcbbb;
    border-radius: 14px;
    background: #eaf7f1;
    color: #075d49;
    font-weight: 750;
}

.mrt-home-video-submit {
    flex: none;
}

.mrt-home-video-submit > summary {
    cursor: pointer;
    list-style: none;
}

.mrt-home-video-submit > summary::-webkit-details-marker {
    display: none;
}

.mrt-home-video-submit[open] {
    width: min(100%, 680px);
}

.mrt-home-video-submit form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    margin-top: 10px;
    padding: 16px;
    border: 1px solid #b9d4ca;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 72, 57, .09);
}

.mrt-home-video-submit form label {
    display: grid;
    gap: 6px;
    color: #173e34;
    font-size: 12px;
    font-weight: 800;
}

.mrt-home-video-submit form label:last-of-type {
    grid-column: 1 / -1;
}

.mrt-home-video-submit form input,
.mrt-home-video-submit form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #b9d4ca;
    border-radius: 11px;
    background: #fbfdfc;
    color: #18342d;
    font: inherit;
}

.mrt-home-video-submit form input:focus,
.mrt-home-video-submit form textarea:focus {
    border-color: #087158;
    outline: 3px solid rgba(8, 113, 88, .12);
}

.mrt-home-video-submit form button {
    grid-column: 1 / -1;
    justify-self: start;
}

.mrt-home-video-empty {
    padding: 22px;
    border: 1px dashed #a9cabe;
    border-radius: 18px;
    background: #fff;
}

.mrt-home-video-empty > span {
    display: grid;
    width: 48px;
    height: 48px;
    flex: none;
    place-items: center;
    border-radius: 15px;
    background: #e6f3ee;
    color: #087158;
}

.mrt-home-video-empty p {
    margin: 4px 0 0;
    color: #64776f;
}

@media (max-width: 800px) {
    .mrt-home-video-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 9px;
        scroll-snap-type: x mandatory;
    }

    .mrt-home-video-grid article {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }

    .mrt-home-video-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .mrt-home-video-actions .mrt-button {
        justify-content: center;
        width: 100%;
    }

    .mrt-home-video-submit,
    .mrt-home-video-submit[open] {
        width: 100%;
    }

    .mrt-home-video-submit form {
        grid-template-columns: 1fr;
    }

    .mrt-home-video-submit form label:last-of-type,
    .mrt-home-video-submit form button {
        grid-column: auto;
    }
}

/* Keep the six launch actions aligned after legacy quick-action hotfixes. */
.services-reference .mrt-home-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-reference .mrt-home-action-grid .service-card--all {
    grid-column: auto;
}

@media (max-width: 1050px) {
    .services-reference .mrt-home-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .services-reference .mrt-home-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-reference .mrt-home-action-grid .service-card,
    .services-reference .mrt-home-action-grid .service-card--all {
        grid-template-columns: 40px minmax(0, 1fr);
        min-height: 88px;
        column-gap: 10px;
        padding: 12px;
    }
}

/* Homepage search and mobile-summary hotfix.
 * The hero is the single primary search on the home page; the global search
 * remains available from the mobile navigation on small screens. */
body.home .site-header .header-search,
body.home .mrt-home-now .mrt-smart-search {
    display: none !important;
}

@media (max-width: 700px) {
    body.home .mrt-home-now-grid {
        display: flex !important;
        width: 100%;
        min-width: 0;
        flex-direction: column;
        gap: 10px;
    }

    body.home .mrt-home-now-main,
    body.home .mrt-home-now-side,
    body.home .mrt-home-now .mrt-today-reference,
    body.home .mrt-home-now .weather-reference,
    body.home .mrt-home-now .mrt-transport-home {
        display: block;
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        margin: 0 !important;
        grid-column: auto !important;
    }

    body.home .mrt-home-now-side {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    body.home .mrt-home-now :where(.mrt-today-reference, .weather-reference, .mrt-transport-home) > .mrt-container {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.home .mrt-home-now .mrt-today-panel {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        height: auto !important;
        padding: 14px;
    }

    body.home .mrt-home-now .mrt-today-head {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.home .mrt-home-now .mrt-today-tools {
        display: grid !important;
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr) 48px;
        gap: 8px;
    }

    body.home .mrt-home-now .mrt-city-clock {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
    }

    body.home .mrt-home-now .mrt-city-clock em {
        max-width: 92px;
    }

    body.home .mrt-home-now .mrt-today-settings {
        box-sizing: border-box;
        width: 48px !important;
        min-width: 48px;
        min-height: 48px;
        margin: 0;
        padding: 0;
        justify-content: center;
        overflow: hidden;
    }

    body.home .mrt-home-now .mrt-today-settings > span:last-child {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    body.home .mrt-home-now .mrt-today-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    body.home .mrt-home-now .mrt-today-actions > a {
        grid-template-columns: 42px minmax(0, 1fr) 18px;
    }

    body.home .mrt-home-now .mrt-today-actions small {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    body.home .mrt-home-now .mrt-weather-panel,
    body.home .mrt-home-now .mrt-weather-current {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        height: auto !important;
    }

    body.home .mrt-home-now .mrt-weather-current {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px;
        padding: 16px;
    }

    body.home .mrt-home-now .mrt-weather-current dl {
        grid-column: 1 / -1;
    }

    body.home .mrt-home-now .mrt-transport-home-panel {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
    }
}
