/* ============================================================
   ELSOP 2026 — "Console" Main CSS (loaded deferred / media=print swap)
   Light tech-news design system: Space Grotesk display, Inter body,
   JetBrains Mono metadata. Sharp 2px edges, hairline borders.
   ============================================================ */

/* ── Typography base ───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(22px, 5vw, 40px); }
h2 { font-size: clamp(18px, 3vw, 28px); }
h3 { font-size: clamp(16px, 2.5vw, 22px); }
h4 { font-size: 18px; }

p { margin-bottom: 1.2em; }
ul, ol { margin: 0 0 1.2em 1.6em; }
li { margin-bottom: .3em; }

/* Body text in article column */
.entry-content {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}
.entry-content p { margin-bottom: 1.2em; }
.entry-content h2 {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 1.8em 0 .6em;
  line-height: 1.3;
}
.entry-content h3 {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 1.5em 0 .5em;
  line-height: 1.3;
}
.entry-content a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.entry-content a:hover { color: var(--link-ink); }

/* Blockquote — editorial: display font, hairline top/bottom, NO left stripe */
.entry-content blockquote {
  font-family: var(--ff-display);
  font-size: 1.12em;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  margin: 2em 0;
  padding: 1em 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.entry-content blockquote p { margin-bottom: 0; }

/* Code */
.entry-content code {
  font-family: var(--ff-mono);
  font-size: 0.85em;
  background: var(--panel);
  border: 1px solid var(--hairline);
  padding: 1px 5px;
  border-radius: var(--r);
  color: var(--text);
}
.entry-content pre {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 16px 18px;
  overflow-x: auto;
  margin-bottom: 1.5em;
}
.entry-content pre code { background: none; border: none; padding: 0; }

/* Tables */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-bottom: 1.5em;
}
.entry-content th {
  background: var(--panel);
  font-family: var(--ff-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--hairline);
}
.entry-content td {
  padding: 9px 14px;
  border: 1px solid var(--hairline);
  vertical-align: top;
}
.entry-content .wp-block-table,
.entry-content .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Category pills (mono, sharp) ──────────────────────────── */
.cat-pill {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: var(--r);
  color: #fff;
  text-decoration: none;
  line-height: 1.4;
}
.cat-pill--ai        { background: var(--pill-ai); }
.cat-pill--seo       { background: var(--pill-seo); }
.cat-pill--social    { background: var(--pill-social); }
.cat-pill--analytics { background: var(--pill-analytics); }
.cat-pill--tools     { background: var(--pill-tools); }
.cat-pill--ecom      { background: var(--pill-ecom); }
.cat-pill--privacy   { background: var(--pill-privacy); }
.cat-pill--default   { background: var(--meta); }
.cat-pill:hover { opacity: .9; }

/* ── Section containers ─────────────────────────────────────── */
.site-main { padding: 0; }
.content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--text);
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.section-head h2 {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head h2::before {
  content: "\25B8 ";
  font-family: var(--ff-mono);
  color: var(--accent);
  font-weight: 700;
}
.section-head a {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.section-head a:hover { color: var(--accent-ink); text-decoration: underline; }

/* ── Lead story ─────────────────────────────────────────────── */
.lead-story-section { padding: 28px 0 0; }
.lead-story-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 28px;
}
.lead-story-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--r);
  display: block;
  background: var(--panel);
  border: 1px solid var(--hairline);
}
.lead-story-body { display: flex; flex-direction: column; gap: 10px; }
.lead-story-body h2 {
  font-family: var(--ff-display);
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
}
.lead-story-body h2 a { color: var(--text); text-decoration: none; }
.lead-story-body h2 a:hover { color: var(--accent); }
.lead-story-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--meta);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Category chips ─────────────────────────────────────────── */
.category-chips-section { padding: 20px 0; }
.category-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cat-chip {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 6px 14px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background .15s, border-color .15s, color .15s;
}
.cat-chip:hover,
.cat-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}

/* ── News grid ─────────────────────────────────────────────── */
.news-grid-section { padding: 0 0 32px; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── News card (white + hairline, sharp; hover = accent border/title) ── */
.news-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .12s ease;
}
.news-card:hover { border-color: var(--accent); }
.news-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--panel);
}
.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.news-card h3 {
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.news-card h3 a { color: var(--text); text-decoration: none; }
.news-card:hover h3 a,
.news-card h3 a:hover { color: var(--accent); }
.news-card-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--meta);
}
.byline-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
}
.byline-author { font-weight: 500; color: var(--text); }
.byline-sep { color: var(--hairline); }

/* ── Tools strip ───────────────────────────────────────────── */
.tools-strip-section {
  background: var(--panel);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
}
.tools-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.tools-strip-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}
.tools-strip-label::before { content: "// "; }
.tools-strip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tool-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .12s ease, color .12s ease;
}
.tool-card:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.tool-card .tool-card-head { display: flex; align-items: center; gap: 10px; }
.tool-card .tool-card-meta {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--meta);
  text-transform: uppercase;
}
.tool-card svg { flex-shrink: 0; color: var(--accent); }
.tool-card:hover svg { color: var(--accent); }
.tool-card.featured {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.tool-card.featured:hover { background: var(--accent-ink); color: #fff; border-color: var(--accent-ink); }
.tool-card.featured svg { color: #fff; }
.tool-card.featured .tool-card-meta { color: rgba(255,255,255,.85); }

/* ── By-category rows ─────────────────────────────────────────── */
.by-category-section { padding: 28px 0; }
.category-row { margin-bottom: 36px; }
.category-row:last-child { margin-bottom: 0; }
.category-row-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ── Footer (light) ────────────────────────────────────────── */
.site-footer {
  background: var(--card);
  color: var(--meta);
  padding: 36px 0 24px;
  font-size: 14px;
  border-top: 1px solid var(--text);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}
.footer-brand { grid-column: 1; }
.footer-logo {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.footer-logo span { color: var(--accent); }
.footer-tagline {
  font-size: 13px;
  color: var(--meta);
  line-height: 1.5;
  max-width: 220px;
}
.footer-col h3,
.footer-col h4 {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--meta);
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 16px 20px 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--meta);
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--meta); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ── Single article ─────────────────────────────────────────── */
.single-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, var(--col-width)) 280px;
  gap: 48px;
  align-items: start;
  padding-top: 28px;
  padding-bottom: 48px;
}
.article-breadcrumb {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--meta);
  margin-bottom: 16px;
}
.article-breadcrumb a { color: var(--accent); text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb span { margin: 0 6px; color: var(--hairline); }
.article-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--r);
  margin-bottom: 20px;
  display: block;
  border: 1px solid var(--hairline);
}
.article-header { margin-bottom: 20px; }
.article-header h1 {
  font-family: var(--ff-display);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--meta);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}
.byline-avatar-lg {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
}
.byline-name { font-weight: 600; color: var(--text); text-decoration: none; }
.byline-name:hover { color: var(--accent); }
.byline-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--meta); }
.article-sidebar { position: sticky; top: 72px; }
.sidebar-widget {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 20px;
}
.sidebar-widget h3 {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.sidebar-post-list { list-style: none; margin: 0; padding: 0; }
.sidebar-post-list li {
  border-bottom: 1px solid var(--hairline);
  padding: 8px 0;
  font-size: 13px;
}
.sidebar-post-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post-list a { color: var(--text); text-decoration: none; font-weight: 500; line-height: 1.3; display: block; }
.sidebar-post-list a:hover { color: var(--accent); }

/* UTM inline callout in article */
.utm-inline-callout {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 16px 18px;
  margin: 24px 0;
}
.utm-inline-callout strong {
  display: block;
  font-family: var(--ff-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 6px;
}
.utm-inline-callout p {
  font-size: 14px;
  color: var(--meta);
  margin: 0 0 10px;
  line-height: 1.5;
}
.utm-inline-callout a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 7px 14px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.utm-inline-callout a:hover { background: var(--accent-ink); color: #fff; }

/* Related posts */
.related-posts {
  padding: 28px 0 0;
  border-top: 1px solid var(--text);
  margin-top: 32px;
}
.related-posts h2 {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Author box */
.author-box {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 20px;
  display: flex;
  gap: 16px;
  margin-top: 32px;
}
.author-box-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--r);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--ff-mono);
}
.author-box-info h3 {
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.author-box-info p {
  font-size: 13px;
  color: var(--meta);
  line-height: 1.5;
  margin: 0;
}

/* ── Page templates ─────────────────────────────────────────── */
.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}
.page-header {
  border-bottom: 1px solid var(--text);
  padding-bottom: 12px;
  margin-bottom: 28px;
}
.page-header h1 { font-family: var(--ff-display); font-size: clamp(22px, 4vw, 36px); letter-spacing: -0.02em; }

/* Tools hub grid */
.tools-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.tool-hub-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .12s;
}
.tool-hub-card:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.tool-hub-icon {
  width: 44px;
  height: 44px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.tool-hub-card h3 { font-family: var(--ff-display); font-size: 16px; font-weight: 700; margin: 0; }
.tool-hub-card p { font-size: 13px; color: var(--meta); line-height: 1.5; margin: 0; }
.tool-hub-card .tool-link {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent);
  margin-top: auto;
}

/* UTM Builder page specific */
.utm-page-header {
  max-width: var(--col-width);
  margin: 0 auto 32px;
  padding: 0 20px;
}
.utm-page-header h1 {
  font-family: var(--ff-display);
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 14px;
}
.utm-def-block {
  font-size: 15px;
  line-height: 1.7;
  color: var(--meta);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 18px 20px;
}

/* Archive */
.archive-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 280px;
  gap: 48px;
}
.archive-header {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--text);
  padding-bottom: 10px;
  margin-bottom: 8px;
}
.archive-header h1 { font-family: var(--ff-display); font-size: clamp(20px, 3vw, 30px); letter-spacing: -0.02em; }
.archive-posts { display: flex; flex-direction: column; gap: 20px; }
.archive-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 20px;
}
.archive-card-img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--r);
  display: block;
  border: 1px solid var(--hairline);
}
.archive-card-body h2 { font-family: var(--ff-display); font-size: 17px; line-height: 1.3; margin-bottom: 6px; letter-spacing: -0.01em; }
.archive-card-body h2 a { color: var(--text); text-decoration: none; }
.archive-card-body h2 a:hover { color: var(--accent); }
.archive-card-body .excerpt { font-size: 13px; color: var(--meta); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Search */
.search-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}
.search-layout .search-form { display: flex; gap: 8px; margin-bottom: 28px; }
.search-layout .search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  font-size: 16px;
  font-family: var(--ff-sans);
  color: var(--text);
  background: var(--card);
}
.search-layout .search-form input:focus { outline: none; border-color: var(--accent); }
.search-layout .search-form button {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.search-layout .search-form button:hover { background: var(--accent-ink); }

/* 404 */
.not-found-layout {
  max-width: 600px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}
.not-found-layout h1 {
  font-size: 80px;
  font-family: var(--ff-display);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.not-found-layout h2 { font-family: var(--ff-display); font-size: 24px; margin-bottom: 12px; }
.not-found-layout p { color: var(--meta); margin-bottom: 24px; }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--r);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.btn-primary:hover { background: var(--accent-ink); color: #fff; text-decoration: none; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 28px 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  font-family: var(--ff-mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
}
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }

/* ════════════════════════════════════════════════════════════
   NEWS-PORTAL DENSITY LAYER (Console tokens only)
   ════════════════════════════════════════════════════════════ */

/* Visually-hidden helper for labels */
.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;
}

/* GUIDE pill colour */
.cat-pill--guide { background: var(--pill-seo); }

/* ── 4. News river (compact 3-col) ─────────────────────────── */
.news-river-section { padding: 28px 0 0; }
.news-river-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
/* Compact card overrides inside the river */
.news-river-grid .news-card-body { padding: 10px 12px 12px; gap: 6px; }
.news-river-grid .news-card h3 { font-size: 15px; }

/* ── 5. THE SIX DESKS (replaces cat-sections grid) ─────────── */
.desk-band { display: flex; flex-direction: column; }
.desk { padding-block: clamp(40px, 6vw, 64px); }
.desk--white { background: var(--card); }   /* #FFFFFF */
.desk--cool  { background: var(--bg);   }   /* #FAFBFC */
.desk + .desk { border-top: 1px solid var(--hairline); }

/* Per-zone scope: set the 3 custom props once on each section */
.desk--ai   { --z-ink: var(--ai-ink);   --z-tint: var(--ai-tint);   --z-line: var(--ai-line); }
.desk--seo  { --z-ink: var(--seo-ink);  --z-tint: var(--seo-tint);  --z-line: var(--seo-line); }
.desk--soc  { --z-ink: var(--soc-ink);  --z-tint: var(--soc-tint);  --z-line: var(--soc-line); }
.desk--ana  { --z-ink: var(--ana-ink);  --z-tint: var(--ana-tint);  --z-line: var(--ana-line); }
.desk--ecom { --z-ink: var(--ecom-ink); --z-tint: var(--ecom-tint); --z-line: var(--ecom-line); }
.desk--priv { --z-ink: var(--priv-ink); --z-tint: var(--priv-tint); --z-line: var(--priv-line); }

/* Container weights — scoped accent via per-section custom props */
.desk-room { padding: 28px; border-radius: var(--r); }
.desk--tint  .desk-room { background: var(--z-tint); border: 1px solid var(--z-line); }
.desk--frame .desk-room { background: var(--card); border: 1px solid var(--hairline);
                          border-top: 2px solid var(--z-ink); }
.desk--plain .desk-room { background: transparent; padding: 0; }

/* Masthead */
.desk-head { display: flex; align-items: baseline; gap: 10px; }
.desk-index {
  font-family: var(--ff-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--z-ink); flex-shrink: 0;
}
.desk-name {
  font-family: var(--ff-display); font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--text); text-decoration: none;
  text-wrap: balance; line-height: 1.15;
}
.desk-name:hover { color: var(--z-ink); }
.desk-more {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--z-ink);
  text-decoration: none; margin-left: auto; flex-shrink: 0;
}
.desk-more:hover { text-decoration: underline; }
.desk-rule { height: 1px; background: var(--z-ink); margin: 8px 0 18px; }
.desk--heavy .desk-rule { height: 2px; }   /* AI, Social, Ecom = 2px; SEO, Ana, Priv = 1px */

/* Layout archetypes */
.layout-broadsheet { display: grid; grid-template-columns: 60% 40%; gap: 32px; }
.layout-ledger     { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.layout-mosaic     { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.layout-datadesk   { display: grid; grid-template-columns: 55% 45%; gap: 32px; }
.layout-split      { display: grid; grid-template-columns: 50% 50%; gap: 32px; }
.layout-dispatch   { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }

/* Generic title + hover (shared by rows/cards) */
.desk a.title {
  font-family: var(--ff-display); font-weight: 600; font-size: 16px;
  letter-spacing: -0.01em; line-height: 1.3; color: var(--text);
  text-decoration: none; text-wrap: balance;
  transition: color .12s ease;
}
.desk a.title:hover { color: var(--z-ink); }
.desk .meta {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 500;
  color: var(--meta); letter-spacing: 0;
}

/* Card variant: Lead (AI, Analytics) */
.card-lead .lead-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
  border: 1px solid var(--hairline); border-radius: var(--r); background: var(--panel);
}
.card-lead .lead-pill { display: inline-flex; margin: 12px 0 0; }
.card-lead .lead-title {
  font-family: var(--ff-display); font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; margin: 10px 0 6px;
}
.card-lead .lead-title a { color: var(--text); text-decoration: none; transition: color .12s ease; }
.card-lead .lead-title a:hover { color: var(--z-ink); }
.card-lead .lead-dek {
  font-family: var(--ff-sans); font-size: 14px; line-height: 1.55; color: var(--meta);
  margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-lead .lead-byline {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--ff-mono); font-size: 11px; color: var(--meta);
}
.card-lead .lead-avatar {
  width: 20px; height: 20px; border-radius: 50%; background: var(--z-ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}

/* Card variant: Stack row (AI right col) */
.row-stack {
  display: grid; grid-template-columns: 80px 1fr; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--hairline);
  transition: border-color .12s ease;
}
.row-stack:first-child { border-top: none; }
.row-stack .rs-thumb {
  width: 80px; height: 56px; object-fit: cover; display: block;
  border: 1px solid var(--hairline); border-radius: var(--r); background: var(--panel);
}
.row-stack .rs-body { display: flex; flex-direction: column; gap: 5px; }

/* Card variant: Ledger row (SEO) */
.row-ledger {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline;
  padding: 14px 0; border-top: 1px solid var(--hairline);
}
.row-ledger:first-child,
.layout-ledger > .row-ledger:nth-child(2) { border-top: none; }
.row-ledger .rank {
  font-family: var(--ff-mono); font-weight: 600; font-size: 20px;
  color: var(--z-ink); font-variant-numeric: tabular-nums;
}
.row-ledger .led-meta {
  font-family: var(--ff-mono); font-size: 11px; color: var(--meta);
  white-space: nowrap; text-align: right;
}

/* Card variant: Mosaic card (Social) */
.card-mosaic {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r); padding: 4px;
  transition: border-color .12s ease;
}
.card-mosaic:hover { border-color: var(--z-ink); }
.card-mosaic:hover .title { color: var(--z-ink); }
.card-mosaic .m-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  border: 1px solid var(--hairline); border-radius: var(--r); background: var(--panel);
}
.card-mosaic .m-kicker {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--z-ink);
}

/* Card variant: Stat panel + stat rows (Analytics) */
.stat-panel {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r);
  padding: 18px; margin-bottom: 14px;
}
.stat-panel-label {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--z-ink); margin-bottom: 8px;
}
.row-stat {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 8px 0; border-top: 1px solid var(--hairline);
}
.row-stat:first-of-type { border-top: none; }
.row-stat .stat-label { font-family: var(--ff-sans); font-size: 13px; color: var(--text); }
.row-stat .fig {
  font-family: var(--ff-mono); font-weight: 700; font-size: 15px;
  color: var(--z-ink); font-variant-numeric: tabular-nums;
}

/* Card variant: Headline link (Analytics, Ecom rail, SEO) + Brief item (Privacy) */
.link-headline, .item-brief {
  padding: 12px 0; border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 5px;
}
.link-headline:first-child, .item-brief:first-child { border-top: none; }
.layout-dispatch > .item-brief:nth-child(2) { border-top: none; }
.item-brief .kicker {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--z-ink);
}
.item-brief .brief-dek {
  font-family: var(--ff-sans); font-size: 13px; line-height: 1.5; color: var(--meta);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* News-card hover → zone accent inside desks (overrides global blue) */
.desk .news-card { transition: border-color .12s ease; }
.desk .news-card:hover { border-color: var(--z-ink); }
.desk .news-card:hover h3 a { color: var(--z-ink); }

/* Rail wrappers (right columns of broadsheet / datadesk) */
.broadsheet-rail { display: flex; flex-direction: column; }
.datadesk-rail   { display: flex; flex-direction: column; }

/* Split-left: two stacked medium news cards */
.split-cards { display: flex; flex-direction: column; gap: 22px; }
.split-rail { display: flex; flex-direction: column; }

/* Responsive */
@media (max-width: 860px) {
  .layout-broadsheet, .layout-datadesk, .layout-split { grid-template-columns: 1fr; gap: 22px; }
  .layout-ledger, .layout-dispatch { grid-template-columns: 1fr; }
  .layout-ledger > .row-ledger:nth-child(2) { border-top: 1px solid var(--hairline); }
  .layout-dispatch > .item-brief:nth-child(2) { border-top: 1px solid var(--hairline); }
  .layout-mosaic { grid-template-columns: 1fr 1fr; }
  .desk-room { padding: 18px; }
  .desk--tint .desk-room, .desk--frame .desk-room { padding: 18px; }
}
@media (max-width: 560px) {
  .layout-mosaic { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .desk * { animation: none !important; transition: none !important; }
}

/* ── 6. Guides section (large evergreen cards) ─────────────── */
.guides-section { padding: 36px 0 0; }
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.guides-grid--archive { margin-top: 24px; }
.card-guide {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .12s ease;
}
.card-guide:hover { border-color: var(--accent); }
.card-guide-imglink { display: block; }
.card-guide-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--panel);
}
.card-guide-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 9px; }
.card-guide-title {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}
.card-guide-title a { color: var(--text); text-decoration: none; }
.card-guide-title a:hover { color: var(--accent); }
.card-guide-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--meta);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guides-empty {
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 40px 24px;
  text-align: center;
  background: var(--panel);
  margin-top: 24px;
}
.guides-empty-text { font-size: 15px; color: var(--meta); margin-bottom: 16px; }

/* ── 7. Tools showcase (catalog grid) ──────────────────────── */
.tools-showcase {
  background: var(--panel);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 28px 0;
  margin-top: 36px;
}
.tools-showcase-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.tools-showcase-title {
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.tools-showcase-title:hover { color: var(--accent); }
.tools-showcase-rule { flex: 1; height: 1px; background: var(--hairline); }
.tools-showcase-more {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
}
.tools-showcase-more:hover { color: var(--accent-ink); text-decoration: underline; }
.tools-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tool-card-lg {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .12s ease;
}
a.tool-card-lg:hover { border-color: var(--accent); }
.tool-card-lg-head { display: flex; align-items: center; gap: 10px; }
.tool-card-lg-head svg { flex-shrink: 0; color: var(--accent); }
.tool-card-lg-name { font-family: var(--ff-display); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.tool-card-lg-meta {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--meta);
}
.tool-card-lg-desc { font-size: 13px; line-height: 1.5; color: var(--meta); margin: 0; }
.tool-card-lg-cta {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent);
  margin-top: auto;
}
a.tool-card-lg:hover .tool-card-lg-cta { color: var(--accent-ink); }
.tool-card-lg--soon { opacity: .72; background: var(--panel); }
.tool-card-lg--soon .tool-card-lg-head svg,
.tool-card-lg--soon .tool-card-lg-name { color: var(--meta); }

/* ── 8. Newsletter strip ───────────────────────────────────── */
.newsletter-strip {
  background: var(--card);
  border-top: 1px solid var(--text);
  padding: 18px 0;
}
.newsletter-strip-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.newsletter-strip-copy { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.newsletter-strip-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  flex-shrink: 0;
}
.newsletter-strip-text {
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.newsletter-strip-controls { display: flex; gap: 8px; flex: 0 1 440px; }
.newsletter-strip-controls input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  font-family: var(--ff-sans);
  font-size: 14px;
  color: var(--text);
  background: var(--card);
}
.newsletter-strip-controls input:focus { outline: none; border-color: var(--accent); }
.newsletter-strip-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--r);
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.newsletter-strip-btn:hover { background: var(--accent-ink); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .category-row-grid { grid-template-columns: repeat(3, 1fr); }
  .tools-strip-row { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .news-river-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-sections-grid { grid-template-columns: repeat(2, 1fr); }
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { font-size: 16px; }
  .lead-story-card { grid-template-columns: 1fr; }
  .single-layout { grid-template-columns: 1fr; padding-top: 20px; gap: 28px; }
  .article-sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr; }
  .archive-layout { grid-template-columns: 1fr; }
  .archive-card { grid-template-columns: 100px 1fr; }
  .tools-hub-grid { grid-template-columns: repeat(2, 1fr); }
  .category-row-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .news-river-grid { grid-template-columns: 1fr; }
  .cat-sections-grid { grid-template-columns: 1fr; gap: 24px; }
  .guides-grid { grid-template-columns: 1fr; }
  .tools-showcase-grid { grid-template-columns: 1fr; }
  .newsletter-strip-form { flex-direction: column; align-items: stretch; gap: 10px; }
  .newsletter-strip-controls { flex: 1 1 auto; }
}
@media (max-width: 480px) {
  :root { font-size: 15px; }
  .news-grid { grid-template-columns: 1fr; }
  .category-row-grid { grid-template-columns: 1fr; }
  .tools-strip-row { grid-template-columns: 1fr; }
  .archive-card { grid-template-columns: 1fr; }
  .archive-card-img { width: 100%; height: 160px; }
  .tools-hub-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .lead-story-section { padding-top: 16px; }
}

/* ── WP Super Cache / EWWW compat ────────────────────────────── */
img.lazyload { opacity: 0; transition: opacity .3s; }
img.lazyloaded { opacity: 1; }

/* ── Entrance reveal (load/scroll) — subtle fade-up, reduced-motion safe ── */
.anim-ready :is(.news-card,.card-lead,.featured-lead,.featured-secondary,.card-mosaic,.row-stack,.row-ledger,.item-brief,.link-headline,.desk-head,.guide-card,.tool-card){opacity:0;transform:translateY(14px);transition:opacity .55s ease,transform .55s cubic-bezier(.2,.65,.3,1)}
.anim-ready :is(.news-card,.card-lead,.featured-lead,.featured-secondary,.card-mosaic,.row-stack,.row-ledger,.item-brief,.link-headline,.desk-head,.guide-card,.tool-card).is-in,
.anim-shown :is(.news-card,.card-lead,.featured-lead,.featured-secondary,.card-mosaic,.row-stack,.row-ledger,.item-brief,.link-headline,.desk-head,.guide-card,.tool-card){opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.anim-ready :is(.news-card,.card-lead,.featured-lead,.featured-secondary,.card-mosaic,.row-stack,.row-ledger,.item-brief,.link-headline,.desk-head,.guide-card,.tool-card){opacity:1!important;transform:none!important;transition:none!important}}
