/* /worldtime/ — utility page styles. Light theme.
   Loaded after main.min.css, footer-override.css, nav-override.css.
   Mirrors the scaffolding pattern in pilot-override.css for utility pages
   that intentionally don't run the home GSAP intro timeline. */

/* ============ Page chrome ============ */

.timezones-main {
    padding-top: 16rem;
    background: var(--white);
    color: var(--black);
}

.tz-section {
    padding: 6rem 0;
}

/* main.min.css's GSAP intro timeline is gated off for utility pages, so the
   preloader element (z-index 999, fullscreen) would sit forever. Hide it. */
.wrapper-timezones .preloader {
    display: none !important;
}

/* main.min.css starts the header invisible expecting GSAP to reveal it. */
.wrapper-timezones .header {
    visibility: visible !important;
    opacity: 1 !important;
}

/* main.min.css applies SplitText / clip-path / transforms to these classes
   in their pre-animation state. Without GSAP firing, they stay hidden or
   shrink to a single-column word stack. Force base CSS state. */
.timezones-main .title-main,
.timezones-main .title-large,
.timezones-main .title-medium,
.timezones-main .desc,
.timezones-main .desc-large,
.timezones-main .section-desc,
.timezones-main .button,
.timezones-main .button > span,
.timezones-main .button .arrow,
.timezones-main .title-main span,
.timezones-main .title-main div,
.timezones-main .title-large span,
.timezones-main .title-large div,
.timezones-main .title-medium span,
.timezones-main .title-medium div,
.timezones-main .desc span,
.timezones-main .desc div,
.timezones-main .desc-large span,
.timezones-main .desc-large div,
.timezones-main .section-desc span,
.timezones-main .section-desc div {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
}

/* Reset the global 12-column grid on .container while inside the timezones
   page (main.min.css makes it a CSS grid — that's why words were stacking). */
.timezones-main .container,
.tz-section .container {
    display: block;
    grid-template-columns: none;
    width: 100%;
    max-width: 128rem;
    margin: 0 auto;
    padding: 0 var(--container-spacer);
    gap: 0;
}

/* ============ Hero ============ */

.tz-hero { padding: 4rem 0 5rem; }

.tz-hero .section-desc {
    color: var(--orange);
    margin-bottom: 2.4rem;
}

.tz-hero .title-main {
    color: var(--black);
    margin-bottom: 2.4rem;
}

.tz-hero .desc-large {
    color: var(--grey);
    max-width: 70rem;
}

/* ============ Widget ============ */

.tz-app {
    max-width: 132rem;
    margin: 0 auto 6rem;
    padding: 0 var(--container-spacer);
}

.tz-toolbar {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.tz-btn {
    background: var(--white);
    color: var(--black);
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 1rem;
    padding: 1.1rem 1.8rem;
    font-family: var(--font-default);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.tz-btn:hover {
    background: var(--grey-light);
    border-color: var(--orange);
}
.tz-btn-primary {
    background: var(--gradient-orange);
    border-color: transparent;
    color: var(--white);
}
.tz-btn-primary:hover {
    filter: brightness(1.05);
    border-color: transparent;
    background: var(--gradient-orange);
    color: var(--white);
}

.tz-date {
    background: var(--white);
    color: var(--black);
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 1rem;
    padding: 1rem 1.4rem;
    font-family: var(--font-default);
    font-size: 1.4rem;
    color-scheme: light;
}
.tz-date:focus { outline: none; border-color: var(--orange); }

.tz-search-wrap {
    position: relative;
    flex: 1;
    min-width: 22rem;
    max-width: 32rem;
}
.tz-search {
    width: 100%;
    background: var(--white);
    color: var(--black);
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 1rem;
    padding: 1.1rem 1.4rem;
    font-family: var(--font-default);
    font-size: 1.4rem;
}
.tz-search::placeholder { color: rgba(0,0,0,0.42); }
.tz-search:focus { outline: none; border-color: var(--orange); }

.tz-search-results {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    list-style: none;
    margin: 0;
    padding: 0.4rem;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 1rem;
    max-height: 32rem;
    overflow-y: auto;
    z-index: 30;
    display: none;
    box-shadow: 0 1.6rem 4rem rgba(0,0,0,0.12);
}
.tz-search-results.is-open { display: block; }
.tz-search-result {
    padding: 0.9rem 1.2rem;
    border-radius: 0.6rem;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--black);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}
.tz-search-result:hover,
.tz-search-result.is-active {
    background: rgba(255,110,48,0.10);
    color: var(--black);
}
.tz-search-result-country {
    color: var(--grey);
    font-size: 1.2rem;
}
.tz-search-empty {
    padding: 1.2rem;
    color: var(--grey);
    font-size: 1.3rem;
    text-align: center;
}

/* Day tabs: Now / Tomorrow / +2 / +3 / +4 days. Replaces the calendar input. */
.tz-day-tabs {
    display: inline-flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    height: 4rem;
}
.tz-day-tab {
    background: transparent;
    border: 0;
    padding: 0 1.4rem;
    font-family: var(--font-default);
    font-size: 1.3rem;
    color: var(--grey);
    cursor: pointer;
    line-height: 1;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color var(--transition-fast), border-color var(--transition-fast);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.tz-day-tab:hover { color: var(--black); }
.tz-day-tab.is-active {
    color: var(--orange);
    border-bottom-color: var(--orange);
    font-weight: 500;
}

/* Hour-format toggle (24h / am/pm), segmented control */
.tz-format-toggle {
    display: inline-flex;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 1rem;
    overflow: hidden;
    background: var(--white);
    height: 4rem;
}
.tz-format-btn {
    background: transparent;
    border: 0;
    padding: 0 1.4rem;
    font-family: var(--font-default);
    font-size: 1.3rem;
    color: var(--grey);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    line-height: 1;
}
.tz-format-btn + .tz-format-btn {
    border-left: 1px solid rgba(0,0,0,0.08);
}
.tz-format-btn:hover { color: var(--black); }
.tz-format-btn.is-active {
    background: var(--black);
    color: var(--white);
}

/* Grid */
.tz-grid {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: var(--grey-light);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 1.6rem;
    padding: 1.4rem;
    overflow-x: auto;
}

/* Vertical column line marking the selected/hovered hour, spanning all rows.
   Positioned by JS based on cell offsetLeft/offsetWidth. Lives inside
   .tz-grid (overflow-x:auto) so it scrolls with the row content. Short
   transition so hover tracking feels snappy but not janky. */
.tz-selected-overlay {
    position: absolute;
    top: 1.4rem;
    bottom: 1.4rem;
    pointer-events: none;
    z-index: 5;
    border-left: 2px solid var(--orange);
    border-right: 2px solid var(--orange);
    border-radius: 0.5rem;
    background: rgba(255,110,48,0.05);
    transition: left 0.1s ease, width 0.1s ease;
    display: none;
}
.tz-selected-overlay.is-visible { display: block; }

.tz-row {
    display: grid;
    grid-template-columns: 14rem 11rem 1fr;
    gap: 1.4rem;
    align-items: center;
    padding: 0.8rem 0.4rem;
    border-radius: 0.8rem;
    min-width: max-content;
}
.tz-row + .tz-row { border-top: 1px solid rgba(0,0,0,0.06); }

/* Place pane: city + pill + country/region */
.tz-row-place { position: relative; padding-right: 3rem; }
.tz-row-city { font-size: 1.6rem; font-weight: 500; color: var(--black); line-height: 1.2; }
.tz-row-country {
    font-size: 1.2rem;
    color: var(--grey);
    margin-top: 0.3rem;
    line-height: 1.3;
}

/* Pill next to the city: orange "Local" for the anchor, neutral TZ
   abbreviation (EDT / BST / EEST / GMT+5:30 ...) for everything else. */
.tz-row-pill {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 0.2rem 0.6rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 999px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
}
.tz-row-pill-local { color: var(--orange); background: rgba(255,110,48,0.14); }
.tz-row-pill-tz    { color: rgba(0,0,0,0.55); background: rgba(0,0,0,0.06); }

/* Time pane: current local time, then weekday + month/day */
.tz-row-time-pane { line-height: 1; }
.tz-row-time {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--black);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.tz-row-date {
    font-size: 1.2rem;
    color: var(--grey);
    margin-top: 0.5rem;
    font-variant-numeric: tabular-nums;
}
.tz-row-remove {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: rgba(0,0,0,0.4);
    font-size: 2.2rem;
    width: 2.6rem;
    height: 2.6rem;
    cursor: pointer;
    border-radius: 50%;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.tz-row-remove:hover { color: var(--orange); background: rgba(0,0,0,0.06); }
.tz-row-anchor .tz-row-remove { display: none; }

.tz-row-cells {
    display: grid;
    grid-template-columns: repeat(24, minmax(3.6rem, 1fr));
    gap: 0.2rem;
}
.tz-cell {
    background: var(--white);
    color: var(--grey);
    border: 1px solid transparent;
    border-radius: 0.5rem;
    padding: 0.6rem 0;
    font-family: var(--font-default);
    cursor: pointer;
    transition: background 0.16s, transform 0.1s;
    text-align: center;
    position: relative;
    font-variant-numeric: tabular-nums;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    line-height: 1;
}
/* Stacked label: prominent number on top, small am/pm suffix tucked under. */
.tz-cell-num {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1;
}
.tz-cell-ap {
    font-size: 0.85rem;
    line-height: 1;
    opacity: 0.6;
    text-transform: lowercase;
    letter-spacing: 0;
}
.tz-cell:hover { background: rgba(255,110,48,0.10); }
.tz-cell:active { transform: scale(0.96); }

.tz-cell-band-work {
    background: rgba(255,110,48,0.32);
    color: var(--black);
}
.tz-cell-band-work:hover { background: rgba(255,110,48,0.45); }

.tz-cell-band-edge {
    background: rgba(255,110,48,0.12);
    color: var(--black);
}
.tz-cell-band-edge:hover { background: rgba(255,110,48,0.22); }

.tz-cell-band-off {
    background: rgba(0,0,0,0.04);
    color: rgba(0,0,0,0.45);
}
.tz-cell-band-off:hover { background: rgba(0,0,0,0.08); }

/* Selected: relies on the column overlay for the visual; cells just bump text
   colour for readability inside the bar. */
.tz-cell-selected {
    z-index: 2;
    color: var(--black);
}
/* "Now" indicator: a thin dark border on the cell containing the current
   moment. Distinct from the selected column. */
.tz-cell-now {
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.55);
}

/* Day-rollover marker: subtle inset left-bar on the cell where this row's
   local day rolls over. No text label above the cell. The full weekday + date
   is on each cell's `title` attribute, so hovering shows it natively. */
.tz-cell-day-rollover {
    box-shadow: inset 2px 0 0 rgba(0,0,0,0.32);
}
/* Combined now + rollover: stack the two insets so neither marker disappears. */
.tz-cell-day-rollover.tz-cell-now {
    box-shadow:
        inset 2px 0 0 rgba(0,0,0,0.32),
        inset 0 0 0 1px rgba(0,0,0,0.55);
}

/* Legend */
.tz-legend {
    display: flex;
    gap: 2.4rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    font-size: 1.2rem;
    color: var(--grey);
}
.tz-legend-item { display: flex; align-items: center; gap: 0.7rem; }
.tz-legend-swatch {
    display: inline-block;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 0.3rem;
}
.tz-legend-swatch-work { background: rgba(255,110,48,0.45); }
.tz-legend-swatch-edge { background: rgba(255,110,48,0.18); }
.tz-legend-swatch-off  { background: rgba(0,0,0,0.06); }

/* ============ "Right now around the world" - typographic flow ============
   City names are sized by working-hours band:
     work  -> big, fully black, dominant
     edge  -> medium, slightly muted
     off   -> small, recedes into grey
   A salesperson can scan the section and instantly read who is reachable. */

.tz-cities {
    max-width: 132rem;
    margin: 0 auto 6rem;
    padding: 4rem var(--container-spacer) 4rem;
    box-sizing: border-box;
}
.tz-cities-head { margin-bottom: 4rem; }
.tz-cities-head h2 {
    font-size: 3.6rem;
    color: var(--black);
    margin-bottom: 1rem;
}
.tz-cities-head p {
    font-size: 1.6rem;
    color: var(--grey);
    line-height: 1.5;
    max-width: 70rem;
}

.tz-cities-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.4rem;
}

.tz-city {
    cursor: pointer;
    text-align: left;
    font-family: var(--font-default);
    color: var(--black);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    border-radius: 1.2rem;
    padding: 1.8rem 2rem;
    border: 1px solid transparent;
    display: inline-flex;
    flex-direction: column;
    gap: 0.6rem;
    line-height: 1;
    position: relative;
    min-width: 13rem;
}
.tz-city:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 0.4rem 1.2rem rgba(0,0,0,0.06);
}

.tz-city-name {
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.1;
    transition: color 0.18s ease;
}
.tz-city-time {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
}
.tz-city-date {
    font-size: 1.3rem;
    color: var(--grey);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0;
}

/* Working hours: filled orange chip, biggest text */
.tz-city[data-band="work"] {
    background: rgba(255,110,48,0.12);
    border-color: rgba(255,110,48,0.28);
}
.tz-city[data-band="work"]:hover {
    background: rgba(255,110,48,0.20);
    border-color: var(--orange);
}
.tz-city[data-band="work"] .tz-city-name {
    font-size: 2.6rem;
    color: var(--black);
}
.tz-city[data-band="work"] .tz-city-time {
    font-size: 2rem;
    color: var(--black);
}

/* Edge hours: faint chip, mid-size */
.tz-city[data-band="edge"] {
    background: rgba(255,110,48,0.04);
    border-color: rgba(0,0,0,0.08);
}
.tz-city[data-band="edge"]:hover {
    background: rgba(255,110,48,0.10);
    border-color: rgba(255,110,48,0.28);
}
.tz-city[data-band="edge"] .tz-city-name {
    font-size: 2.1rem;
    color: rgba(0,0,0,0.82);
}
.tz-city[data-band="edge"] .tz-city-time {
    font-size: 1.7rem;
    color: rgba(0,0,0,0.78);
}

/* Off hours: ghost chip, smallest text, recedes */
.tz-city[data-band="off"] {
    background: transparent;
    border-color: rgba(0,0,0,0.07);
}
.tz-city[data-band="off"]:hover {
    background: rgba(0,0,0,0.025);
    border-color: rgba(0,0,0,0.14);
}
.tz-city[data-band="off"] .tz-city-name {
    font-size: 1.8rem;
    color: rgba(0,0,0,0.48);
}
.tz-city[data-band="off"] .tz-city-time {
    font-size: 1.5rem;
    color: rgba(0,0,0,0.42);
}
.tz-city[data-band="off"] .tz-city-date {
    color: rgba(0,0,0,0.32);
}

/* Local zone: brand-orange border + name regardless of band */
.tz-city.is-local {
    border-color: var(--orange) !important;
}
.tz-city.is-local .tz-city-name { color: var(--orange); }

/* Pinned indicator: small bullet to the right of the name */
.tz-city.is-added .tz-city-name::after {
    content: "•";
    display: inline-block;
    margin-left: 0.4rem;
    color: var(--orange);
    font-size: 0.6em;
    vertical-align: middle;
    line-height: 0;
    position: relative;
    top: -0.18em;
}

@media (max-width: 900px) {
    .tz-cities-flow { gap: 1.1rem; }
    .tz-city { padding: 1.4rem 1.6rem; gap: 0.5rem; min-width: 11rem; }
    .tz-city[data-band="work"] .tz-city-name { font-size: 2.2rem; }
    .tz-city[data-band="work"] .tz-city-time { font-size: 1.7rem; }
    .tz-city[data-band="edge"] .tz-city-name { font-size: 1.8rem; }
    .tz-city[data-band="edge"] .tz-city-time { font-size: 1.45rem; }
    .tz-city[data-band="off"]  .tz-city-name { font-size: 1.5rem; }
    .tz-city[data-band="off"]  .tz-city-time { font-size: 1.25rem; }
    .tz-city-date { font-size: 1.2rem; }
}
@media (max-width: 650px) {
    .tz-cities { padding: 3rem 1.8rem; min-height: auto; }
    .tz-cities-head { margin-bottom: 2rem; }
    .tz-cities-head h2 { font-size: 2.6rem; }
    .tz-cities-flow { gap: 0.9rem; }
    .tz-city { padding: 1.1rem 1.3rem; gap: 0.45rem; min-width: 9rem; }
}

/* ============ Header colors (light hero) ============ */
/* Mirrors the wrapper-pilot pattern. Default to dark text + dark logo on the
   light hero; flip to white on .header-white sections (e.g. the footer). */

.wrapper-timezones .header .logo svg path,
.wrapper-timezones .header .nav-link span:before,
.wrapper-timezones .header .nav-link .arrow {
    transition: fill var(--transition-default), background var(--transition-default);
}
.wrapper-timezones .header .logo svg path { fill: var(--black); }
.wrapper-timezones .header .nav-link { color: var(--black); }
.wrapper-timezones .header .nav-link span:before { background: var(--black); }
.wrapper-timezones .header .nav-link .arrow { fill: var(--black); }
.wrapper-timezones .burger-button { color: var(--black); }

.wrapper-timezones .header.header-white .logo svg path { fill: var(--white); }
.wrapper-timezones .header.header-white .nav-link { color: var(--white); }
.wrapper-timezones .header.header-white .nav-link span:before { background: var(--white); }
.wrapper-timezones .header.header-white .nav-link .arrow { fill: var(--white); }
.wrapper-timezones .header.header-white ~ * .burger-button,
.wrapper-timezones .header.header-white .burger-button { color: var(--white); }

/* Hero-only nav links: animated fade (desktop only, mobile uses burger). */
.wrapper-timezones .nav-link-hero-only {
    overflow: hidden;
    max-width: 20rem;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        max-width 0.35s ease,
        margin 0.35s ease,
        padding 0.35s ease,
        visibility 0s linear 0s;
}
.wrapper-timezones .header-dark .nav-link-hero-only,
.wrapper-timezones .header-white .nav-link-hero-only {
    display: inline-flex;
    opacity: 0;
    visibility: hidden;
    max-width: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    transform: translateY(-0.4rem);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        max-width 0.35s ease,
        margin 0.35s ease,
        padding 0.35s ease,
        visibility 0s linear 0.35s;
}

/* ============ Burger menu (tablet + mobile) ============ */

.wrapper-timezones .nav { position: relative; }

.wrapper-timezones .burger-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.wrapper-timezones .burger-button {
    display: none;
    position: relative;
    width: 3.6rem;
    height: 3.6rem;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: inherit;
}

.wrapper-timezones .burger-button span,
.wrapper-timezones .burger-button::before,
.wrapper-timezones .burger-button::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2.4rem;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.wrapper-timezones .burger-button::before { transform: translate(-50%, calc(-50% - 0.7rem)); }
.wrapper-timezones .burger-button::after  { transform: translate(-50%, calc(-50% + 0.7rem)); }
.wrapper-timezones .burger-toggle:checked ~ .burger-button::before { transform: translate(-50%, -50%) rotate(45deg); }
.wrapper-timezones .burger-toggle:checked ~ .burger-button::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.wrapper-timezones .burger-toggle:checked ~ .burger-button span    { opacity: 0; }

.wrapper-timezones .mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 1.2rem);
    right: 0;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 20rem;
    padding: 1.2rem;
    background: rgba(20, 20, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.32);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.6rem);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 60;
}
.wrapper-timezones .burger-toggle:checked ~ .mobile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.wrapper-timezones .mobile-menu-link {
    display: block;
    padding: 1rem 1.4rem;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 0.6rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.wrapper-timezones .mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
}

@media screen and (max-width: 967px) {
    .wrapper-timezones .nav-link-hero-only { display: none; }
    .wrapper-timezones .burger-button { display: block; }
    .wrapper-timezones .mobile-menu { display: flex; }
}

/* ============ Responsive ============ */

@media (max-width: 1200px) {
    .timezones-main { padding-top: 12rem; }
}

@media (max-width: 900px) {
    .tz-row { grid-template-columns: 12rem 10rem 1fr; gap: 1rem; }
    .tz-row-cells { grid-template-columns: repeat(24, 3.2rem); }
    .tz-row-city { font-size: 1.4rem; }
    .tz-row-time { font-size: 1.5rem; }
    .tz-row-country, .tz-row-date { font-size: 1.15rem; }
}

@media (max-width: 650px) {
    .timezones-main { padding-top: 10rem; }
    .tz-hero { padding: 2rem 0 4rem; }
    .tz-app { padding: 0 1.8rem; margin-bottom: 4rem; }
    .tz-row { grid-template-columns: 11rem 8.5rem 1fr; gap: 0.8rem; padding: 0.6rem 0.2rem; }
    .tz-row-cells { grid-template-columns: repeat(24, 2.9rem); gap: 0.15rem; }
    .tz-row-city { font-size: 1.3rem; }
    .tz-row-time { font-size: 1.4rem; }
    .tz-row-country, .tz-row-date { font-size: 1.05rem; }
    .tz-cell { font-size: 1rem; padding: 0.5rem 0; }
    .tz-cell-num { font-size: 1.2rem; }
    .tz-cell-ap  { font-size: 0.9rem; }
    .tz-toolbar { gap: 0.8rem; flex-direction: column; align-items: stretch; }
    .tz-btn { padding: 0.9rem 1.2rem; font-size: 1.3rem; }
    /* Day tabs: scroll horizontally if they don't fit, no wrapping */
    .tz-day-tabs {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .tz-day-tabs::-webkit-scrollbar { display: none; }
    .tz-day-tab { padding: 0 0.9rem; font-size: 1.2rem; flex-shrink: 0; }
    /* Search + format toggle: full-width, stacked under the tabs */
    .tz-search-wrap { max-width: 100%; min-width: 0; }
    .tz-format-toggle { align-self: flex-start; }
}

/* Extra-narrow phones: a touch more breathing room on the hero */
@media (max-width: 420px) {
    .tz-hero .title-main { font-size: 4.4rem; }
    .tz-hero .desc-large { font-size: 1.4rem; }
}
