/* ═══════════════════════════════════════════════════════════════
   QSL Shack Ham Radio News — Shared Stylesheet
   Used by: index.html, category/*.html, tag/*.html,
            archive/*.html, posts/*.html (public/ham_radio_news/)
   The site's own head, header and footer arrive through Nginx SSI
   (blogssi1); this file styles the blog content inside .hrn.
═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  /* QSLShack palette — measured from the live site, session 55.
     NOTE: this is a SNAPSHOT of the platform SCSS, not a link to it.
     If the house colours change, this block is a second place to change. */
  --bg-site:       #eff2f6;
  --bg-card:       #ffffff;
  --bg-card2:      #f7f8fa;
  --border-subtle: rgba(0,0,0,0.08);
  --border-card:   rgba(0,0,0,0.09);
  --text-primary:  #14191e;
  --text-secondary:#676a79;
  --text-muted:    #8a8f9c;
  --accent:        #2d8a1e;
  --accent-soft:   rgba(45,138,30,0.10);
  --accent-line:   rgba(45,138,30,0.32);
  --accent-2:      #e8821a;
  --ok:            #2d8a1e;
  --grad-main:     linear-gradient(135deg,#2d8a1e,#3aa827,#e8821a);
  --grad-text:     linear-gradient(135deg,#2d8a1e 0%,#3aa827 50%,#e8821a 100%);
  --font-display:  'Space Grotesk','Segoe UI',system-ui,sans-serif;
  --font-body:     'DM Sans','Segoe UI',system-ui,sans-serif;
  --transition:    all 0.2s ease;
  --radius-card:   14px;
  --radius-pill:   999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* blogssi1 (241): the site's theme CSS loads before this file. It sets margins, colors and link
   underlines on bare elements, which the universal reset above (weight zero) cannot undo. These
   put this blog's defaults back inside its content (.hrn) only, at element weight, so every rule
   below still wins and the site's header and footer keep the theme's look. */
:where(.hrn) h1, :where(.hrn) h2, :where(.hrn) h3, :where(.hrn) h4, :where(.hrn) h5, :where(.hrn) h6,
:where(.hrn) p, :where(.hrn) ul, :where(.hrn) ol, :where(.hrn) dl, :where(.hrn) figure,
:where(.hrn) blockquote, :where(.hrn) hr { margin: 0; padding: 0; }
:where(.hrn) h1, :where(.hrn) h2, :where(.hrn) h3, :where(.hrn) h4, :where(.hrn) h5, :where(.hrn) h6 {
  font-weight: inherit; line-height: inherit; color: inherit; font-size: inherit;
}
:where(.hrn) a { color: inherit; text-decoration: none; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-site); color: var(--text-secondary);
  font-family: var(--font-body); font-size: 15px; line-height: 1.7;
  padding-top: 72px;
  background-image:
    radial-gradient(1100px 680px at 16% 8%, rgba(108,140,255,.08), transparent 58%),
    radial-gradient(900px 620px at 88% 92%, rgba(70,200,255,.05), transparent 60%);
  background-attachment: fixed;
}

/* ── CONTAINER ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ── NAV SEARCH ── */

.nsr-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border-subtle); text-decoration: none; transition: var(--transition); }
.nsr-item:last-child { border-bottom: none; }
.nsr-item:hover, .nsr-item.nsr-active { background: var(--accent-soft); }
.nsr-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); border: 1px solid var(--accent-line); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--accent); flex-shrink: 0; }
.nsr-item:hover .nsr-icon { background: rgba(108,140,255,.28); }
.nsr-name { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--text-primary); margin-bottom: 1px; }
.nsr-cat { font-size: 11px; color: var(--text-muted); }
.nsr-name mark { background: rgba(108,140,255,0.3); color: #a8bfff; border-radius: 2px; padding: 0 2px; font-style: normal; }
.nsr-empty { padding: 16px 14px; font-size: 13px; color: var(--text-muted); text-align: center; }

/* ── HERO ── */
.blog-hero {
  background: var(--bg-card2); border-bottom: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2.75rem; position: relative; overflow: hidden;
  text-align: center;
}
.blog-hero::before {
  content: ''; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108,140,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero::after {
  content: ''; position: absolute; bottom: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(111,214,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: var(--radius-pill); padding: 0.3rem 1rem;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.blog-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.03em;
  color: var(--text-primary); margin-bottom: 1rem; line-height: 1.15;
}
.blog-hero h1 span {
  background: var(--grad-text); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.blog-hero-sub { font-size: 1rem; color: var(--text-muted); max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* breadcrumb */
.blog-breadcrumb { font-family: var(--font-display); font-size: 12px; color: var(--text-muted); margin-bottom: 1rem; }
.blog-breadcrumb a { color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.blog-breadcrumb a:hover { color: var(--accent); }
.blog-breadcrumb span { margin: 0 6px; }

/* ── PAGE BODY ── */
.topband { background: var(--bg-site); }
.blog-page-wrap { padding: 2.5rem 0 3rem; }

/* ── LIGHT BODY (content area below the dark hero) ── */
.blog-light-body {
  background: #f7f8fa; color: #1a2233; padding-bottom: 10px;
}
.blog-light-body .blog-page-wrap { background: #f7f8fa; }

/* Light body text overrides */
.blog-light-body .section-label { color: #727b91; }
.blog-light-body .section-label::after { background: #d8dce6; }

/* Light body cards */
.blog-light-body .post-card { background: #fff; border: 1px solid #e3e6ea; box-shadow: 0 1px 2px rgba(16,24,40,.04),0 8px 24px -16px rgba(16,24,40,.18); backdrop-filter: none; }
.blog-light-body .post-card:hover { border-color: #c7d0e6; box-shadow: 0 4px 10px rgba(16,24,40,.07),0 18px 38px -18px rgba(16,24,40,.28); }
.blog-light-body .card-body h3 { color: #14191e; }
.blog-light-body .card-body p { color: #676a79; }
.blog-light-body .card-cat { color: #2d8a1e; background: #eaf5e8; border-color: #cfe6ca; }
.blog-light-body .card-foot { color: #8a8f9c; }
.blog-light-body .card-foot a { color: #246e18; }
.blog-light-body .card-thumb.g1 { background: linear-gradient(145deg,#eaf5e8,#e3f1e0); }
.blog-light-body .card-thumb.g2 { background: linear-gradient(145deg,#fdf1e4,#fae7d3); }
.blog-light-body .card-thumb.g3 { background: linear-gradient(145deg,#e9eef5,#e1e9f2); }
.blog-light-body .card-thumb.g4 { background: linear-gradient(145deg,#e8e8f0,#dddee9); }

/* Light body listing articles */
.blog-light-body .listing-article { background: #fff; border: 1px solid #e3e6ea; }
.blog-light-body .listing-article:hover { border-color: #c7d0e6; box-shadow: 0 4px 20px rgba(16,24,40,.12); }
.blog-light-body .listing-body h2 { color: #14191e; }
.blog-light-body .listing-body > p { color: #676a79; }
.blog-light-body .listing-read-link { color: #246e18; }
.blog-light-body .listing-thumb.g1 { background: linear-gradient(145deg,#eaf5e8,#e3f1e0); }
.blog-light-body .listing-thumb.g2 { background: linear-gradient(145deg,#fdf1e4,#fdf1e4); }
.blog-light-body .listing-thumb.g3 { background: linear-gradient(145deg,#eef7ec,#eef7ec); }
.blog-light-body .listing-thumb.g4 { background: linear-gradient(145deg,#eaf5e8,#fdf1e4); }
.blog-light-body .listing-thumb.g5 { background: linear-gradient(145deg,#eef7ec,#eaf5e8); }
.blog-light-body .post-cat { color: #2d8a1e; background: #eaf5e8; border-color: #cfe6ca; }
.blog-light-body .post-date, .blog-light-body .post-read { color: #8a8f9c; }

/* Light body listing header */
.blog-light-body .listing-header { border-bottom-color: #2d8a1e; }
.blog-light-body .listing-type-label { color: #2d8a1e; }
.blog-light-body .listing-title { color: #14191e; }
.blog-light-body .listing-desc { color: #676a79; }
.blog-light-body .listing-count { color: #1e5c14; background: #eaf5e8; border-color: #bfdcb9; }
.blog-light-body .back-link { color: #246e18; }
.blog-light-body .back-link:hover { color: #14191e; }

/* Light body more-articles list */
.blog-light-body .post-list-item { border-bottom-color: #e3e6ea; }
.blog-light-body .list-num { color: #8a8f9c; background: #f7f8fa; border-color: #e3e6ea; }
.blog-light-body .post-list-item:hover .list-num { background: #eaf5e8; color: #2d8a1e; border-color: #bfdcb9; }
.blog-light-body .list-body h3 { color: #14191e; }
.blog-light-body .list-body h3 a:hover { color: #246e18; }
.blog-light-body .list-body p { color: #676a79; }
.blog-light-body .list-meta { color: #8a8f9c; }

/* Light body pagination */
.blog-light-body .page-btn { background: #fff; border-color: #e3e6ea; color: #1e5c14; }
.blog-light-body .page-btn:hover { border-color: #7bb872; color: #246e18; }
.blog-light-body .page-btn.active { background: #eaf5e8; color: #2d8a1e; border-color: #bfdcb9; }
.blog-light-body .page-btn.page-prev, .blog-light-body .page-btn.page-next { color: #246e18; }

/* Light body CTA strip */
.blog-light-body .cta-strip { background: #fff; }
.blog-light-body .cta-strip h3 { color: #14191e; }
.blog-light-body .cta-text p { color: #676a79; }

/* Light body sidebar */
.blog-light-body .sidebar-label { color: #8a8f9c; border-bottom-color: #e3e6ea; }
.blog-light-body .sidebar-link { color: #676a79; }
.blog-light-body .sidebar-link:hover { background: #eaf5e8; color: #14191e; }
.blog-light-body .sidebar-link.active { background: #eaf5e8; color: #2d8a1e; border-color: #bfdcb9; }
.blog-light-body .archive-count { color: #8a8f9c; }
/* ── Archive year grouping ── */
.archive-year-group { margin: 2px 0; border-top: 1px solid #e3e6ea; margin-top: 4px; padding-top: 4px; }
.archive-year-toggle { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: none; cursor: pointer; padding: 5px 8px; border-radius: 7px; color: #676a79; font-size: 13px; font-weight: 500; text-align: left; transition: all 0.2s; }
.archive-year-toggle:hover { background: rgba(108,140,255,0.08); color: #2d8a1e; }
.archive-year-toggle.open { color: #2d8a1e; }
.archive-year-label { flex: 1; }
.archive-year-count { font-size: 11px; color: #8a8f9c; }
.archive-year-caret { font-size: 10px; transition: transform 0.2s; }
.archive-year-toggle.open .archive-year-caret { transform: rotate(180deg); }
.archive-year-months { display: none; padding-left: 10px; }
.archive-year-months.open { display: block; }
.blog-light-body .sidebar-tag { background: #fff; color: #676a79; border-color: #e3e6ea; }
.blog-light-body .sidebar-tag:hover { background: #eaf5e8; color: #2d8a1e; border-color: #bfdcb9; }
.blog-light-body .search-field-wrap input { background: #fff; border-color: #e3e6ea; color: #1a2233; }
.blog-light-body .search-field-wrap input:focus { border-color: #7bb872; background: #f8f9ff; }
.blog-light-body .search-results-box { background: #fff; border-color: #e3e6ea; }
.blog-light-body .sr-item:hover, .blog-light-body .sr-item.sr-active { background: #eaf5e8; }
.blog-light-body .sr-title { color: #14191e; }
.blog-light-body .sr-meta { color: #2d8a1e; }
.blog-light-body .sr-snippet { color: #676a79; }

/* ── TWO-COLUMN LAYOUT ── */
.blog-layout { display: flex; flex-direction: row; gap: 2.5rem; align-items: flex-start; }
.blog-main { flex: 1; min-width: 0; }
.blog-sidebar { width: 252px; flex-shrink: 0; }
@media (max-width: 992px) { .blog-layout { flex-direction: column; } .blog-sidebar { width: 100%; } }

/* ── FEATURED ARTICLE ── */
.featured-post {
  display: flex; background: var(--bg-card);
  border: 1px solid rgba(176,186,209,.22); border-radius: var(--radius-card);
  overflow: hidden; margin-bottom: 2.5rem; transition: var(--transition);
  position: relative;
}
.featured-post::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-card);
  padding: 1px; background: var(--grad-main);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: var(--transition); pointer-events: none;
}
.featured-post::before { pointer-events: none; }
.featured-post:hover::before { opacity: 1; }
.featured-post:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.featured-thumb {
  width: 260px; flex-shrink: 0; min-height: 220px;
  background: #F4C18D;
  display: flex; align-items: center; justify-content: center;
}
.featured-body { flex: 1; padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.featured-label { font-family: var(--font-display); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.featured-label::before { content: ''; display: inline-block; width: 24px; height: 2px; background: var(--grad-main); border-radius: 1px; }
.featured-body h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 2.5vw, 1.5rem); letter-spacing: -0.02em; color: var(--text-primary); margin-bottom: 10px; line-height: 1.3; }
.featured-body h2 a { color: inherit; text-decoration: none; }
.featured-body h2 a:hover { color: var(--accent); }
.featured-body p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.featured-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.featured-cat { background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; padding: 3px 10px; border-radius: 10px; border: 1px solid var(--accent-line); }
.featured-date, .featured-read { font-size: 12px; color: var(--text-muted); }
.btn-read-featured { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 13px; padding: 9px 20px; border-radius: var(--radius-pill); text-decoration: none; transition: var(--transition); align-self: flex-start; }
.btn-read-featured:hover { opacity: 0.88; color: #fff; transform: translateY(-1px); }
@media (max-width: 768px) { .featured-post { flex-direction: column; } .featured-thumb { width: 100%; min-height: 140px; } }

/* ── SECTION LABEL ── */
.section-label { font-family: var(--font-display); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 10px; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border-subtle); }

/* ── RECENT GRID ── */
.recent-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 2.5rem; }
@media (max-width: 900px) { .recent-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 576px) { .recent-grid { grid-template-columns: 1fr; } }
.post-card { background: var(--bg-card); border: 1px solid rgba(176,186,209,.2); border-radius: var(--radius-card); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.post-card:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.card-thumb { height: 120px; display: flex; align-items: center; justify-content: center; }
.card-thumb.g1 { background: linear-gradient(145deg,rgba(108,140,255,0.2),rgba(108,140,255,0.06)); }
.card-thumb.g2 { background: linear-gradient(145deg,rgba(142,123,255,0.18),rgba(142,123,255,0.05)); }
.card-thumb.g3 { background: linear-gradient(145deg,rgba(111,214,255,0.15),rgba(111,214,255,0.04)); }
.card-thumb.g4 { background: linear-gradient(145deg,rgba(94,97,138,0.22),rgba(94,97,138,0.07)); }
.card-body { flex: 1; padding: 16px; display: flex; flex-direction: column; }
.card-cat { font-family: var(--font-display); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 2px 8px; border-radius: 8px; display: inline-block; margin-bottom: 8px; align-self: flex-start; }
.card-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-primary); line-height: 1.4; margin-bottom: 8px; letter-spacing: -0.01em; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { color: var(--accent); }
.card-body p { font-size: 12px; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 12px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-muted); margin-top: auto; }
.card-foot a { color: var(--accent); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 12px; transition: var(--transition); }
.card-foot a:hover { color: #fff; }

/* ── MORE ARTICLES LIST ── */
.post-list-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); transition: var(--transition); }
.post-list-item:last-child { border-bottom: none; }
.post-list-item:hover .list-num { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.list-num { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--text-muted); min-width: 36px; height: 36px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition); }
.list-body { flex: 1; min-width: 0; }
.list-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-primary); margin-bottom: 4px; line-height: 1.4; letter-spacing: -0.01em; }
.list-body h3 a { color: inherit; text-decoration: none; }
.list-body h3 a:hover { color: var(--accent); }
.list-body p { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 4px; }
.list-meta { font-size: 11px; color: var(--text-muted); }

/* ── LISTING ROWS (category/tag/archive pages) ── */
.listing-article { display: flex; background: var(--bg-card); border: 1px solid rgba(176,186,209,.18); border-radius: 10px; overflow: hidden; margin-bottom: 10px; transition: var(--transition); }
.listing-article:hover { border-color: var(--accent-line); box-shadow: 0 4px 20px rgba(0,0,0,0.3); transform: translateY(-1px); }
.listing-thumb { width: 110px; min-height: 110px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.listing-thumb.g1 { background: linear-gradient(145deg,rgba(108,140,255,0.22),rgba(108,140,255,0.07)); }
.listing-thumb.g2 { background: linear-gradient(145deg,rgba(142,123,255,0.18),rgba(142,123,255,0.05)); }
.listing-thumb.g3 { background: linear-gradient(145deg,rgba(111,214,255,0.16),rgba(111,214,255,0.04)); }
.listing-thumb.g4 { background: linear-gradient(145deg,rgba(108,140,255,0.14),rgba(142,123,255,0.07)); }
.listing-thumb.g5 { background: linear-gradient(145deg,rgba(111,214,255,0.14),rgba(108,140,255,0.06)); }
.listing-body { flex: 1; padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; }
.listing-body h2 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.35; margin: 5px 0 6px; }
.listing-body h2 a { color: inherit; text-decoration: none; }
.listing-body h2 a:hover { color: var(--accent); }
.listing-body > p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0 0 10px; }
.listing-read-link { font-size: 12px; font-weight: 700; color: var(--accent); text-decoration: none; align-self: flex-start; font-family: var(--font-display); transition: var(--transition); }
.listing-read-link:hover { color: #fff; }

/* ── LISTING HEADER ── */
.listing-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--accent); }
.listing-type-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent); margin-bottom: 4px; font-family: var(--font-display); }
.listing-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--text-primary); margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
.listing-desc { font-size: 13px; color: var(--text-muted); margin-top: 4px; margin-bottom: 0; }
.listing-count { font-size: 12px; color: var(--text-secondary); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 4px 14px; border-radius: var(--radius-pill); white-space: nowrap; align-self: center; font-family: var(--font-display); font-weight: 700; }

/* back link */
.back-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--accent); text-decoration: none; margin-bottom: 1.25rem; font-family: var(--font-display); font-weight: 600; transition: var(--transition); }
.back-link:hover { color: #fff; }
.back-link i { font-size: 11px; }

/* ── POST META ── */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 4px; }
.post-cat { background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; padding: 2px 9px; border-radius: 10px; font-family: var(--font-display); border: 1px solid var(--accent-line); }
.post-date, .post-read { font-size: 11px; color: var(--text-muted); }

/* ── PAGINATION ── */
.blog-pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 1.5rem 0; }
.page-btn { font-size: 13px; padding: 6px 13px; border: 1px solid var(--border-subtle); border-radius: 8px; color: var(--text-secondary); background: var(--bg-card); text-decoration: none; transition: var(--transition); font-family: var(--font-display); font-weight: 600; }
.page-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.page-btn.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); font-weight: 700; }
.page-btn.page-prev, .page-btn.page-next { color: var(--accent); }
.page-ellipsis { color: var(--text-muted); font-size: 13px; padding: 0 4px; }

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--bg-card2); border: 1px solid var(--accent-line); border-radius: 12px;
  padding: 1.4rem 1.75rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem; margin-bottom: 1rem; margin-top: 1.5rem;
  position: relative; overflow: hidden;
}
.cta-strip::before { content: ''; position: absolute; inset: 0; border-radius: 12px; padding: 1px; background: var(--grad-main); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.cta-strip h3 { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.cta-text p { font-size: 13px; color: var(--text-muted); margin: 0; }
.btn-cta { flex-shrink: 0; display: inline-block; background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: #fff; font-size: 13px; font-weight: 700; padding: 10px 22px; border-radius: var(--radius-pill); text-decoration: none; white-space: nowrap; transition: var(--transition); font-family: var(--font-display); position: relative; z-index: 1; }
.btn-cta:hover { opacity: 0.88; color: #fff; transform: translateY(-1px); }
@media (max-width: 768px) { .cta-strip { flex-direction: column; text-align: center; } }

/* ── SIDEBAR ── */
.sidebar-section { margin-bottom: 1.75rem; }
.sidebar-label { font-family: var(--font-display); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); border-bottom: 1px solid var(--border-subtle); padding-bottom: 6px; margin-bottom: 10px; }
.sidebar-link { display: block; font-size: 13px; color: var(--text-muted); text-decoration: none; padding: 5px 8px; border-radius: 7px; line-height: 1.45; transition: var(--transition); font-family: var(--font-display); font-weight: 500; }
.sidebar-link:hover { background: var(--accent-soft); color: var(--text-primary); }
.sidebar-link.active { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.archive-count { color: var(--text-muted); font-size: 11px; }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.sidebar-tag { display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 12px; background: rgba(255,255,255,0.04); color: var(--text-muted); border: 1px solid var(--border-subtle); text-decoration: none; transition: var(--transition); font-family: var(--font-display); font-weight: 600; }
.sidebar-tag:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.search-section { margin-bottom: 1.75rem; }
.search-field-wrap { position: relative; }
.search-field-wrap input { width: 100%; padding: 9px 30px 9px 12px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 8px; font-size: 13px; color: var(--text-primary); outline: none; box-sizing: border-box; transition: var(--transition); font-family: var(--font-body); }
.search-field-wrap input:focus { border-color: var(--accent-line); background: rgba(108,140,255,0.05); }
.search-field-wrap input::placeholder { color: var(--text-muted); }
.search-clear-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--text-muted); cursor: pointer; display: none; padding: 2px 4px; line-height: 1; }
.search-clear-btn:hover { color: var(--text-primary); }
.search-results-box { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,0.5); z-index: 500; max-height: 360px; overflow-y: auto; }
.sr-item { display: block; padding: 10px 13px; border-bottom: 1px solid var(--border-subtle); text-decoration: none; transition: var(--transition); }
.sr-item:last-child { border-bottom: none; }
.sr-item:hover, .sr-item.sr-active { background: var(--accent-soft); }
.sr-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; line-height: 1.35; font-family: var(--font-display); }
.sr-meta { font-size: 10px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; font-family: var(--font-display); }
.sr-snippet { font-size: 11px; color: var(--text-muted); line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sr-empty { padding: 14px 13px; font-size: 12px; color: var(--text-muted); text-align: center; }
.sr-item mark { background: rgba(108,140,255,0.25); color: var(--accent); border-radius: 2px; padding: 0 2px; font-style: normal; }

/* ═══════════════════════════════════════════════════════════════
   POST / ARTICLE PAGE STYLES
═══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════
   QSLSHACK CHROME — added session 55. Header, footer and light hero.
   Appended deliberately so nothing above is destroyed and this layer wins
   on cascade order. Remove this block to return to the stock CMS skin.
   ══════════════════════════════════════════════════════════════════════════ */

.topband { background: #fff; border-bottom: 1px solid rgba(0,0,0,.1); }

 .qsl-btn-solid { font-family:var(--font-body); font-size:14px;
  padding:6px 14px; border-radius:6px; text-decoration:none; white-space:nowrap;
  line-height:1.5; }

.qsl-btn-solid { color:#fff; background:#2d8a1e; border:1px solid #2d8a1e; }
.qsl-btn-solid:hover { background:#246e18; border-color:#246e18; color:#fff; }

/* Hero goes light. The stock glows are dark-theme artefacts. */
.blog-hero { background:#fff; }
.blog-hero::before, .blog-hero::after { display:none !important; }
.blog-hero h1 { color:#14191e; }
.blog-breadcrumb, .blog-breadcrumb a { color:#676a79; }
.blog-breadcrumb a:hover { color:#2d8a1e; }
.blog-hero-sub { color:#676a79; }

/* ── Session 55 round 2: Jon's four screen notes ──────────────────────────── */

/* 1. The grey band. .blog-nav was position:fixed, so body carries 72px of
      top padding for it. Our header is static, so that padding was showing
      as bare page background. The body radial glows are dark-theme leftovers
      in rgba(), which the hex recolour could not reach. */
body { padding-top: 0 !important; background-image: none !important; }

/* 2. CTA buttons: solid house green, white text, same as Join Free. */
.btn-cta { background: #2d8a1e !important; color: #fff !important; }
.btn-cta:hover { background: #246e18 !important; color: #fff !important; opacity: 1; }

/* 4. Hero in house green — gradient sampled from the live /about hero. */
.topband { background: #fff; border-bottom: none; }
.blog-hero {
  background: linear-gradient(135deg, #1e6613 0%, #2d8a1e 50%, #389f25 100%);
  border-bottom: none;
  padding: 4rem 0 3.25rem;
}
.blog-hero h1,
.blog-hero h1 span {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #fff;
}
.blog-hero-sub { color: rgba(255,255,255,.92); }
.blog-breadcrumb { color: rgba(255,255,255,.85); }
.blog-breadcrumb a { color: rgba(255,255,255,.85); }
.blog-breadcrumb a:hover { color: #fff; }
.blog-breadcrumb span { color: rgba(255,255,255,.55); }

/* ══════════════════════════════════════════════════════════════════════════
   blogdark1 (241) — DARK MODE. Jon: members use dark mode. The site's head-css
   sets data-bs-theme="dark" on <html> for a member who chose it (guests are always
   light). These rules repaint the blog in the site theme's own dark colours,
   measured from the live theme: page #191a1f, cards #141519 (the header and
   footer), body text #a1a1a8, headings #fff, borders white at 7%, green #46b82f.
   Every selector starts [data-bs-theme=dark], so light mode is untouched.
   ══════════════════════════════════════════════════════════════════════════ */

/* The theme paints <main> with its page colour; the blog's column is transparent
   over the content band in both modes, as it was before blogssi1. */
.hrn main.blog-main { background: transparent; }

[data-bs-theme=dark] {
  --bg-site:       #191a1f;
  --bg-card:       #141519;
  --bg-card2:      #202227;
  --border-subtle: rgba(255,255,255,0.07);
  --border-card:   rgba(255,255,255,0.09);
  --text-primary:  #ffffff;
  --text-secondary:#a1a1a8;
  --text-muted:    #8e9097;
  --accent:        #46b82f;
  --accent-soft:   rgba(70,184,47,0.12);
  --accent-line:   rgba(70,184,47,0.35);
}

[data-bs-theme=dark] .topband { background: #191a1f; }
[data-bs-theme=dark] .blog-light-body,
[data-bs-theme=dark] .blog-light-body .blog-page-wrap { background: #191a1f; color: #a1a1a8; }

/* Section labels */
[data-bs-theme=dark] .blog-light-body .section-label { color: #8e9097; }
[data-bs-theme=dark] .blog-light-body .section-label::after { background: rgba(255,255,255,0.08); }

/* Featured article. The button keeps the house green: white on the brighter dark-mode
   green reads 2.6:1, on #2d8a1e it is the site's own 4.4:1. */
[data-bs-theme=dark] .featured-post { border-color: rgba(255,255,255,0.07); }
[data-bs-theme=dark] .featured-thumb { background: #b9875a; }
[data-bs-theme=dark] .btn-read-featured { background: #2d8a1e; }

/* Recent cards */
[data-bs-theme=dark] .blog-light-body .post-card { background: #141519; border-color: rgba(255,255,255,0.07); box-shadow: none; }
[data-bs-theme=dark] .blog-light-body .post-card:hover { border-color: rgba(70,184,47,0.35); box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
[data-bs-theme=dark] .blog-light-body .card-body h3 { color: #ffffff; }
[data-bs-theme=dark] .blog-light-body .card-body p { color: #a1a1a8; }
[data-bs-theme=dark] .blog-light-body .card-cat,
[data-bs-theme=dark] .blog-light-body .post-cat { color: #46b82f; background: rgba(70,184,47,0.12); border-color: rgba(70,184,47,0.30); }
[data-bs-theme=dark] .blog-light-body .card-foot,
[data-bs-theme=dark] .blog-light-body .post-date,
[data-bs-theme=dark] .blog-light-body .post-read { color: #8e9097; }
[data-bs-theme=dark] .blog-light-body .card-foot a { color: #46b82f; }
[data-bs-theme=dark] .blog-light-body .card-thumb.g1,
[data-bs-theme=dark] .blog-light-body .listing-thumb.g1 { background: linear-gradient(145deg,rgba(70,184,47,0.18),rgba(70,184,47,0.07)); }
[data-bs-theme=dark] .blog-light-body .card-thumb.g2,
[data-bs-theme=dark] .blog-light-body .listing-thumb.g2 { background: linear-gradient(145deg,rgba(232,130,26,0.18),rgba(232,130,26,0.07)); }
[data-bs-theme=dark] .blog-light-body .card-thumb.g3,
[data-bs-theme=dark] .blog-light-body .listing-thumb.g3 { background: linear-gradient(145deg,rgba(120,150,190,0.18),rgba(120,150,190,0.07)); }
[data-bs-theme=dark] .blog-light-body .card-thumb.g4,
[data-bs-theme=dark] .blog-light-body .listing-thumb.g4 { background: linear-gradient(145deg,rgba(150,150,180,0.18),rgba(150,150,180,0.07)); }
[data-bs-theme=dark] .blog-light-body .listing-thumb.g5 { background: linear-gradient(145deg,rgba(70,184,47,0.14),rgba(232,130,26,0.07)); }

/* Listing rows (category, tag and archive pages) */
[data-bs-theme=dark] .blog-light-body .listing-article { background: #141519; border-color: rgba(255,255,255,0.07); }
[data-bs-theme=dark] .blog-light-body .listing-article:hover { border-color: rgba(70,184,47,0.35); box-shadow: 0 4px 20px rgba(0,0,0,0.45); }
[data-bs-theme=dark] .blog-light-body .listing-body h2 { color: #ffffff; }
[data-bs-theme=dark] .blog-light-body .listing-body > p { color: #a1a1a8; }
[data-bs-theme=dark] .blog-light-body .listing-read-link { color: #46b82f; }

/* Listing header */
[data-bs-theme=dark] .blog-light-body .listing-header { border-bottom-color: #46b82f; }
[data-bs-theme=dark] .blog-light-body .listing-type-label { color: #46b82f; }
[data-bs-theme=dark] .blog-light-body .listing-title { color: #ffffff; }
[data-bs-theme=dark] .blog-light-body .listing-desc { color: #a1a1a8; }
[data-bs-theme=dark] .blog-light-body .listing-count { color: #8fd67e; background: rgba(70,184,47,0.12); border-color: rgba(70,184,47,0.30); }
[data-bs-theme=dark] .blog-light-body .back-link { color: #46b82f; }
[data-bs-theme=dark] .blog-light-body .back-link:hover { color: #ffffff; }

/* More-articles list */
[data-bs-theme=dark] .blog-light-body .post-list-item { border-bottom-color: rgba(255,255,255,0.07); }
[data-bs-theme=dark] .blog-light-body .list-num { color: #8e9097; background: #202227; border-color: rgba(255,255,255,0.07); }
[data-bs-theme=dark] .blog-light-body .post-list-item:hover .list-num { background: rgba(70,184,47,0.12); color: #46b82f; border-color: rgba(70,184,47,0.30); }
[data-bs-theme=dark] .blog-light-body .list-body h3 { color: #ffffff; }
[data-bs-theme=dark] .blog-light-body .list-body h3 a:hover { color: #46b82f; }
[data-bs-theme=dark] .blog-light-body .list-body p { color: #a1a1a8; }
[data-bs-theme=dark] .blog-light-body .list-meta { color: #8e9097; }

/* Pagination */
[data-bs-theme=dark] .blog-light-body .page-btn { background: #141519; border-color: rgba(255,255,255,0.09); color: #8fd67e; }
[data-bs-theme=dark] .blog-light-body .page-btn:hover { border-color: #46b82f; color: #ffffff; }
[data-bs-theme=dark] .blog-light-body .page-btn.active { background: rgba(70,184,47,0.12); color: #46b82f; border-color: rgba(70,184,47,0.30); }
[data-bs-theme=dark] .blog-light-body .page-btn.page-prev,
[data-bs-theme=dark] .blog-light-body .page-btn.page-next { color: #46b82f; }

/* Join call-to-action strip */
[data-bs-theme=dark] .blog-light-body .cta-strip { background: #141519; }
[data-bs-theme=dark] .blog-light-body .cta-strip h3 { color: #ffffff; }
[data-bs-theme=dark] .blog-light-body .cta-text p { color: #a1a1a8; }

/* Sidebar */
[data-bs-theme=dark] .blog-light-body .sidebar-label { color: #8e9097; border-bottom-color: rgba(255,255,255,0.08); }
[data-bs-theme=dark] .blog-light-body .sidebar-link { color: #a1a1a8; }
[data-bs-theme=dark] .blog-light-body .sidebar-link:hover { background: rgba(70,184,47,0.12); color: #ffffff; }
[data-bs-theme=dark] .blog-light-body .sidebar-link.active { background: rgba(70,184,47,0.12); color: #46b82f; border-color: rgba(70,184,47,0.30); }
[data-bs-theme=dark] .blog-light-body .archive-count,
[data-bs-theme=dark] .archive-year-count { color: #8e9097; }
[data-bs-theme=dark] .archive-year-group { border-top-color: rgba(255,255,255,0.08); }
[data-bs-theme=dark] .archive-year-toggle { color: #a1a1a8; }
[data-bs-theme=dark] .archive-year-toggle:hover,
[data-bs-theme=dark] .archive-year-toggle.open { color: #46b82f; }
[data-bs-theme=dark] .blog-light-body .sidebar-tag { background: #141519; color: #a1a1a8; border-color: rgba(255,255,255,0.09); }
[data-bs-theme=dark] .blog-light-body .sidebar-tag:hover { background: rgba(70,184,47,0.12); color: #46b82f; border-color: rgba(70,184,47,0.30); }
[data-bs-theme=dark] .blog-light-body .search-field-wrap input { background: #141519; border-color: rgba(255,255,255,0.12); color: #dee2e6; }
[data-bs-theme=dark] .blog-light-body .search-field-wrap input:focus { border-color: #46b82f; background: #202227; }
[data-bs-theme=dark] .blog-light-body .search-results-box { background: #141519; border-color: rgba(255,255,255,0.12); }
[data-bs-theme=dark] .blog-light-body .sr-item:hover,
[data-bs-theme=dark] .blog-light-body .sr-item.sr-active { background: rgba(70,184,47,0.12); }
[data-bs-theme=dark] .blog-light-body .sr-title { color: #ffffff; }
[data-bs-theme=dark] .blog-light-body .sr-meta { color: #46b82f; }
[data-bs-theme=dark] .blog-light-body .sr-snippet { color: #a1a1a8; }

/* Post pages. Each post's own <style> sets these in light colours; these outrank it. */
[data-bs-theme=dark] .post-meta { color: #8e9097; }
[data-bs-theme=dark] .post-meta a { color: #46b82f; }
[data-bs-theme=dark] .post-body h2,
[data-bs-theme=dark] .post-body h3,
[data-bs-theme=dark] .post-body strong { color: #ffffff; }
[data-bs-theme=dark] .post-body svg { background: #f1f3f5; border-radius: 10px; }
/* A caption's colour is written into the post (style="color:#676a79"); only !important outranks it. */
[data-bs-theme=dark] .post-body figcaption { color: #8e9097 !important; }
