/* Breaking News Nation — a readable, responsive American newsroom. */
:root {
  --navy: #132c45;
  --red: #b72e38;
  --paper: #f7f5ef;
  --ink: #202a35;
  --muted: #63717d;
  --line: #dce0e1;
  --white: #fff;
  --soft-blue: #eaf0f4;
  --soft-red: #fbefef;
  --green: #23704c;
  --radius: 8px;
  --shadow: 0 10px 32px rgb(19 44 69 / 7%);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.6 var(--sans); }
body, input, button, select, textarea { -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img, svg, video, canvas { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--navy); text-underline-offset: .2em; }
a:hover { color: var(--red); }
a, button { transition: color .16s ease, background-color .16s ease, border-color .16s ease; }
:focus-visible { outline: 3px solid #477baf; outline-offset: 3px; }
::selection { background: #ecd9d9; color: #182c43; }
h1, h2, h3, h4 { color: var(--navy); font-family: var(--serif); line-height: 1.16; margin: 0 0 .65em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 2.5vw, 2.2rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.13rem; }
p { margin: 0 0 1em; }
ul, ol { margin: .7rem 0 1.2rem; padding-left: 1.35rem; }
li + li { margin-top: .35rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.7rem 0; }
small { font-size: .82rem; }
strong { font-weight: 700; }
main { min-height: 48vh; padding-bottom: 3rem; }
main > .container { padding-top: 2rem; }
.container { width: min(1280px, calc(100% - 56px)); margin-inline: auto; }
.container > :first-child { margin-top: 0; }
.container > :last-child { margin-bottom: 0; }

/* Masthead and navigation */
.site-header { background: var(--white); }
.topline { background: var(--navy); color: #e6edf2; font-size: .7rem; line-height: 1.45; letter-spacing: .07em; }
.topline .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .55rem; }
.topline a { color: #fff; text-decoration: none; }
.topline a:hover { text-decoration: underline; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 116px; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 1; min-width: 0; }
.brand img { display: block; width: 340px; max-width: 100%; max-height: 88px; object-fit: contain; object-position: left center; }
.brand:has(img) { line-height: 0; }
.brand span { color: var(--navy); font: 800 1.9rem/.96 var(--serif); max-width: 280px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; font-size: .82rem; }
.header-actions > a:not(.button) { text-decoration: none; font-weight: 600; }
.nav { position: relative; border-top: 1px solid var(--line); border-bottom: 3px solid var(--navy); background: #fff; z-index: 20; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.6rem; padding-block: 0; margin-block: 0; list-style: none; }
.nav-links > a, .nav-links > li > a, .more-nav > summary { display: block; padding-block: .87rem; font-size: .77rem; font-weight: 750; color: var(--navy); text-decoration: none; white-space: nowrap; }
.nav-links > a:hover, .nav-links > li > a:hover, .more-nav > summary:hover { color: var(--red); }
.nav-links > .active, .nav-links > a[aria-current="page"], .nav-links > li > a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px var(--red); }
.nav-links > li { margin: 0; }
.more-nav { position: relative; margin-left: auto; }
.more-nav > summary { cursor: pointer; list-style: none; }
.more-nav > summary::-webkit-details-marker { display: none; }
.more-nav > summary::after { content: "⌄"; margin-left: .5rem; font-size: 1rem; line-height: .8; }
.more-nav[open] > summary { color: var(--red); }
.menu-panel { position: absolute; z-index: 30; right: 0; top: calc(100% + 3px); display: grid; min-width: 250px; max-width: min(380px, calc(100vw - 32px)); padding: .6rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }
.menu-panel a { display: block; padding: .55rem .7rem; color: var(--navy); text-decoration: none; border-radius: 4px; font-size: .85rem; }
.menu-panel a:hover { background: var(--soft-blue); color: var(--red); }

/* Reusable actions and editorial headings */
.button, button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; padding: .62rem 1.05rem; color: #fff; background: var(--red); border: 1px solid var(--red); border-radius: 5px; font-size: .84rem; line-height: 1.35; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover, button[type="submit"]:hover { color: #fff; background: #90232d; border-color: #90232d; }
.button.secondary { color: var(--navy); background: #fff; border-color: #b5c0c9; }
.button.secondary:hover { background: var(--soft-blue); border-color: var(--navy); }
.button.ghost { background: transparent; border-color: transparent; color: var(--navy); }
.button.ghost:hover { background: var(--soft-blue); }
.button.danger { background: #a22833; border-color: #a22833; }
.button.small { min-height: 34px; padding: .4rem .75rem; font-size: .77rem; }
.button:disabled, button:disabled, .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.eyebrow, .issue-label { display: inline-block; color: var(--red); font-size: .67rem; line-height: 1.4; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; }
.issue-label { color: var(--muted); padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: .85rem; margin: 2.3rem 0 1.1rem; border-top: 3px solid var(--navy); }
.section-heading h2, .section-heading h3 { margin: 0; }
.section-heading a { font-size: .78rem; font-weight: 700; text-decoration: none; }
.section-heading p { margin: 0; color: var(--muted); font-size: .8rem; }

/* The front page */
.hero { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); gap: 2.4rem; align-items: start; padding: .8rem 0 1.9rem; border-bottom: 1px solid var(--line); }
.hero-copy { min-width: 0; }
.hero-copy h1 { max-width: 850px; }
.hero-copy > p:not(.eyebrow):not(.issue-label) { max-width: 700px; color: var(--muted); font-size: 1.04rem; line-height: 1.7; }
.hero-copy > .button { margin-top: .2rem; }
.hero-aside { display: grid; gap: 1rem; padding-left: 1.8rem; border-left: 1px solid var(--line); min-width: 0; }
.hero-aside .card h3, .hero-aside .panel h3 { font-size: 1.35rem; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.story-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.story-card > a:first-child { display: block; text-decoration: none; }
.story-image { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; overflow: hidden; background: var(--soft-blue); }
.story-image img { display: block; width: 100%; height: 100%; aspect-ratio: inherit; object-fit: cover; }
.story-content { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 1.25rem; }
.story-content .eyebrow { margin-bottom: .6rem; }
.story-content h2, .story-content h3 { font-size: 1.5rem; line-height: 1.22; }
.story-content h2 a, .story-content h3 a { color: inherit; text-decoration: none; }
.story-content h2 a:hover, .story-content h3 a:hover { color: var(--red); }
.story-content > p { color: var(--muted); font-size: .87rem; line-height: 1.65; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin-top: auto; padding-top: .65rem; color: var(--muted); font-size: .71rem; line-height: 1.5; }
.story-meta a { color: inherit; }
.lead-story { grid-column: span 2; }
.lead-story .story-image { aspect-ratio: 2 / 1; }
.lead-story .story-content h2, .lead-story .story-content h3 { font-size: clamp(1.65rem, 2.6vw, 2.45rem); }
.hero .lead-story { grid-column: auto; }
.editorial-art { position: relative; display: grid; place-items: center; min-height: 190px; overflow: hidden; padding: 2rem; color: #fff; background: linear-gradient(150deg, var(--navy) 0 57%, #1f415f 57% 70%, var(--red) 70% 76%, #e9e5db 76% 83%, var(--red) 83%); font: 700 clamp(1.7rem, 3vw, 2.8rem)/1.12 var(--serif); letter-spacing: -.035em; text-align: center; }
.editorial-art::before { content: "★"; position: absolute; left: 7%; top: 7%; color: rgb(255 255 255 / 12%); font-size: 7rem; line-height: 1; }
.editorial-art > * { position: relative; }
.sample-guide { padding: .85rem 1rem; margin-bottom: 1.3rem; background: #f0eee6; border: 1px solid #dcd8c9; border-radius: 5px; font-size: .8rem; color: #626151; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.category-tile { display: block; padding: 1.15rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 5px; text-decoration: none; }
.category-tile:hover { border-top-color: var(--red); background: #fcfbf8; }
.category-tile h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.category-tile p { margin-bottom: 0; color: var(--muted); font-size: .8rem; }

/* Alternate layouts keep the same content and placement contracts. */
.layout-magazine .news-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.layout-magazine .news-grid .lead-story { grid-column: span 2; grid-row: span 2; }
.layout-magazine .news-grid .lead-story .story-image { aspect-ratio: 1.2; }
.layout-magazine .news-grid .story-card:not(.lead-story) .story-content h2,
.layout-magazine .news-grid .story-card:not(.lead-story) .story-content h3 { font-size: 1.2rem; }
.layout-magazine .news-grid .story-card:not(.lead-story) .story-image { aspect-ratio: 1.7; }
.layout-compact .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.layout-compact .news-grid .story-card { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(0, 1.6fr); }
.layout-compact .news-grid .lead-story { grid-column: auto; }
.layout-compact .news-grid .story-image { height: 100%; min-height: 180px; aspect-ratio: auto; }
.layout-compact .news-grid .story-image img { height: 100%; aspect-ratio: auto; }
.layout-compact .news-grid .story-content { padding: 1rem; }
.layout-compact .news-grid .story-content h2, .layout-compact .news-grid .story-content h3 { font-size: 1.24rem; }
.layout-compact .news-grid .story-content > p { font-size: .8rem; }

/* Utility cards, weather, and the single advertisement strip. */
.card, .panel { min-width: 0; padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card > :last-child, .panel > :last-child { margin-bottom: 0; }
.panel { box-shadow: var(--shadow); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 1.5rem; align-items: start; }
.sidebar { min-width: 0; display: grid; gap: 1rem; }
.stack { display: grid; gap: 1rem; min-width: 0; }
.stack > * { margin-block: 0; }
.weather-glance { padding: 1.35rem; color: var(--navy); background: linear-gradient(120deg, #edf3f6, #f8fafb); border: 1px solid #d7e1e8; border-top: 3px solid var(--navy); border-radius: var(--radius); }
.weather-glance h2, .weather-glance h3 { margin-bottom: .45rem; }
.weather-glance .temperature { font: 500 3.2rem/1.1 var(--serif); letter-spacing: -.06em; margin-block: .7rem; }
.weather-glance .weather-main { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.weather-glance .weather-details { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .8rem; }
.weather-glance small, .weather-glance .helptext { color: #526878; }
.location-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.location-form > label, .location-form > .field { flex: 1 1 110px; margin: 0; }
.location-form > input { width: 120px; flex: 1 1 100px; }
.location-form button { flex: 0 0 auto; }
.location-form .helptext { flex-basis: 100%; }
.ad-strip { width: min(1280px, calc(100% - 56px)); margin: 1.2rem auto 0; position: relative; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.ad-strip > a { display: flex; align-items: center; justify-content: center; gap: 1.1rem; text-decoration: none; color: inherit; }
.ad-label { display: block; padding: .25rem .65rem; background: #f2f3f2; color: var(--muted); font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; text-align: center; }
.ad-creative { display: block; width: 100%; max-height: 180px; object-fit: contain; }
.ad-copy { padding: 1rem 1.35rem; font-size: .85rem; }
.ad-copy > :last-child { margin-bottom: 0; }
.forecast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; }
.forecast-card { min-width: 0; padding: 1.15rem .9rem; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.forecast-card h3 { font: 700 .88rem/1.35 var(--sans); letter-spacing: 0; }
.forecast-card img { width: 55px; height: 55px; object-fit: contain; border-radius: 6px; }
.forecast-card .temperature { font: 600 1.8rem/1.3 var(--serif); color: var(--navy); }
.forecast-card p { color: var(--muted); font-size: .77rem; }
.alert-card { padding: 1rem 1.25rem; margin-block: 1rem; color: #71242a; background: var(--soft-red); border: 1px solid #e9c5c8; border-left: 4px solid var(--red); border-radius: 5px; }
.alert-card h3 { color: #71242a; font-size: 1.2rem; }
.alert-card > :last-child { margin-bottom: 0; }

/* Newsletter and footer */
.newsletter-band { margin-top: 2.7rem; padding: 2.4rem; color: #eef4f7; background: #244760; border-radius: var(--radius); position: relative; overflow: hidden; }
.newsletter-band::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--red); }
.newsletter-band h2, .newsletter-band h3, .newsletter-band label { color: #fff; }
.newsletter-band .eyebrow { color: #dfb7b9; }
.newsletter-band p { max-width: 720px; color: #d9e5ec; }
.newsletter-band a:not(.button) { color: #fff; }
.newsletter-band .helptext { color: #cedce5; }
.newsletter-band .form-grid { align-items: end; }
.newsletter-band .button.secondary { border-color: #fff; }
.site-footer { padding: 2.8rem 0 0; background: var(--navy); border-top: 5px solid var(--red); color: #d5dfe7; font-size: .82rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-grid h3, .footer-grid h4 { color: #fff; font: 750 .78rem/1.4 var(--sans); letter-spacing: .05em; text-transform: uppercase; margin-bottom: .8rem; }
.footer-grid p { max-width: 350px; color: #aebfcd; line-height: 1.75; }
.footer-grid a { display: block; width: fit-content; color: #d5dfe7; text-decoration: none; margin-bottom: .45rem; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-grid .brand { background: #fff; padding: .5rem .7rem; max-width: 265px; border-radius: 3px; margin-bottom: 1rem; }
.footer-grid .brand img { max-height: 67px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; padding-block: 1.15rem; border-top: 1px solid rgb(255 255 255 / 16%); color: #adbdca; font-size: .72rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #dce6ed; }

/* Forms and secure account screens */
.form-page { width: min(860px, 100%); margin-inline: auto; padding-block: 1.1rem; }
.form-page > h1 { font-size: clamp(2rem, 3.3vw, 2.7rem); }
.form-card { padding: 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card > :last-child { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.2rem; }
.form-grid > .full-width, .form-grid > .span-full, .form-grid > fieldset { grid-column: 1 / -1; }
.field { min-width: 0; margin-bottom: 1.1rem; }
.form-grid > .field { margin-bottom: 0; }
label { display: block; margin-bottom: .4rem; color: var(--navy); font-size: .83rem; font-weight: 650; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), select, textarea { display: block; width: 100%; max-width: 100%; min-height: 44px; padding: .66rem .8rem; color: var(--ink); background: #fff; border: 1px solid #b7c3cc; border-radius: 5px; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: #86909a; opacity: 1; }
input:focus, textarea:focus, select:focus { border-color: #3c6689; }
textarea { min-height: 140px; resize: vertical; }
select { padding-right: 1.6rem; }
input[type="file"] { font-size: .81rem; padding: .5rem; }
input[type="file"]::file-selector-button { border: 0; border-radius: 3px; padding: .4rem .65rem; margin-right: .7rem; background: var(--soft-blue); color: var(--navy); cursor: pointer; font: inherit; }
input[type="checkbox"], input[type="radio"] { width: 1.05rem; height: 1.05rem; margin: .15rem .5rem .15rem 0; accent-color: var(--navy); vertical-align: middle; flex: 0 0 auto; cursor: pointer; }
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) { display: flex; align-items: flex-start; gap: .1rem; font-weight: 500; line-height: 1.5; }
label:has(> input[type="checkbox"]) input, label:has(> input[type="radio"]) input { margin-top: .13rem; }
input[type="checkbox"] + label, input[type="radio"] + label { display: inline; }
fieldset { min-width: 0; margin: 1.2rem 0; padding: 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: 5px; }
legend { padding-inline: .45rem; color: var(--navy); font-size: .88rem; font-weight: 750; }
fieldset ul, .field ul { list-style: none; margin: 0; padding: 0; }
fieldset li label { margin-bottom: .5rem; }
.helptext { display: block; margin-top: .4rem; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.helptext ul { padding-left: 1.1rem; list-style: disc; }
.errorlist { padding: 0; margin: .4rem 0 .7rem; list-style: none; color: #a42733; font-size: .8rem; }
.errorlist li { margin: 0; }
.messages { display: grid; gap: .7rem; padding: 0; list-style: none; margin-block: 1.2rem; }
.notice, .messages > li { padding: .9rem 1.1rem; background: var(--soft-blue); border: 1px solid #d0dde6; border-left: 4px solid var(--navy); border-radius: 5px; color: #254963; font-size: .84rem; }
.notice.error, .messages > .error { background: var(--soft-red); border-color: #ebc5c8; border-left-color: var(--red); color: #822e35; }
.notice.success, .messages > .success { background: #eef6f1; border-color: #cce1d4; border-left-color: var(--green); color: #286448; }
.notice > :last-child { margin-bottom: 0; }
.auth-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); width: min(970px, 100%); margin: 1rem auto; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.auth-layout > :first-child:not(.form-card) { padding: 2.5rem; color: #e1eaf0; background: var(--navy); }
.auth-layout > :first-child:not(.form-card) h1, .auth-layout > :first-child:not(.form-card) h2, .auth-layout > :first-child:not(.form-card) h3 { color: #fff; }
.auth-layout > :first-child:not(.form-card) .eyebrow { color: #e4b1b6; }
.auth-layout .form-card { border: 0; border-radius: 0; box-shadow: none; padding: 2.5rem; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 3.5rem !important; }
.password-toggle { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 46px; min-height: 44px; height: 100%; padding: .45rem; color: var(--navy); border: 0; border-radius: 0 5px 5px 0; background: transparent; font-size: .76rem; }
.password-toggle:hover { background: var(--soft-blue); }
.password-toggle svg { width: 20px; height: 20px; }
.qr-code { display: block; width: 230px; max-width: 100%; margin: 1.4rem auto; padding: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.qr-code img, img.qr-code { image-rendering: auto; }
.code-box { display: block; padding: 1rem; background: #f2f4f5; border: 1px solid var(--line); border-radius: 5px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: .83rem/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.feature-list { padding-left: 1.15rem; color: var(--muted); font-size: .88rem; }
.auth-layout .feature-list { color: #c4d5e2; }
.step-list { padding-left: 1.3rem; }
.step-list > li { padding-left: .4rem; margin-top: .9rem; }
.step-list > li::marker { color: var(--red); font-weight: 750; }
.privacy-choice { display: flex; align-items: flex-start; gap: .8rem; padding: 1.2rem; margin-block: .85rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.privacy-choice label { margin: 0; }
.privacy-choice p { margin: .25rem 0 0; color: var(--muted); font-size: .82rem; }

/* Advertiser account, campaign data, and support. */
.dashboard-header { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; margin-bottom: 1.6rem; }
.dashboard-header h1 { font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: .3rem; }
.dashboard-header p { color: var(--muted); margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-block: 1.5rem; }
.stat-card { min-width: 0; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 6px; }
.stat-card > span:first-child, .stat-card > p:first-child, .stat-card dt { display: block; color: var(--muted); font-size: .76rem; margin-bottom: .65rem; }
.stat-card > strong, .stat-card .value, .stat-card dd { display: block; margin: 0; font: 600 2.15rem/1.15 var(--serif); letter-spacing: -.035em; color: var(--navy); overflow-wrap: anywhere; }
.stat-card small { display: block; color: var(--muted); font-size: .71rem; margin-top: .55rem; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; -webkit-overflow-scrolling: touch; }
.data-table, table { width: 100%; border-collapse: collapse; font-size: .82rem; text-align: left; }
th { padding: .85rem 1rem; color: var(--muted); background: #f0f3f5; font-size: .68rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
td { padding: 1rem; border-top: 1px solid var(--line); vertical-align: middle; }
td a:not(.button) { font-weight: 650; text-decoration: none; }
td small { display: block; color: var(--muted); font-size: .73rem; }
td .button { white-space: nowrap; }
tbody tr:hover { background: #fbfcfc; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-block: 1rem; }
.toolbar form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.toolbar input, .toolbar select { width: auto !important; max-width: 100%; }
.tabs { display: flex; gap: 1.5rem; overflow-x: auto; border-bottom: 1px solid #cdd5dc; margin-bottom: 1.5rem; padding-bottom: 0; }
.tabs a { display: block; padding: .65rem 0 .8rem; text-decoration: none; color: var(--muted); font-size: .83rem; font-weight: 650; white-space: nowrap; }
.tabs a.active, .tabs a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px var(--red); }
.badge { display: inline-flex; align-items: center; padding: .22rem .6rem; color: #466076; background: var(--soft-blue); border-radius: 20px; font-size: .67rem; line-height: 1.45; font-weight: 700; white-space: nowrap; }
.badge.active, .badge.approved, .badge.paid, .badge.resolved { color: #266548; background: #e4f1e9; }
.badge.pending, .badge.open { color: #806424; background: #f7efd8; }
.badge.paused, .badge.closed { color: #5f6973; background: #eceff1; }
.badge.rejected, .badge.failed { color: #923a42; background: #f8e7e9; }
.ticket-thread { display: grid; gap: 1rem; margin-block: 1.5rem; }
.ticket-message { min-width: 0; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow-wrap: anywhere; }
.ticket-message.staff { background: #edf3f7; border-color: #d2dfe8; border-left: 3px solid var(--navy); }
.ticket-message header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; color: var(--muted); font-size: .75rem; }
.ticket-message header strong { color: var(--navy); }
.ticket-message img { display: block; max-height: 320px; object-fit: contain; margin-block: .8rem; }
.ticket-message > :last-child { margin-bottom: 0; }
.progress { height: 8px; overflow: hidden; background: #e8edf1; border-radius: 10px; }
.progress > span, .progress > div { display: block; height: 100%; background: var(--navy); border-radius: inherit; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .7rem; margin: 2rem 0; font-size: .84rem; }
.pagination a { display: inline-flex; min-height: 38px; min-width: 38px; align-items: center; justify-content: center; padding: .4rem .75rem; border: 1px solid var(--line); background: #fff; border-radius: 4px; text-decoration: none; }

/* Reading view */
.article-layout { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(245px, 1fr); gap: 3rem; align-items: start; }
.article-header { padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.article-header h1 { max-width: 950px; font-size: clamp(2.1rem, 4.2vw, 3.7rem); line-height: 1.07; }
.article-header > p:not(.eyebrow):not(.story-meta) { color: var(--muted); font-size: 1.13rem; line-height: 1.65; }
.article-header .story-meta { padding-top: .4rem; }
.article-body { min-width: 0; max-width: 790px; font: 1.12rem/1.85 var(--serif); overflow-wrap: break-word; }
.article-body p { margin-bottom: 1.35rem; }
.article-body h2 { margin-top: 2rem; font-size: 1.8rem; }
.article-body h3 { margin-top: 1.6rem; }
.article-body a { text-decoration-thickness: 1px; }
.article-body blockquote { margin: 1.8rem 0; padding: .4rem 0 .4rem 1.4rem; border-left: 4px solid var(--red); color: var(--navy); font-size: 1.38rem; line-height: 1.55; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body img { display: block; margin-block: 1.5rem; border-radius: 5px; }
.article-body pre { max-width: 100%; overflow-x: auto; font-size: .85rem; }
.article-sidebar { display: grid; gap: 1.3rem; min-width: 0; border-left: 1px solid var(--line); padding-left: 1.5rem; }
.article-sidebar .section-heading { margin-top: 0; }
.article-sidebar .story-card .story-content h3 { font-size: 1.25rem; }
.article-cover { display: block; width: 100%; max-height: 600px; object-fit: cover; border-radius: 6px; margin: 0; }
.article-caption { margin: .65rem 0 1.7rem; color: var(--muted); font: .75rem/1.55 var(--sans); }
.sources { padding: 1.2rem 1.4rem; margin-top: 2rem; border-top: 3px solid var(--navy); background: #eef1f2; border-radius: 0 0 5px 5px; font: .82rem/1.7 var(--sans); }
.sources h2, .sources h3 { font-size: 1.25rem; }
.sources li { overflow-wrap: anywhere; }
.sources > :last-child { margin-bottom: 0; }

/* Independent asynchronous sections leave the surrounding page usable. */
.empty-state { padding: 2.5rem 1.5rem; background: #fff; border: 1px dashed #bfcbd4; border-radius: 7px; text-align: center; }
.empty-state h2, .empty-state h3 { margin-bottom: .55rem; }
.empty-state p { max-width: 570px; margin-inline: auto; color: var(--muted); font-size: .88rem; }
.empty-state > :last-child { margin-bottom: 0; }
.loading-bar { position: relative; height: 4px; background: #dce5eb; overflow: hidden; border-radius: 4px; margin: .9rem 0; }
.loading-bar::after { content: ""; display: block; width: 35%; height: 100%; background: var(--navy); animation: loading-slide 1.2s ease-in-out infinite; }
.is-loading { cursor: progress; }
.is-loading .retry-button { display: none !important; }
.retry-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: .45rem .9rem; border: 1px solid var(--navy); border-radius: 4px; background: #fff; color: var(--navy); font-size: .8rem; font-weight: 650; }
.retry-button:hover { background: var(--soft-blue); }
@keyframes loading-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(390%); } }

/* Tablets and narrow desktop windows */
@media (max-width: 1050px) {
  .container, .ad-strip { width: calc(100% - 40px); }
  .nav-links { gap: 0 1.1rem; }
  .nav-links > a, .nav-links > li > a, .more-nav > summary { font-size: .73rem; }
  .hero { grid-template-columns: minmax(0, 1.5fr) minmax(255px, 1fr); gap: 1.5rem; }
  .hero-aside { padding-left: 1.3rem; }
  .news-grid { gap: 1rem; }
  .story-content { padding: 1rem; }
  .story-content h2, .story-content h3 { font-size: 1.35rem; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout-magazine .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout-magazine .news-grid .lead-story { grid-row: auto; }
  .layout-compact .news-grid .story-card { grid-template-columns: 110px minmax(0, 1fr); }
  .article-layout { gap: 1.5rem; grid-template-columns: minmax(0, 2.1fr) minmax(220px, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 1.5rem; }
  .footer-grid > :last-child { grid-column: 2 / -1; }
}

@media (max-width: 780px) {
  main { padding-bottom: 2.3rem; }
  main > .container { padding-top: 1.4rem; }
  .masthead { min-height: 95px; gap: 1rem; }
  .brand img { width: 280px; max-height: 73px; }
  .header-actions { gap: .45rem; flex-wrap: wrap; }
  .header-actions .button { min-height: 36px; padding: .45rem .65rem; font-size: .72rem; }
  .nav-links { gap: 0 1.2rem; }
  .nav-links > a, .nav-links > li > a, .more-nav > summary { padding-block: .7rem; }
  .hero { grid-template-columns: 1fr; gap: 1.3rem; }
  .hero-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; padding-left: 0; }
  .news-grid, .layout-magazine .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-story, .layout-magazine .news-grid .lead-story { grid-column: span 2; }
  .layout-magazine .news-grid .lead-story .story-image { aspect-ratio: 1.9; }
  .layout-compact .news-grid { grid-template-columns: 1fr; }
  .layout-compact .news-grid .story-card { grid-template-columns: minmax(130px, .7fr) minmax(0, 1.8fr); }
  .split { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter-band { padding: 1.8rem; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { padding: 1.6rem 0 0; border-left: 0; border-top: 1px solid var(--line); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-sidebar > .section-heading { grid-column: 1 / -1; margin-bottom: 0; }
  .article-body { max-width: none; }
  .auth-layout { grid-template-columns: 1fr; max-width: 600px; }
  .auth-layout > :first-child:not(.form-card) { padding: 1.7rem; }
  .auth-layout .form-card { padding: 1.7rem; }
  .auth-layout .feature-list { display: none; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-grid > :last-child { grid-column: auto; }
  .footer-grid > :first-child p { max-width: 550px; }
}

/* Small phones retain comfortable controls and a complete, flowing page. */
@media (max-width: 520px) {
  body { font-size: 14px; }
  .container, .ad-strip { width: calc(100% - 32px); }
  .topline { font-size: .59rem; letter-spacing: .025em; }
  .topline .container { gap: .6rem; padding-block: .48rem; }
  .masthead { min-height: 88px; padding-block: 1rem; gap: .6rem; }
  .brand img { width: 210px; max-height: 65px; }
  .brand span { font-size: 1.5rem; }
  .header-actions { flex-direction: column; align-items: flex-end; flex-shrink: 0; gap: .35rem; font-size: .66rem; }
  .header-actions .button { min-height: 32px; padding: .4rem .5rem; font-size: .65rem; }
  .nav-links { gap: 0 1rem; justify-content: flex-start; }
  .nav-links > a, .nav-links > li > a, .more-nav > summary { font-size: .7rem; padding-block: .58rem; }
  .more-nav { margin-left: 0; }
  .menu-panel { right: auto; left: 0; min-width: 225px; max-width: calc(100vw - 32px); }
  .nav .container { position: relative; }
  .nav .more-nav { position: static; }
  .nav .menu-panel { top: 100%; left: 0; right: 0; width: 100%; max-width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
  .menu-panel a { font-size: .76rem; padding: .6rem; }
  .hero { padding-top: .4rem; padding-bottom: 1.35rem; }
  .hero-copy h1 { font-size: 2.3rem; }
  .hero-copy > p:not(.eyebrow):not(.issue-label) { font-size: .95rem; }
  .hero-aside, .sidebar { grid-template-columns: 1fr; }
  .hero-aside { gap: .85rem; }
  .hero-aside .card, .hero-aside .panel { padding: 1.15rem; }
  .section-heading { margin-top: 1.7rem; gap: .7rem; }
  .section-heading h2 { font-size: 1.6rem; }
  .section-heading a { font-size: .7rem; flex-shrink: 0; }
  .section-heading p { font-size: .7rem; }
  .news-grid, .layout-magazine .news-grid { grid-template-columns: 1fr; }
  .lead-story, .layout-magazine .news-grid .lead-story { grid-column: auto; }
  .story-image { aspect-ratio: 1.7; }
  .story-content { padding: 1.2rem; }
  .story-content h2, .story-content h3 { font-size: 1.5rem; }
  .lead-story .story-content h2, .lead-story .story-content h3 { font-size: 1.8rem; }
  .layout-magazine .news-grid .story-card:not(.lead-story) .story-content h2,
  .layout-magazine .news-grid .story-card:not(.lead-story) .story-content h3 { font-size: 1.5rem; }
  .layout-compact .news-grid .story-card { grid-template-columns: 100px minmax(0, 1fr); }
  .layout-compact .news-grid .story-image { min-height: 155px; }
  .layout-compact .news-grid .story-content { padding: .8rem; }
  .layout-compact .news-grid .story-content h2, .layout-compact .news-grid .story-content h3 { font-size: 1.15rem; }
  .layout-compact .news-grid .story-content > p { font-size: .76rem; }
  .layout-compact .story-meta { font-size: .65rem; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .category-tile { padding: 1rem .85rem; }
  .category-tile h3 { font-size: 1.15rem; }
  .category-tile p { font-size: .74rem; }
  .card, .panel, .weather-glance { padding: 1.15rem; }
  .ad-strip { margin-top: .8rem; }
  .ad-strip > a { flex-wrap: wrap; gap: 0; }
  .ad-creative { max-height: 125px; }
  .ad-copy { padding: .75rem; font-size: .77rem; }
  .forecast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter-band { margin-top: 2rem; padding: 1.5rem 1.2rem; }
  .newsletter-band h2 { font-size: 1.8rem; }
  .newsletter-band p { font-size: .87rem; }
  .form-page { padding-block: .5rem; }
  .form-card { padding: 1.2rem; }
  .form-grid { grid-template-columns: 1fr; gap: 1rem; }
  .form-grid > * { grid-column: auto; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), select, textarea { font-size: 16px; }
  fieldset { padding: 1rem .8rem; }
  .dashboard-header { align-items: flex-start; flex-direction: column; gap: .9rem; }
  .dashboard-header h1 { font-size: 2rem; }
  .stat-grid { gap: .65rem; }
  .stat-card { padding: 1rem; }
  .stat-card > strong, .stat-card .value, .stat-card dd { font-size: 1.8rem; }
  .stat-card > span:first-child, .stat-card > p:first-child, .stat-card dt { font-size: .69rem; }
  .tabs { gap: 1.1rem; }
  .tabs a { font-size: .78rem; }
  th, td { padding: .75rem .8rem; }
  .toolbar { gap: .5rem; }
  .toolbar form { width: 100%; }
  .toolbar input, .toolbar select { min-width: 0; flex: 1 1 120px; }
  .article-header h1 { font-size: 2.2rem; }
  .article-header > p:not(.eyebrow):not(.story-meta) { font-size: 1rem; }
  .article-body { font-size: 1.07rem; line-height: 1.8; }
  .article-body h2 { font-size: 1.6rem; }
  .article-body blockquote { font-size: 1.23rem; padding-left: 1rem; }
  .article-sidebar { grid-template-columns: 1fr; }
  .article-caption { font-size: .7rem; }
  .sources { padding: 1rem; }
  .empty-state { padding: 2rem 1.1rem; }
  .auth-layout > :first-child:not(.form-card), .auth-layout .form-card { padding: 1.3rem; }
  .site-footer { padding-top: 2rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; padding-bottom: 1.8rem; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .loading-bar::after { width: 65%; transform: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .container { width: 100%; }
  .topline, .nav, .header-actions, .ad-strip, .newsletter-band, .site-footer, .article-sidebar, .button, .retry-button { display: none !important; }
  .masthead { min-height: auto; padding-bottom: 1rem; border-bottom: 1px solid #aaa; }
  .brand img { width: 240px; }
  .article-layout { display: block; }
  .article-body { max-width: none; font-size: 11pt; }
  .article-header h1 { font-size: 28pt; }
  .article-cover { max-height: 280px; object-fit: contain; }
  a { color: #000; }
  .card, .panel, .story-card { box-shadow: none; break-inside: avoid; }
}
/* Archive search is available immediately on the homepage. */
.archive-search{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;padding:1rem 1.15rem;background:#fff;border:1px solid var(--line);border-left:4px solid var(--red);border-radius:5px;margin-bottom:1.6rem}.archive-search label{font-weight:750;font-size:.78rem}.archive-search input{flex:1;min-width:150px;width:auto;margin:0}.archive-search a{font-size:.78rem}.skip-link{position:absolute;left:1rem;top:-100px;z-index:1000;padding:.6rem;background:white}.skip-link:focus{top:1rem}.site-footer .footer-grid a{display:block;margin:.35rem 0}.form-card form>button,.form-card form>.button{margin-top:1rem}main section+section{margin-top:2rem}.ad-strip>a{min-height:90px}.ad-creative:not([hidden])+.ad-copy{max-width:32%}.ad-strip .ad-creative{width:auto;max-width:75%;max-height:140px}.article-body p,.alert-card details p{white-space:pre-line}.toolbar form{margin:0}.field input[type=checkbox]{width:auto}.qr-code{max-width:240px}.code-box{overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}#location-results{margin-top:1.5rem}.header-actions form{margin:0}.header-actions button[type=submit]{background:transparent;color:var(--navy);border:0}@media(max-width:600px){.archive-search label{flex-basis:100%}.archive-search a{flex-basis:100%}.ad-creative:not([hidden])+.ad-copy{display:none}.ad-strip .ad-creative{max-width:100%;width:100%}.header-actions{flex-wrap:wrap}.header-actions a:not(.button){font-size:.72rem}}
