/* temperatures.com - design system v3 "Cupertino"
   Apple design language: frosted-glass chrome, #fbfbfd canvas, hairline
   borders, soft floating cards, restrained neutral palette with one blue
   accent, iOS-Weather sky gradients, ultralight display numerals, pill
   geometry, and gentle motion. Fully self-hosted. */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-var-latin.woff2') format('woff2');
}

:root {
    --canvas: #fbfbfd;
    --card: #ffffff;
    --hairline: rgba(0, 0, 0, .08);
    --hairline-soft: rgba(0, 0, 0, .05);
    --ink: #1d1d1f;
    --muted: #6e6e73;
    --faint: #86868b;
    --fill: #f5f5f7;
    --fill-2: #e8e8ed;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --hot: #ff453a;
    --cold: #0a84ff;
    --sky-1: #2c6fe0;
    --sky-2: #4f92f0;
    --sky-3: #8ec1f9;
    --night-1: #0c1a3c;
    --night-2: #1c3162;
    --night-3: #35528f;
    --radius: 18px;
    --radius-sm: 14px;
    --shadow: 0 2px 12px rgba(0, 0, 0, .04);
    --maxw: 1140px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Arial, sans-serif;
    --ease: cubic-bezier(.25, .1, .25, 1);
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
    margin: 0; font-family: var(--font); background: var(--canvas); color: var(--ink);
    line-height: 1.5; font-size: 15px;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, iframe, table, pre { max-width: 100%; }
img { height: auto; }
[id] { scroll-margin-top: 72px; }
a { color: var(--ink); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.022em; font-weight: 600; }
::selection { background: rgba(0, 113, 227, .18); }

svg.wicon { width: 34px; height: 34px; flex: 0 0 auto; }
svg.hicon { width: 19px; height: 19px; vertical-align: -3px; margin-right: 7px; }
svg.hicon-lg { width: 26px; height: 26px; vertical-align: -4px; margin-right: 9px; }
/* On the blue hero, the default blue snowflake would vanish - render it white. */
.city-hero svg.hicon { --snowflake-ico: #fff; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 3000; background: var(--accent);
    color: #fff; padding: 10px 16px; border-radius: 0 0 12px 0; font-weight: 600; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 3px solid rgba(0, 125, 250, .55); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}

/* ============================= HEADER (frosted glass) ============================= */
.site-header { position: sticky; top: 0; z-index: 1000;
    background: rgba(251, 251, 253, .78);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--hairline-soft); }
.header-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center;
    gap: 16px; padding: 10px 22px; }
.brand { display: flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 700;
    font-size: 1.12rem; letter-spacing: -.03em; white-space: nowrap; flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.brand-icon { color: var(--accent); flex: 0 0 auto; }
.brand-tld { color: var(--faint); font-weight: 500; }

.header-search { position: relative; flex: 1 1 auto; max-width: 400px; min-width: 0; }
.header-search .search-glyph { position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: var(--faint); pointer-events: none; }
#city-search { width: 100%; padding: 9px 16px 9px 38px; border-radius: 980px; border: 1px solid transparent;
    background: rgba(0, 0, 0, .045); color: var(--ink); font-size: .93rem; font-family: var(--font);
    transition: background .2s var(--ease), box-shadow .2s var(--ease); }
#city-search::placeholder { color: var(--faint); }
#city-search:focus { background: #fff; outline: none;
    box-shadow: 0 0 0 4px rgba(0, 125, 250, .25), 0 1px 4px rgba(0,0,0,.06); }
.search-results { position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: rgba(255,255,255,.92);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-radius: 16px; border: 1px solid var(--hairline-soft);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .16); overflow: hidden; z-index: 50; }
.search-results a { display: block; padding: 11px 18px; color: var(--ink); font-size: .92rem; }
.search-results a:hover, .search-results a.sel { background: rgba(0, 113, 227, .08); }
.search-results .sr-region { color: var(--faint); font-size: .8rem; margin-left: 6px; }

.header-nav { display: flex; gap: 2px; }
.header-nav a { color: var(--ink); font-size: .9rem; font-weight: 500; padding: 8px 12px;
    border-radius: 980px; white-space: nowrap; transition: background .18s var(--ease); }
.header-nav a:hover { background: rgba(0, 0, 0, .05); color: var(--ink); }

/* iOS segmented control */
.unit-toggle { display: flex; background: var(--fill-2); border-radius: 980px; padding: 2px; }
.unit-toggle button { border: none; background: transparent; color: var(--ink); font-weight: 600;
    font-family: var(--font); font-size: .84rem; padding: 5px 13px; border-radius: 980px; cursor: pointer;
    transition: all .2s var(--ease); }
.unit-toggle button.active { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }

.menu-btn { display: none; border: none; background: transparent; color: var(--ink); cursor: pointer;
    padding: 6px; }
.mobile-menu { background: rgba(251, 251, 253, .95);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    padding: 10px 22px 20px; border-bottom: 1px solid var(--hairline-soft); }
.mobile-menu > a { display: block; color: var(--ink); padding: 12px 4px; font-weight: 500;
    border-bottom: 1px solid var(--hairline-soft); font-size: 1.02rem; }
.mobile-popular { margin-top: 14px; }
.mobile-popular-title { color: var(--faint); font-size: .72rem; text-transform: uppercase;
    letter-spacing: .08em; margin-bottom: 5px; font-weight: 600; }
.mobile-popular a { display: inline-block; color: var(--muted); padding: 6px 10px; font-size: .92rem; }

@media (max-width: 950px) {
    .header-nav, .header-inner > .unit-toggle { display: none; }
    .menu-btn { display: block; }
    .mobile-menu .unit-toggle { display: inline-flex; margin: 4px 0 10px; }
}

/* ============================= LAYOUT ============================= */
.page { max-width: var(--maxw); margin: 0 auto; padding: 22px 22px 64px; }
.measure { max-width: 820px; }
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--hairline-soft);
    box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 16px; }
.card h2 { font-size: 1.22rem; margin: 0 0 14px; }
.card-hd, .card-h3 { font-size: 1.22rem; margin: 0 0 14px; font-weight: 600;
    line-height: 1.15; letter-spacing: -.022em; }
h3.month-hd { font-size: 1rem; margin: 0 0 4px; }
.state-hd { font-size: 1.08rem; margin: 0 0 12px; font-weight: 600; }
.fc-head h3 { margin: 0; font-size: .97rem; }
.section-lead { color: var(--muted); margin: -4px 0 16px; font-size: .95rem; }
.section-lead a { color: var(--accent); font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* minmax(0,1fr) in BOTH layouts: a bare 1fr track has min-width:auto, so wide
   children (hourly strip, tables) would force the column past the viewport. */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 324px; gap: 16px; align-items: start; }
@media (max-width: 950px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

.breadcrumbs { font-size: .82rem; color: var(--muted); margin: 2px 0 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 7px; color: rgba(0, 0, 0, .25); }
.breadcrumbs .here { color: var(--ink); font-weight: 600; }

.section-title { font-size: 1.5rem; margin: 34px 0 14px; font-weight: 600; letter-spacing: -.025em; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 600;
    color: var(--faint); margin-bottom: 8px; }

/* ============================= CITY HERO (iOS Weather sky) ============================= */
.city-hero { background: linear-gradient(178deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 115%);
    color: #fff; border-radius: 22px; padding: 30px 30px 26px; margin-bottom: 16px;
    position: relative; overflow: hidden; box-shadow: 0 10px 34px rgba(44, 111, 224, .22); }
.city-hero.is-night { background: linear-gradient(178deg, var(--night-1) 0%, var(--night-2) 58%, var(--night-3) 115%);
    box-shadow: 0 10px 34px rgba(12, 26, 60, .3); }
.city-hero h1 { font-size: 1.45rem; font-weight: 600; margin: 0; }
.hero-sub { color: rgba(255, 255, 255, .78); font-size: .88rem; margin-top: 3px; font-weight: 400; }
.hero-sub a, .hero-main a { color: inherit; text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .38); text-underline-offset: 2px; }
.hero-sub a:hover, .hero-main a:hover { color: #fff; text-decoration-color: rgba(255, 255, 255, .75); }
/* Metric-tile labels that link to their explainer guide stay label-colored. */
.dt-sub a, .fd-label a { color: inherit; text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, .22); text-underline-offset: 2px; }
.dt-sub a:hover, .fd-label a:hover { color: var(--accent); text-decoration-color: currentColor; }
.hero-main { display: flex; align-items: center; gap: 28px; margin-top: 16px; flex-wrap: wrap; }
.hero-temp { font-size: 5.6rem; font-weight: 200; line-height: .95; letter-spacing: -.045em; }
.hero-cond { display: flex; flex-direction: column; gap: 3px; }
.hero-cond .cond-text { font-size: 1.15rem; font-weight: 600; }
.hero-cond .cond-extra { color: rgba(255, 255, 255, .82); font-size: .92rem; }
.hero-icon { width: 84px; height: 84px; }
.hero-stats { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.hero-stat { min-width: 92px; background: rgba(255, 255, 255, .14); border-radius: var(--radius-sm);
    padding: 10px 13px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-stat .hs-label { color: rgba(255, 255, 255, .72); font-size: .68rem; text-transform: uppercase;
    letter-spacing: .08em; font-weight: 600; }
.hero-stat .hs-value { font-size: 1.1rem; font-weight: 600; margin-top: 3px; }
.hero-updated { color: rgba(255, 255, 255, .6); font-size: .76rem; margin-top: 16px; }
.hero-updated a { color: rgba(255, 255, 255, .85); }
@media (max-width: 700px) {
    .hero-temp { font-size: 4.4rem; }
    .hero-icon { width: 64px; height: 64px; }
    .hero-stats { margin-left: 0; }
}

.alert-banner { background: #fff8ec; border: 1px solid rgba(255, 159, 10, .35); color: #7a4c07;
    border-radius: var(--radius-sm); padding: 13px 17px; margin-bottom: 16px; font-size: .92rem; }
.alert-banner strong { display: block; margin-bottom: 2px; }

/* City sub-nav: pill row */
.city-subnav { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 2px; }
.city-subnav a { padding: 9px 18px; border-radius: 980px; background: var(--fill); color: var(--ink);
    font-weight: 500; font-size: .9rem; white-space: nowrap; transition: all .2s var(--ease); }
.city-subnav a:hover { background: var(--fill-2); color: var(--ink); }
.city-subnav a.active { background: var(--ink); color: #fff; }

/* ============================= HOURLY STRIP ============================= */
.hourly-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.hour-card { flex: 0 0 78px; scroll-snap-align: start; background: var(--fill);
    border-radius: var(--radius-sm); padding: 11px 6px; text-align: center; }
.hour-card .h-time { font-size: .76rem; color: var(--muted); font-weight: 600; }
.hour-card svg.wicon { width: 34px; height: 34px; margin: 6px 0 2px; }
.hour-card .h-temp { font-weight: 600; font-size: 1.05rem; }
.hour-card .h-pop { font-size: .74rem; color: var(--cold); font-weight: 600; margin-top: 2px; }

/* ============================= HOURLY TEMPERATURE GRAPH ============================= */
.graph-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 2px 0 12px; }
.wx-graph { width: 100%; min-width: 640px; height: auto; display: block; }
.wx-graph .g-line { fill: none; stroke: var(--accent); stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round; }
.wx-graph .g-area { fill: #0071e3; opacity: .08; }
.wx-graph .g-dot { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.wx-graph .g-temp { font: 600 15px var(--font); fill: var(--ink); }
.wx-graph .g-hour { font: 500 12.5px var(--font); fill: var(--faint); }
.wx-graph .g-grid { stroke: rgba(0, 0, 0, .05); stroke-width: 1; }
.wx-graph .g-hit { fill: transparent; }

/* ============================= DAILY ROWS ============================= */
.day-rows { display: flex; flex-direction: column; }
.day-row { display: grid; grid-template-columns: 100px 40px minmax(0,1.4fr) 118px 76px;
    align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--hairline-soft); }
.day-row:last-child { border-bottom: none; }
.day-row .d-date { font-weight: 600; font-size: .9rem; }
.day-row .d-date .d-sub { display: block; font-weight: 400; color: var(--faint); font-size: .75rem; }
.day-row svg.wicon { width: 32px; height: 32px; }
.day-row .d-cond { color: var(--muted); font-size: .87rem; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; }
.day-row .d-temps { display: flex; align-items: center; gap: 8px; justify-content: flex-end;
    font-size: .95rem; font-variant-numeric: tabular-nums; }
.day-row .d-hi { font-weight: 600; }
.day-row .d-lo { color: var(--faint); font-weight: 500; }
.temp-bar { height: 4px; border-radius: 3px; background: linear-gradient(90deg, #64b5f6, #ffd60a, #ff6b3d);
    width: 44px; }
.day-row .d-pop { color: var(--cold); font-weight: 600; font-size: .84rem; text-align: right; }
@media (max-width: 640px) {
    .day-row { grid-template-columns: 82px 34px minmax(0,1fr) 96px; }
    .day-row .d-pop { display: none; }
}

/* Expanded forecast cards (14-day page) */
.fc-day { border-bottom: 1px solid var(--hairline-soft); padding: 14px 4px; }
.fc-day:last-child { border-bottom: none; }
.fc-head { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.fc-head svg.wicon { width: 42px; height: 42px; }
.fc-head .fc-date { font-weight: 600; min-width: 148px; }
.fc-head .fc-cond { color: var(--muted); flex: 1; font-size: .91rem; }
.fc-head .fc-temps { display: flex; gap: 18px; font-size: 1.04rem; font-variant-numeric: tabular-nums; }
.fc-head .fc-t { display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.fc-head .fc-t-label { color: var(--faint); font-size: .65rem; text-transform: uppercase;
    letter-spacing: .06em; font-weight: 600; }
.fc-head .fc-temps .d-hi { font-weight: 600; }
.fc-head .fc-temps .d-lo { color: var(--faint); }
.fc-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px;
    margin-top: 11px; }
.fc-detail { background: var(--fill); border-radius: 12px; padding: 8px 12px; font-size: .83rem; }
.fc-detail .fd-label { color: var(--faint); font-size: .68rem; text-transform: uppercase;
    letter-spacing: .06em; font-weight: 600; }
.fc-detail .fd-value { font-weight: 500; margin-top: 2px; }

/* ============================= DETAIL TILES ============================= */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 10px; }
.detail-tile { background: var(--fill); border-radius: var(--radius-sm); padding: 14px 15px; }
.detail-tile .dt-label { display: flex; align-items: center; gap: 6px; color: var(--muted);
    font-size: .76rem; font-weight: 600; }
.detail-tile .dt-label svg { width: 15px; height: 15px; color: var(--accent); }
.detail-tile .dt-value { font-size: 1.35rem; font-weight: 600; margin-top: 7px; letter-spacing: -.02em;
    font-variant-numeric: tabular-nums; }
.detail-tile .dt-sub { color: var(--faint); font-size: .78rem; margin-top: 2px; }

/* UV / AQI chips - Apple system colors */
.chip { display: inline-block; padding: 3px 10px; border-radius: 980px; font-size: .73rem;
    font-weight: 600; color: #fff; }
.uv-low, .aqi-good { background: #34c759; }
.uv-moderate, .aqi-moderate { background: #ff9f0a; }
.uv-high, .aqi-usg { background: #ff7726; }
.uv-veryhigh, .aqi-unhealthy { background: #ff453a; }
.uv-extreme, .aqi-veryunhealthy { background: #bf5af2; }
.aqi-hazardous { background: #8e2430; }
.aqi-unknown { background: var(--faint); }

/* Sun & moon card */
.astro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.astro-item { display: flex; align-items: center; gap: 10px; background: var(--fill);
    border-radius: var(--radius-sm); padding: 12px 13px; }
.astro-item svg { width: 24px; height: 24px; color: #ff9f0a; flex: 0 0 auto; }
.astro-item.moon svg { color: #5e6fa8; }
.astro-item .a-label { color: var(--faint); font-size: .73rem; }
.astro-item .a-value { font-weight: 600; font-size: .95rem; }

/* AQI pollutant bars */
.aqi-rows { display: grid; gap: 9px; }
.aqi-row { display: grid; grid-template-columns: 70px 1fr 58px; align-items: center; gap: 10px;
    font-size: .85rem; }
.aqi-row .bar { height: 6px; border-radius: 4px; background: var(--fill-2); overflow: hidden; }
.aqi-row .bar i { display: block; height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, #34c759, #ff9f0a, #ff453a); }
.aqi-row .val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ============================= EDITORIAL ============================= */
.prose { font-size: .96rem; }
.prose p { margin: 0 0 14px; color: #3a3a3c; }
.prose a { color: var(--accent); font-weight: 500; }
.prose a:hover { text-decoration: underline; }
.lead { font-size: 1.05rem; color: #3a3a3c; }

.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 10px; }
.season-card { background: var(--fill); border-radius: var(--radius-sm); padding: 16px 18px; }
.season-card h3 { margin: 0 0 7px; font-size: .96rem; }
.season-card p { margin: 0; font-size: .88rem; color: #48484a; }

/* FAQ accordion */
.faq details { border-bottom: 1px solid var(--hairline-soft); }
.faq details:last-child { border-bottom: none; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 4px; list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .95rem;
    transition: color .18s var(--ease); }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; color: var(--faint); font-size: 1.3rem; font-weight: 300;
    transition: transform .25s var(--ease); }
.faq details[open] summary:after { content: "+"; transform: rotate(45deg); }
.faq .faq-a { padding: 0 4px 16px; color: #48484a; font-size: .92rem; }

/* Data tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .89rem; }
table.data caption { caption-side: bottom; color: var(--faint); font-size: .77rem; padding-top: 10px;
    text-align: left; }
table.data th { color: var(--muted); font-size: .72rem; text-transform: uppercase;
    letter-spacing: .06em; font-weight: 600; padding: 9px 10px; text-align: left;
    border-bottom: 1px solid var(--hairline); white-space: nowrap; background: transparent; }
table.data td { padding: 9px 10px; border-bottom: 1px solid var(--hairline-soft); }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .15s var(--ease); }
table.data tr:hover td { background: var(--fill); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .rowhead { font-weight: 600; white-space: nowrap; }
table.data td svg.wicon { width: 28px; height: 28px; display: block; }
tr.hl td { background: #fff9ec !important; }

/* Link pills */
.pill-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-links a { background: var(--fill); border-radius: 980px; padding: 8px 15px; font-size: .86rem;
    font-weight: 500; color: var(--ink); transition: all .2s var(--ease); }
.pill-links a:hover { background: var(--fill-2); color: var(--ink); transform: translateY(-1px); }

/* ============================= HOMEPAGE ============================= */
.home-hero { background: linear-gradient(178deg, var(--sky-1) 0%, var(--sky-2) 52%, var(--sky-3) 118%);
    color: #fff; padding: 64px 22px 68px; text-align: center; }
.home-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 600; margin: 0 0 10px;
    letter-spacing: -.03em; }
.home-hero p { color: rgba(255, 255, 255, .82); max-width: 620px; margin: 0 auto 28px;
    font-size: 1.06rem; font-weight: 400; }
.hero-search { position: relative; max-width: 540px; margin: 0 auto; }
.hero-search .search-glyph { position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
    color: var(--faint); z-index: 2; }
#hero-search-input { width: 100%; padding: 17px 22px 17px 50px; border-radius: 980px; border: none;
    font-size: 1.05rem; font-family: var(--font); color: var(--ink);
    box-shadow: 0 20px 50px rgba(10, 30, 80, .35); transition: box-shadow .2s var(--ease); }
#hero-search-input:focus { outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .5), 0 20px 50px rgba(10, 30, 80, .4); }
.hero-search .search-results { text-align: left; }
.hero-quick { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-quick a { color: #fff; font-size: .84rem; font-weight: 500; background: rgba(255, 255, 255, .16);
    padding: 7px 14px; border-radius: 980px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: background .2s var(--ease); }
.hero-quick a:hover { background: rgba(255, 255, 255, .28); color: #fff; }

/* City tiles */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 10px; }
.city-tile { background: var(--card); border-radius: var(--radius-sm); border: 1px solid var(--hairline-soft);
    box-shadow: var(--shadow); padding: 11px 14px; display: flex; align-items: center; gap: 10px;
    color: var(--ink); min-height: 58px;
    transition: transform .22s var(--ease); }
.city-tile:hover { transform: translateY(-2px); color: var(--ink); }
.city-tile svg.wicon { width: 34px; height: 34px; }
.city-tile > span:not(.ct-temp) { min-width: 0; }
.city-tile .ct-name { font-weight: 600; font-size: .92rem; display: block; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; }
.city-tile .ct-cond { color: var(--faint); font-size: .77rem; display: block; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; }
.city-tile .ct-temp { margin-left: auto; font-size: 1.35rem; font-weight: 300; letter-spacing: -.02em;
    font-variant-numeric: tabular-nums; }
.city-tile .ct-temp.cold { color: var(--cold); }
.city-tile .ct-temp.hot { color: var(--hot); }
.city-tile.placeholder .ct-temp { color: var(--faint); font-size: .95rem; font-weight: 500; }

.link-columns { columns: 4 175px; column-gap: 22px; }
.link-columns a { display: block; padding: 4px 0; font-size: .9rem; color: #3a3a3c; break-inside: avoid; }
.link-columns a:hover { color: var(--accent); }

.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 10px; }
.promo-card { background: var(--card); border-radius: var(--radius-sm); border: 1px solid var(--hairline-soft);
    box-shadow: var(--shadow); padding: 18px 20px; color: var(--ink); display: block;
    transition: transform .22s var(--ease); }
.promo-card:hover { transform: translateY(-2px); color: var(--ink); }
.promo-card .pc-title { font-weight: 600; margin-bottom: 4px; font-size: .97rem; letter-spacing: -.015em; }
.promo-card .pc-text { color: var(--muted); font-size: .85rem; }
.promo-card .pc-arrow { color: var(--accent); font-weight: 500; font-size: .84rem; margin-top: 10px;
    display: inline-block; }

.rank-teaser { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
@media (max-width: 760px) { .rank-teaser { grid-template-columns: minmax(0,1fr); } }
.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.rank-list li { display: flex; align-items: center; gap: 11px; padding: 8px 2px;
    border-bottom: 1px solid var(--hairline-soft); counter-increment: rank; }
.rank-list li:last-child { border-bottom: none; }
.rank-list li:before { content: counter(rank); font-weight: 600; color: var(--faint);
    min-width: 18px; text-align: center; font-size: .85rem; }
.rank-list a { font-weight: 500; font-size: .93rem; }
.rank-list .r-temp { margin-left: auto; font-weight: 500; font-size: 1.05rem;
    font-variant-numeric: tabular-nums; }
.rank-list .r-temp.hot { color: var(--hot); }
.rank-list .r-temp.cold { color: var(--cold); }

/* ============================= RANKINGS PAGE ============================= */
.rank-table td .flag { margin-right: 6px; }
.rank-num { color: var(--faint); font-weight: 600; width: 30px; }

/* ============================= CONVERTER ============================= */
.conv-box { display: grid; grid-template-columns: 1fr 50px 1fr; gap: 12px; align-items: center;
    background: linear-gradient(178deg, var(--sky-1), var(--sky-2) 70%, var(--sky-3) 130%);
    border-radius: 22px; padding: 26px; color: #fff; margin-bottom: 16px;
    box-shadow: 0 10px 34px rgba(44, 111, 224, .22); }
.conv-field label { display: block; font-size: .76rem; color: rgba(255,255,255,.8); font-weight: 600;
    margin-bottom: 7px; text-transform: uppercase; letter-spacing: .06em; }
.conv-field input { width: 100%; padding: 14px 16px; font-size: 1.5rem; font-weight: 300;
    border: none; border-radius: 14px; color: var(--ink); font-family: var(--font);
    font-variant-numeric: tabular-nums; letter-spacing: -.02em; transition: box-shadow .2s var(--ease); }
.conv-field input:focus { outline: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, .5); }
.conv-eq { text-align: center; font-size: 1.5rem; font-weight: 300; color: rgba(255,255,255,.8); }
.conv-note { grid-column: 1 / -1; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25);
    color: #ffe9d6; border-radius: 12px; padding: 10px 14px; font-size: .85rem;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.conv-box.conv-tri { grid-template-columns: 1fr 1fr 1fr; }
/* Multi-unit weather converters: responsive grid of linked unit fields */
.conv-box.multi-conv, .conv-box.multi-conv-hum {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.hum-temp-row { display: flex; gap: 8px; }
.hum-temp-row select { border: none; border-radius: 12px; padding: 0 12px; font-family: var(--font);
    font-weight: 600; font-size: 1rem; color: var(--ink); background: #fff; }
.conv-results { grid-column: 1 / -1; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.conv-result { background: rgba(255, 255, 255, .16); border-radius: var(--radius-sm);
    padding: 12px 15px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.conv-result .cr-label { display: block; color: rgba(255, 255, 255, .75); font-size: .7rem;
    text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.conv-result .cr-value { font-size: 1.25rem; font-weight: 600; margin-top: 3px; display: block;
    font-variant-numeric: tabular-nums; }
table.uv-burn th, table.uv-burn td { border-color: rgba(255, 255, 255, .25); }
table.uv-burn tr:hover td { background: transparent; }
@media (max-width: 620px) {
    .conv-box { grid-template-columns: 1fr; }
    .conv-box.conv-tri { grid-template-columns: 1fr; }
    .conv-eq { display: none; }
}
.formula-chip { display: inline-block; background: var(--fill); color: var(--ink); font-weight: 600;
    border-radius: 12px; padding: 9px 15px; font-size: .95rem; margin: 4px 0 10px;
    font-variant-numeric: tabular-nums; }

.example-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.example-list li { background: var(--fill); border-radius: 12px; padding: 12px 15px; font-size: .91rem; }
.example-list .ex-q { font-weight: 600; }

/* ============================= GUIDES ============================= */
.guide-header { margin-bottom: 12px; }
.guide-header .eyebrow { color: var(--accent); }
.guide-header h1 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); margin: 0 0 10px; letter-spacing: -.028em; }
.guide-reviewed { color: var(--faint); font-size: .78rem; margin-top: 8px; }
/* Homepage: geolocate strip + world dot map */
.hero-locate { margin-top: 14px; font-size: .92rem; }
.geo-strip { color: rgba(255, 255, 255, .95); font-size: .95rem; margin-bottom: 8px; }
.geo-strip:empty { display: none; }
.geo-strip a { color: #fff; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.locate-btn { border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .16);
    color: #fff; border-radius: 980px; padding: 8px 16px; font-family: var(--font);
    font-size: .88rem; font-weight: 600; cursor: pointer; transition: background .2s var(--ease); }
.locate-btn:hover { background: rgba(255, 255, 255, .28); }
.locate-btn:disabled { opacity: .7; cursor: wait; }
#locate-result { margin-left: 10px; color: rgba(255, 255, 255, .92); }
#locate-result a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
#locate-result .locate-km { color: rgba(255, 255, 255, .65); font-size: .82rem; }
.earth-map-wrap { background: #dcebf5; border-radius: var(--radius-sm); padding: 10px 12px 6px; }
.em-land { fill: #f3f1ec; stroke: #c9c5bd; stroke-width: .6; }
.earth-map a { cursor: pointer; }
.earth-map a:hover circle { stroke: var(--ink); stroke-width: 1.6; }
.earth-map a:focus-visible circle { stroke: var(--accent); stroke-width: 2; }
.earth-map { display: block; width: 100%; height: auto; }
.em-label { font-size: 15px; font-weight: 700; fill: var(--ink); paint-order: stroke;
    stroke: #f5f5f4; stroke-width: 4px; stroke-linejoin: round; }
.em-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 8px 2px 6px;
    color: var(--muted); font-size: .76rem; }
.em-legend span { display: inline-flex; align-items: center; gap: 5px; }
.em-legend span::before { content: ''; width: 9px; height: 9px; border-radius: 50%;
    background: var(--c); }

/* weather.com-style interactive hourly outlook */
.outlook { position: relative; }
.ol-scroll { overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; border-radius: var(--radius-sm); background: var(--fill);
    padding: 12px 0 4px; }
.ol-track { position: relative; }
.ol-head { display: flex; }
.ol-col { flex: 0 0 84px; width: 84px; text-align: center; padding: 8px 0 2px;
    border-radius: 14px; }
.ol-col .wicon { width: 34px; height: 34px; margin: 4px auto 0; display: block; }
.ol-time { font-size: .8rem; font-weight: 600; color: var(--ink); }
.ol-pop { font-size: .76rem; font-weight: 600; color: var(--cold); min-height: 18px;
    margin-top: 2px; }
.ol-now { background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .1); }
.ol-sun .ol-time, .ol-sunword { color: #b0527a; }
.ol-curve { display: block; }
.ol-curve .g-line { fill: none; stroke: #ff7a30; stroke-width: 3; stroke-linecap: round; }
.ol-curve .g-dot { fill: #ff7a30; }
.ol-temp { font-size: 15px; font-weight: 700; fill: var(--ink); }
.ol-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hairline-soft);
    background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); cursor: pointer;
    font-size: 1.4rem; line-height: 1; color: var(--ink); }
.ol-nav:hover { background: var(--fill); }
.ol-prev { left: -8px; }
.ol-next { right: -8px; }

/* Compare pages: side-by-side live conditions */
.compare-live { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cl-panel { background: var(--fill); border-radius: var(--radius-sm); padding: 16px 18px; }
.cl-panel h3 { margin: 0 0 8px; font-size: 1.02rem; }
.cl-row { display: flex; align-items: center; gap: 10px; }
.cl-row svg.cl-icon { width: 44px; height: 44px; }
.cl-temp { font-size: 2.4rem; font-weight: 300; letter-spacing: -.03em;
    font-variant-numeric: tabular-nums; }
.cl-cond { font-weight: 600; margin-top: 2px; }
.cl-meta { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.cl-verdict { margin: 14px 0 0; color: #3c3b39; }
@media (max-width: 560px) { .compare-live { grid-template-columns: 1fr; } }
.guide-summary { background: rgba(0, 113, 227, .06); border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0; padding: 14px 18px; color: #2c3a52; font-size: .96rem; margin: 12px 0 6px; }
.guide-hero { display: block; width: 100%; height: auto; margin: 6px 0 16px;
    border-radius: var(--radius-sm); border: 1px solid var(--hairline-soft); }
/* Scannable key-fact lists used across city, country, tool and guide pages */
ul.quick-facts { list-style: none; margin: 10px 0 16px; padding: 0; }
ul.quick-facts li { position: relative; padding: 7px 0 7px 26px; font-size: .93rem;
    line-height: 1.55; border-bottom: 1px solid var(--hairline-soft); }
ul.quick-facts li:last-child { border-bottom: none; }
ul.quick-facts li::before { content: ''; position: absolute; left: 4px; top: 15px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .55; }
.guide-card { display: block; background: var(--card); border-radius: var(--radius-sm);
    border: 1px solid var(--hairline-soft); box-shadow: var(--shadow); padding: 18px 20px; color: var(--ink);
    transition: transform .22s var(--ease); }
.guide-card:hover { transform: translateY(-2px); color: var(--ink); }
.guide-card .g-cat { color: var(--accent); font-size: .7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .08em; }
.guide-card h3 { margin: 7px 0 7px; font-size: 1rem; }
.guide-card p { color: var(--muted); font-size: .86rem; margin: 0; }

/* ============================= STATIC / MISC ============================= */
.error-hero { text-align: center; padding: 70px 20px 28px; }
.error-hero .code { font-size: 5.5rem; font-weight: 200; color: var(--accent); line-height: 1;
    letter-spacing: -.04em; }
.error-hero h1 { font-size: 1.5rem; }

.sitemap-cols { columns: 3 240px; column-gap: 26px; }
.sitemap-cols h2 { break-after: avoid; font-size: 1.05rem; }
.sitemap-cols h3 { break-after: avoid; font-size: .92rem; margin: 14px 0 4px; }
.sitemap-cols ul { margin: 0 0 18px; padding-left: 18px; break-inside: avoid-column; }
.sitemap-cols li { padding: 2px 0; font-size: .9rem; }

/* ============================= MOBILE ERGONOMICS ============================= */
@media (max-width: 640px) {
    .pill-links a { padding: 10px 16px; }
    .city-subnav a { padding: 11px 18px; }
    .hero-quick a { padding: 9px 14px; font-size: .88rem; }
    .link-columns a { padding: 8px 0; }
    .footer-col li { padding: 6px 0; }
    .footer-links { gap: 14px 22px; }
    .footer-links a, .mobile-popular a { padding: 6px 2px; display: inline-block; }
    .footer-col a { display: inline-block; padding: 5px 0; }
    .sitemap-cols li { padding: 6px 0; }
    .rank-list li { padding: 10px 2px; }
    .search-results a { padding: 13px 16px; }
    /* iOS zooms inputs under 16px on focus - keep phone inputs at 16px. */
    #city-search, #hero-search-input { font-size: 16px; }
    .header-inner { gap: 10px; padding: 10px 14px; }
    #city-search { padding: 9px 12px 9px 34px; }
    .header-search .search-glyph { left: 11px; }
    /* The pill can get narrow on phones - let its results span the viewport. */
    .header-search .search-results { position: fixed; left: 12px; right: 12px;
        top: 64px; }
    .conv-field input { font-size: 1.3rem; }
    .city-hero { padding: 22px 20px; }
    .card { padding: 17px 17px; }
    .section-title { font-size: 1.3rem; }
}
@media (max-width: 480px) {
    .brand-tld { display: none; }
}

/* ============================= FOOTER (Apple light gray) ============================= */
.site-footer { background: var(--fill); color: var(--muted); margin-top: 48px;
    border-top: 1px solid var(--hairline-soft); font-size: .85rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 22px 26px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 26px; }
.footer-title { color: var(--ink); font-weight: 600; font-size: .85rem; margin-bottom: 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 3px 0; }
.footer-col a { color: #424245; font-size: .83rem; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--hairline); margin-top: 30px; padding-top: 18px;
    display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #424245; font-size: .83rem; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-copy { color: var(--faint); font-size: .78rem; }
