/* Local sites' masthead: network bar, photo masthead, section menu, alert banner. Loaded by every local
   page (with local.css) and on its own over On the record's story pages, which the Worker serves on each
   city's site with this masthead in place of otrecord.news's. Tokens repeat site/styles.css. */
:root { --paper: #FFFFFF; --ink: #000000; --cite: #1F48B8; --quiet: #6B6B6B; --rail: #E9E9E6; --warn: #B00020; --warn-bg: #FBE5E8; --watch: #8A5A00; --watch-bg: #FFF2D6; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gut, 32px); }

/* Network bar: back to otrecord.news and its sections */
.net { background: var(--ink); color: var(--paper); font-size: 13px; }
.net .wrap { display: flex; gap: 22px; align-items: center; padding-top: 8px; padding-bottom: 8px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.net .wrap::-webkit-scrollbar { display: none; }
.net a { text-decoration: none; opacity: .85; }
.net a:hover { opacity: 1; text-decoration: underline; }
.net .home { font-weight: 800; opacity: 1; }
.net .sp { margin-left: auto; }

/* Masthead */
.lm { border-bottom: 1px solid var(--ink); }
.lm .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 18px; }
.lm .id { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lm .logo img { height: 22px; width: auto; }
.lm .place { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; line-height: .95; letter-spacing: -.045em; text-decoration: none; }
.lm .place small { font-size: .38em; letter-spacing: -.01em; font-weight: 600; color: var(--quiet); margin-left: 10px; }
.lm .now { text-align: right; font-size: 14px; color: var(--quiet); min-width: 0; }
.lm .now b { display: block; font-size: 30px; color: var(--ink); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.lm .now a { text-decoration: none; }
.secnav { border-bottom: 1px solid var(--ink); position: sticky; top: 0; background: var(--paper); z-index: 20; }
.secnav .wrap { display: flex; gap: 24px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; font-size: 15px; font-weight: 600; white-space: nowrap; scrollbar-width: none; }
.secnav .wrap::-webkit-scrollbar { display: none; }
.secnav a { text-decoration: none; color: var(--quiet); }
.secnav a:hover, .secnav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Alert banner (filled by local.js from /api/alerts) */
.alert-bar:empty { display: none; }
.alert-bar { background: var(--warn-bg); border-bottom: 1px solid var(--warn); }
.alert-bar .wrap { padding-top: 10px; padding-bottom: 10px; font-size: 15px; }
.alert-bar b { color: var(--warn); }
.alert-bar.watch { background: var(--watch-bg); border-color: var(--watch); }
.alert-bar.watch b { color: var(--watch); }
/* Photo masthead. The place's own photograph is the one bold thing on the page; everything below stays quiet. */
.hero { position: relative; color: #fff; background: var(--ink); min-height: min(64vh, 620px); display: flex; overflow: hidden; }
.hero.sm { min-height: 230px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 48%, rgba(0,0,0,.72) 100%); }
.hero.sm::after { background: linear-gradient(180deg, rgba(0,0,0,.55) 0, rgba(0,0,0,.25) 45%, rgba(0,0,0,.72) 100%); }
.hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; width: 100%; padding-top: 22px; padding-bottom: 34px; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.hero .logo img { height: 22px; width: auto; }
.hero .now { text-align: right; font-size: 14px; color: rgba(255,255,255,.88); }
.hero .now b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #fff; }
.hero .now a { text-decoration: none; }
.hero-name { margin-top: 48px; }
.hero-st { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.hero-st a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.6); }
.hero .place { margin: 0; font-size: clamp(64px, 12vw, 176px); font-weight: 800; line-height: .86; letter-spacing: -.06em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero .place a { text-decoration: none; }
.hero.sm .place { font-size: clamp(40px, 6vw, 72px); }
.hero.sm .hero-name { margin-top: 28px; }
.hero-cr { position: absolute; right: 12px; bottom: 8px; z-index: 1; margin: 0; font-size: 11px; color: rgba(255,255,255,.75); max-width: 60%; text-align: right; }
.hero-cr a { color: inherit; }
.hero.bare { background: var(--ink); }
.hero.bare::after { display: none; }
.secnav { border-top: 0; }
@media (max-width: 900px) { .hero { min-height: 440px; } }
@media (max-width: 900px) { .hero .now b { font-size: 32px; } }
.hero.banner { min-height: 420px; } @media (max-width: 900px) { .hero.banner { min-height: 360px; } }
