/* NetRichmond responsive, dependency-light styling. */
:root {
  --ink: #172c34;
  --muted: #53666c;
  --deep: #122b36;
  --deep-2: #1a3b47;
  --teal: #1c7775;
  --teal-light: #dff1ed;
  --gold: #f2b85b;
  --paper: #f7f7f2;
  --white: #fff;
  --line: #e2e8e4;
  --shadow: 0 16px 44px rgba(18, 43, 54, .08);
  --radius: 18px;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #125b59; }
img, iframe { max-width: 100%; }
.wrap { width: min(1160px, calc(100% - 44px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 999; background: white; padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { position: relative; z-index: 10; background: rgba(255,255,255,.95); border-bottom: 1px solid rgba(226,232,228,.9); }
.header-inner { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--deep); flex-shrink: 0; }
.brand-mark { display: inline-flex; width: 35px; height: 35px; align-items: end; gap: 3px; padding: 6px 7px; border-radius: 10px; background: var(--deep); transform: skewY(-5deg); }
.brand-mark span { display: block; width: 5px; border-radius: 4px 4px 1px 1px; background: var(--gold); }
.brand-mark span:nth-child(1) { height: 12px; }
.brand-mark span:nth-child(2) { height: 19px; }
.brand-mark span:nth-child(3) { height: 15px; }
.brand-word { font: 800 21px/1 var(--font-display); letter-spacing: -.9px; }
.brand-word > span { color: var(--teal); }
.brand-word small { display: block; font: 700 8px/1.7 var(--font-body); letter-spacing: 1.35px; color: #718187; }
.desktop-nav { display: flex; flex-wrap: wrap; gap: clamp(14px, 2vw, 28px); align-items: center; }
.desktop-nav a { position: relative; color: #506168; font-size: 13px; font-weight: 700; text-decoration: none; padding: 31px 0 29px; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--teal); }
.desktop-nav a.active::after { position: absolute; content: ''; height: 3px; left: 0; right: 0; bottom: 19px; border-radius: 3px; background: var(--gold); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { cursor: pointer; color: var(--deep); font-weight: 700; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; right: 0; top: 42px; width: 220px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.mobile-nav nav a { padding: 8px 10px; color: var(--ink); text-decoration: none; border-radius: 7px; }
.mobile-nav nav a:hover { background: var(--teal-light); }
.hero { position: relative; overflow: hidden; color: white; background: var(--deep); padding: 64px 0 60px; }
.hero::before { position: absolute; content: ''; width: 720px; height: 720px; right: -180px; top: -430px; border: 1px solid rgba(242,184,91,.18); border-radius: 50%; box-shadow: 0 0 0 35px rgba(242,184,91,.025), 0 0 0 80px rgba(242,184,91,.025), 0 0 0 130px rgba(242,184,91,.02); }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(242,184,91,.55), transparent); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .75fr); align-items: center; gap: 58px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #b9d9d3; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--gold); }
.hero h1 { margin: 17px 0 18px; max-width: 720px; color: #fff; font: 700 clamp(38px, 5.1vw, 62px)/1.08 var(--font-display); letter-spacing: -2.3px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-copy { margin: 0; max-width: 600px; color: #d1e0e1; font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); text-decoration: none; }
.button-gold { color: #20333a; background: var(--gold); }
.button-gold:hover { color: #20333a; background: #ffc86e; }
.button-ghost { color: white; border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.045); }
.button-ghost:hover { color: white; background: rgba(255,255,255,.1); }
.button-light { color: var(--deep); border-color: var(--line); background: white; }
.button-light:hover { color: var(--teal); background: #f8fffd; }
.hero-note { color: #92b0b4; margin-top: 22px; font-size: 12px; }
.hero-note strong { color: #ebf5f2; font-weight: 700; }
.hero-panel { border: 1px solid rgba(255,255,255,.13); border-radius: 16px; padding: 22px; background: rgba(255,255,255,.055); box-shadow: 0 18px 60px rgba(0,0,0,.12); backdrop-filter: blur(8px); }
.panel-kicker { color: var(--gold); text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; }
.hero-panel h2 { color: white; font: 700 22px/1.25 var(--font-display); margin: 8px 0 8px; }
.hero-panel p { color: #c1d4d7; font-size: 13px; margin: 0 0 15px; }
.hero-panel .quick-list { border-top: 1px solid rgba(255,255,255,.12); margin: 14px 0 0; padding: 8px 0 0; list-style: none; }
.quick-list a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: #edf6f3; font-size: 13px; text-decoration: none; }
.quick-list a span:last-child { color: var(--gold); }
.page-hero { padding: 28px 0 22px; background: var(--deep); color: #fff; }
.page-hero .eyebrow { font-size: 10px; }
.page-hero h1 { max-width: 800px; margin: 12px 0 10px; font: 700 clamp(32px, 4.5vw, 47px)/1.14 var(--font-display); letter-spacing: -1.4px; }
.page-hero p { max-width: 780px; color: #c9dcde; margin: 0; font-size: 16px; }
.section { padding: 22px 0; }
.section-tight { padding: 15px 0; }
.section-white { background: white; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-head h2 { margin: 0; color: var(--deep); font: 800 clamp(23px, 3vw, 31px)/1.2 var(--font-display); letter-spacing: -.7px; }
.section-head p { color: var(--muted); max-width: 600px; margin: 7px 0 0; font-size: 14px; }
.section-head > a { flex-shrink: 0; font-size: 13px; font-weight: 800; text-decoration: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 2px 8px rgba(17,43,53,.025); }
.card:hover { border-color: #cbdcd7; }
.card h3 { margin: 11px 0 7px; font: 800 18px/1.3 var(--font-display); letter-spacing: -.3px; color: var(--deep); }
.card p { color: var(--muted); margin: 0; font-size: 14px; }
.card .card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; text-decoration: none; font-size: 13px; font-weight: 800; }
.card-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--teal); background: var(--teal-light); font-size: 20px; font-weight: 700; }
.card-icon.gold { color: #6b4a15; background: #fff0d6; }
.card-icon.blue { color: #235d7b; background: #e2f1fa; }
.card-icon.rose { color: #96564c; background: #fbe9e4; }
.weather-zone { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); gap: 20px; align-items: stretch; }
.widget-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.widget-card-head { padding: 14px 18px 2px; }
.widget-card-head h3 { margin: 0; font: 800 17px/1.35 var(--font-display); }
.widget-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.widget-content { padding: 9px 16px 14px; }
.widget-content .weatherwidget-io { display: block; }
.airnow-frame { width:100%; max-width:340px; height:340px; margin:0 auto; display:block; border:0; }
.map-frame { display: block; width: 100%; height: 350px; border: 0; background: #e7efed; }
.map-frame-small { height: 210px; }
.map-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.map-card-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; color: var(--deep); font-size: 13px; font-weight: 800; }
.map-card-label a { font-size: 12px; }
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.resource-link { display: flex; gap: 13px; align-items: flex-start; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: white; text-decoration: none; color: var(--ink); }
.resource-link:hover { border-color: #b9d4ce; background: #fcfffd; }
.resource-link .mini-icon { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--teal-light); color: var(--teal); font-size: 17px; }
.resource-link strong { display: block; margin: 0 0 3px; font-size: 14px; }
.resource-link small { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.news-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; }
.news-item { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item:nth-child(even) { background: #f1f5f4; }
.news-item:nth-child(odd) { background: #ffffff; }
.news-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; font-size: 10px; color: var(--muted); }
.news-source { color: var(--teal); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.news-item h3 { margin: 0; font: 700 16px/1.45 var(--font-display); }
.news-item h3 a { color: var(--deep); text-decoration: none; }
.news-item h3 a:hover { color: var(--teal); }
.feed-note { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; color: #56686c; border-radius: 10px; background: #edf4f1; font-size: 12px; }
.feed-note strong { color: var(--deep); }
.source-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.source-chip:hover { border-color: #a9cbc2; background: #f8fffc; }
.source-row { display: flex; flex-wrap: wrap; gap: 8px; }
.intro-columns { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr); gap: 48px; align-items: start; }
.prose h2, .prose h3 { color: var(--deep); font-family: var(--font-display); }
.prose h2 { font-size: 25px; line-height: 1.25; letter-spacing: -.6px; margin: 0 0 12px; }
.prose h3 { font-size: 17px; margin: 22px 0 7px; }
.prose p { margin: 0 0 16px; color: #52666c; font-size: 15px; line-height: 1.8; }
.prose ul { padding-left: 20px; color: #52666c; }
.prose li { margin: 6px 0; }
.callout { padding: 23px; border-radius: var(--radius); background: var(--teal-light); }
.callout h3 { margin: 0 0 8px; font: 800 18px/1.3 var(--font-display); color: var(--deep); }
.callout p { margin: 0 0 13px; color: #49646a; font-size: 13px; }
.callout .button { background: white; }
.badge-text { display: inline-block; padding: 4px 8px; border-radius: 6px; background: #fff0d6; color: #6d4c18; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.map-searches { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; border-radius: var(--radius); background: var(--deep-2); color: white; }
.inline-cta h2 { margin: 0 0 5px; font: 800 22px/1.3 var(--font-display); }
.inline-cta p { color: #c4d8d9; margin: 0; max-width: 650px; font-size: 13px; }
.inline-cta .button { flex-shrink: 0; }
.notice { padding: 14px 16px; border-left: 3px solid var(--gold); border-radius: 0 9px 9px 0; color: #5d6e72; background: #fff7e9; font-size: 13px; }
.page-bottom { padding: 18px 0 50px; }
.site-footer { margin-top: 28px; background: #102630; color: #c1d0d2; }
.footer-top { display: grid; grid-template-columns: 1.4fr .75fr .9fr; gap: 60px; padding-top: 46px; padding-bottom: 38px; }
.brand-light { color: white; }
.brand-light .brand-word > span { color: var(--gold); }
.brand-light .brand-word small { color: #8ea6aa; }
.brand-light .brand-mark { background: #24434e; }
.footer-brand p { max-width: 350px; margin: 17px 0 0; color: #9db1b5; font-size: 13px; }
.footer-links { display: grid; align-content: start; gap: 8px; }
.footer-links strong { color: white; font-size: 12px; margin-bottom: 4px; }
.footer-links a { width: fit-content; color: #a9c0c3; font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; padding-top: 16px; padding-bottom: 18px; border-top: 1px solid rgba(255,255,255,.1); color: #80989d; font-size: 11px; }
.empty-state { padding: 26px; border: 1px dashed #c6d4d0; border-radius: var(--radius); background: #fff; }
.empty-state h3 { margin: 0 0 8px; color: var(--deep); font: 800 17px var(--font-display); }
.empty-state p { margin: 0 0 13px; color: var(--muted); font-size: 13px; }
.small-note { color: var(--muted); font-size: 11px; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
@media (max-width: 940px) {
  .desktop-nav { gap: 13px; }
  .desktop-nav a { font-size: 12px; }
  .hero-grid { gap: 32px; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { gap: 32px; }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 30px, 600px); }
  .header-inner { min-height: 72px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .hero { padding: 46px 0 43px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { letter-spacing: -1.6px; }
  .hero-panel { max-width: 520px; }
  .page-hero { padding: 34px 0 29px; }
  .section { padding: 38px 0; }
  .section-tight { padding: 27px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .grid-3, .grid-2, .weather-zone, .intro-columns { grid-template-columns: 1fr; }
  .grid-4 { gap: 11px; }
  .card { padding: 19px; }
  .map-frame { height: 300px; }
  .map-frame-small { height: 195px; }
  .link-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .inline-cta { flex-direction: column; align-items: flex-start; padding: 23px; }
  .news-item { grid-template-columns: 1fr; gap: 5px; }
  .news-meta { flex-direction: row; align-items: center; flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .brand-word { font-size: 19px; }
  .brand-mark { width: 32px; height: 32px; }
  .hero-actions .button { width: 100%; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-4 .card { padding: 15px; }
  .grid-4 .card h3 { font-size: 15px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

@media print { .site-header, .site-footer, .hero-actions, .button, .source-chip, .map-searches { display:none !important; } body { background:#fff; color:#000; } .section,.page-hero { padding:10px 0; } a { color:#000; text-decoration:none; } .map-frame { height:65vh; } }

.brand-mark { overflow:hidden; width:44px; height:44px; padding:0; border-radius:10px; background:var(--deep); transform:none; align-items:center; justify-content:center; } .brand-mark img { display:block; width:100%; height:100%; object-fit:contain; border-radius:inherit; }
.neighborhood-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; } .neighborhood-card { padding:16px; } .neighborhood-card h3 { margin-top:0; } .neighborhood-card .card-link { display:flex; margin-top:9px; font-size:12px; }
@media(max-width:760px){.neighborhood-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media print { .neighborhood-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .neighborhood-card { break-inside:avoid; box-shadow:none; } }

/* Compact vertical rhythm: keep the first useful module close to its intro on every page. */
.page-hero + .section, .page-hero + .section-white { padding-top: 16px; }
.section + .section { padding-top: 18px; }
.section-head h2 + p { margin-top: 5px; }
.widget-card + .widget-card { margin-top: 0; }
@media(max-width:760px){ .page-hero { padding:22px 0 18px;} .section { padding:18px 0;} .section-tight {padding:12px 0;} .hero {padding:36px 0 34px;} }


/* v1.3.0: cache-busted brand/header layout and compact vertical rhythm. */
.brand { gap: 0; }
.brand-logo { display:block; width:275px; max-width:100%; height:auto; object-fit:contain; }
.hero { padding: 42px 0 36px; }
.page-hero { padding: 22px 0 18px; }
.page-hero h1 { margin: 8px 0 8px; }
.page-hero p { line-height: 1.5; }
.section { padding: 18px 0; }
.page-hero + .section, .page-hero + .section-white { padding-top: 14px; }
.section + .section { padding-top: 16px; }
.section-head { margin-bottom: 11px; }
.section-head p { margin-top: 4px; }
.widget-card-head { padding: 12px 16px 1px; }
.widget-content { padding: 7px 13px 11px; }
@media (max-width: 760px) {
  .brand-logo { width: 235px; max-width: calc(100vw - 130px); }
  .hero { padding: 30px 0 28px; }
  .page-hero { padding: 18px 0 15px; }
  .section { padding: 15px 0; }
  .page-hero + .section, .page-hero + .section-white { padding-top: 12px; }
  .section + .section { padding-top: 13px; }
  .section-head { margin-bottom: 10px; }
}


/* v1.3.0: keep the wordmark and navigation in one row on desktop even if old layout rules linger. */
.header-inner { display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; justify-content:space-between; gap:24px; }
.brand { flex:0 1 auto; min-width:0; }
.brand-logo { display:block; width:clamp(180px,24vw,275px); max-width:calc(100vw - 130px); height:auto; object-fit:contain; flex-shrink:0; }
.desktop-nav { display:flex; flex:1 1 auto; flex-flow:row nowrap; justify-content:flex-end; align-items:center; min-width:0; white-space:nowrap; gap:clamp(12px,1.5vw,22px); }
.desktop-nav a { padding:31px 0 29px; }
@media (max-width:940px) and (min-width:761px) {
  .header-inner { gap:18px; }
  .brand-logo { width:clamp(180px,23vw,235px); }
  .desktop-nav { gap:12px; }
  .desktop-nav a { font-size:12px; }
}
@media (max-width:760px) {
  .header-inner { gap:12px; }
  .brand-logo { width:clamp(180px,24vw,235px); max-width:calc(100vw - 115px); }
}


/* NetRichmond 1.4.0: environmental widget sizing, games, legal pages and conservative ad slot. */
.explore-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.footer-legal { display:flex; flex-wrap:wrap; gap:16px; padding-top:14px; padding-bottom:13px; border-top:1px solid rgba(255,255,255,.08); font-size:12px; }
.footer-legal a { color:#c1d0d2; text-decoration:none; }
.footer-legal a:hover { color:#fff; text-decoration:underline; }
.ad-placement { max-width:1120px; margin:24px auto 0; padding:10px 22px 18px; text-align:center; }
.ad-placement-label { margin:0 0 8px; color:#738286; font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
.contact-layout { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr); gap:22px; align-items:start; }
.contact-card .widget-card-head h2 { margin:0; font:800 22px/1.25 var(--font-display); color:var(--deep); }
.contact-email { margin:8px 0 16px; font-size:clamp(21px,3vw,29px); font-weight:800; overflow-wrap:anywhere; }
.contact-actions { display:flex; flex-wrap:wrap; gap:10px; }
.contact-actions button { cursor:pointer; font-family:inherit; }
.sudoku-embed-wrap { max-width:480px; margin:0 auto; }
.sudoku-embed-wrap iframe { max-width:100%; border-radius:10px; }
.puzzle-card { overflow:visible; }
.legal-copy { max-width:880px; }
.legal-copy h2 { margin-top:27px; }
.legal-copy h2:first-of-type { margin-top:0; }
@media (max-width:900px) {
  .explore-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .contact-layout { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  .explore-grid { grid-template-columns:1fr 1fr; gap:11px; }
  .footer-legal { gap:12px; }
  .ad-placement { padding-left:15px; padding-right:15px; }
}
@media (max-width:460px) {
  .explore-grid { grid-template-columns:1fr; }
  .contact-actions { flex-direction:column; align-items:stretch; }
}

/* v1.5.0: bilingual navigation and Crab or Skrimp feature. */
.desktop-nav a.language-switch { display:inline-flex; align-items:center; padding:7px 10px !important; border:1px solid var(--line); border-radius:999px; color:var(--teal); font-size:11px; font-weight:800; line-height:1; }
.desktop-nav a.language-switch::after { display:none; }
.mobile-nav nav a.language-switch { margin-top:5px; border-top:1px solid var(--line); border-radius:0; font-weight:800; color:var(--teal); }
.crab-skrimp-icon { display:flex; align-items:center; justify-content:flex-start; min-height:58px; margin-bottom:10px; }
.crab-skrimp-icon img { display:block; width:150px; max-width:100%; height:auto; }
.sudoku-embed-wrap iframe[data-sudokumax] { display:block; width:100%; max-width:480px; height:880px; min-height:0; border:0; margin-inline:auto; }

/* GamePix Skater Kitty: responsive 3:4 play area (600 x 800 maximum). */
.gamepix-stage { width:100%; max-width:600px; aspect-ratio:3 / 4; margin:0 auto; overflow:hidden; border-radius:16px; background:#111820; box-shadow:0 12px 30px rgba(18,43,54,.14); }
.gamepix-stage iframe { display:block; width:100%; height:100%; border:0; }
.gamepix-card-head { display:flex; align-items:center; gap:16px; }
.game-thumb-link { display:inline-flex; align-self:flex-start; margin-bottom:12px; }
.game-thumb-link img { display:block; width:105px; height:105px; object-fit:contain; border-radius:14px; }
.skater-kitty-card .game-thumb-link { border-radius:14px; overflow:hidden; }

/* Switch to the compact menu before the expanded bilingual desktop navigation gets cramped. */
@media (max-width:1080px) { .desktop-nav { display:none; } .mobile-nav { display:block; } }


/* NetRichmond About Richmond: history article and page-scoped print styles. */
.history-opening-figure { max-width:920px; margin:22px auto 28px; padding:8px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:0 4px 18px rgba(18,43,54,.045); }
.history-opening-figure img { display:block; width:100%; height:auto; max-height:340px; object-fit:cover; border-radius:8px; }
.history-opening-figure figcaption { padding:8px 4px 2px; color:#65777b; font-size:11px; line-height:1.5; }
.history-hero .history-actions { display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin-top:17px; }
.history-actions .button { cursor:pointer; font:700 13px var(--font-body); }
.history-language-link { display:inline-flex; align-items:baseline; gap:6px; color:#f0c56c; font-size:13px; font-weight:800; text-decoration:none; }
.history-language-link small { color:#c2d5d7; font-size:11px; font-weight:500; }
.history-language-link:hover { color:#fff; }
.history-intro-section { padding-top:24px; }
.history-article { max-width:950px; margin:0 auto; }
.history-article p { color:#42585f; font-size:15px; line-height:1.82; margin:0 0 16px; }
.history-article .history-deck { color:var(--deep); font-size:18px; font-weight:500; line-height:1.75; }
.history-toc { padding:20px 23px 18px; margin:26px 0 30px; border:1px solid #dbe7e2; border-radius:15px; background:#fff; box-shadow:0 4px 18px rgba(18,43,54,.035); }
.history-toc h2 { margin:0 0 9px; color:var(--deep); font:800 19px/1.3 var(--font-display); }
.history-toc ol { columns:2; column-gap:32px; padding-left:20px; margin:0; }
.history-toc li { break-inside:avoid; margin:4px 0; padding-right:8px; color:#52666c; font-size:13px; line-height:1.55; }
.history-section { clear:both; padding:10px 0 20px; }
.history-section::after { content:""; display:table; clear:both; }
.history-section h2 { clear:none; margin:10px 0 13px; padding-top:8px; font:800 clamp(23px,3vw,29px)/1.25 var(--font-display); letter-spacing:-.65px; color:var(--deep); }
.history-section h3 { color:var(--deep); }
.history-figure { width:min(43%,390px); margin:7px 0 19px 27px; padding:8px; float:right; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:0 4px 18px rgba(18,43,54,.055); }
.history-figure img { display:block; width:100%; height:auto; max-height:330px; object-fit:contain; border-radius:8px; background:#f2f2ed; }
.history-figure figcaption { padding:8px 3px 2px; color:#65777b; font-size:11px; line-height:1.5; }
.history-figure figcaption em { color:#43575d; }
.history-figure.history-portrait { width:min(36%,300px); }
.history-figure.history-portrait img { max-height:370px; }
.history-article a { text-decoration-thickness:1px; }
.history-article ul { margin:8px 0 20px; padding-left:22px; color:#42585f; }
.history-article li { margin:7px 0; font-size:14px; line-height:1.65; }
.history-further-reading { border-top:1px solid var(--line); margin-top:6px; padding-top:22px; }
.history-bottom-tools { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:16px 0 5px; border-top:1px solid var(--line); }
.history-bottom-tools .small-note { max-width:680px; margin:0; line-height:1.6; }
.history-bottom-tools .button { flex-shrink:0; cursor:pointer; }
@media(max-width:760px) {
  .history-intro-section { padding-top:14px; }
  .history-article .history-deck { font-size:16px; }
  .history-toc { padding:16px; margin:20px 0 24px; }
  .history-opening-figure { margin:16px auto 22px; }
  .history-opening-figure img { max-height:260px; }
  .history-toc ol { columns:1; }
  .history-section { padding-bottom:14px; }
  .history-figure, .history-figure.history-portrait { float:none; width:100%; max-width:520px; margin:8px auto 20px; }
  .history-figure img, .history-figure.history-portrait img { max-height:420px; }
  .history-bottom-tools { align-items:stretch; flex-direction:column; }
  .history-bottom-tools .button { width:100%; }
}
@media print {
  body.history-page { background:#fff !important; color:#111 !important; font-size:11pt; }
  body.history-page .site-header, body.history-page .site-footer, body.history-page .history-actions, body.history-page .history-bottom-tools .button, body.history-page .ad-placement, body.history-page .skip-link { display:none !important; }
  body.history-page .page-hero { padding:0 0 8mm !important; background:#fff !important; color:#111 !important; border-bottom:1px solid #999; }
  body.history-page .page-hero h1, body.history-page .page-hero .eyebrow { color:#111 !important; }
  body.history-page .page-hero p { color:#333 !important; max-width:none; }
  body.history-page .section, body.history-page .history-intro-section { padding:5mm 0 !important; }
  body.history-page .wrap { width:100% !important; max-width:none !important; }
  body.history-page .history-article { max-width:none !important; }
  body.history-page .history-article p, body.history-page .history-article li { color:#222 !important; font-size:10.5pt !important; line-height:1.55 !important; }
  body.history-page .history-article .history-deck { font-size:12pt !important; }
  body.history-page .history-toc { background:#fff !important; box-shadow:none !important; border:1px solid #bbb !important; break-inside:avoid; }
  body.history-page .history-opening-figure { box-shadow:none !important; border-color:#ccc !important; break-inside:avoid; }
  body.history-page .history-opening-figure img { max-height:58mm !important; object-fit:contain !important; }
  body.history-page .history-opening-figure figcaption { font-size:8pt !important; }
  body.history-page .history-section { clear:both; padding:3mm 0 4mm !important; }
  body.history-page .history-section h2 { font-size:16pt !important; break-after:avoid-page; }
  body.history-page .history-figure { max-width:39% !important; width:39% !important; box-shadow:none !important; border-color:#ccc !important; break-inside:avoid; }
  body.history-page .history-figure img { max-height:65mm !important; }
  body.history-page .history-figure figcaption { font-size:8pt !important; }
  body.history-page a { color:#111 !important; text-decoration:none !important; }
  body.history-page a[href^="http"]::after { content:""; }
  body.history-page .history-language-link { display:none !important; }
  body.history-page .history-bottom-tools { border:0; }
  body.history-page .history-article, body.history-page .history-section, body.history-page .history-further-reading { orphans:3; widows:3; }
}

/* Games cards share a uniform 105px thumbnail and aligned title, description, note, and action link. */
.game-card { display:flex; flex-direction:column; height:100%; min-width:0; }
.game-thumb-link { display:flex; flex:0 0 105px; width:105px; height:105px; align-self:flex-start; margin:0 0 12px; padding:0; overflow:hidden; border-radius:14px; background:#f1f4f3; }
.game-thumb-link img { display:block; width:105px; height:105px; max-width:none; object-fit:cover; border-radius:14px; }
.game-thumb-link .richmond-jigsaw-thumb { object-position:50% 52%; }
.game-card h3 { margin:0 0 8px; }
.game-card .game-card-description { margin:0; }
.game-card-footer { margin-top:auto; padding-top:14px; }
.game-card-note { display:-webkit-box; min-height:2.8em; max-height:2.8em; margin:0 0 7px !important; overflow:hidden; color:var(--muted); font-size:11px !important; line-height:1.4 !important; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.game-card .card-link { margin-top:0 !important; }
@media(max-width:760px) {
  .game-card { height:auto; }
  .game-thumb-link, .game-thumb-link img { width:105px; height:105px; }
}


/* Accessible, lazy-start audio player for the English and Spanish Richmond history articles.
   The native browser player provides keyboard-accessible playback and scrubbing controls. */
.history-audio-player { width:100%; max-width:680px; margin:20px 0 24px; padding:14px 16px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:0 4px 16px rgba(18,43,54,.045); }
.history-audio-start { display:none; align-items:center; gap:10px; min-height:56px; padding:6px 12px 6px 4px; border:0; background:transparent; color:var(--deep); font:600 18px/1.3 var(--font-body); cursor:pointer; }
.history-audio-player.audio-enhanced .history-audio-start { display:flex; }
.history-audio-player.audio-enhanced .history-audio-native { display:none; }
.history-audio-player.audio-active .history-audio-start { display:none; }
.history-audio-player.audio-active .history-audio-native { display:block; }
.history-audio-play-icon { position:relative; display:inline-flex; align-items:center; justify-content:center; flex:0 0 48px; width:48px; height:48px; border:2px solid #dce4e2; border-radius:50%; background:#fff; }
.history-audio-play-icon::before { content:""; display:block; width:0; height:0; margin-left:4px; border-top:10px solid transparent; border-bottom:10px solid transparent; border-left:15px solid var(--deep); }
.history-audio-start:hover .history-audio-play-icon, .history-audio-start:focus-visible .history-audio-play-icon { border-color:var(--teal); }
.history-audio-start:focus-visible, .history-audio-skip-controls button:focus-visible { outline:3px solid #3b6fb6; outline-offset:3px; border-radius:9px; }
.history-audio-native { display:block; width:100%; max-width:640px; min-width:0; margin:0 auto; }
.history-audio-skip-controls { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin:10px 0 0; }
.history-audio-skip-controls[hidden] { display:none !important; }
.history-audio-skip-controls button { min-width:76px; padding:7px 12px; border:1px solid var(--line); border-radius:8px; background:#f7f8f5; color:var(--deep); font:600 13px/1.3 var(--font-body); cursor:pointer; }
.history-audio-skip-controls button:hover { background:#eaf2ef; border-color:#bbd1c9; }
.history-audio-note { margin:8px 0 0 !important; color:#687a7e !important; font-size:11px !important; line-height:1.5 !important; }
@media(max-width:560px) { .history-audio-player { margin:16px 0 20px; padding:10px; } .history-audio-start { font-size:16px; } .history-audio-play-icon { flex-basis:44px; width:44px; height:44px; } }


/* Performance: lightweight map facade defers the interactive Google Maps JS bundle until requested. */
.map-facade { display:flex; align-items:center; justify-content:center; min-height:230px; padding:22px; text-align:center; background:linear-gradient(135deg,#e7f0ef,#f4f7f7); }
.map-facade-inner { max-width:360px; }
.map-facade p { margin:0 0 12px; color:var(--muted); font-size:13px; }
.map-facade .button { cursor:pointer; }
.deferred-frame-shell { position:relative; width:100%; border-radius:12px; overflow:hidden; background:#edf3f2; }
.deferred-frame-placeholder { position:absolute; inset:0; z-index:2; display:flex; width:100%; min-height:100%; align-items:center; justify-content:center; padding:20px; text-align:center; color:var(--muted); font-size:13px; background:#edf3f2; }
.deferred-frame-shell iframe { position:relative; z-index:1; display:block; width:100%; border:0; }

@media(max-width:760px) { .map-facade { min-height:195px; padding:16px; } }



/* v2.4.0: wide bilingual header; use the compact menu before navigation can collide. */
.site-header .header-inner.wrap {
  width: min(1980px, calc(100% - 44px));
  max-width: 1980px;
}
.site-header .header-inner { gap: 24px; }
.site-header .brand { flex: 0 0 auto; min-width: 0; }
.site-header .brand-logo {
  display: block;
  width: clamp(260px, 21vw, 400px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.site-header .desktop-nav {
  display: flex;
  flex: 1 1 auto;
  flex-flow: row nowrap;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
  gap: clamp(12px, 1vw, 22px);
}
@media (max-width: 1480px) {
  .site-header .desktop-nav { display: none; }
  .site-header .mobile-nav { display: block; }
  .site-header .header-inner { gap: 16px; }
  .site-header .brand-logo { width: clamp(240px, 25vw, 320px); }
}
@media (max-width: 760px) {
  .site-header .header-inner.wrap { width: calc(100% - 32px); }
  .site-header .header-inner { min-height: 72px; gap: 12px; }
  .site-header .brand-logo { width: min(235px, calc(100vw - 112px)); max-width: calc(100vw - 112px); }
}
@media (max-width: 420px) {
  .site-header .brand-logo { width: min(205px, calc(100vw - 108px)); max-width: calc(100vw - 108px); }
}
