/* ==========================================================
   Blog archive (/blog/) and post extras, 2026-10-05.
   Loaded only on /blog/ pages. Uses the Night Gulf tokens from site.css,
   so light and dark mode follow html[data-theme].
   ========================================================== */
.blog-hero .lead{font-size:18px;line-height:1.6;max-width:60ch;color:var(--slate);margin-top:4px}
.blog-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Topic filters: hidden until blog.js runs, so no-JS visitors see every post and no dead buttons. */
.blog-filters{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px}
.blog-filters[hidden]{display:none}
.blog-filter{min-height:44px;padding:10px 18px;border-radius:999px;border:1px solid var(--concrete);background:var(--paper-raised);color:var(--ink);font:inherit;font-size:15px;font-weight:600;line-height:1.2;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.blog-filter:hover{border-color:var(--teal);color:var(--teal)}
.blog-filter[aria-pressed="true"]{background:var(--btn-teal);border-color:var(--btn-teal);color:var(--on-btn-teal);font-weight:700}
.blog-filter:focus-visible{outline:3px solid var(--teal);outline-offset:2px}

/* Card grid: same card as the Services option-card (raised paper, concrete border, 12px radius). */
.blog-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.blog-grid>li[hidden]{display:none}
.blog-card{position:relative;transition:border-color .15s ease,transform .15s ease}
.blog-card:hover{border-color:var(--teal)}
.blog-card:focus-within{border-color:var(--teal)}
.option-card.blog-card img,.blog-card-fallback{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}
.option-card.blog-card img.pos-top{object-position:center 20%}
.blog-card-fallback{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:linear-gradient(135deg,#0B1F33 0%,#0B1F33 45%,#0E5A64 100%);color:#F6F3EC}
.blog-card-fallback svg{width:34px;height:auto;color:#3AA0A8}
.blog-card-fallback span{font-size:12px;font-weight:600;letter-spacing:.13em;text-transform:uppercase;color:#C9D6DC}
.blog-card-fallback--panels{background:linear-gradient(160deg,#0B1F33 0%,#16324A 55%,#2A4A5E 100%)}
.blog-card-fallback--backup{background:linear-gradient(200deg,#0B1F33 0%,#0B1F33 40%,#14535C 100%)}
.blog-card-fallback--community{background:linear-gradient(135deg,#0B1F33 0%,#1C3A52 100%)}
html[data-theme="dark"] .blog-card-fallback{box-shadow:inset 0 -1px 0 var(--concrete)}
.blog-card .card-body{display:flex;flex-direction:column;gap:8px;flex:1}
.blog-card time{font-size:14px;color:var(--slate)}
.blog-card h2{font-size:19px;line-height:1.3;margin:0}
.blog-card h2 a{color:var(--ink)}
.blog-card h2 a::after{content:"";position:absolute;inset:0;border-radius:var(--radius)}
.blog-card h2 a:hover{color:var(--teal)}
.blog-card h2 a:focus-visible{outline:none}
.blog-card:has(h2 a:focus-visible){outline:3px solid var(--teal);outline-offset:2px}
.blog-card p{font-size:16px;line-height:1.5;color:var(--slate);margin:0}
.blog-empty{margin-top:12px;color:var(--slate)}
@media (max-width:1024px){.blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.blog-grid{grid-template-columns:1fr;gap:16px}}
@media (prefers-reduced-motion:reduce){.blog-card,.blog-filter{transition:none}}

/* Post pages: small additions for migrated WordPress bodies. */
.post-meta .post-reviewer{font-weight:600;color:var(--ink)}
.prose blockquote{margin-left:0;padding:16px 20px;border-left:4px solid var(--teal);background:var(--paper-raised);border-radius:0 var(--radius) var(--radius) 0}
.prose blockquote > * + *{margin-top:.8em}
.prose-photo--wide{max-width:min(100%,640px)}

/* Mid-page navy bands on posts: direct children of .post-body, between narrow .prose
   columns, so they run full width. Reuses the shared .band look (Night Gulf navy,
   coastal arcs, teal button). 2026-10-08 */
.post-body .post-band{margin:56px 0}
.post-body .post-band .wrap{max-width:var(--max)}
.post-body .post-band h2{margin:0 0 10px}
.post-body .post-band p{margin:0}
.post-body .post-band + .wrap.prose > :first-child{margin-top:0}
@media (max-width:640px){.post-body .post-band{margin:40px 0}}
