/*
Theme Name: Jeff's Place 2026 V2.11
Theme URI: https://jeffnewbold.com/
Author: Jeff Newbold
Description: A family-friendly, technology-forward, emergency-management-inspired WordPress theme built for JeffNewbold.com. Includes distinct visual lanes for Cranky's Game, AI & Tech, and Emergency Management content.
Version: 2.11.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jeffs-place-2026-v2-11
Tags: blog, custom-menu, featured-images, threaded-comments, accessibility-ready
*/

:root {
  --jnp-ink: #10243d;
  --jnp-deep: #07162a;
  --jnp-paper: #f7fafc;
  --jnp-white: #ffffff;
  --jnp-muted: #617083;
  --jnp-line: #dce5ec;
  --jnp-tech: #087f9c;
  --jnp-tech-soft: #e7f7fb;
  --jnp-em: #c94a31;
  --jnp-em-soft: #fff1ec;
  --jnp-cranky: #5d8f2f;
  --jnp-cranky-dark: #365a1d;
  --jnp-cranky-soft: #f1f7e8;
  --jnp-sun: #f0ad35;
  --jnp-radius: 22px;
  --jnp-shadow: 0 14px 40px rgba(16,36,61,.10);
  --jnp-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--jnp-ink);
  background: var(--jnp-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: #066f8c; text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: #034e63; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--jnp-sun); outline-offset: 3px;
}
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 9999; transform: translateY(-160%);
  background: #fff; color: #000; padding: .7rem 1rem; border-radius: 8px;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,22,42,.96); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  max-width: var(--jnp-max); margin: 0 auto; min-height: 82px; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark {
  width: 43px; height: 43px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 900; letter-spacing: -.04em; color: var(--jnp-deep);
  background: linear-gradient(135deg, #73d2e7, #f4c04e 52%, #78a942);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  overflow: hidden; flex: 0 0 auto;
}
.brand-home,
.brand-text { color: #fff; text-decoration: none; }
.brand-home { display: grid; place-items: center; width: 100%; height: 100%; }
.brand-text { display: block; min-width: 0; }
.brand-name { display: block; font-weight: 850; letter-spacing: .04em; font-size: 1.04rem; line-height: 1.15; }
.brand-tagline { display: block; color: #b9cadb; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; white-space: nowrap; }

.primary-nav ul { display: flex; align-items: center; gap: 5px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: #dfeaf3; text-decoration: none; display: block; padding: .72rem .78rem; border-radius: 11px; font-weight: 700; font-size: .92rem; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background: rgba(255,255,255,.10); color: #fff; }
.primary-nav .menu-item-cranky > a { background: rgba(93,143,47,.25); }
.nav-toggle { display: none; border: 0; background: rgba(255,255,255,.10); color: #fff; border-radius: 11px; padding: .55rem .75rem; cursor: pointer; }

.site-main { min-height: 60vh; }
.container { width: min(calc(100% - 40px), var(--jnp-max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }

.home-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(rgba(21,112,139,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,112,139,.13) 1px, transparent 1px),
    radial-gradient(circle at 80% 18%, rgba(94,143,47,.23), transparent 26%),
    radial-gradient(circle at 16% 24%, rgba(20,166,201,.23), transparent 28%),
    linear-gradient(135deg, #07162a 0%, #0b2b43 62%, #133a3f 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/images/hero-art.png') center center / cover no-repeat;
  opacity: .74;
  pointer-events: none;
  z-index: 0;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(7,22,42,.92) 0%,
      rgba(7,22,42,.72) 18%,
      rgba(7,22,42,.38) 38%,
      rgba(7,22,42,.14) 58%,
      rgba(7,22,42,.08) 76%,
      rgba(7,22,42,.18) 100%),
    linear-gradient(90deg,
      rgba(7,22,42,.08) 0%,
      rgba(7,22,42,0) 24%,
      rgba(7,22,42,0) 76%,
      rgba(7,22,42,.16) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 88px 0 84px; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .13em; font-weight: 850; font-size: .76rem; color: #94e0ef; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--jnp-sun); }
.hero-title { font-size: clamp(2.55rem, 6vw, 5.2rem); line-height: .97; letter-spacing: -.055em; margin: 18px 0 24px; max-width: 850px; }
.hero-title .warm { color: #f5c565; }
.hero-lede { color: #d9e6ef; font-size: clamp(1.06rem, 2vw, 1.28rem); max-width: 680px; margin: 0 0 29px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: .8rem 1.18rem; font-weight: 800; text-decoration: none; border: 1px solid transparent; }
.button-link.primary { background: #fff; color: var(--jnp-deep); }
.button-link.secondary { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.button-link:hover { transform: translateY(-1px); }

.signal-panel { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 17px; border-radius: 28px; box-shadow: 0 22px 60px rgba(0,0,0,.22); }
.signal-heading { margin: 0 0 10px; color: #a8bbca; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; }
.signal-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 13px; align-items: center; color: #fff; text-decoration: none; padding: 14px; border-radius: 17px; }
.signal-card + .signal-card { margin-top: 7px; }
.signal-card:hover { background: rgba(255,255,255,.08); color: #fff; }
.signal-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; font-weight: 900; }
.signal-card.em .signal-icon { background: rgba(229,91,59,.22); color: #ffb09e; }
.signal-card.tech .signal-icon { background: rgba(20,166,201,.20); color: #88e4f7; }
.signal-card.cranky .signal-icon { background: rgba(124,175,73,.22); color: #c8ee9f; }
.signal-card strong { display: block; line-height: 1.2; }
.signal-card small { color: #b8c8d5; display: block; margin-top: 3px; }
.signal-arrow { color: #8ba0b2; font-size: 1.3rem; }

.section { padding: 70px 0; }
.section.compact { padding: 54px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-kicker { margin: 0 0 5px; color: var(--jnp-tech); text-transform: uppercase; letter-spacing: .14em; font-weight: 900; font-size: .74rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.05; letter-spacing: -.035em; margin: 0; }
.section-link { font-weight: 800; text-decoration: none; white-space: nowrap; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--jnp-line); border-radius: var(--jnp-radius); overflow: hidden; box-shadow: 0 8px 28px rgba(16,36,61,.06); display: flex; flex-direction: column; min-width: 0; }
.post-card:hover { box-shadow: var(--jnp-shadow); transform: translateY(-2px); transition: .2s ease; }
.card-media { display: block; aspect-ratio: 16/9; overflow: hidden; background: #e9f0f5; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .card-media img { transform: scale(1.025); }
.card-placeholder { aspect-ratio: 16/9; display: grid; place-items: center; font-size: 2rem; background: linear-gradient(135deg,#e8f7fb,#eff5e6); }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: center; color: var(--jnp-muted); font-size: .78rem; margin-bottom: 10px; }
.lane-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: .25rem .52rem; font-weight: 850; letter-spacing: .02em; }
.lane-pill.tech { background: var(--jnp-tech-soft); color: #08667d; }
.lane-pill.em { background: var(--jnp-em-soft); color: #9c321f; }
.lane-pill.cranky { background: var(--jnp-cranky-soft); color: #416b20; }
.lane-pill.general { background: #eef2f5; color: #536170; }
.card-title { font-size: 1.28rem; line-height: 1.18; letter-spacing: -.02em; margin: 0 0 11px; }
.card-title a { color: var(--jnp-ink); text-decoration: none; }
.card-excerpt { color: #546477; font-size: .94rem; margin: 0 0 16px; }
.card-read { margin-top: auto; font-size: .87rem; font-weight: 850; text-decoration: none; }

.cranky-spotlight-wrap { background: linear-gradient(180deg,#f5f9ef,#eef7e6); border-block: 1px solid #d8e7ca; }
.cranky-spotlight { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 30px; background: #17311f; color: #fff; box-shadow: var(--jnp-shadow); }
.cranky-image { min-height: 390px; background: #8fbf63 url('assets/images/cranky-spotlight.webp') center/cover no-repeat; }
.cranky-copy { padding: clamp(30px,6vw,64px); display: flex; flex-direction: column; justify-content: center; }
.cranky-badge { width: fit-content; background: #d9efbd; color: #294a18; border-radius: 999px; padding: .34rem .62rem; font-size: .73rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.cranky-copy h2 { font-size: clamp(2rem,4vw,3.6rem); line-height: .98; letter-spacing: -.04em; margin: 18px 0; }
.cranky-copy p { color: #d6e8cf; }
.cranky-copy .button-link.primary { width: fit-content; background: #f3c05b; }

.lane-band { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.lane-feature { border-radius: 24px; padding: 28px; min-height: 210px; position: relative; overflow: hidden; border: 1px solid var(--jnp-line); }
.lane-feature.em { background: linear-gradient(135deg,#fff6f2,#fff); }
.lane-feature.tech { background: linear-gradient(135deg,#edfafd,#fff); }
.lane-feature::after { content: ""; position: absolute; right: -36px; bottom: -42px; width: 150px; height: 150px; border-radius: 50%; border: 24px solid rgba(16,36,61,.04); }
.lane-feature h3 { margin: 6px 0 10px; font-size: 1.55rem; }
.lane-feature p { margin: 0; color: var(--jnp-muted); }

.archive-hero, .page-hero { padding: 64px 0 42px; background: #fff; border-bottom: 1px solid var(--jnp-line); }
.archive-hero h1, .page-hero h1 { font-size: clamp(2.3rem,5vw,4.2rem); line-height: 1; letter-spacing: -.05em; margin: 9px 0 13px; }
.archive-description { max-width: 720px; color: var(--jnp-muted); }

.single-hero { padding: 58px 0 32px; position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--jnp-line); }
.single-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--jnp-tech); }
.lane-em .single-hero::before { background: linear-gradient(90deg,#b73b28,#f39c34,#b73b28); }
.lane-cranky .single-hero::before { background: linear-gradient(90deg,#4e8126,#eeb346,#4e8126); }
.lane-tech .single-hero::before { background: linear-gradient(90deg,#087f9c,#68d5e9,#087f9c); }
.lane-cranky .single-hero { background: linear-gradient(180deg,#f8fbed,#fff); }
.lane-tech .single-hero { background: linear-gradient(180deg,#effbfe,#fff); }
.lane-em .single-hero { background: linear-gradient(180deg,#fff4ef,#fff); }
.single-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.single-title { font-size: clamp(2.35rem,6vw,4.8rem); line-height: .98; letter-spacing: -.052em; margin: 0; max-width: 1000px; }
.single-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--jnp-muted); font-size: .88rem; margin-top: 20px; }
.single-meta a { color: inherit; }
.featured-wrap { width: min(calc(100% - 40px), 1040px); margin: 34px auto 0; }
.featured-wrap img { width: 100%; border-radius: 26px; box-shadow: var(--jnp-shadow); }

.article-shell { padding: 46px 0 70px; }
.entry-content { font-size: 1.05rem; }
.entry-content > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1100px; }
.entry-content > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.entry-content h2 { font-size: clamp(1.65rem,4vw,2.45rem); line-height: 1.12; letter-spacing: -.032em; margin-top: 2.3em; margin-bottom: .65em; color: var(--jnp-deep); }
.entry-content h3 { font-size: 1.4rem; line-height: 1.2; margin-top: 1.9em; }
.entry-content p, .entry-content ul, .entry-content ol { margin-top: 0; margin-bottom: 1.35em; }
.entry-content blockquote { border-left: 5px solid var(--jnp-tech); margin-top: 2em; margin-bottom: 2em; padding: 5px 0 5px 24px; color: #43566a; font-size: 1.12em; }
.lane-cranky .entry-content blockquote { border-color: var(--jnp-cranky); }
.lane-em .entry-content blockquote { border-color: var(--jnp-em); }
.entry-content img { border-radius: 18px; }
.entry-content figure { margin-top: 2rem; margin-bottom: 2rem; }
.entry-content figcaption { color: var(--jnp-muted); text-align: center; font-size: .82rem; margin-top: .55rem; }
.entry-content code { background: #edf2f6; padding: .15rem .32rem; border-radius: 5px; font-size: .9em; }
.entry-content pre { overflow-x: auto; padding: 18px; border-radius: 14px; background: #0c1e31; color: #e9f2f7; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .7rem; border: 1px solid var(--jnp-line); }
.entry-content th { background: #f0f5f8; }

.article-callout { max-width: 820px; margin: 42px auto 0; border-radius: 22px; padding: 25px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.article-callout.cranky { background: var(--jnp-cranky-soft); border: 1px solid #cfe2bb; }
.article-callout .callout-icon { font-size: 2rem; line-height: 1; }
.article-callout h3 { margin: 0 0 5px; }
.article-callout p { margin: 0 0 12px; color: #516242; }

.post-tags { max-width: 820px; margin: 35px auto 0; padding-top: 20px; border-top: 1px solid var(--jnp-line); }
.post-tags a { display: inline-block; margin: 4px; padding: .3rem .55rem; border-radius: 999px; background: #edf2f5; font-size: .77rem; font-weight: 750; text-decoration: none; color: #4d5b69; }
.post-nav { max-width: 900px; margin: 48px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: block; height: 100%; background: #fff; border: 1px solid var(--jnp-line); padding: 18px; border-radius: 16px; text-decoration: none; color: var(--jnp-ink); }
.post-nav small { display: block; color: var(--jnp-muted); margin-bottom: 4px; }

.pagination { margin-top: 36px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { background: #fff; border: 1px solid var(--jnp-line); padding: .55rem .8rem; border-radius: 10px; text-decoration: none; }
.pagination .current { background: var(--jnp-deep); color: #fff; border-color: var(--jnp-deep); }

.comments-area { max-width: 820px; margin: 55px auto 0; padding-top: 35px; border-top: 1px solid var(--jnp-line); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; }
.comment-body { background: #fff; border: 1px solid var(--jnp-line); border-radius: 15px; padding: 18px; margin: 16px 0; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; border: 1px solid #bfcbd5; border-radius: 10px; padding: .7rem; background: #fff; }
.comment-form input[type="submit"] { border: 0; border-radius: 999px; background: var(--jnp-deep); color: #fff; font-weight: 800; padding: .72rem 1rem; cursor: pointer; }

.site-footer { background: var(--jnp-deep); color: #b9c7d5; padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 34px; }
.site-footer h2, .site-footer h3 { color: #fff; margin-top: 0; }
.site-footer h2 { font-size: 1.45rem; }
.site-footer h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer a { color: #dce9f4; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li + li { margin-top: 7px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; font-size: .78rem; }
.footer-note { max-width: 680px; }

.empty-state { background: #fff; border: 1px dashed #bdcad4; border-radius: 22px; padding: 36px; text-align: center; }
.screen-reader-text { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed!important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: #fff; color: #000; padding: 10px; z-index: 9999; }

@media (max-width: 900px) {
  .hero-grid, .cranky-spotlight { grid-template-columns: 1fr; }
  .hero-grid { padding: 64px 0; }
  .signal-panel { max-width: 620px; }
  .post-grid { grid-template-columns: repeat(2,1fr); }
  .cranky-image { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1/-1; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); background: #0b2036; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.28); display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav a { padding: .8rem; }
}


@media (max-width: 900px) {
  .home-hero::before { background-position: 35% center; }
}

@media (max-width: 620px) {
  .home-hero::before {
    background-position: left center;
    background-size: auto 100%;
  }
  .home-hero::after { background:
    linear-gradient(180deg,
      rgba(7,22,42,.86) 0%,
      rgba(7,22,42,.64) 22%,
      rgba(7,22,42,.34) 45%,
      rgba(7,22,42,.14) 68%,
      rgba(7,22,42,.18) 100%),
    linear-gradient(90deg, rgba(7,22,42,.03) 0%, rgba(7,22,42,.06) 48%, rgba(7,22,42,.28) 100%); }
  body { font-size: 16px; }
  .container, .narrow, .featured-wrap { width: min(calc(100% - 28px), var(--jnp-max)); }
  .header-inner { min-height: 72px; padding: 0 14px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-mark.has-custom-logo { width: 46px; height: 46px; }
  .brand-tagline { display: none; }
  .hero-grid { padding: 51px 0; gap: 32px; }
  .hero-title { font-size: clamp(2.55rem,14vw,4rem); }
  .post-grid, .lane-band { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .cranky-copy { padding: 30px 24px; }
  .cranky-image { min-height: 260px; }
  .single-hero { padding: 43px 0 26px; }
  .single-title { font-size: clamp(2.2rem,12vw,3.5rem); }
  .article-shell { padding-top: 31px; }
  .entry-content { font-size: 1rem; }
  .post-nav, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .article-callout { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ===== V2 refinements ===== */
.brand-mark .custom-logo-link,
.brand-mark .custom-logo {
  display: block;
  width: 100%;
  height: 100%;
}
.brand-mark .custom-logo {
  object-fit: cover;
}
.brand-mark.has-custom-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.brand-mark.has-custom-logo .custom-logo-link {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.brand-mark.has-custom-logo .custom-logo {
  width: 60px;
  height: 60px;
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
  border-radius: 50%;
}
.brand-initials {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

#latest {
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.06)),
    radial-gradient(circle at 20% -10%, rgba(8,127,156,.06), transparent 35%),
    linear-gradient(180deg, #eef2f5 0%, #f4f7fa 100%);
}

.post-card.lane-cranky { border-color: #d4e3c6; }
.post-card.lane-cranky .card-body { background: linear-gradient(180deg,#fff,#fcfef8); }
.post-card.lane-em { border-color: #ecd6cf; }
.post-card.lane-em .card-body { background: linear-gradient(180deg,#fff,#fffaf8); }
.post-card.lane-tech { border-color: #d4e8ee; }
.post-card.lane-tech .card-body { background: linear-gradient(180deg,#fff,#fafdfe); }
.card-media img, .card-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.card-placeholder {
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.lane-band-three {
  grid-template-columns: repeat(3, 1fr);
}
.lane-feature.cranky { background: linear-gradient(135deg,#f4f9ed,#fff); }

.archive-hero.archive-hero-visual {
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.05)),
    linear-gradient(180deg,#f7fafc 0%, #eef3f7 100%);
}
.archive-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
}
.archive-hero-cranky {
  background: linear-gradient(180deg,#f2f8ea 0%, #eef7e4 100%);
}
.archive-hero-tech {
  background: linear-gradient(180deg,#eefafd 0%, #f7fbfd 100%);
}
.archive-hero-em {
  background: linear-gradient(180deg,#fff4ef 0%, #fff9f6 100%);
}
.archive-copy h1 {
  max-width: 900px;
}
.archive-lede {
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 760px;
  color: var(--jnp-muted);
  margin: 0;
}
.archive-actions { margin-top: 22px; }
.archive-actions .button-link.primary {
  background: var(--jnp-deep);
  color: #fff;
}
.archive-hero-cranky .archive-actions .button-link.primary {
  background: #17311f;
}
.archive-hero-cranky .archive-actions .button-link.secondary {
  color: #17311f;
  border-color: rgba(23,49,31,.24);
  background: rgba(255,255,255,.55);
}
.archive-visual-image img {
  width: 100%;
  border-radius: 28px;
  display: block;
  box-shadow: var(--jnp-shadow);
}
.archive-posts {
  background: linear-gradient(180deg, #eff3f6 0%, #f4f7fa 100%);
}

@media (max-width: 1050px) {
  .lane-band-three { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .archive-hero-grid { grid-template-columns: 1fr; }
}

/* ===== V2.6 appearance controls ===== */
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  flex: 0 0 auto;
}
.theme-choice {
  border: 0;
  border-radius: 999px;
  padding: .38rem .54rem;
  background: transparent;
  color: #aebdca;
  font-size: .66rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
  cursor: pointer;
}
.theme-choice:hover { color: #fff; background: rgba(255,255,255,.08); }
.theme-choice.is-active,
.theme-choice[aria-pressed="true"] {
  color: #fff;
  background: rgba(255,255,255,.17);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

@media (max-width: 1120px) and (min-width: 901px) {
  .brand-tagline { display: none; }
}

@media (max-width: 900px) {
  .primary-nav { display: none; }
  .primary-nav.is-open { display: block; }
  .theme-switcher {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    padding-top: 9px;
    padding-bottom: 9px;
    border-radius: 12px;
  }
  .theme-choice { padding: .48rem .72rem; }
}

/* Dark palette: deliberately navy/slate, not pitch black. */
html[data-theme="dark"] {
  --jnp-ink: #e9f1f7;
  --jnp-deep: #07162a;
  --jnp-paper: #0b1724;
  --jnp-white: #122233;
  --jnp-muted: #9fb0c1;
  --jnp-line: #26394b;
  --jnp-tech: #56cbe8;
  --jnp-tech-soft: #103141;
  --jnp-em: #ee765e;
  --jnp-em-soft: #2b1d1b;
  --jnp-cranky: #91bf62;
  --jnp-cranky-dark: #6e9c45;
  --jnp-cranky-soft: #172717;
  --jnp-shadow: 0 14px 40px rgba(0,0,0,.28);
}
html[data-theme="dark"] body {
  background: var(--jnp-paper);
  color: var(--jnp-ink);
}
html[data-theme="dark"] a { color: #78d8ee; }
html[data-theme="dark"] a:hover { color: #afeaf6; }

html[data-theme="dark"] #latest {
  background:
    radial-gradient(circle at 20% -10%, rgba(37,157,188,.10), transparent 35%),
    linear-gradient(180deg, #0c1825 0%, #101d2b 100%);
}
html[data-theme="dark"] .section:not(.cranky-spotlight-wrap) { color: var(--jnp-ink); }
html[data-theme="dark"] .section-kicker { color: #68d4ec; }

html[data-theme="dark"] .post-card {
  background: #122233;
  border-color: #2a3c4d;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
html[data-theme="dark"] .post-card.lane-cranky .card-body { background: linear-gradient(180deg,#142433,#15291c); }
html[data-theme="dark"] .post-card.lane-em .card-body { background: linear-gradient(180deg,#142433,#271e1d); }
html[data-theme="dark"] .post-card.lane-tech .card-body { background: linear-gradient(180deg,#142433,#102733); }
html[data-theme="dark"] .card-title a { color: #edf5fa; }
html[data-theme="dark"] .card-excerpt { color: #a9b8c6; }
html[data-theme="dark"] .card-media { background: #182a3a; }
html[data-theme="dark"] .card-placeholder { background: linear-gradient(135deg,#102a36,#1b2d23); }
html[data-theme="dark"] .lane-pill.tech { background: #103443; color: #91e4f4; }
html[data-theme="dark"] .lane-pill.em { background: #34211e; color: #ffad9c; }
html[data-theme="dark"] .lane-pill.cranky { background: #20331a; color: #c7e9a5; }
html[data-theme="dark"] .lane-pill.general { background: #1d2d3b; color: #bac7d2; }

html[data-theme="dark"] .cranky-spotlight-wrap {
  background: linear-gradient(180deg,#0d1810,#111d13);
  border-color: #253823;
}
html[data-theme="dark"] .cranky-spotlight { background: #13291a; }

html[data-theme="dark"] .lane-feature {
  border-color: #293c4d;
  color: #edf5fa;
}
html[data-theme="dark"] .lane-feature.em { background: linear-gradient(135deg,#2b1c1a,#132230); }
html[data-theme="dark"] .lane-feature.tech { background: linear-gradient(135deg,#102d38,#132230); }
html[data-theme="dark"] .lane-feature.cranky { background: linear-gradient(135deg,#172817,#132230); }
html[data-theme="dark"] .lane-feature p { color: #aab9c6; }
html[data-theme="dark"] .lane-feature::after { border-color: rgba(255,255,255,.035); }

html[data-theme="dark"] .archive-hero,
html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .single-hero {
  background: #0f1c29;
  border-color: #27394a;
}
html[data-theme="dark"] .archive-hero.archive-hero-visual { background: linear-gradient(180deg,#0d1b28 0%,#101f2d 100%); }
html[data-theme="dark"] .archive-hero-cranky { background: linear-gradient(180deg,#142616 0%,#101e28 100%); }
html[data-theme="dark"] .archive-hero-tech { background: linear-gradient(180deg,#102b36 0%,#101e28 100%); }
html[data-theme="dark"] .archive-hero-em { background: linear-gradient(180deg,#2b1d1b 0%,#101e28 100%); }
html[data-theme="dark"] .archive-lede,
html[data-theme="dark"] .archive-description { color: #a9bac8; }
html[data-theme="dark"] .archive-posts { background: linear-gradient(180deg,#0d1925 0%,#101d29 100%); }

html[data-theme="dark"] .lane-cranky .single-hero { background: linear-gradient(180deg,#142517,#0f1c29); }
html[data-theme="dark"] .lane-tech .single-hero { background: linear-gradient(180deg,#102a35,#0f1c29); }
html[data-theme="dark"] .lane-em .single-hero { background: linear-gradient(180deg,#2a1c1a,#0f1c29); }
html[data-theme="dark"] .single-meta { color: #9fb0c1; }
html[data-theme="dark"] .entry-content h2,
html[data-theme="dark"] .entry-content h3 { color: #edf5fa; }
html[data-theme="dark"] .entry-content blockquote { color: #b2c0cb; }
html[data-theme="dark"] .entry-content code { background: #182937; color: #e9f3f8; }
html[data-theme="dark"] .entry-content th { background: #172735; }
html[data-theme="dark"] .entry-content th,
html[data-theme="dark"] .entry-content td { border-color: #2b3d4d; }
html[data-theme="dark"] .article-callout.cranky { background: #172817; border-color: #2d4727; }
html[data-theme="dark"] .article-callout p { color: #b1c6a5; }
html[data-theme="dark"] .post-tags { border-color: #2a3b4a; }
html[data-theme="dark"] .post-tags a { background: #1b2b39; color: #becbd6; }
html[data-theme="dark"] .post-nav a,
html[data-theme="dark"] .pagination .page-numbers,
html[data-theme="dark"] .comment-body,
html[data-theme="dark"] .empty-state {
  background: #122233;
  border-color: #2a3d4d;
  color: #edf5fa;
}
html[data-theme="dark"] .pagination .current { background: #335066; border-color: #45677f; color: #fff; }
html[data-theme="dark"] .comment-form input:not([type="submit"]),
html[data-theme="dark"] .comment-form textarea {
  background: #101e2b;
  color: #edf5fa;
  border-color: #3a5062;
}
html[data-theme="dark"] .comment-form input:not([type="submit"])::placeholder,
html[data-theme="dark"] .comment-form textarea::placeholder { color: #8397a8; }

html[data-theme="dark"] .archive-actions .button-link.secondary {
  color: #e9f1f7;
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.06);
}
html[data-theme="dark"] .archive-hero-cranky .archive-actions .button-link.secondary {
  color: #e9f1f7;
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.06);
}

/* ===== V2.7: more Jeff, less dashboard ===== */
.home-hero .hero-title { margin-top: 0; }

.footer-appearance {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.footer-appearance-label,
.mobile-appearance-label {
  color: #8fa3b5;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.footer-appearance .theme-switcher {
  width: auto;
  margin: 0;
  padding: 3px;
  border-radius: 999px;
}

.mobile-utility { display: none; }

html[data-theme="dark"] {
  --jnp-ink: #c9d5de;
  --jnp-muted: #96a8b7;
}
html[data-theme="dark"] .brand-text,
html[data-theme="dark"] .brand-name { color: #d2dce4; }
html[data-theme="dark"] .brand-tagline { color: #93a6b6; }
html[data-theme="dark"] .primary-nav a { color: #b8c8d4; }
html[data-theme="dark"] .primary-nav a:hover,
html[data-theme="dark"] .primary-nav .current-menu-item > a,
html[data-theme="dark"] .primary-nav .current_page_item > a { color: #78d8ee; }

html[data-theme="dark"] .hero-title { color: #d4dee5; }
html[data-theme="dark"] .hero-lede { color: #b3c1cc; }
html[data-theme="dark"] .home-hero .button-link.primary {
  background: #78d8ee;
  color: #07162a;
  border-color: #78d8ee;
}
html[data-theme="dark"] .home-hero .button-link.primary:hover { background: #9be5f3; }

html[data-theme="dark"] .section-title,
html[data-theme="dark"] .card-title a,
html[data-theme="dark"] .lane-feature h3,
html[data-theme="dark"] .archive-hero h1,
html[data-theme="dark"] .page-hero h1,
html[data-theme="dark"] .single-title,
html[data-theme="dark"] .entry-content h2,
html[data-theme="dark"] .entry-content h3,
html[data-theme="dark"] .post-nav a,
html[data-theme="dark"] .empty-state {
  color: #cbd6de;
}
html[data-theme="dark"] .card-excerpt,
html[data-theme="dark"] .lane-feature p,
html[data-theme="dark"] .archive-lede,
html[data-theme="dark"] .archive-description,
html[data-theme="dark"] .single-meta,
html[data-theme="dark"] .entry-content blockquote {
  color: #9fAFbc;
}

@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .footer-appearance { display: none; }
  .mobile-utility {
    position: fixed;
    left: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 80;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 20px);
    padding: 6px 7px 6px 10px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    background: rgba(7,22,42,.92);
    box-shadow: 0 10px 28px rgba(0,0,0,.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .mobile-appearance {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
  }
  .mobile-appearance-label { display: none; }
  .mobile-utility .theme-switcher {
    width: auto;
    justify-content: center;
    margin: 0;
    padding: 2px;
    border-radius: 999px;
  }
  .mobile-utility .theme-choice {
    padding: .42rem .57rem;
    font-size: .62rem;
  }
  .back-to-top {
    border: 0;
    border-radius: 999px;
    background: rgba(120,216,238,.15);
    color: #9be5f3;
    padding: .48rem .65rem;
    font-size: .72rem;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
  }
  .back-to-top:hover { background: rgba(120,216,238,.24); color: #c6f2fa; }
}

@media (max-width: 420px) {
  .mobile-utility { gap: 5px; padding-left: 6px; padding-right: 6px; }
  .mobile-utility .theme-choice { padding: .4rem .46rem; font-size: .58rem; }
  .back-to-top { padding: .45rem .52rem; font-size: .66rem; }
}

/* ===== V2.8: quieter dark palette + writing explorer ===== */
html[data-theme="dark"] {
  --jnp-ink: #aebbc5;
  --jnp-muted: #8fa1af;
}
html[data-theme="dark"] a { color: #68b4c7; }
html[data-theme="dark"] a:hover { color: #86c6d5; }
html[data-theme="dark"] .section-kicker { color: #5f9fb2; }
html[data-theme="dark"] .primary-nav a:hover,
html[data-theme="dark"] .primary-nav .current-menu-item > a,
html[data-theme="dark"] .primary-nav .current_page_item > a { color: #68b4c7; }
html[data-theme="dark"] .hero-title { color: #b6c2cb; }
html[data-theme="dark"] .hero-lede { color: #9dacb8; }
html[data-theme="dark"] .home-hero .button-link.primary {
  background: #5f9fb2;
  color: #07162a;
  border-color: #5f9fb2;
}
html[data-theme="dark"] .home-hero .button-link.primary:hover { background: #73adbd; }
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .card-title a,
html[data-theme="dark"] .lane-feature h3,
html[data-theme="dark"] .archive-hero h1,
html[data-theme="dark"] .page-hero h1,
html[data-theme="dark"] .single-title,
html[data-theme="dark"] .entry-content h2,
html[data-theme="dark"] .entry-content h3,
html[data-theme="dark"] .post-nav a,
html[data-theme="dark"] .empty-state { color: #aebbc5; }
html[data-theme="dark"] .card-excerpt,
html[data-theme="dark"] .lane-feature p,
html[data-theme="dark"] .archive-lede,
html[data-theme="dark"] .archive-description,
html[data-theme="dark"] .single-meta,
html[data-theme="dark"] .entry-content blockquote { color: #8fa1af; }
html[data-theme="dark"] .back-to-top {
  background: rgba(95,159,178,.16);
  color: #79b5c5;
}
html[data-theme="dark"] .back-to-top:hover {
  background: rgba(95,159,178,.25);
  color: #95c8d4;
}

.writing-hero { padding-bottom: 48px; }
.writing-explorer {
  padding: 28px 0 8px;
  background: #f2f6f9;
  border-bottom: 1px solid var(--jnp-line);
}
.writing-filter-block { margin-bottom: 20px; }
.writing-filter-label {
  margin: 0 0 9px;
  color: var(--jnp-muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.writing-filter-chips,
.writing-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.writing-chip,
.writing-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cfdbe4;
  border-radius: 999px;
  background: #fff;
  color: #405367;
  padding: .52rem .78rem;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 800;
}
.writing-chip:hover,
.writing-tag:hover { background: #eaf4f7; color: #176a7d; }
.writing-chip.is-active {
  background: var(--jnp-deep);
  border-color: var(--jnp-deep);
  color: #fff;
}
.writing-tag { padding: .38rem .63rem; font-size: .76rem; font-weight: 750; }
.writing-tag span { color: #8395a5; font-size: .68rem; }
.writing-tag.is-active { border-color: var(--jnp-tech); background: var(--jnp-tech-soft); color: #08667d; }
.writing-tag.clear-tag { border-style: dashed; }
.writing-results { background: var(--jnp-paper); }

html[data-theme="dark"] .writing-explorer {
  background: #0d1a27;
  border-color: #26394b;
}
html[data-theme="dark"] .writing-chip,
html[data-theme="dark"] .writing-tag {
  background: #142433;
  border-color: #2b3f50;
  color: #9fafbb;
}
html[data-theme="dark"] .writing-chip:hover,
html[data-theme="dark"] .writing-tag:hover {
  background: #183040;
  color: #72b5c6;
}
html[data-theme="dark"] .writing-chip.is-active {
  background: #355568;
  border-color: #466d82;
  color: #d9e3e9;
}
html[data-theme="dark"] .writing-tag.is-active {
  background: #173341;
  border-color: #4d899b;
  color: #7dbccc;
}
html[data-theme="dark"] .writing-tag span { color: #758999; }

@media (max-width: 620px) {
  .writing-explorer { padding-top: 22px; }
  .writing-chip { padding: .48rem .66rem; font-size: .78rem; }
  .writing-tag { font-size: .72rem; }
}

/* ===== V2.8.1: archive polish + less duplication ===== */
.post-card {
  background: linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
}
.post-card .card-body {
  background: linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
}
.post-card.lane-cranky {
  border-color: #d8e4cd;
}
.post-card.lane-cranky .card-body {
  background: linear-gradient(180deg,#ffffff 0%,#f8fbf6 100%);
}
.post-card.lane-em {
  border-color: #ead8d1;
}
.post-card.lane-em .card-body {
  background: linear-gradient(180deg,#ffffff 0%,#fcf8f6 100%);
}
.post-card.lane-tech {
  border-color: #d9e7ee;
}
.post-card.lane-tech .card-body {
  background: linear-gradient(180deg,#ffffff 0%,#f6fafc 100%);
}
.post-card.lane-general .card-body {
  background: linear-gradient(180deg,#ffffff 0%,#f7f9fb 100%);
}

.lane-pill.neutral {
  background: #edf2f6;
  color: #4a5c6d;
}

.lane-feature::after {
  content: none;
}
.lane-band-explore .lane-feature {
  min-height: 220px;
  background: linear-gradient(180deg,#fbfcfd 0%,#f4f8fb 100%);
}
.lane-band-explore .lane-feature p {
  color: #5f7182;
}

html[data-theme="dark"] .post-card {
  background: linear-gradient(180deg,#122130 0%,#0f1a27 100%);
  border-color: #2b3d4d;
}
html[data-theme="dark"] .post-card .card-body {
  background: linear-gradient(180deg,#142433 0%,#111d2a 100%);
}
html[data-theme="dark"] .post-card.lane-cranky .card-body {
  background: linear-gradient(180deg,#142433 0%,#132119 100%);
}
html[data-theme="dark"] .post-card.lane-em .card-body {
  background: linear-gradient(180deg,#142433 0%,#221d1d 100%);
}
html[data-theme="dark"] .post-card.lane-tech .card-body {
  background: linear-gradient(180deg,#142433 0%,#11222d 100%);
}
html[data-theme="dark"] .post-card.lane-general .card-body {
  background: linear-gradient(180deg,#142433 0%,#121f2d 100%);
}
html[data-theme="dark"] .lane-pill.neutral {
  background: #1d2d3b;
  color: #b7c4ce;
}
html[data-theme="dark"] .lane-band-explore .lane-feature {
  background: linear-gradient(180deg,#132231 0%,#101c29 100%);
  border-color: #2b3d4d;
  color: #c7d2db;
}
html[data-theme="dark"] .lane-band-explore .lane-feature p {
  color: #92a2af;
}

/* ===== V2.9: Cranky dark-mode tone + writing route polish ===== */
.cranky-latest a { color: #f3f7f1; }

html[data-theme="dark"] .cranky-copy h2 {
  color: #b7c3cb;
}
html[data-theme="dark"] .cranky-copy p {
  color: #94a79b;
}
html[data-theme="dark"] .cranky-latest,
html[data-theme="dark"] .cranky-latest strong {
  color: #a2b0b7;
}
html[data-theme="dark"] .cranky-latest a {
  color: #8fa8b1;
}
html[data-theme="dark"] .cranky-latest a:hover {
  color: #a9bcc3;
}

/* ===== V2.10: timed day/night hero art ===== */
html[data-hero-art="day"] .home-hero::before {
  background-image: url('assets/images/hero-art.png');
}

html[data-hero-art="night"] .home-hero::before {
  background-image: url('assets/images/hero-art-night.png');
  opacity: .90;
}

html[data-hero-art="night"] .home-hero::after {
  background:
    linear-gradient(180deg,
      rgba(7,22,42,.62) 0%,
      rgba(7,22,42,.46) 18%,
      rgba(7,22,42,.24) 38%,
      rgba(7,22,42,.10) 58%,
      rgba(7,22,42,.06) 76%,
      rgba(7,22,42,.16) 100%),
    linear-gradient(90deg,
      rgba(7,22,42,.04) 0%,
      rgba(7,22,42,0) 24%,
      rgba(7,22,42,0) 76%,
      rgba(7,22,42,.14) 100%);
}

@media (max-width: 620px) {
  html[data-hero-art="night"] .home-hero::before {
    background-position: left center;
    background-size: auto 100%;
  }
  html[data-hero-art="night"] .home-hero::after {
    background:
      linear-gradient(180deg,
        rgba(7,22,42,.52) 0%,
        rgba(7,22,42,.36) 22%,
        rgba(7,22,42,.20) 45%,
        rgba(7,22,42,.10) 68%,
        rgba(7,22,42,.16) 100%),
      linear-gradient(90deg,
        rgba(7,22,42,.02) 0%,
        rgba(7,22,42,.04) 48%,
        rgba(7,22,42,.24) 100%);
  }
}
