/*
Theme Name: N2LQH
Theme URI: https://n2lqh.com
Author: N2LQH - Terry
Description: A fresh editorial adventure-log theme for N2LQH ham radio blog. Sky blue, slate and white with a magazine feel.
Version: 3.4.0
License: GNU General Public License v2 or later
Text Domain: n2lqh
Tags: blog, light, custom-logo, custom-menu, featured-images
*/

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --sky:        #0ea5e9;   /* vivid sky blue */
  --sky-dark:   #0284c7;
  --sky-light:  #e0f2fe;
  --sky-pale:   #f0f9ff;

  --slate:      #1e293b;   /* deep slate for headings */
  --slate-mid:  #475569;
  --slate-soft: #94a3b8;
  --slate-line: #e2e8f0;
  --slate-bg:   #f8fafc;

  --white:      #ffffff;
  --red:        #ef4444;   /* needle red */
  --amber:      #f59e0b;   /* warm accent */
  --amber-bg:   #fffbeb;
  --green:      #22c55e;

  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Source Serif 4', 'Georgia', serif;
  --font-ui:    'Inter', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  --max:        1140px;
  --hh:         72px;
  --r:          6px;
  --r-lg:       12px;

  --sh-sm: 0 1px 4px rgba(15,23,42,.07);
  --sh-md: 0 4px 16px rgba(15,23,42,.10);
  --sh-lg: 0 8px 32px rgba(15,23,42,.13);
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-dark); text-decoration: none; transition: color .18s; }
a:hover { color: var(--sky); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); color: var(--slate); line-height: 1.2; }
p { margin-bottom: 1.35rem; }
ul,ol { padding-left: 1.5rem; margin-bottom: 1.35rem; }
blockquote {
  border-left: 3px solid var(--sky);
  padding: 1rem 1.5rem;
  background: var(--sky-pale);
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  color: var(--slate-mid);
  margin: 1.75rem 0;
}
code {
  font-family: var(--font-mono);
  font-size: .84em;
  background: var(--slate-bg);
  border: 1px solid var(--slate-line);
  padding: .15em .4em;
  border-radius: 4px;
  color: var(--sky-dark);
}
pre {
  font-family: var(--font-mono);
  font-size: .875rem;
  background: var(--slate);
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: var(--r);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
pre code { background: none; border: none; padding: 0; color: inherit; }
hr { border: none; border-top: 1px solid var(--slate-line); margin: 2.5rem 0; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-family: var(--font-ui); font-size: .9rem; }
th { background: var(--slate-bg); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding: .6rem .9rem; text-align: left; border-bottom: 2px solid var(--slate-line); color: var(--slate-mid); }
td { padding: .6rem .9rem; border-bottom: 1px solid var(--slate-line); }
tr:last-child td { border-bottom: none; }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.site-main  { flex: 1; }

/* ── HEADER ──────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-line);
  height: var(--hh);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--sh-sm);
}
.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.site-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.site-brand:hover { text-decoration: none; }
.brand-logo { height: 52px; width: auto; }
.brand-text .callsign {
  display: block;
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--slate);
  letter-spacing: .03em;
  line-height: 1;
}
.brand-text .sub {
  display: block;
  font-family: var(--font-ui);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin-top: .15rem;
}

/* Nav */
.main-nav ul { list-style: none; display: flex; gap: .15rem; }
.main-nav a {
  display: block;
  padding: .45rem 1rem;
  font-family: var(--font-ui);
  font-size: .875rem;
  font-weight: 600;
  color: var(--slate-mid);
  border-radius: var(--r);
  transition: color .18s, background .18s;
}
.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
  color: var(--sky-dark);
  background: var(--sky-light);
}
.menu-toggle { display: none; background: none; border: 1px solid var(--slate-line); color: var(--slate); padding: .4rem .7rem; border-radius: var(--r); cursor: pointer; font-size: 1.1rem; }

/* Header right group */
.hdr-right { display: flex; align-items: center; gap: .5rem; }

/* Search toggle button in header */
.search-toggle {
  background: none;
  border: 1px solid var(--slate-line);
  color: var(--slate-mid);
  width: 36px; height: 36px;
  border-radius: var(--r);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .18s, border-color .18s, background .18s;
  flex-shrink: 0;
}
.search-toggle:hover { color: var(--sky-dark); border-color: var(--sky); background: var(--sky-light); }
.search-toggle.is-active { color: var(--sky-dark); border-color: var(--sky); background: var(--sky-light); }

/* Expandable header search bar */
.header-search-bar {
  background: var(--white);
  border-top: 1px solid var(--slate-line);
  border-bottom: 1px solid var(--slate-line);
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease, padding .28s ease;
  box-shadow: none;
}
.header-search-bar.is-open {
  max-height: 80px;
  box-shadow: var(--sh-sm);
}
.header-search-form {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 0;
}
.header-search-input {
  flex: 1;
  border: 1px solid var(--slate-line);
  border-radius: var(--r);
  padding: .55rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--slate);
  background: var(--slate-bg);
  transition: border-color .18s, box-shadow .18s;
  outline: none;
}
.header-search-input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
  background: var(--white);
}
.header-search-submit {
  background: var(--sky);
  color: #fff;
  border: none;
  width: 40px; height: 40px;
  border-radius: var(--r);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .18s;
}
.header-search-submit:hover { background: var(--sky-dark); }
.header-search-close {
  background: none;
  border: 1px solid var(--slate-line);
  color: var(--slate-mid);
  width: 40px; height: 40px;
  border-radius: var(--r);
  cursor: pointer;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: color .18s, border-color .18s;
}
.header-search-close:hover { color: var(--red); border-color: var(--red); }

/* Sidebar search */
.sidebar-search-form { margin: 0; }
.sidebar-search-wrap {
  display: flex;
  border: 1px solid var(--slate-line);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow .18s;
}
.sidebar-search-wrap:focus-within {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.sidebar-search-input {
  flex: 1;
  border: none;
  padding: .55rem .85rem;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--slate);
  background: var(--white);
  outline: none;
}
.sidebar-search-btn {
  background: var(--sky);
  color: #fff;
  border: none;
  padding: 0 .85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
  flex-shrink: 0;
}
.sidebar-search-btn:hover { background: var(--sky-dark); }

/* ── MASTHEAD BANNER (replaces hero) ─────────────────────────── */
/* Full-width sky-blue top band — purely typographic, no boxes */
.masthead {
  background: linear-gradient(160deg, #0ea5e9 0%, #0284c7 60%, #075985 100%);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
/* Decorative radio-wave arcs */
.masthead::before,
.masthead::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.12);
  pointer-events: none;
}
.masthead::before { width: 600px; height: 600px; top: -200px; right: -100px; }
.masthead::after  { width: 900px; height: 900px; top: -350px; right: -250px; }

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.masthead-logo {
  flex-shrink: 0;
  width: 220px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.25));
}
.masthead-copy { flex: 1; }
.masthead-eyebrow {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: .75rem;
}
.masthead-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.masthead-title em { font-style: italic; color: #bae6fd; }
.masthead-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.masthead-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.masthead-badge {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  padding: .3rem .8rem;
  border-radius: 999px;
  letter-spacing: .06em;
}

/* ── CONTENT BAND (below masthead on homepage) ───────────────── */
.content-band {
  padding: 3rem 0 4rem;
}

/* ── TWO-COLUMN PAGE LAYOUT ──────────────────────────────────── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0 4rem;
}

/* ── SECTION LABELS ──────────────────────────────────────────── */
.section-kicker {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky-dark);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.section-kicker::before {
  content: '';
  width: 18px; height: 2px;
  background: var(--sky);
  border-radius: 2px;
}
.section-heading {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 1.75rem;
}

/* ── FEATURED POST (homepage top story) ─────────────────────── */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--slate-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  margin-bottom: 2.5rem;
  background: var(--white);
  transition: box-shadow .2s;
}
.featured-post:hover { box-shadow: var(--sh-lg); }
.featured-post .fp-image { overflow: hidden; min-height: 320px; background: var(--sky-light); display: flex; align-items: center; justify-content: center; }
.featured-post .fp-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.featured-post:hover .fp-image img { transform: scale(1.04); }
.featured-post .fp-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.fp-label {
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sky-dark);
  background: var(--sky-light);
  padding: .2rem .6rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 1rem;
}
.fp-title {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--slate);
  margin-bottom: .85rem;
}
.fp-title a { color: inherit; }
.fp-title a:hover { color: var(--sky-dark); }
.fp-excerpt { font-size: .95rem; color: var(--slate-mid); line-height: 1.65; margin-bottom: 1.25rem; }
.fp-meta { font-family: var(--font-ui); font-size: .78rem; color: var(--slate-soft); }

/* ── POST LIST (recent posts — no cards, just clean rows) ────── */
.post-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--slate-line);
  align-items: start;
  transition: background .15s;
}
.post-row:first-child { border-top: 1px solid var(--slate-line); }
.post-row:hover { background: var(--sky-pale); margin: 0 -.75rem; padding-left: .75rem; padding-right: .75rem; border-radius: var(--r); }
.post-row-thumb { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--r); background: var(--sky-light); flex-shrink: 0; }
.post-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-row-thumb .no-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; }
.post-row-body {}
.post-row-cat {
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--sky-dark);
  margin-bottom: .3rem;
  display: block;
}
.post-row-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--slate);
  margin-bottom: .35rem;
}
.post-row-title a { color: inherit; }
.post-row-title a:hover { color: var(--sky-dark); }
.post-row-excerpt { font-size: .875rem; color: var(--slate-mid); line-height: 1.55; margin-bottom: .4rem; }
.post-row-date { font-family: var(--font-ui); font-size: .75rem; color: var(--slate-soft); }

/* ── BLOG INDEX (full list) ──────────────────────────────────── */
.blog-list { }
.blog-list-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--slate-line);
  align-items: start;
}
.blog-list-item:first-child { border-top: 1px solid var(--slate-line); }
.blog-list-thumb { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--r); background: var(--sky-light); }
.blog-list-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-list-item:hover .blog-list-thumb img { transform: scale(1.04); }
.blog-list-body {}
.blog-list-cat { font-family: var(--font-ui); font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--sky-dark); display: block; margin-bottom: .3rem; }
.blog-list-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; line-height: 1.25; color: var(--slate); margin-bottom: .5rem; }
.blog-list-title a { color: inherit; }
.blog-list-title a:hover { color: var(--sky-dark); }
.blog-list-excerpt { font-size: .9rem; color: var(--slate-mid); line-height: 1.6; margin-bottom: .6rem; }
.blog-list-meta { font-family: var(--font-ui); font-size: .78rem; color: var(--slate-soft); }
.read-more { font-family: var(--font-ui); font-size: .82rem; font-weight: 700; color: var(--sky-dark); display: inline-flex; align-items: center; gap: .25rem; transition: gap .18s; }
.read-more::after { content: '→'; }
.read-more:hover { color: var(--sky); gap: .45rem; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--slate-line);
  border-radius: var(--r);
  font-family: var(--font-ui);
  font-size: .875rem;
  color: var(--slate-mid);
  transition: all .18s;
}
.pagination a:hover { border-color: var(--sky); color: var(--sky-dark); background: var(--sky-light); }
.pagination .current { background: var(--sky); border-color: var(--sky); color: #fff; }

/* ── SINGLE POST ─────────────────────────────────────────────── */
.post-header { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--slate-line); margin-bottom: 2rem; }
.post-header .post-kicker { font-family: var(--font-ui); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-dark); margin-bottom: .75rem; }
.post-title { font-family: var(--font-head); font-size: clamp(1.9rem,3.5vw,2.75rem); font-weight: 700; color: var(--slate); line-height: 1.15; margin-bottom: .75rem; }
.post-byline { font-family: var(--font-ui); font-size: .82rem; color: var(--slate-soft); }
.post-featured-img { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 2.5rem; box-shadow: var(--sh-md); }
.post-body { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.82; color: var(--slate); }
.post-body h2 { font-family: var(--font-head); font-size: 1.5rem; margin: 2.5rem 0 .9rem; padding-bottom: .5rem; border-bottom: 2px solid var(--slate-line); }
.post-body h3 { font-family: var(--font-head); font-size: 1.2rem; margin: 2rem 0 .7rem; }
.post-body p { margin-bottom: 1.5rem; }
.post-body a { color: var(--sky-dark); }
.post-body img { border-radius: var(--r); box-shadow: var(--sh-md); margin: 1.75rem 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--slate-line); }
.tag-pill { font-family: var(--font-ui); font-size: .78rem; font-weight: 600; padding: .3rem .75rem; border: 1px solid var(--slate-line); border-radius: 999px; color: var(--slate-mid); transition: all .18s; }
.tag-pill:hover { border-color: var(--sky); color: var(--sky-dark); background: var(--sky-light); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--slate-line); }
.pn-item { padding: 1rem 1.25rem; border: 1px solid var(--slate-line); border-radius: var(--r-lg); transition: border-color .2s, box-shadow .2s; }
.pn-item:hover { border-color: var(--sky); box-shadow: var(--sh-sm); }
.pn-item.next { text-align: right; }
.pn-label { font-family: var(--font-ui); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-soft); display: block; margin-bottom: .3rem; }
.pn-title { font-family: var(--font-head); font-size: .95rem; font-weight: 700; color: var(--slate); }

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.sidebar { position: sticky; top: calc(var(--hh) + 1.5rem); }
.widget { margin-bottom: 2rem; }
.widget-title { font-family: var(--font-ui); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-dark); padding-bottom: .6rem; border-bottom: 2px solid var(--sky-light); margin-bottom: 1rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: .45rem 0; border-bottom: 1px solid var(--slate-line); font-size: .9rem; font-family: var(--font-ui); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--slate); font-weight: 500; }
.widget ul li a:hover { color: var(--sky-dark); }
.station-card { background: var(--sky-pale); border: 1px solid var(--sky-light); border-radius: var(--r-lg); padding: 1.25rem; }
.station-row { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid var(--sky-light); font-family: var(--font-ui); font-size: .85rem; }
.station-row:last-child { border-bottom: none; }
.station-key { color: var(--slate-mid); }
.station-val { font-weight: 700; color: var(--slate); }

/* ── ABOUT PAGE ──────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.info-card { background: var(--slate-bg); border: 1px solid var(--slate-line); border-radius: var(--r-lg); padding: 1.4rem; margin-bottom: 1.25rem; }
.info-card-title { font-family: var(--font-ui); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-dark); padding-bottom: .6rem; border-bottom: 2px solid var(--sky-light); margin-bottom: 1rem; }
.spec-table { width: 100%; font-family: var(--font-ui); font-size: .875rem; border-collapse: collapse; }
.spec-table td { padding: .4rem 0; border-bottom: 1px solid var(--slate-line); }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table .sk { color: var(--slate-mid); width: 48%; }
.spec-table .sv { font-weight: 700; color: var(--slate); }

/* ── CONTACT PAGE ────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
/* WPForms overrides */
div.wpforms-container-full .wpforms-form label { font-family: var(--font-ui) !important; font-size: .78rem !important; font-weight: 700 !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: var(--slate-mid) !important; }
div.wpforms-container-full .wpforms-form input[type=text],
div.wpforms-container-full .wpforms-form input[type=email],
div.wpforms-container-full .wpforms-form textarea {
  border: 1px solid var(--slate-line) !important; border-radius: var(--r) !important;
  font-family: var(--font-body) !important; font-size: 1rem !important;
  padding: .65rem 1rem !important; background: var(--white) !important;
  color: var(--slate) !important; transition: border-color .18s !important;
}
div.wpforms-container-full .wpforms-form input:focus,
div.wpforms-container-full .wpforms-form textarea:focus {
  border-color: var(--sky) !important; outline: none !important;
  box-shadow: 0 0 0 3px rgba(14,165,233,.15) !important;
}
div.wpforms-container-full .wpforms-form .wpforms-submit {
  background: var(--sky) !important; color: #fff !important; border: none !important;
  padding: .7rem 2rem !important; border-radius: var(--r) !important;
  font-family: var(--font-ui) !important; font-weight: 700 !important;
  cursor: pointer !important; transition: background .18s !important;
}
div.wpforms-container-full .wpforms-form .wpforms-submit:hover { background: var(--sky-dark) !important; }

/* ── COMMENTS ────────────────────────────────────────────────── */
.comments-wrap { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--slate-line); }
.comments-heading { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 1.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-item { padding: 1.25rem; border: 1px solid var(--slate-line); border-radius: var(--r-lg); margin-bottom: 1rem; }
.comment-author-name { font-family: var(--font-ui); font-weight: 700; color: var(--slate); }
.comment-date { font-family: var(--font-ui); font-size: .78rem; color: var(--slate-soft); }
.comment-text { margin-top: .75rem; font-size: .95rem; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form textarea {
  border: 1px solid var(--slate-line); border-radius: var(--r); font-family: var(--font-body);
  font-size: 1rem; padding: .65rem 1rem; width: 100%; margin-bottom: 1rem;
  background: var(--white); color: var(--slate); transition: border-color .18s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--sky); outline: none; box-shadow: 0 0 0 3px rgba(14,165,233,.15); }
.comment-form input[type=submit] { background: var(--sky); color: #fff; border: none; padding: .7rem 1.75rem; border-radius: var(--r); font-family: var(--font-ui); font-weight: 700; cursor: pointer; transition: background .18s; }
.comment-form input[type=submit]:hover { background: var(--sky-dark); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer { background: var(--slate); color: #94a3b8; padding: 3.5rem 0 1.75rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-logo { height: 52px; margin-bottom: 1rem; }
.footer-brand p { font-family: var(--font-ui); font-size: .875rem; color: #64748b; max-width: 280px; line-height: 1.6; }
.footer-col-title { font-family: var(--font-ui); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { font-family: var(--font-ui); font-size: .875rem; color: #64748b; transition: color .18s; }
.footer-links a:hover { color: var(--sky); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; }
.footer-copy { font-family: var(--font-ui); font-size: .8rem; color: #475569; }
.footer-sig { font-family: var(--font-mono); font-size: .85rem; color: var(--sky); font-weight: 600; }

/* ── 404 ─────────────────────────────────────────────────────── */
.error-page { text-align: center; padding: 6rem 1.5rem; }
.error-code { font-family: var(--font-head); font-size: 7rem; font-weight: 700; color: var(--sky-light); line-height: 1; }
.error-page h1 { font-size: 1.75rem; margin-bottom: 1rem; }
.error-page p { color: var(--slate-mid); max-width: 400px; margin: 0 auto 2rem; }
.btn-sky { background: var(--sky); color: #fff; padding: .7rem 1.75rem; border-radius: var(--r); font-family: var(--font-ui); font-weight: 700; display: inline-block; transition: background .18s; }
.btn-sky:hover { background: var(--sky-dark); color: #fff; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .masthead-inner { flex-direction: column; text-align: center; }
  .masthead-logo { width: 160px; }
  .masthead-meta { justify-content: center; }
  .page-layout, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .fp-image { min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .main-nav { display: none; }
  .main-nav.is-open { display: block; position: absolute; top: var(--hh); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--slate-line); box-shadow: var(--sh-md); padding: 1rem; z-index: 199; }
  .main-nav.is-open ul { flex-direction: column; }
  .menu-toggle { display: block; }
  .blog-list-item { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .pn-item.next { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   STATUS BADGES  (Projects)
═══════════════════════════════════════════════════════════════ */
.status-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 999px;
}
.status-planning    { background: var(--sky-light);  color: var(--sky-dark); }
.status-in-progress { background: var(--amber-bg);   color: #b45309; }
.status-running     { background: #dcfce7;            color: #15803d; }
.status-complete    { background: #f1f5f9;            color: var(--slate-mid); }
.status-on-hold     { background: #fef2f2;            color: #b91c1c; }

/* Compact dot version for sidebar */
.status-dot {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-dot.status-planning    { color: var(--sky-dark); }
.status-dot.status-in-progress { color: #b45309; }
.status-dot.status-running     { color: #15803d; }
.status-dot.status-complete    { color: var(--slate-soft); }
.status-dot.status-on-hold     { color: #b91c1c; }

/* ═══════════════════════════════════════════════════════════════
   PROJECTS DIRECTORY
═══════════════════════════════════════════════════════════════ */
.archive-desc {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--slate-mid);
  margin-top: .5rem;
  margin-bottom: 2rem;
}

.project-group { margin-bottom: 2.5rem; }

.project-group-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--slate-line);
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--slate-mid);
}

.project-directory {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-card {
  display: flex;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--slate-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: box-shadow .2s, transform .2s;
}
.project-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.project-card-thumb {
  flex: 0 0 160px;
  display: block;
  overflow: hidden;
}
.project-card-thumb img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  display: block;
}
.project-card-body {
  flex: 1;
  padding: 1rem 1.25rem 1rem 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.project-card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin: 0;
}
.project-card-title a { color: var(--slate); }
.project-card-title a:hover { color: var(--sky-dark); }
.project-card-meta {
  font-family: var(--font-ui);
  font-size: .8rem;
  color: var(--slate-mid);
  margin: 0;
}
.meta-label { font-weight: 600; color: var(--slate); }
.project-card-excerpt {
  font-size: .9rem;
  color: var(--slate-mid);
  margin: 0;
  flex: 1;
}
.project-card-link {
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 600;
  color: var(--sky-dark);
}
.project-card-link:hover { color: var(--sky); }

/* Project meta row on single project */
.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: .75rem;
}
.project-bands-badge {
  font-family: var(--font-mono);
  font-size: .78rem;
  background: var(--slate-bg);
  color: var(--slate-mid);
  padding: .2rem .6rem;
  border-radius: 4px;
  border: 1px solid var(--slate-line);
}

/* ═══════════════════════════════════════════════════════════════
   ADVENTURES DIRECTORY
═══════════════════════════════════════════════════════════════ */
.adventure-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.filter-pill {
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .85rem;
  border-radius: 999px;
  border: 1.5px solid var(--slate-line);
  color: var(--slate-mid);
  background: var(--white);
  transition: all .18s;
  text-decoration: none;
}
.filter-pill:hover, .filter-pill.active {
  background: var(--sky-dark);
  border-color: var(--sky-dark);
  color: var(--white);
}
.filter-count {
  display: inline-block;
  background: rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 0 .4rem;
  font-size: .7rem;
  margin-left: .3rem;
}

.adventure-directory {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.adventure-card {
  display: flex;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--slate-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: box-shadow .2s, transform .2s;
}
.adventure-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.adventure-card-thumb {
  flex: 0 0 160px;
  display: block;
  overflow: hidden;
}
.adventure-card-thumb img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  display: block;
}
.adventure-card-body {
  flex: 1;
  padding: 1rem 1.25rem 1rem 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.adventure-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .25rem;
}
.adventure-type-badge {
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: var(--sky-light);
  color: var(--sky-dark);
}
.adventure-date-badge {
  font-family: var(--font-ui);
  font-size: .75rem;
  color: var(--slate-soft);
}
.adventure-card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin: 0;
}
.adventure-card-title a { color: var(--slate); }
.adventure-card-title a:hover { color: var(--sky-dark); }
.adventure-card-meta {
  font-family: var(--font-ui);
  font-size: .8rem;
  color: var(--slate-mid);
  margin: 0;
}
.adventure-card-excerpt {
  font-size: .9rem;
  color: var(--slate-mid);
  margin: 0;
  flex: 1;
}

/* Adventure fact bar on single adventure page */
.adventure-fact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--sky-pale);
  border: 1px solid var(--sky-light);
  border-radius: var(--r-lg);
}
.fact-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.fact-label {
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--sky-dark);
}
.fact-val {
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 600;
  color: var(--slate);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--slate-mid);
  font-family: var(--font-ui);
}
.empty-icon { font-size: 2.5rem; margin-bottom: .75rem; }

/* Responsive adjustments */
@media (max-width: 600px) {
  .project-card, .adventure-card { flex-direction: column; }
  .project-card-thumb, .adventure-card-thumb { flex: none; width: 100%; }
  .project-card-thumb img, .adventure-card-thumb img { width: 100%; height: 180px; }
  .project-card-body, .adventure-card-body { padding: 1rem; }
  .adventure-fact-bar { gap: .75rem; }
}

/* ── Homepage view-all row ─────────────────────────────────── */
.hp-view-all-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-line);
}
