/* ==========================================================================
   Denver's Perfect 10 — design system
   Tokens live in theme.json; this file carries layout + decorative flourishes
   core blocks can't express. Classes are applied to blocks via "Additional CSS
   class(es)". Editors never need to touch this file.
   ========================================================================== */

:root {
  --d10-navy: #1E3A6E;
  --d10-navy-deep: #16294d;
  --d10-red: #C8102E;
  --d10-red-dark: #a50d26;
  --d10-gold: #FFCD00;
  --d10-gold-hover: #eabd00;
  --d10-line: #ece9e2;
  --d10-line-2: #e4e1d9;
  --d10-shadow-rest: 0 1px 4px rgba(0,0,0,.05);
  --d10-shadow-hover: 0 10px 28px rgba(30,58,110,.14);
  --d10-shadow-card: 0 16px 44px rgba(30,58,110,.14);
}

/* Accessibility: always-visible focus ring on interactive elements ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.wp-block-navigation-item__content:focus-visible {
  outline: 3px solid var(--d10-navy);
  outline-offset: 2px;
  border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Kickers / eyebrows -------------------------------------------------------- */
.d10-kicker {
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: .14em !important;
  text-transform: uppercase;
  color: var(--d10-red);
  margin: 0 0 14px !important;
}
.d10-kicker--gold { color: var(--d10-gold); }
.d10-mono { font-family: var(--wp--preset--font-family--mono) !important; }
.d10-serif-quote {
  font-family: var(--wp--preset--font-family--serif) !important;
  font-style: italic;
  line-height: 1.6;
}

/* ==========================================================================
   Header
   ========================================================================== */
.d10-header {
  background: #fff;
  border-bottom: 1px solid var(--d10-line);
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}
.d10-header.is-layout-flex { align-items: center; }
.d10-brand { text-decoration: none; align-items: center; }
.d10-brand.is-layout-flex { gap: 12px; }
.d10-brand img { width: 44px; height: 44px; object-fit: contain; }
.d10-brand img { width: 44px; height: 44px; object-fit: contain; }
.d10-wordmark-1 {
  font-weight: 900 !important; font-size: 16px !important; line-height: 1 !important;
  color: var(--d10-navy) !important; letter-spacing: -.01em; margin: 0 !important;
}
.d10-wordmark-2 {
  font-weight: 600 !important; font-size: 10.5px !important; line-height: 1 !important;
  color: #8a857a !important; letter-spacing: .14em; margin: 4px 0 0 !important;
}
/* Nav links */
.d10-nav .wp-block-navigation-item__content {
  font-weight: 600; font-size: 13.5px; color: #333; text-decoration: none;
  padding-bottom: 3px;
}
.d10-nav .current-menu-item .wp-block-navigation-item__content,
.d10-nav .current_page_item .wp-block-navigation-item__content,
.d10-nav a.wp-block-navigation-item__content.is-current {
  color: var(--d10-red); font-weight: 700; border-bottom: 2px solid var(--d10-red);
}
.d10-nav .d10-navcta a.wp-block-navigation-item__content.is-current { border-bottom: 0; color:#fff; }
/* Contact CTA button in nav (a page-link given the button class via nav) */
.d10-nav .d10-navcta .wp-block-navigation-item__content {
  color: #fff; background: var(--d10-red); border-radius: 6px;
  padding: 10px 18px; font-weight: 700; border-bottom: 0;
}
.d10-nav .d10-navcta .wp-block-navigation-item__content:hover { background: var(--d10-red-dark); color:#fff; }
/* Mobile hamburger: navy + visible, collapse below 900px (per design) */
.d10-nav .wp-block-navigation__responsive-container-open,
.d10-nav .wp-block-navigation__responsive-container-close { color: var(--d10-navy); }
.d10-nav .wp-block-navigation__responsive-container.is-menu-open { background: #fff; }
.d10-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: var(--d10-navy); font-size: 18px; border-bottom: 0; }
.d10-nav .wp-block-navigation__responsive-container.is-menu-open .d10-navcta .wp-block-navigation-item__content { color:#fff; display:inline-block; }
@media (max-width: 900px) {
  .d10-nav .wp-block-navigation__responsive-container-open { display: flex !important; }
  .d10-nav > .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
}
@media (min-width: 901px) {
  .d10-nav .wp-block-navigation__responsive-container-open { display: none !important; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.d10-footer { background: var(--d10-navy-deep); color: #fff; margin-top: auto; }
.d10-footer p, .d10-footer li { color: #a9b6d1; }
.d10-footer a { color: #fff; text-decoration: none; }
.d10-footer a:hover { color: #fff; text-decoration: underline; }
.d10-foot-label {
  font-weight: 700 !important; font-size: 11.5px !important; letter-spacing: .12em;
  color: #8fa0c4 !important; margin: 0 0 14px !important; text-transform: uppercase;
}
.d10-foot-about { font-size: 13px !important; line-height: 1.65 !important; color: #a9b6d1 !important; max-width: 360px; }
.d10-onwhite-chip {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; background: rgba(255,255,255,.95); border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}
.d10-onwhite-chip img { width: 38px; height: 38px; object-fit: contain; }
.d10-foot-brandname { font-weight: 900 !important; font-size: 15px !important; color: #fff !important; margin: 0 !important; }
.d10-foot-cols { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .d10-foot-cols { grid-template-columns: 1fr; gap: 32px; } }
.d10-foot-brand { display: flex; align-items: center; gap: 12px; }
.d10-foot-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.d10-foot-legal, .d10-foot-legal a { font-size: 12px !important; color: #8fa0c4 !important; }

/* ==========================================================================
   Layout grids (all collapse to one column ≤900px, text-first)
   ========================================================================== */
.d10-grid { display: grid; align-items: center; }
.d10-grid--hero        { grid-template-columns: 1.2fr .8fr; gap: 56px; }
.d10-grid--vision      { grid-template-columns: .9fr 1.1fr; gap: 56px; }
.d10-grid--about-hero  { grid-template-columns: 1.1fr .9fr; gap: 56px; }
.d10-grid--nh-hero     { grid-template-columns: 1fr 1fr; gap: 52px; }
.d10-grid--demographics{ grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.d10-grid--safety      { grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: start; }
.d10-grid--history     { grid-template-columns: 1.1fr .9fr; gap: 56px; }
.d10-grid--contact     { grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.d10-grid--maps        { grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: stretch; }
.d10-grid--trends      { grid-template-columns: .85fr 1.15fr; gap: 56px; }
.d10-grid--3 { grid-template-columns: 1fr 1fr 1fr; gap: 20px; align-items: stretch; }
.d10-grid--3-24 { grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: stretch; }
.d10-grid > * { min-width: 0; }

@media (max-width: 900px) {
  .d10-grid--hero, .d10-grid--vision, .d10-grid--about-hero, .d10-grid--nh-hero,
  .d10-grid--demographics, .d10-grid--safety, .d10-grid--history, .d10-grid--contact,
  .d10-grid--maps, .d10-grid--trends, .d10-grid--3, .d10-grid--3-24 {
    grid-template-columns: 1fr; gap: 32px;
  }
}

/* ==========================================================================
   Cards
   ========================================================================== */
.d10-card {
  background: #fff; border: 1px solid var(--d10-line); border-radius: 12px;
  box-shadow: var(--d10-shadow-rest); padding: 28px; height: 100%;
}
.d10-card--r14 { border-radius: 14px; }
.d10-card--top-navy { border-top: 4px solid var(--d10-navy); }
.d10-card--top-red  { border-top: 4px solid var(--d10-red); }
.d10-card--top-gold { border-top: 4px solid var(--d10-gold); }
.d10-hover-lift { transition: box-shadow .18s ease, border-color .18s ease; }
.d10-hover-lift:hover { box-shadow: var(--d10-shadow-hover); border-color: #c9d2e4; }

/* Chips / pills ------------------------------------------------------------- */
.d10-chip {
  display: inline-block; font-weight: 600; font-size: 11px; color: var(--d10-navy);
  background: var(--d10-navy-tint, #edf0f7); border-radius: 99px; padding: 6px 12px;
  text-decoration: none;
}
.d10-chip--12 { font-size: 12px; padding: 7px 14px; }
.d10-chip--gold { color: #8a6d00; background: #FFF7DB; }
.d10-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ==========================================================================
   Hero (homepage) decorative layer
   ========================================================================== */
.d10-hero { position: relative; overflow: hidden; background: #fff; }
.d10-hero-decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.d10-hero-decor .ring { position: absolute; border-radius: 50%; }
.d10-hero-decor .r1 { right:-180px; top:-140px; width:640px; height:640px; border:2px dashed #dcd8cc; }
.d10-hero-decor .r2 { right:-40px; top:0; width:400px; height:400px; border:2px dashed #e8e4d9; }
.d10-hero-decor .r3 { right:120px; top:130px; width:180px; height:180px; border:2px dashed #efece2; }
.d10-hero .d10-grid { position: relative; z-index: 1; }
.d10-hero-glow {
  position: absolute; left:-60px; top:-70px; width:380px; height:380px; border-radius:50%;
  background: radial-gradient(circle, rgba(255,205,0,.14) 0%, rgba(255,205,0,.07) 45%, rgba(255,205,0,0) 70%);
  pointer-events: none;
}
.d10-hero-ghost {
  position: absolute; left:-24px; top:-58px; font-weight:900; font-size:300px; line-height:1;
  color: rgba(30,58,110,.045); letter-spacing:-.05em; pointer-events:none; user-select:none; z-index:0;
}
.d10-hero-copy { position: relative; z-index: 1; }
.d10-hero h1 { text-wrap: pretty; }

/* Floating gold badge on portrait */
.d10-portrait-wrap { position: relative; }
.d10-badge-gold {
  position: absolute; left:-26px; bottom:26px; background: var(--d10-gold);
  border-radius: 10px; padding: 14px 18px; box-shadow: 0 6px 20px rgba(0,0,0,.14); max-width: 240px;
}
.d10-badge-gold .t { font-weight:900; font-size:15px; color:#1a1a1a; margin:0; }
.d10-badge-gold .s { font-weight:400; font-size:11.5px; line-height:1.45; color:#5c4d00; margin:4px 0 0; }
@media (max-width:900px){ .d10-badge-gold{ left:12px; } }

/* Rounded photo frames (applied to core/image figure via className) */
.d10-photo.wp-block-image, figure.d10-photo { margin: 0; width: 100%; overflow: hidden; border-radius: 16px; }
.d10-photo img { border-radius: 16px; object-fit: cover; width: 100%; height: 100%; display: block; }
.d10-ar-hero  { aspect-ratio: 4/4.4; }
.d10-ar-about { aspect-ratio: 4/4.6; }
.d10-ar-16-9  { aspect-ratio: 16/9; }
.d10-ar-16-11 { aspect-ratio: 16/11; }
.d10-ar-4-3   { aspect-ratio: 4/3; }

/* ==========================================================================
   Stat strips
   ========================================================================== */
.d10-statstrip { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.d10-statstrip .col { padding: 30px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.14); }
.d10-statstrip .col:last-child { border-right: 0; }
.d10-statstrip .num { font-weight:900; font-size:38px; line-height:1; color:#fff; margin:0; }
.d10-statstrip .num--gold { color: var(--d10-gold); }
.d10-statstrip .lbl { font-weight:600; font-size:11.5px; letter-spacing:.1em; color:#9fb0d2; margin:8px 0 0; text-transform:uppercase; }
@media (max-width:900px){ .d10-statstrip .num{ font-size:26px; } .d10-statstrip .col{ padding:22px 10px; } }

/* Neighborhood quick-facts (navy, 4 col with Denver compare) */
.d10-quickfacts { display: grid; grid-template-columns: repeat(4,1fr); }
.d10-quickfacts .col { padding: 26px 20px; text-align:center; border-right:1px solid rgba(255,255,255,.14); }
.d10-quickfacts .col:last-child { border-right: 0; }
.d10-quickfacts .num { font-weight:900; font-size:30px; line-height:1; color:#fff; margin:0; }
.d10-quickfacts .lbl { font-weight:600; font-size:10.5px; letter-spacing:.09em; color:#9fb0d2; margin:8px 0 0; text-transform:uppercase; }
.d10-quickfacts .cmp { font-weight:400; font-size:10.5px; color:#7288b3; margin:4px 0 0; }
@media (max-width:640px){ .d10-quickfacts{ grid-template-columns:1fr 1fr; } .d10-quickfacts .col:nth-child(2){border-right:0;} }

/* Maps & Data pulse strip (white, 4 col, deltas) */
.d10-pulse { display:grid; grid-template-columns: repeat(4,1fr); }
.d10-pulse .col { padding:22px 20px; border-right:1px solid var(--d10-line); display:flex; flex-direction:column; gap:4px; }
.d10-pulse .col:last-child { border-right:0; }
.d10-pulse .row { display:flex; align-items:baseline; gap:8px; }
.d10-pulse .num { font-weight:900; font-size:26px; line-height:1; color:#1a1a1a; margin:0; }
.d10-pulse .delta { font-weight:700; font-size:11px; margin:0; }
.d10-pulse .delta--down { color:#1a7a3c; }
.d10-pulse .delta--up { color: var(--d10-red); }
.d10-pulse .delta--flat { color:#8a857a; }
.d10-pulse .lbl { font-weight:600; font-size:10.5px; letter-spacing:.08em; color:#8a857a; margin:0; text-transform:uppercase; }
.d10-sampletag { font-family: var(--wp--preset--font-family--mono); font-size:10px; color:#b3ada0; margin:0; }
@media (max-width:640px){ .d10-pulse{ grid-template-columns:1fr 1fr; } }

/* ==========================================================================
   Vision: faux browser + PANDA frame + neighborhood chips
   ========================================================================== */
.d10-browser {
  border-radius:14px; overflow:hidden; border:1px solid #dcd8cc;
  box-shadow: var(--d10-shadow-card); background:#fff;
}
.d10-browser__bar { display:flex; align-items:center; gap:8px; background:#f0eee8; border-bottom:1px solid #e2dfd6; padding:9px 14px; }
.d10-browser__bar .dot { width:10px; height:10px; border-radius:50%; background:#e0ddd3; }
.d10-browser__url { flex:1; text-align:center; font-family:var(--wp--preset--font-family--mono); font-weight:500; font-size:11.5px; color:#8a857a; background:#fff; border-radius:5px; padding:4px 10px; margin-left:6px; }
.d10-browser__frame { position:relative; width:100%; aspect-ratio:1009/517; }
.d10-browser__frame img, .d10-browser__frame iframe { width:100%; height:100%; object-fit:cover; border:0; display:block; }

/* ==========================================================================
   Newsletter band (gold)
   ========================================================================== */
.d10-newsletter { display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; }
.d10-newsletter .head { font-weight:900 !important; font-size:24px !important; color:#1a1a1a !important; letter-spacing:-.01em; margin:0 !important; }
.d10-newsletter .sub { font-weight:400 !important; font-size:13.5px !important; color:#6b5a00 !important; margin:6px 0 0 !important; }
.d10-newsletter .form { display:flex; gap:10px; align-items:center; }
.d10-newsletter input {
  border:2px solid #1a1a1a; border-radius:7px; padding:14px 16px; font-size:14px; width:240px;
  background:#fff; outline:none; font-family:var(--wp--preset--font-family--sans);
}
.d10-btn-black {
  display:inline-flex; align-items:center; font-weight:700 !important; font-size:14px; background:#1a1a1a !important;
  color:#fff !important; border-radius:7px; padding:14px 24px; text-decoration:none; border:0; cursor:pointer;
}
.d10-btn-black:hover { color:#fff !important; }
@media (max-width:520px){ .d10-newsletter .form{ width:100%; } .d10-newsletter input{ flex:1; width:auto; } }

/* ==========================================================================
   Events (static placeholder — swap to Query Loop when TEC is added)
   ========================================================================== */
.d10-eventhead { display:flex; align-items:baseline; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:28px; }
.d10-eventcard { background:#fff; border:1px solid var(--d10-line); border-radius:12px; padding:22px; display:flex; gap:16px; align-items:flex-start; height:100%; }
.d10-datetile { flex:none; text-align:center; background:#edf0f7; border-radius:8px; padding:10px 14px; }
.d10-datetile .m { font-weight:600; font-size:10px; letter-spacing:.08em; color:var(--d10-red); margin:0; }
.d10-datetile .d { font-weight:900; font-size:22px; line-height:1; color:var(--d10-navy); margin:2px 0 0; }
.d10-eventcard .t { font-weight:800; font-size:14.5px; line-height:1.3; color:#1a1a1a; margin:0; }
.d10-eventcard .meta { font-weight:400; font-size:12px; line-height:1.5; color:#8a857a; margin:5px 0 0; }

/* ==========================================================================
   Resources list rows + audience toggle
   ========================================================================== */
.d10-reslist { display:flex; flex-direction:column; }
.d10-resrow {
  display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 8px;
  border-top:1px solid var(--d10-line-2); text-decoration:none; transition: background .15s ease;
  min-height:44px;
}
.d10-reslist .d10-resrow:last-of-type { border-bottom:1px solid var(--d10-line-2); }
.d10-resrow:hover { background:#f6f4ef; }
.d10-resrow .title { font-weight:700; font-size:16px; color:#1a1a1a; margin:0; }
.d10-resrow .sub { font-weight:400; font-size:12.5px; line-height:1.5; color:#777166; margin:4px 0 0; }
.d10-resrow .right { display:flex; align-items:center; gap:14px; flex:none; }
.d10-resrow .tag { font-family:var(--wp--preset--font-family--mono); font-weight:600; font-size:11px; color:#b3ada0; }
.d10-resrow .arr { font-weight:900; font-size:17px; color:var(--d10-red); }

.d10-callout-gold {
  background:#FFF7DB; border-left:4px solid var(--d10-gold); border-radius:0 8px 8px 0; padding:16px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.d10-callout-gold .msg { font-weight:600; font-size:13.5px; line-height:1.5; color:#5c4d00; margin:0; }
.d10-callout-gold a { font-weight:700; font-size:13px; color:#1a1a1a; text-decoration:none; white-space:nowrap; }

/* ==========================================================================
   Public safety + RNO rows (neighborhood detail)
   ========================================================================== */
.d10-rno-row {
  background:#fff; border:1px solid var(--d10-line); border-radius:10px; padding:16px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.d10-rno-row .name { font-weight:800; font-size:14px; color:#1a1a1a; margin:0; }
.d10-rno-row .who { font-weight:400; font-size:12px; color:#8a857a; margin:3px 0 0; }
.d10-rno-row a { font-weight:700; font-size:12px; color:var(--d10-navy); text-decoration:none; white-space:nowrap; }

/* ==========================================================================
   Bar charts (Custom HTML — sample data, marked in copy)
   ========================================================================== */
.d10-agechart .legend { display:flex; gap:14px; font-weight:600; font-size:10.5px; color:#8a857a; }
.d10-agechart .legend i { display:inline-block; width:9px; height:9px; border-radius:2px; margin-right:5px; }
.d10-agechart .rows { display:flex; flex-direction:column; gap:12px; }
.d10-agechart .row { display:grid; grid-template-columns:70px 1fr 74px; gap:12px; align-items:center; }
.d10-agechart .band { font-weight:600; font-size:11.5px; color:#57534a; }
.d10-agechart .bars { display:flex; flex-direction:column; gap:3px; }
.d10-agechart .bar { height:9px; border-radius:3px; }
.d10-agechart .bar--ch { background:var(--d10-red); }
.d10-agechart .bar--dn { background:#c9d2e4; }
.d10-agechart .val { font-family:var(--wp--preset--font-family--mono); font-weight:600; font-size:11px; color:#8a857a; text-align:right; }

.d10-trendchart .bars { display:flex; align-items:flex-end; gap:8px; height:150px; }
.d10-trendchart .b { flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; height:100%; justify-content:flex-end; }
.d10-trendchart .b span { width:100%; border-radius:4px 4px 0 0; background:var(--d10-navy); }
.d10-trendchart .b--cur span { background:var(--d10-gold); }
.d10-trendchart .b small { font-weight:600; font-size:9.5px; color:#8a857a; }

/* ==========================================================================
   Contact cards
   ========================================================================== */
.d10-contact-card { background:#fff; border:1px solid var(--d10-line); border-radius:12px; padding:20px 22px; display:flex; align-items:center; gap:16px; text-decoration:none; }
.d10-icon-tile { flex:none; width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-weight:900; font-size:17px; }
.d10-icon-tile--navy { background:#edf0f7; color:var(--d10-navy); }
.d10-icon-tile--gold { background:#FFF7DB; color:#8a6d00; }
.d10-contact-card > span:last-child { display:flex; flex-direction:column; }
.d10-contact-card .big { display:block; font-weight:800; font-size:16px; color:#1a1a1a; margin:0; }
.d10-contact-card .small { display:block; font-weight:400; font-size:12px; color:#8a857a; margin:2px 0 0; }
.d10-info-card { background:#fff; border:1px solid var(--d10-line); border-radius:12px; padding:20px 22px; }
.d10-info-card--urgent { background:var(--d10-navy); }
.d10-info-card .label { font-weight:700; font-size:11.5px; letter-spacing:.1em; color:#8a857a; margin:0 0 10px; text-transform:uppercase; }
.d10-info-card--urgent .label { color:#9fb0d2; }
.d10-info-card--urgent .body, .d10-info-card--urgent .body strong { color:#fff; font-size:13px; line-height:1.65; }

/* Measures (narrower content columns). Sublines stay left-aligned instead of
   being centered by the constrained-layout auto margins. */
.d10-measure-900 { max-width: 900px !important; }
.d10-measure-820 { max-width: 820px !important; }
.d10-measure-560 { max-width: 560px; margin-left: 0 !important; margin-right: auto !important; }
.d10-measure-480 { max-width: 480px; margin-left: 0 !important; margin-right: auto !important; }

/* Breadcrumb */
.d10-breadcrumb { display:flex; gap:8px; align-items:center; font-weight:600; font-size:12px; color:#8a857a; margin-bottom:18px; }
.d10-breadcrumb a { color:var(--d10-navy); text-decoration:none; }
.d10-breadcrumb .cur { color:var(--d10-red); }

/* Utility: full-bleed band gets its vertical rhythm from block padding; helper for
   text color on dark bands where a whole group should be light */
.d10-on-navy, .d10-on-navy p, .d10-on-navy h2, .d10-on-navy h1 { color:#fff; }
.d10-on-navy .d10-sub { color:#9fb0d2; }

/* ==========================================================================
   Section helpers referenced by the page/detail builders
   ========================================================================== */
.d10-topline { border-top: 1px solid var(--d10-line); }
.d10-botline { border-bottom: 1px solid var(--d10-line); }
.d10-center { text-align: center; }
.d10-center .wp-block-buttons { justify-content: center; }
.d10-mono { font-family: var(--wp--preset--font-family--mono) !important; }

/* Homepage vision: author row + avatar */
.d10-authorrow { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.d10-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: block; }
.d10-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d10-authorrow .who { display: flex; flex-direction: column; }
.d10-authorrow .n { font-weight: 800; font-size: 13.5px; color: #1a1a1a; }
.d10-authorrow .t { font-weight: 400; font-size: 12px; color: #8a857a; }

/* Value / priority cards: title paragraph tightened */
.d10-cardtitle { margin: 0 0 10px !important; }
.d10-card p:last-child { margin-bottom: 0; }

/* Events header row + view-all */
.d10-eventhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.d10-viewall { margin: 0 !important; font-weight: 700 !important; }
.d10-viewall a { text-decoration: none; }

/* Neighborhoods index: Query Loop card grid */
.d10-hoodgrid .wp-block-post-template {
	display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin: 0; padding: 0; list-style: none;
}
.d10-hoodcard {
	background: #fff; border: 1px solid var(--d10-line); border-radius: 14px; overflow: hidden;
	box-shadow: var(--d10-shadow-rest); height: 100%;
}
.d10-hoodcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.d10-hoodcard__img { display: block; line-height: 0; }
.d10-hoodcard__body { padding: 18px 20px 20px; }
.d10-hoodcard__title { margin: 0 !important; }
.d10-hoodcard__title a { font-weight: 800; font-size: 17px; color: #1a1a1a; text-decoration: none; }
.d10-hoodcard__title::after { content: "→"; float: right; color: var(--d10-red); font-weight: 900; font-size: 15px; }
.d10-hoodcard__blurb { font-weight: 400 !important; font-size: 12.5px !important; line-height: 1.55 !important; color: #777166 !important; margin: 6px 0 0 !important; }
@media (max-width: 900px) { .d10-hoodgrid .wp-block-post-template { grid-template-columns: 1fr; } }

/* CTA rows (navy address bands) */
.d10-ctarow { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.d10-ctahead { margin: 0 !important; letter-spacing: -.01em; }
.d10-ctarow .d10-sub { margin: 6px 0 0 !important; }
.d10-ctaform { flex: 1; min-width: 320px; max-width: 480px; }

/* Maps: police card + map column */
.d10-mapcol { display: flex; flex-direction: column; gap: 24px; height: 100%; }
.d10-mapcol > * { flex: 1; }
.d10-policecard { padding: 20px 22px; }
.d10-policecard__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.d10-policecard__head .t { font-weight: 800; font-size: 15px; color: #1a1a1a; }
.d10-policecard__head .arr { font-weight: 900; font-size: 15px; color: var(--d10-red); }
.d10-policecard__rows { display: flex; flex-direction: column; gap: 8px; }
.d10-policecard__rows .r { display: flex; justify-content: space-between; align-items: center; }
.d10-policecard__rows .d { font-weight: 700; font-size: 12.5px; color: var(--d10-navy); }
.d10-policecard__rows .p { font-family: var(--wp--preset--font-family--mono); font-weight: 600; font-size: 12px; color: #57534a; }

/* Resource rows inner layout */
.d10-resrow .txt { display: flex; flex-direction: column; }
.d10-resrow .title, .d10-resrow .sub { display: block; }

/* About: "1st" band + placeholder box + button row */
.d10-grid--firstband { grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
@media (max-width: 900px) { .d10-grid--firstband { grid-template-columns: 1fr; gap: 16px; } }
.d10-first { font-weight: 900; font-size: 54px; line-height: 1; color: var(--d10-gold); }
.d10-first-lead { font-weight: 800 !important; line-height: 1.3 !important; margin: 0 !important; }
.d10-btnrow { display: flex; gap: 10px; flex-wrap: wrap; }
.d10-btnrow .wp-block-buttons { margin: 0; }
.d10-placeholder {
	margin-top: 20px; background: #f6f4ef; border-radius: 10px; padding: 16px 20px;
	font-family: var(--wp--preset--font-family--mono); font-size: 12px; line-height: 1.6; color: #8a857a;
}

/* Contact columns */
.d10-contactcol { display: flex; flex-direction: column; gap: 16px; }
.d10-formcard { background: #fff; border: 1px solid var(--d10-line); border-radius: 14px; padding: 32px 34px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.d10-formtitle { font-weight: 800 !important; margin: 0 0 4px !important; }

/* Neighborhood detail: quick-facts denver line handled in .d10-quickfacts;
   demographics chart head; safety card; RNO list spacing */
.d10-agechart .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.d10-agechart .ttl { font-weight: 800; font-size: 14px; color: #1a1a1a; }
.d10-safety .kick { font-weight: 700; font-size: 11.5px; letter-spacing: .12em; color: var(--d10-red); margin-bottom: 10px; text-transform: uppercase; }
.d10-safety .dist { font-weight: 900; font-size: 19px; color: #1a1a1a; margin-bottom: 4px; }
.d10-safety .addr { font-size: 13px; line-height: 1.6; color: #57534a; margin-bottom: 14px; }
.d10-safety .addr a { text-decoration: none; }
.d10-safety .cro-label { font-weight: 700; font-size: 11px; letter-spacing: .08em; color: #8a857a; margin-bottom: 8px; text-transform: uppercase; }
.d10-safety .cros { display: flex; flex-direction: column; gap: 10px; }
.d10-safety .cro-n { font-weight: 700; font-size: 13px; color: #1a1a1a; }
.d10-safety .cro-c { font-weight: 400; font-size: 12px; color: #57534a; }
.d10-rnolist { display: flex; flex-direction: column; gap: 12px; }

/* Contact form (Contact Form 7) styled to the design */
.d10-formcard .wpcf7-form p { margin: 0 0 16px; }
.d10-formcard .d10-cf7-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .d10-formcard .d10-cf7-grid { grid-template-columns: 1fr; } }
.d10-formcard label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 12px; color: #57534a; }
.d10-formcard input[type=text], .d10-formcard input[type=email], .d10-formcard input[type=tel],
.d10-formcard select, .d10-formcard textarea {
	border: 1.5px solid #dcd8cc; border-radius: 7px; padding: 13px 14px; font-size: 14px; outline: none;
	background: #fdfcfa; color: #1a1a1a; width: 100%;
	font-family: var(--wp--preset--font-family--sans, 'Public Sans', sans-serif);
}
.d10-formcard input:focus, .d10-formcard select:focus, .d10-formcard textarea:focus { border-color: var(--d10-navy); }
.d10-formcard textarea { resize: vertical; min-height: 120px; }
.d10-formcard .wpcf7-submit {
	font-weight: 700; font-size: 15px; background: var(--d10-red); color: #fff; border: none; border-radius: 8px;
	padding: 15px 28px; cursor: pointer;
}
.d10-formcard .wpcf7-submit:hover { background: var(--d10-red-dark); }
.d10-hp { position: absolute; left: -9999px; top: -9999px; }

/* ==========================================================================
   Typographic rhythm (blockGap is 0 globally; restore heading/paragraph gaps
   in flowing content without affecting header/footer or card internals)
   ========================================================================== */
main h1.wp-block-heading { margin-bottom: 18px; }
main h2.wp-block-heading { margin-bottom: 16px; }
main .d10-measure-820 p + p,
main .d10-hero-copy p + p { margin-top: 14px; }
main .d10-hero-copy .wp-block-buttons,
main .d10-hero-copy .wp-block-d10-address-search { margin-top: 8px; }
