/* 宜昌气象网 (www.ycqxw.cn) — Clean Atmospheric Civic Design */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --navy: #0B3B66;
    --navy-dark: #072644;
    --blue: #1668B2;
    --blue-light: #E8F2FC;
    --teal: #0EA5A4;
    --amber: #D97706;
    --amber-bg: #FEF3C7;
    --red: #DC2626;
    --red-bg: #FEE2E2;
    --green: #059669;
    --green-bg: #D1FAE5;
    --bg: #F3F6FA;
    --surface: #FFFFFF;
    --border: #E2E8F0;
    --text: #1E293B;
    --text-muted: #52637A;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 4px 18px rgba(11, 59, 102, 0.06);
    --shadow-hover: 0 10px 28px rgba(11, 59, 102, 0.12);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img, svg {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover {
    color: var(--navy);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
}

/* Top Utility Bar */
.topbar {
    background: var(--navy-dark);
    color: #CBD5E1;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    gap: 12px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.topbar-left strong {
    color: #FFFFFF;
    font-weight: 600;
}

.topbar-sep {
    opacity: 0.35;
}

.topbar-right a {
    color: #CBD5E1;
    font-size: 12.5px;
}

.topbar-right a:hover {
    color: #FFFFFF;
}

/* Header & Navigation */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 60;
    box-shadow: 0 2px 10px rgba(11, 59, 102, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 70px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo img {
    display: block;
    height: 52px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    color: var(--text);
    font-weight: 600;
    font-size: 14.5px;
    padding: 8px 11px;
    border-radius: 8px;
    white-space: nowrap;
}

.main-nav a:hover {
    background: var(--blue-light);
    color: var(--navy);
}

.main-nav a.active {
    background: var(--navy);
    color: #FFFFFF;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-search {
    display: flex;
    align-items: center;
    background: #F1F5F9;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 6px 3px 12px;
    width: 196px;
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 13px;
    color: var(--text);
    min-width: 0;
}

.header-search button {
    border: none;
    background: var(--blue);
    color: #FFFFFF;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.header-search button:hover {
    background: var(--navy);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
    padding: 0 9px;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--navy);
    border-radius: 2px;
}

.mobile-drawer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 14px 0 18px;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}

.mobile-search button {
    padding: 9px 16px;
    background: var(--navy);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-nav-grid a {
    display: block;
    text-align: center;
    padding: 10px 8px;
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}

.mobile-nav-grid a.active {
    background: var(--navy);
    color: #FFFFFF;
    border-color: var(--navy);
}

/* Mandatory Top Announcement Banner (Directly Under Navigation) */
.announce-bar {
    background: linear-gradient(90deg, #EBF5FF 0%, #F0FDFA 100%);
    border-bottom: 1px solid #CBE4F9;
}

.announce-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding-top: 7px;
    padding-bottom: 7px;
    flex-wrap: wrap;
}

.announce-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--navy);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.announce-text {
    margin: 0;
    font-weight: 700;
    color: var(--navy);
    font-size: 14.5px;
}

.announce-solar {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-muted);
}

/* Hero Weather Section */
.hero-weather {
    background: linear-gradient(135deg, #092B4E 0%, #114D82 54%, #0E6F88 100%);
    color: #FFFFFF;
    padding: 30px 0 34px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
    gap: 24px;
    align-items: stretch;
}

.hero-main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.hero-loc-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.hero-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #E0F2FE;
    font-size: 12.5px;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.hero-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    color: #FFFFFF;
}

.hero-update {
    font-size: 12.5px;
    color: #BAE6FD;
    white-space: nowrap;
}

.hero-temp-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0 18px;
    flex-wrap: wrap;
}

.hero-temp-value {
    font-size: 62px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.hero-temp-value span {
    font-size: 26px;
    font-weight: 600;
    vertical-align: super;
    margin-left: 2px;
}

.hero-cond-text {
    font-size: 22px;
    font-weight: 700;
}

.hero-cond-range {
    font-size: 14px;
    color: #DBEAFE;
    margin-top: 3px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.hero-metrics.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
    margin-bottom: 0;
}

.metric-item {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 10px 13px;
}

.metric-label {
    display: block;
    font-size: 12px;
    color: #BAE6FD;
}

.metric-val {
    display: block;
    font-size: 15px;
    color: #FFFFFF;
    margin-top: 2px;
}

.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-forecast-card {
    background: rgba(255, 255, 255, 0.97);
    color: var(--text);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: 0 12px 32px rgba(7, 38, 68, 0.22);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.card-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

.card-head-row h2 {
    margin: 0;
    font-size: 17px;
    color: var(--navy);
}

.chart-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.temp-chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.seven-day-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
}

.day-pill {
    text-align: center;
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 4px;
}

.day-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy);
}

.day-date {
    font-size: 11px;
    color: var(--text-muted);
}

.day-ico {
    margin: 4px 0;
    display: flex;
    justify-content: center;
}

.day-cond {
    font-size: 11.5px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day-rain {
    font-size: 11px;
    color: var(--blue);
    margin-top: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-sm {
    padding: 7px 12px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-light {
    background: #FFFFFF;
    color: var(--navy);
}

.btn-light:hover {
    background: #E0F2FE;
    color: var(--navy-dark);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
}

.btn-primary {
    background: var(--navy);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--blue);
    color: #FFFFFF;
}

.btn-primary-outline {
    background: transparent;
    color: var(--navy);
    border-color: #BDD3E9;
}

.btn-primary-outline:hover {
    background: var(--navy);
    color: #FFFFFF;
    border-color: var(--navy);
}

/* Sections */
.section {
    padding: 40px 0;
}

.section-compact {
    padding: 20px 0 8px;
}

.section-alt {
    background: #EAF0F7;
}

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

.section-title {
    margin: 0;
    font-size: 22px;
    color: var(--navy);
    line-height: 1.3;
}

.section-sub {
    margin: 5px 0 0;
    font-size: 14px;
    color: var(--text-muted);
}

.link-more {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

/* Life Indices */
.indices-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.indices-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.index-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 15px;
    box-shadow: var(--shadow);
}

.index-title {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.index-level {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--navy);
    margin: 3px 0 6px;
}

.index-desc {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Advisories */
.advisory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.advisory-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--blue);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.advisory-card.level-yellow { border-top-color: var(--amber); }
.advisory-card.level-blue { border-top-color: var(--blue); }
.advisory-card.level-green { border-top-color: var(--green); }

.adv-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.adv-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.badge-yellow { background: var(--amber-bg); color: #92400E; }
.badge-blue { background: var(--blue-light); color: var(--navy); }
.badge-green { background: var(--green-bg); color: #065F46; }

.adv-window {
    font-size: 12px;
    color: var(--text-muted);
}

.adv-title {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--navy);
    line-height: 1.4;
}

.adv-areas {
    font-size: 13px;
    color: var(--text);
    background: #F8FAFC;
    padding: 6px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.adv-guidance {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

/* 13 Districts Grid */
.districts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.district-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 15px 16px;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.district-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #93C5FD;
    color: var(--text);
}

.dc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dc-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
}

.dc-elev {
    font-size: 12px;
    color: var(--text-muted);
}

.dc-body {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 10px 0 8px;
}

.dc-temp {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.dc-cond {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
}

.dc-foot {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-muted);
    border-top: 1px dashed var(--border);
    padding-top: 8px;
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.split-main, .split-side {
    min-width: 0;
}

.scenic-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.scenic-mini-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.smc-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.smc-top h3 {
    margin: 0;
    font-size: 16px;
}

.smc-top h3 a {
    color: var(--navy);
}

.smc-loc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.smc-temp-box {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.smc-temp-box strong {
    font-size: 20px;
    color: var(--navy);
}

.smc-tip {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

/* Tool Widget */
.tool-widget, .card-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.widget-badge {
    display: inline-block;
    background: var(--blue-light);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.tool-widget h3 {
    margin: 0 0 6px;
    font-size: 19px;
    color: var(--navy);
}

.widget-desc {
    margin: 0 0 14px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.calc-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin: 10px 0 4px;
}

.calc-form select,
.calc-form input {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    background: #FFFFFF;
}

.calc-result {
    margin: 14px 0;
    background: linear-gradient(135deg, #EFF6FF 0%, #F0FDFA 100%);
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    padding: 12px 14px;
}

.calc-res-main {
    font-size: 15px;
    color: var(--navy);
}

.calc-res-main strong {
    font-size: 20px;
    color: var(--blue);
}

.calc-res-tip {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Articles & Editorial */
.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-pill {
    padding: 5px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}

.cat-pill:hover {
    background: var(--navy);
    color: #FFFFFF;
    border-color: var(--navy);
}

.articles-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.art-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.art-cat-tag {
    display: inline-block;
    background: var(--blue-light);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
}

.art-cat-tag.sm {
    font-size: 11.5px;
    padding: 2px 8px;
}

.art-date {
    font-size: 12.5px;
    color: var(--text-muted);
}

.art-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.4;
}

.art-title a {
    color: var(--navy);
}

.art-title a:hover {
    color: var(--blue);
}

.art-summary {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--text-muted);
}

.art-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid #F1F5F9;
    padding-top: 10px;
    flex-wrap: wrap;
}

.art-read-more {
    font-weight: 700;
}

.latest-list-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.sub-box-title {
    margin: 0 0 16px;
    font-size: 17px;
    color: var(--navy);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.latest-item h4 {
    margin: 6px 0;
    font-size: 15.5px;
    line-height: 1.42;
}

.latest-item h4 a {
    color: var(--navy);
}

.latest-item p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

.latest-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Subpages Banner */
.page-banner {
    background: linear-gradient(135deg, #EFF6FF 0%, #E6F4F1 100%);
    border-bottom: 1px solid #D4E4F4;
    padding: 28px 0;
}

.page-banner.banner-deep {
    background: linear-gradient(135deg, #092B4E 0%, #114D82 60%, #0E6F88 100%);
    color: #FFFFFF;
    border-bottom: none;
}

.page-banner.banner-alert {
    background: linear-gradient(135deg, #7C2D12 0%, #B45309 60%, #0B3B66 100%);
    color: #FFFFFF;
    border-bottom: none;
}

.page-banner.banner-compact {
    padding: 14px 0;
}

.page-banner h1 {
    margin: 6px 0 8px;
    font-size: 28px;
    line-height: 1.3;
    color: var(--navy);
}

.page-banner.banner-deep h1,
.page-banner.banner-alert h1 {
    color: #FFFFFF;
}

.page-banner p {
    margin: 0;
    max-width: 820px;
    color: var(--text-muted);
}

.page-banner.banner-deep p,
.page-banner.banner-alert p {
    color: #E0F2FE;
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb.light, .breadcrumb.light a {
    color: #BAE6FD;
}

/* District Detail & Full Pages */
.districts-full-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.district-rich-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
}

.drc-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.drc-type {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    background: var(--blue-light);
    color: var(--navy);
    padding: 2px 8px;
    border-radius: 6px;
}

.drc-top h2 {
    margin: 4px 0 2px;
    font-size: 20px;
}

.drc-top h2 a {
    color: var(--navy);
}

.drc-tag {
    font-size: 12.5px;
    color: var(--text-muted);
}

.drc-weather {
    text-align: center;
    flex-shrink: 0;
}

.drc-temp {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
}

.drc-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
    padding: 9px 12px;
    background: #F8FAFC;
    border-radius: 8px;
    font-size: 13px;
}

.drc-summary {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.detail-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.detail-hero-temp {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 14px 20px;
    border-radius: var(--radius);
}

.dht-val {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.dht-sub {
    font-size: 14px;
    color: #E0F2FE;
    margin-top: 4px;
}

/* Hourly Strip */
.hourly-strip {
    display: grid;
    grid-template-columns: repeat(12, minmax(74px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.hour-card {
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
}

.hc-time { font-size: 12px; font-weight: 700; color: var(--navy); }
.hc-ico { margin: 5px 0; display: flex; justify-content: center; }
.hc-temp { font-size: 16px; font-weight: 800; color: var(--text); }
.hc-label { font-size: 11.5px; color: var(--text-muted); }
.hc-rain { font-size: 11px; color: var(--blue); margin-top: 2px; }

/* Tables */
.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--surface);
}

.data-table th, .data-table td {
    padding: 11px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table th {
    background: #F1F5F9;
    color: var(--navy);
    font-weight: 700;
}

.table-link {
    font-weight: 700;
    color: var(--navy);
}

.td-ico {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Alerts Handbook */
.guide-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.guide-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.guide-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.guide-head h3 {
    margin: 0;
    font-size: 19px;
    color: var(--navy);
}

.guide-season {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-light);
    padding: 3px 10px;
    border-radius: 999px;
}

.guide-area {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.levels-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.level-box {
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 4px solid var(--blue);
    background: #F8FAFC;
}

.level-box.lv-blue { border-left-color: #2563EB; background: #EFF6FF; }
.level-box.lv-yellow { border-left-color: #D97706; background: #FFFBEB; }
.level-box.lv-orange { border-left-color: #EA580C; background: #FFF7ED; }
.level-box.lv-red { border-left-color: #DC2626; background: #FEF2F2; }

.lv-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 4px;
}

.level-box p {
    margin: 0;
    font-size: 13px;
    color: var(--text);
}

.guide-actions .ga-title {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.guide-actions ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text);
    font-size: 14px;
}

.guide-actions li {
    margin-bottom: 5px;
}

/* Scenic Full Page */
.scenic-full-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.scenic-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.sc-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.suit-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
}

.suit-good { background: var(--green-bg); color: #065F46; }
.suit-mid { background: var(--amber-bg); color: #92400E; }
.suit-warn { background: var(--red-bg); color: #991B1B; }

.sc-head h2 {
    margin: 6px 0 2px;
    font-size: 20px;
    color: var(--navy);
}

.sc-sub {
    font-size: 13px;
    color: var(--text-muted);
}

.sc-now {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sc-temp {
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
}

.sc-cond {
    font-size: 13px;
    color: var(--blue);
    font-weight: 600;
}

.sc-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 12px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.sc-3day {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.sc-day {
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    font-size: 12.5px;
    text-align: center;
}

.sc-day strong { color: var(--navy); margin: 2px 0; }
.sc-day .muted { color: var(--blue); font-size: 11.5px; }

.sc-body p {
    margin: 0 0 8px;
    font-size: 13.5px;
}

.sc-risk {
    background: #FFFBEB;
    border-left: 3px solid var(--amber);
    padding: 7px 10px;
    border-radius: 6px;
}

.sc-foot {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #F1F5F9;
}

/* Article List & Detail */
.article-list-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-row-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.article-row-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.38;
}

.article-row-card h2 a {
    color: var(--navy);
}

.article-row-card p {
    margin: 0 0 12px;
    color: var(--text-muted);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-chip {
    display: inline-block;
    font-size: 12px;
    color: var(--text-muted);
    background: #F1F5F9;
    padding: 2px 9px;
    border-radius: 999px;
}

.article-detail-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 30px;
    box-shadow: var(--shadow);
}

.ad-header h1 {
    margin: 12px 0 10px;
    font-size: 26px;
    line-height: 1.35;
    color: var(--navy);
}

.ad-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.ad-lead {
    margin: 18px 0;
    background: #F0F7FF;
    border-left: 4px solid var(--blue);
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14.5px;
    color: var(--text);
}

.ad-content {
    font-size: 15.5px;
    line-height: 1.82;
    color: #1E293B;
}

.ad-content h2 {
    margin: 26px 0 10px;
    font-size: 19px;
    color: var(--navy);
    padding-left: 10px;
    border-left: 4px solid var(--teal);
}

.ad-content ul, .ad-content ol {
    padding-left: 22px;
}

.ad-content li {
    margin-bottom: 8px;
}

.ad-tags {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.ad-disclaimer {
    margin-top: 18px;
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-pager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.pager-link {
    display: block;
    padding: 12px 14px;
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.pager-link span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.pager-link strong {
    display: block;
    margin-top: 3px;
    font-size: 14px;
    color: var(--navy);
}

.pager-link.next {
    text-align: right;
}

/* Sidebar Widgets */
.panel-title {
    margin: 0 0 12px;
    font-size: 17px;
    color: var(--navy);
}

.side-text {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.side-nav-list, .related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-nav-list li a {
    display: flex;
    justify-content: space-between;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}

.side-nav-list li a:hover,
.side-nav-list li a.active {
    background: var(--blue-light);
    color: var(--navy);
}

.related-list li {
    padding: 9px 0;
    border-bottom: 1px dashed var(--border);
}

.related-list li:last-child {
    border-bottom: none;
}

.related-list li a {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
}

.related-list li span {
    font-size: 12px;
    color: var(--text-muted);
}

.district-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.district-chip {
    display: inline-block;
    padding: 5px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #F8FAFC;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

.district-chip:hover,
.district-chip.active {
    background: var(--navy);
    color: #FFFFFF;
    border-color: var(--navy);
}

/* Tools & Search & About & 404 */
.tools-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.inline-search-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin-top: 14px;
}

.inline-search-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 9px;
    font-size: 14.5px;
}

.search-summary {
    margin: 0 0 18px;
    font-size: 15px;
}

.prose-card h2 {
    margin: 20px 0 10px;
    font-size: 20px;
    color: var(--navy);
}

.prose-card h2:first-child {
    margin-top: 0;
}

.notfound-card {
    text-align: center;
    padding: 46px 24px;
}

.nf-code {
    font-size: 64px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
}

.nf-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

/* Footer */
.site-footer {
    background: var(--navy-dark);
    color: #CBD5E1;
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 0.9fr;
    gap: 28px;
    padding: 40px 18px 30px;
}

.footer-title {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.footer-desc {
    margin: 0 0 10px;
    font-size: 13.5px;
    line-height: 1.7;
}

.footer-note {
    margin: 0;
    font-size: 12.5px;
    color: #94A3B8;
}

.footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 7px;
}

.footer-links a {
    color: #CBD5E1;
    font-size: 13.5px;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    font-size: 13px;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;
}

.footer-bottom a {
    color: #E0F2FE;
}

.footer-bottom a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Spacing Utilities */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* Responsive Breakpoints (Strict 375px zero-overflow safety) */
@media (max-width: 1080px) {
    .main-nav a { padding: 7px 8px; font-size: 13.5px; }
    .header-search { width: 160px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .indices-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .districts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .split-layout { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hide-md { display: none; }
}

@media (max-width: 860px) {
    .main-nav, .header-search { display: none; }
    .mobile-menu-btn { display: inline-flex; }
    .advisory-grid,
    .articles-featured-grid,
    .latest-grid,
    .districts-full-grid,
    .scenic-full-grid,
    .scenic-mini-grid,
    .tools-two-col {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-metrics.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .seven-day-strip {
        grid-template-columns: repeat(7, minmax(72px, 1fr));
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .article-detail-card {
        padding: 20px 16px;
    }
    .article-pager {
        grid-template-columns: minmax(0, 1fr);
    }
    .pager-link.next {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .container { padding: 0 14px; }
    .hide-sm { display: none; }
    .brand-logo img { height: 42px; }
    .header-inner { min-height: 60px; }
    .hero-weather { padding: 20px 0 24px; }
    .hero-title { font-size: 20px; }
    .hero-temp-value { font-size: 48px; }
    .hero-forecast-card { padding: 14px; }
    .hero-quick-links .btn { flex: 1 1 auto; font-size: 13px; padding: 8px 10px; }
    .page-banner h1 { font-size: 22px; }
    .indices-grid,
    .indices-grid.two-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .index-card { padding: 12px; }
    .districts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .district-card { padding: 12px; }
    .dc-temp { font-size: 24px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); padding: 28px 14px 20px; }
    .inline-search-form { flex-direction: column; }
    .ad-header h1 { font-size: 21px; }
}
