/*
Theme Name:   Winnemucca Main Street
Theme URI:    https://winnemuccamainstreet.org
Description:  Custom standalone WordPress theme for Winnemucca Main Street Corporation. Matches the static front-end design exactly. Built by Buck Matthews Designs LLC (The 23 Eleven).
Author:       Buck Matthews Designs LLC (The 23 Eleven)
Author URI:   https://the23eleven.com
Version:      1.0.0
License:      Private — All Rights Reserved
Text Domain:  winnemucca-main-street
*/


/* =============================================================================
   1. DESIGN TOKENS
   ============================================================================= */
:root {
  --primary:      #3E6C6A;
  --primary-dark: #2A4E4C;
  --primary-deep: #1a3432;
  --primary-mid:  #4d8583;
  --primary-lt:   #6fa8a6;
  --primary-wash: #e8f2f1;
  --primary-mint: #f0f8f7;

  --secondary:    #F94D02;
  --sec-dark:     #c93d00;
  --sec-wash:     #fff1eb;

  --accent:       #6F806D;

  --warm-gray:    #E5E4E0;
  --off-white:    #FDFDFD;

  --gold:         #E8B84B;
  --gold-dark:    #c99a30;
  --gold-lt:      #f5d48a;

  --ink:          #0f1a19;
  --ink-800:      #162220;
  --ink-700:      #1e2e2c;
  --ink-500:      #3d5a57;
  --ink-400:      #6a8a87;

  --stone-200:    #dedad4;
  --stone-100:    #efecea;

  --ff-h: 'Barlow Condensed', Impact, sans-serif;
  --ff-b: 'Nunito Sans', system-ui, sans-serif;

  --nav-h: 72px;
  --max-w: 1240px;
}


/* =============================================================================
   2. RESET & BASE
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff-b); color: var(--ink-700); background: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Override Divi defaults */
#page-container { padding: 0 !important; }
.et_pb_section { padding: 0 !important; }
.et_pb_row { max-width: var(--max-w) !important; width: 100% !important; padding: 0 clamp(1.5rem, 4vw, 2.5rem) !important; margin-inline: auto !important; }


/* =============================================================================
   3. LAYOUT UTILITIES
   ============================================================================= */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(1.5rem, 4vw, 2.5rem); }

.skip-nav { position: absolute; top: -100%; left: 1rem; background: var(--primary-dark); color: #fff; padding: .5rem 1rem; font-size: .85rem; z-index: 9999; transition: top .15s; }
.skip-nav:focus { top: 0; }


/* =============================================================================
   4. TYPE UTILITIES
   ============================================================================= */
.ew { font-family: var(--ff-h); font-size: .82rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; display: block; margin-bottom: .6rem; }
.ew-teal  { color: var(--primary); }
.ew-white { color: rgba(255,255,255,.6); }
.ew-gold  { color: var(--gold); }
.ew-sec   { color: var(--secondary); }

.hd       { font-family: var(--ff-h); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: .98; }
.hd-white { color: #fff; }
.hd-dark  { color: var(--primary-deep); }
.hd-teal  { color: var(--primary); }


/* =============================================================================
   5. BUTTONS
   ============================================================================= */
.btn        { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--ff-h); font-size: .9rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: .82rem 1.65rem; border: 2.5px solid transparent; cursor: pointer; transition: all .18s; white-space: nowrap; line-height: 1; }
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold       { background: var(--gold); color: var(--primary-deep); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); box-shadow: 0 6px 20px rgba(232,184,75,.4); }

.btn-ow       { background: transparent; color: #fff; border-color: #fff; }
.btn-ow:hover { background: rgba(255,255,255,.1); }

.btn-sec       { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-sec:hover { background: var(--sec-dark); box-shadow: 0 6px 20px rgba(249,77,2,.35); }

.btn-op       { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-op:hover { background: var(--primary); color: #fff; }

.btn-wh       { background: #fff; color: var(--primary-deep); border-color: #fff; }
.btn-wh:hover { background: var(--warm-gray); box-shadow: 0 4px 16px rgba(0,0,0,.15); }

.btn-sm { padding: .58rem 1.15rem; font-size: .78rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: .98rem; }


/* =============================================================================
   6. UNDERLINE LINKS
   ============================================================================= */
.ul-link         { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--ff-b); font-size: 1rem; font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: .1rem; transition: color .18s; }
.ul-link-teal    { color: var(--primary); }
.ul-link-teal:hover   { color: var(--primary-dark); }
.ul-link-white   { color: rgba(255,255,255,.8); }
.ul-link-white:hover  { color: var(--gold); }


/* =============================================================================
   7. SCROLL REVEAL
   ============================================================================= */
.rv    { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }


/* =============================================================================
   8. NAVIGATION
   ============================================================================= */
#nav { position: sticky; top: 0; z-index: 500; background: #fff; height: var(--nav-h); border-bottom: 1px solid var(--stone-200); transition: box-shadow .25s; }
#nav.up { box-shadow: 0 2px 20px rgba(0,0,0,.1); }
#nav .container { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand-hex { width: 40px; height: 40px; background: var(--primary); display: flex; align-items: center; justify-content: center; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
.brand-hex span { font-family: var(--ff-h); font-size: .78rem; font-weight: 800; color: #fff; letter-spacing: .05em; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--ff-h); font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--primary-deep); }
.brand-sub  { font-family: var(--ff-b); font-size: .58rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); }

.nav-ul { display: flex; align-items: center; gap: 0; list-style: none; flex: 1; justify-content: center; margin: 0; padding: 0; }
.nav-ul > li { position: relative; }
.nav-ul > li > a { display: flex; align-items: center; gap: .28rem; font-family: var(--ff-b); font-size: .84rem; font-weight: 600; color: var(--ink-500); padding: 0 .95rem; height: var(--nav-h); transition: color .18s; white-space: nowrap; }
.nav-ul > li > a:hover,
.nav-ul > li > a.active { color: var(--primary); }
.nav-ul > li > a::after { content: ''; position: absolute; bottom: 0; left: .95rem; right: .95rem; height: 3px; background: var(--secondary); transform: scaleX(0); transform-origin: center; transition: transform .2s; }
.nav-ul > li > a:hover::after,
.nav-ul > li > a.active::after { transform: scaleX(1); }

.chv { font-size: .55rem; opacity: .5; transition: transform .2s; display: inline-block; }
.nav-ul > li:hover .chv { transform: rotate(180deg); }

.drop { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-6px); min-width: 205px; background: #fff; border-top: 3px solid var(--secondary); box-shadow: 0 8px 32px rgba(0,0,0,.13); padding: .5rem 0 .5rem; padding-top: calc(.5rem + 4px); margin-top: -4px; opacity: 0; visibility: hidden; pointer-events: none; z-index: 600; transition: opacity .2s .05s, transform .2s .05s, visibility .2s .05s; }
.nav-ul > li:hover .drop,
.nav-ul > li:focus-within .drop { opacity: 1; visibility: visible; pointer-events: all; transform: translateX(-50%) translateY(0); transition: opacity .18s, transform .18s, visibility .18s; }
.drop a { display: block; padding: .62rem 1.2rem; font-size: .82rem; font-weight: 500; color: var(--ink-500); transition: background .15s, color .15s; }
.drop a:hover { background: var(--primary-mint); color: var(--primary-dark); }
.drop hr { height: 1px; background: var(--stone-200); margin: .35rem 0; border: none; }

.nav-r { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.nav-mobile-cta { display: none; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .35rem; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink-700); border-radius: 2px; transition: all .28s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =============================================================================
   9. INNER PAGE HERO
   ============================================================================= */
.page-hero { background: var(--primary-deep); padding: 4rem 0 3.5rem; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; top: -40px; right: -30px; width: 180px; height: 180px; background: var(--primary); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); opacity: .25; pointer-events: none; }
.page-hero .ew { color: var(--gold); }
.page-hero h1 { font-family: var(--ff-h); font-size: clamp(2.8rem, 4.5vw, 5rem); font-weight: 800; text-transform: uppercase; color: #fff; line-height: .98; max-width: 700px; margin-bottom: 1rem; }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,.68); max-width: 560px; line-height: 1.72; }


/* =============================================================================
   10. PRE-FOOTER
   ============================================================================= */
.pre-footer { background: var(--primary-deep); padding: 5rem 0 4rem; position: relative; overflow: hidden; }
.pre-footer::after { content: ''; position: absolute; bottom: -65px; right: -45px; width: 280px; height: 280px; background: var(--primary); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); opacity: .2; pointer-events: none; }
.pf-deco { position: absolute; bottom: 25px; right: 190px; width: 160px; height: 160px; background: var(--primary-mid); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); opacity: .18; pointer-events: none; }
.pre-footer .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 4rem; align-items: start; }

.pf-l h2 { font-family: var(--ff-h); font-size: clamp(2.4rem, 4.2vw, 4.8rem); font-weight: 800; text-transform: uppercase; line-height: .95; letter-spacing: .02em; color: #fff; margin-bottom: 1.4rem; }
.pf-l .sub { font-family: var(--ff-b); font-size: 1rem; color: rgba(255,255,255,.62); line-height: 1.7; margin-bottom: 2rem; }
.nl { display: flex; flex-direction: column; gap: .65rem; max-width: 440px; }
.nl-row { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.nl label { display: block; font-family: var(--ff-h); font-size: .64rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: .28rem; }
.nl input { width: 100%; padding: .72rem 1rem; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.14); font-family: var(--ff-b); font-size: .88rem; color: #fff; outline: none; transition: border-color .2s, background .2s; }
.nl input::placeholder { color: rgba(255,255,255,.24); }
.nl input:focus { border-color: var(--primary-lt); background: rgba(255,255,255,.12); }
.nl-note { font-size: .68rem; color: rgba(255,255,255,.22); margin-top: .25rem; }

.pf-c h4 { font-family: var(--ff-h); font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 1.2rem; }
.pf-c p { font-size: .88rem; line-height: 1.9; color: rgba(255,255,255,.48); }
.pf-c a { display: block; margin-top: 1rem; font-size: .9rem; color: rgba(255,255,255,.65); border-bottom: 1px solid rgba(255,255,255,.28); padding-bottom: .1rem; width: fit-content; transition: color .18s, border-color .18s; }
.pf-c a:hover { color: var(--gold); border-color: var(--gold); }

.pf-s h4 { font-family: var(--ff-h); font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 1.2rem; }
.soc-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.soc-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; color: var(--primary-deep); transition: background .2s, transform .18s; }
.soc-ico:hover { background: var(--gold-lt); transform: scale(1.1); }
.soc-ico i { font-size: 18px; line-height: 1; }


/* =============================================================================
   11. FOOTER BAR
   ============================================================================= */
.footer-bar { background: var(--ink); border-top: 1px solid rgba(255,255,255,.07); padding: 1.1rem 0; }
.footer-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bar p { font-family: var(--ff-h); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.28); margin: 0; }
.footer-bar a { color: rgba(255,255,255,.38); transition: color .18s; }
.footer-bar a:hover { color: rgba(255,255,255,.7); }
.fbar-links { display: flex; gap: 1.5rem; }
.fbar-links a { font-family: var(--ff-h); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); transition: color .18s; }
.fbar-links a:hover { color: var(--gold-lt); }


/* =============================================================================
   12. FLOATING BUTTONS
   ============================================================================= */
.float-wrap { position: fixed; z-index: 400; pointer-events: none; }
.float-wrap--l { bottom: 2rem; left: 2rem; }
.float-wrap--r { bottom: 2rem; right: 2rem; display: flex; flex-direction: column; gap: .6rem; align-items: flex-end; }

.float-btn { pointer-events: all; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-family: var(--ff-h); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: .7rem 1.35rem; border: 2.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .18s, color .18s, opacity .3s; min-width: 44px; min-height: 44px; line-height: 1; white-space: nowrap; }
.float-btn:hover { transform: translateY(-2px); }
.float-btn:active { transform: translateY(0) scale(0.97); }

.float-btn--top { width: 44px; height: 44px; padding: 0; background: var(--primary-deep); color: #fff; border-color: transparent; opacity: 0; pointer-events: none; transition: opacity .3s, transform .2s; }
.float-btn--top.visible { opacity: 1; pointer-events: all; }
.float-btn--top:hover { box-shadow: 0 6px 20px rgba(0,0,0,.25); }

.float-btn--donate { background: var(--gold); color: var(--primary-deep); border-color: var(--gold); box-shadow: 0 4px 16px rgba(232,184,75,.35); }
.float-btn--donate:hover { background: var(--gold-dark); border-color: var(--gold-dark); box-shadow: 0 6px 20px rgba(232,184,75,.4); }

.float-btn--vol { background: #fff; color: var(--primary); border-color: var(--primary); box-shadow: 0 4px 14px rgba(62,108,106,.15); }
.float-btn--vol:hover { background: var(--primary); color: #fff; box-shadow: 0 6px 20px rgba(62,108,106,.3); }


/* =============================================================================
   13. BLOG ARCHIVE (news.html pattern)
   ============================================================================= */
.blog-wrap { padding: 4.5rem 0 6rem; background: #fff; }

.blog-filter { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 3rem; padding-bottom: 1.25rem; border-bottom: 2px solid var(--stone-100); }
.blog-filter__btn { font-family: var(--ff-h); font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; padding: .45rem 1.05rem; border: 2px solid transparent; color: var(--ink-400); transition: all .18s; }
.blog-filter__btn:hover,
.blog-filter__btn.is-active { color: var(--primary); border-color: var(--primary); }

.blog-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 4rem; padding: 2.5rem; background: var(--primary-mint); }
.blog-featured__img { aspect-ratio: 16/9; overflow: hidden; }
.blog-featured__img img,
.blog-featured__img .img-placeholder { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%); }
.blog-featured__img .img-placeholder { background: var(--primary-wash); }
.blog-featured__meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .85rem; flex-wrap: wrap; }
.blog-featured__cat { font-family: var(--ff-h); font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; background: var(--secondary); color: #fff; padding: .2rem .7rem; }
.blog-featured__date { font-family: var(--ff-b); font-size: .78rem; color: var(--ink-400); }
.blog-featured__title { font-family: var(--ff-h); font-size: clamp(1.8rem, 2.8vw, 2.8rem); font-weight: 800; text-transform: uppercase; color: var(--primary-deep); line-height: 1.05; letter-spacing: .02em; margin-bottom: .9rem; }
.blog-featured__title a { transition: color .18s; }
.blog-featured__title a:hover { color: var(--primary); }
.blog-featured__excerpt { font-size: .95rem; line-height: 1.8; color: var(--ink-500); margin-bottom: 1.5rem; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3.5rem; }

.post-card { display: flex; flex-direction: column; }
.post-card__img { aspect-ratio: 16/9; overflow: hidden; margin-bottom: 1rem; background: var(--primary-wash); }
.post-card__img img,
.post-card__img .img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card__img img,
.post-card:hover .post-card__img .img-placeholder { transform: scale(1.04); }
.post-card__img .img-placeholder { background: var(--primary-wash); }
.post-card__cat { font-family: var(--ff-h); font-size: .68rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-700); margin-bottom: .5rem; display: block; }
.post-card__title { font-family: var(--ff-h); font-size: 1.25rem; font-weight: 800; text-transform: uppercase; color: var(--primary); line-height: 1.1; margin-bottom: .55rem; letter-spacing: .02em; transition: color .18s; }
.post-card:hover .post-card__title { color: var(--primary-dark); }
.post-card__excerpt { font-size: .87rem; line-height: 1.75; color: var(--ink-500); flex: 1; }
.post-card__date { font-family: var(--ff-b); font-size: .75rem; color: var(--ink-400); margin-top: .65rem; }

/* Pagination */
.wp-pagination { display: flex; justify-content: center; align-items: center; gap: .5rem; padding-top: 1rem; }
.wp-pagination .page-numbers { font-family: var(--ff-h); font-size: .82rem; font-weight: 800; letter-spacing: .1em; padding: .55rem .95rem; border: 2px solid var(--stone-200); color: var(--ink-500); transition: all .18s; }
.wp-pagination .page-numbers:hover,
.wp-pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.wp-pagination .page-numbers.dots { border: none; cursor: default; }


/* =============================================================================
   14. SINGLE POST (news-post.html pattern)
   ============================================================================= */
.post-wrap { padding: 4rem 0 6rem; background: #fff; }
.post-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }

/* Breadcrumb */
.breadcrumb { font-family: var(--ff-b); font-size: .78rem; color: var(--ink-400); margin-bottom: 1.75rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); transition: color .18s; }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb i { font-size: .6rem; color: var(--stone-200); }

/* Post meta */
.post-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.post-meta__cat { font-family: var(--ff-h); font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; background: var(--secondary); color: #fff; padding: .2rem .7rem; }
.post-meta__date,
.post-meta__author { font-family: var(--ff-b); font-size: .8rem; color: var(--ink-400); }
.post-meta__author strong { color: var(--ink-500); font-weight: 600; }

/* Post title */
.post-title { font-family: var(--ff-h); font-size: clamp(2.2rem, 3.8vw, 4.2rem); font-weight: 800; text-transform: uppercase; color: var(--primary-deep); line-height: 1.0; letter-spacing: .02em; margin-bottom: 2rem; }

/* Featured image */
.post-hero-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; margin-bottom: 2.5rem; }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% 92%, 96% 100%, 0 100%); }
.post-hero-img .img-placeholder { width: 100%; height: 100%; background: var(--primary-wash); clip-path: polygon(0 0, 100% 0, 100% 92%, 96% 100%, 0 100%); }

/* Post body */
.post-body { font-family: var(--ff-b); font-size: .975rem; line-height: 1.85; color: var(--ink-500); }
.post-body h2 { font-family: var(--ff-h); font-size: 1.8rem; font-weight: 800; text-transform: uppercase; color: var(--primary-deep); margin: 2.5rem 0 1rem; padding-top: .5rem; border-top: 2px solid var(--stone-100); letter-spacing: .03em; }
.post-body h3 { font-family: var(--ff-h); font-size: 1.25rem; font-weight: 800; text-transform: uppercase; color: var(--primary-deep); margin: 2rem 0 .75rem; letter-spacing: .04em; }
.post-body p { margin-bottom: 1.2rem; }
.post-body ul, .post-body ol { margin: 0 0 1.2rem 1.5rem; }
.post-body li { margin-bottom: .4rem; }
.post-body a { color: var(--primary); font-weight: 600; border-bottom: 1.5px solid var(--primary); transition: color .18s; }
.post-body a:hover { color: var(--primary-dark); }
.post-body blockquote { border-left: 4px solid var(--secondary); padding: 1rem 1.5rem; margin: 1.75rem 0; background: var(--sec-wash); }
.post-body blockquote p { font-size: 1.05rem; font-style: italic; color: var(--ink-700); margin: 0; line-height: 1.7; }
.post-body img { border-radius: 0; margin: 1.5rem 0; max-width: 100%; }
.post-body figure { margin: 1.5rem 0; }
.post-body figcaption { font-size: .78rem; color: var(--ink-400); margin-top: .4rem; font-style: italic; }

/* Inline donate CTA */
.post-cta-inline { padding: 1.75rem 2rem; background: var(--primary-mint); border-left: 4px solid var(--primary); margin: 2.5rem 0; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: space-between; }
.post-cta-inline p { font-family: var(--ff-b); font-size: .9rem; line-height: 1.7; color: var(--ink-500); margin: 0; flex: 1; min-width: 200px; }
.post-cta-inline strong { color: var(--primary-deep); }

/* Tags + share */
.post-footer { padding: 2rem 0; border-top: 2px solid var(--stone-100); margin-top: 2rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.post-tags { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.post-tags__label { font-family: var(--ff-h); font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-400); margin-right: .2rem; }
.post-tag { font-family: var(--ff-b); font-size: .78rem; padding: .28rem .75rem; background: var(--stone-100); color: var(--ink-500); border: 1.5px solid var(--stone-200); transition: all .18s; }
.post-tag:hover { background: var(--primary-mint); border-color: var(--primary); color: var(--primary); }
.post-share { display: flex; align-items: center; gap: .5rem; }
.post-share__label { font-family: var(--ff-h); font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-400); }
.post-share a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--stone-100); color: var(--ink-500); transition: all .18s; font-size: .9rem; }
.post-share a:hover { background: var(--primary); color: #fff; }

/* Prev / Next nav */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--stone-100); margin-top: 3rem; }
.post-nav__item { padding: 1.5rem 2rem; display: flex; flex-direction: column; gap: .3rem; transition: background .18s; }
.post-nav__item:hover { background: var(--primary-mint); }
.post-nav__item--next { border-left: 1px solid var(--stone-100); align-items: flex-end; text-align: right; }
.post-nav__dir { font-family: var(--ff-h); font-size: .65rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-400); display: flex; align-items: center; gap: .4rem; }
.post-nav__title { font-family: var(--ff-h); font-size: 1rem; font-weight: 800; text-transform: uppercase; color: var(--primary-deep); line-height: 1.2; letter-spacing: .02em; transition: color .18s; }
.post-nav__item:hover .post-nav__title { color: var(--primary); }

/* Sidebar */
.post-sidebar { position: sticky; top: calc(var(--nav-h) + 1.5rem); display: flex; flex-direction: column; gap: 2rem; }

.sidebar-card { padding: 1.5rem; }
.sidebar-card--dark { background: var(--primary-deep); }
.sidebar-card--light { background: var(--primary-mint); border: 1.5px solid var(--primary-wash); }

.sidebar-card--dark .sc-eyebrow { font-family: var(--ff-h); font-size: .65rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: .6rem; }
.sidebar-card--dark h3 { font-family: var(--ff-h); font-size: 1.4rem; font-weight: 800; text-transform: uppercase; color: #fff; line-height: 1.05; margin-bottom: .7rem; letter-spacing: .03em; }
.sidebar-card--dark p { font-size: .85rem; line-height: 1.75; color: rgba(255,255,255,.6); margin-bottom: 1.2rem; }

.sidebar-card--light h3 { font-family: var(--ff-h); font-size: 1rem; font-weight: 800; text-transform: uppercase; color: var(--primary-deep); letter-spacing: .08em; margin-bottom: 1.2rem; padding-bottom: .6rem; border-bottom: 2px solid var(--primary-wash); }

.recent-posts-list { list-style: none; display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; }
.recent-posts-list li { padding: .75rem 0; border-bottom: 1px solid var(--stone-100); }
.recent-posts-list li:last-child { border-bottom: none; padding-bottom: 0; }
.recent-posts-list a { font-family: var(--ff-b); font-size: .85rem; font-weight: 600; color: var(--primary-dark); line-height: 1.4; transition: color .18s; }
.recent-posts-list a:hover { color: var(--secondary); }
.recent-posts-list .rp-date { font-size: .72rem; color: var(--ink-400); display: block; margin-top: .18rem; }

.sidebar-nl { display: flex; flex-direction: column; gap: .55rem; }
.sidebar-nl label { font-family: var(--ff-h); font-size: .62rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-400); }
.sidebar-nl input { padding: .65rem .9rem; border: 1.5px solid var(--stone-200); font-family: var(--ff-b); font-size: .85rem; color: var(--ink-700); outline: none; width: 100%; transition: border-color .2s; }
.sidebar-nl input:focus { border-color: var(--primary); }


/* =============================================================================
   15. GENERIC PAGE CONTENT
   ============================================================================= */
.page-content { padding: 4rem 0 6rem; }
.page-content h1,
.page-content h2 { font-family: var(--ff-h); font-weight: 800; text-transform: uppercase; color: var(--primary-deep); }
.page-content p { font-family: var(--ff-b); line-height: 1.8; color: var(--ink-500); margin-bottom: 1rem; }


/* =============================================================================
   16. 404 / SEARCH
   ============================================================================= */
.error-wrap,
.search-wrap { padding: 5rem 0 7rem; }
.error-wrap { text-align: center; }
.error-code { font-family: var(--ff-h); font-size: clamp(6rem, 15vw, 14rem); font-weight: 800; color: var(--stone-100); line-height: 1; display: block; margin-bottom: -1rem; }
.error-wrap h2 { font-family: var(--ff-h); font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 800; text-transform: uppercase; color: var(--primary-deep); margin-bottom: 1rem; }
.error-wrap p { font-size: 1rem; color: var(--ink-400); max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.8; }
.error-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.search-form { display: flex; gap: .5rem; max-width: 540px; margin: 2rem auto 3rem; }
.search-form input { flex: 1; padding: .8rem 1rem; border: 2px solid var(--stone-200); font-family: var(--ff-b); font-size: .95rem; color: var(--ink-700); outline: none; transition: border-color .2s; }
.search-form input:focus { border-color: var(--primary); }
.search-form button { background: var(--primary); color: #fff; border: none; padding: 0 1.4rem; font-family: var(--ff-h); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .18s; }
.search-form button:hover { background: var(--primary-dark); }

.search-results-count { font-family: var(--ff-h); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--stone-100); }
.search-result { padding: 2rem 0; border-bottom: 1px solid var(--stone-100); }
.search-result:first-of-type { padding-top: 0; }
.search-result__cat { font-family: var(--ff-h); font-size: .65rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; background: var(--primary-wash); color: var(--primary); padding: .18rem .6rem; display: inline-block; margin-bottom: .6rem; }
.search-result__title { font-family: var(--ff-h); font-size: 1.4rem; font-weight: 800; text-transform: uppercase; color: var(--primary-deep); line-height: 1.05; margin-bottom: .5rem; letter-spacing: .02em; transition: color .18s; }
.search-result__title:hover { color: var(--primary); }
.search-result__excerpt { font-size: .9rem; line-height: 1.8; color: var(--ink-400); margin-bottom: .65rem; }
.search-result__date { font-family: var(--ff-b); font-size: .75rem; color: var(--ink-400); }


/* =============================================================================
   17. COMMENTS
   ============================================================================= */
.wms-comments { margin-top: 3.5rem; padding-top: 3rem; border-top: 2px solid var(--stone-100); }
.wms-comments h2 { font-family: var(--ff-h); font-size: 1.5rem; font-weight: 800; text-transform: uppercase; color: var(--primary-deep); letter-spacing: .04em; margin-bottom: 2rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-body { background: var(--stone-100); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.comment-author .fn { font-family: var(--ff-b); font-size: .9rem; font-weight: 700; color: var(--primary-deep); }
.comment-metadata { font-size: .75rem; color: var(--ink-400); margin: .2rem 0 .75rem; }
.comment-content p { font-size: .9rem; line-height: 1.8; color: var(--ink-500); }

.comment-form label { font-family: var(--ff-h); font-size: .65rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-400); display: block; margin-bottom: .3rem; margin-top: 1rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; padding: .7rem 1rem; border: 1.5px solid var(--stone-200); font-family: var(--ff-b); font-size: .9rem; color: var(--ink-700); outline: none; transition: border-color .2s; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--primary); }
.comment-form .form-submit { margin-top: 1.25rem; }
.comment-form .submit { background: var(--primary); color: #fff; border: none; padding: .75rem 2rem; font-family: var(--ff-h); font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .18s; }
.comment-form .submit:hover { background: var(--primary-dark); }


/* =============================================================================
   18. RESPONSIVE
   ============================================================================= */
@media (max-width: 1100px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .pre-footer .container { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .pf-l { grid-column: span 2; }
}

@media (max-width: 860px) {
  .blog-featured { grid-template-columns: 1fr; }
  .pre-footer .container { grid-template-columns: 1fr; }
  .pf-l { grid-column: span 1; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--next { border-left: none; border-top: 1px solid var(--stone-100); align-items: flex-start; text-align: left; }
}

@media (max-width: 640px) {
  .nav-ul { display: none; flex-direction: column; list-style: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: #fff; border-bottom: 3px solid var(--secondary); padding: 1rem clamp(1.5rem, 4vw, 2.5rem) 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,.1); z-index: 501; margin: 0; }
  .nav-ul.open { display: flex; }
  .nav-ul > li > a { height: auto; padding: .75rem 0; border-bottom: 1px solid var(--stone-100); }
  .nav-ul > li > a::after { display: none; }
  .drop { display: none !important; }
  .nav-ul > li.mob-open .drop { display: block !important; position: static !important; transform: none !important; opacity: 1 !important; visibility: visible !important; box-shadow: none; border-left: 3px solid var(--primary); padding: .35rem 0 .35rem .75rem; margin: 0 0 .5rem; min-width: 0; }
  .nav-ul > li.mob-open .drop a { padding: .5rem 0; font-size: .85rem; border-bottom: 1px solid var(--stone-100); }
  .nav-ul > li.mob-open .drop a:last-child { border-bottom: none; }
  .nav-ul > li.mob-open .chv { transform: rotate(180deg); }
  .burger { display: flex; }
  .nav-r { display: none; }
  .nav-mobile-cta { display: block !important; }
  .nav-cta { display: flex; gap: .65rem; padding: .85rem 0 .5rem; border-top: 2px solid var(--stone-100); margin-top: .35rem; }
  .nav-cta .btn { flex: 1; justify-content: center; }
  .blog-grid { grid-template-columns: 1fr; }
  .float-wrap--l { bottom: 1.25rem; left: 1.25rem; }
  .float-wrap--r { bottom: 1.25rem; right: 1.25rem; }
  .nl-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}
