/*
Theme Name: Dabble Dad
Theme URI: https://dabbledad.com
Author: Dabble Dad
Author URI: https://dabbledad.com
Description: A coin-inspired, hex-motif theme for the Dabble Dad maker workshop. Plain WordPress posts in three categories — Lesson (step-by-step with progress), Topic (table-of-contents reader), and Tools I Use — with a coin you can flip, sitewide image lightbox, knife-sliced + 12-layer hero word effects, Barlow Condensed Pros (green) / Cons (orange) headings, a 0–10 nozzle rating on tool pages, a subscriber-gated forum board, and Jetpack-Subscriptions newsletter signup.
Version: 1.7.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dabbledad
Tags: blog, education, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, custom-colors, custom-logo

Changelog
1.7.0 — Homepage feed is now YouTube-only (X/Twitter removed). Wired to the channel ID by default. Hardened video-card layout (fixed-width 16:9 thumbnail, play overlay, no text overlap, proper wrapping). Added a "View More Videos" button + a "YouTube Videos" page template. Header now uses the site Custom Logo (with site-title fallback) instead of the green diamond. Added a dedicated blog template (home.php) and an admin notice that catches the "About page shows blog posts" mis-setting.
1.6.0 — New [shortcuts] callout (light-grey, keyboard-keycap "S" icon). Callout labels + icons enlarged 50%. Body copy, callouts, and table boxes now fill the full content-column width.
*/

:root {
  --bg: #0E0F0E;
  --bg-2: #16181A;
  --bg-3: #1E2123;
  --ink: #F2EFE8;
  --ink-dim: #A8A8A0;
  --ink-faint: #5A5C58;
  --rule: #2A2D2E;
  --green: #A8D257;
  --green-deep: #7FA63F;
  --orange: #E87722;
  --orange-deep: #C25E13;
  --red: #E14A3C;
  --red-deep: #B53528;
  --silver: #C9CCC9;
  --accent: var(--green);
  --accent-2: var(--orange);
  --serif: 'Barlow Condensed', 'Oswald', sans-serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Menlo', monospace;
  --display-alt: 'Orbitron', 'Barlow Condensed', sans-serif;
}
[data-theme="orange"] { --accent: var(--orange); --accent-2: var(--green); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans);
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }

.display { font-family: var(--serif); font-weight: 600; line-height: 0.92; text-transform: uppercase; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }

.shell { max-width: 1360px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 2; }

/* Honeycomb backdrop. Pattern strength lives in the SVG stroke-opacity so the
   element's `opacity:` inline overrides only soften the whole layer; the
   pattern itself is always actually drawn. */
.hex-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
  opacity: 0.55;
  background-color: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='104' viewBox='0 0 90 104'><polygon points='45,4 84,26 84,78 45,100 6,78 6,26' fill='none' stroke='%23A8D257' stroke-opacity='0.28' stroke-width='1.2'/></svg>");
  background-repeat: repeat;
  background-size: 90px 104px;
  background-position: center top;
}
.hex-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 0%, var(--bg) 92%);
  pointer-events: none;
}

/* Gyroid backdrop — 2D slice through a gyroid infill, drawn as two phase-
   shifted sinusoidal sets so the pattern reads as "infill" rather than hex. */
.gyroid-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
  opacity: 0.55;
  background-color: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%23A8D257' stroke-opacity='0.32' stroke-width='1.2' stroke-linecap='round'><path d='M-5 20 Q 10 0 25 20 T 55 20 T 85 20'/><path d='M-5 60 Q 10 40 25 60 T 55 60 T 85 60'/><path d='M20 -5 Q 40 10 20 25 T 20 55 T 20 85'/><path d='M60 -5 Q 40 10 60 25 T 60 55 T 60 85'/></g></svg>");
  background-repeat: repeat;
  background-size: 80px 80px;
  background-position: center top;
}
.gyroid-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 0%, var(--bg) 92%);
  pointer-events: none;
}

/* Nav */
.nav {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  border-bottom: 1px solid var(--rule);
  background: rgba(14,15,14,0.7);
  backdrop-filter: blur(8px);
}
.nav-brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); text-transform: uppercase; font-size: 22px; letter-spacing: 0.04em; font-weight: 600; }
.nav-brand--logo { line-height: 0; }
.nav-brand .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.nav-brand .custom-logo { display: block; height: 40px; width: auto; max-width: 220px; object-fit: contain; }
@media (max-width: 560px) { .nav-brand .custom-logo { height: 32px; max-width: 160px; } }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); transition: color .15s; }
.nav-links a:hover, .nav-links .current-menu-item a { color: var(--ink); }
.nav-cta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; background: var(--accent); color: #0E0F0E; padding: 10px 16px; border: none; font-weight: 600; cursor: pointer; }
.nav-cta:hover { transform: translateY(-1px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; border: none; font-weight: 600; cursor: pointer; transition: all .15s; }
.btn-primary { background: var(--accent); color: #0E0F0E; }
.btn-primary:hover { background: #B8E067; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn-ghost:hover { border-color: var(--ink-dim); }

/* Section labels */
.section-label { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.section-label .num { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.2em; }
.section-label .name { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-dim); }
.section-label .rule { flex: 1; height: 1px; background: var(--rule); }

/* Cards */
.card { background: var(--bg-2); border: 1px solid var(--rule); position: relative; transition: border-color .2s; }
.card:hover { border-color: var(--accent); }
.bracket { position: absolute; width: 10px; height: 10px; border: 1px solid var(--accent); }
.bracket.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.bracket.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.bracket.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.bracket.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.placeholder { background: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 8px, transparent 8px 16px), var(--bg-3); position: relative; overflow: hidden; }
.tag { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--rule); color: var(--ink-dim); }
.tag-accent { color: var(--accent); border-color: var(--accent); }
.tag-orange { color: var(--accent-2); border-color: var(--accent-2); }
.tag-solid { background: var(--accent); color: #0E0F0E; border-color: var(--accent); }

.foot { border-top: 1px solid var(--rule); padding: 60px 0 40px; margin-top: 80px; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 100px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(60px, 9vw, 132px); line-height: 0.86; margin: 0 0 28px; text-transform: uppercase; }
.hero h1 .accent { color: var(--accent); }
.hero h1 .stroke { -webkit-text-stroke: 1.5px var(--ink); color: transparent; }

/* Hero word effects ----------------------------------------------------- */
/* SLICED — two angled knife cuts make three slices that slide apart. */
.sliced-word {
  display: inline-block;
  position: relative;
  white-space: nowrap;
  vertical-align: baseline;
  color: var(--accent-2); /* orange in default balanced theme */
}
.sliced-word .sliced-spacer { visibility: hidden; }
.sliced-word .slice {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  color: inherit;
  white-space: nowrap;
  pointer-events: none;
}
.sliced-word .slice-top {
  clip-path: polygon(0 0, 100% 0, 100% 34%, 0 28%);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 34%, 0 28%);
  transform: translateX(-0.06em) rotate(-1.4deg);
  transform-origin: left center;
}
.sliced-word .slice-mid {
  clip-path: polygon(0 28%, 100% 34%, 100% 66%, 0 62%);
  -webkit-clip-path: polygon(0 28%, 100% 34%, 100% 66%, 0 62%);
}
.sliced-word .slice-bot {
  clip-path: polygon(0 62%, 100% 66%, 100% 100%, 0 100%);
  -webkit-clip-path: polygon(0 62%, 100% 66%, 100% 100%, 0 100%);
  transform: translateX(0.08em) rotate(1.6deg);
  transform-origin: right center;
}
/* LAYERED — 12 horizontal slabs masked into the glyphs with tiny gaps. */
.layered-word {
  display: inline-block;
  white-space: nowrap;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--orange) 0,
    var(--orange) calc(8.333% - 1.3px),
    transparent calc(8.333% - 1.3px),
    transparent 8.333%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero p.lead { font-size: 18px; color: var(--ink-dim); max-width: 480px; margin: 0 0 36px; }
.hero-meta { display: flex; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--rule); }
.hero-meta .stat .v { font-family: var(--serif); font-size: 36px; font-weight: 700; color: var(--accent); line-height: 1; }
.hero-meta .stat .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); margin-top: 6px; }

/* COIN flip */
.coin-stage { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; perspective: 1500px; }
.coin-flip { width: 100%; max-width: 520px; aspect-ratio: 1; position: relative; transform-style: preserve-3d; animation: coin-3d 18s linear infinite; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.6)); }
.coin-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; }
.coin-face.back { transform: rotateY(180deg); }
.coin-face img, .coin-face svg { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: 50%; }
@keyframes coin-3d {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
/* If user uploaded only a front, single-face coin spins flat. */
.coin-single { width: 100%; max-width: 520px; aspect-ratio: 1; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.6)); animation: spin-slow 60s linear infinite; }

/* ---------- Universal post cards (homepage / archive) ---------- */
.lessons-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.lessons-grid .right-col { display: grid; grid-template-rows: repeat(2, 1fr); gap: 24px; }
.lessons-grid .right-col .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lesson { display: flex; flex-direction: column; color: inherit; }
.lesson .img { aspect-ratio: 16/10; position: relative; background-size: cover; background-position: center; }
.lesson .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lesson .lesson-cat { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.lesson .title { font-family: var(--serif); font-size: 26px; text-transform: uppercase; font-weight: 600; line-height: 1.05; }
.lesson.featured .title { font-size: 40px; }
.lesson .lesson-sub { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); font-style: italic; line-height: 1.5; }
.lesson .excerpt { font-size: 13px; color: var(--ink-dim); line-height: 1.6; }
.lesson .meta { display: flex; gap: 14px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--rule); font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- LESSON / TOPIC reader ---------- */
.lesson-shell { max-width: 1200px; margin: 0 auto; padding: 40px; }
.crumb { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 24px; }
.crumb a { color: var(--accent); }
.lesson-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--rule); margin-bottom: 60px; }
.lesson-head h1 { font-family: var(--serif); font-size: clamp(48px, 7vw, 92px); line-height: 0.92; text-transform: uppercase; font-weight: 700; margin: 0 0 24px; }
.lesson-head h1 .accent { color: var(--accent); }
.lesson-head .lead { font-size: 17px; color: var(--ink-dim); line-height: 1.6; max-width: 520px; }

/* Hero image (replaces featured img in article for lessons/tools, shown ONLY on tools) */
.post-hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--rule); margin-bottom: 40px; cursor: zoom-in; }

.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.meta-cell { background: var(--bg-2); padding: 16px 18px; }
.meta-cell .l { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.meta-cell .v { font-family: var(--serif); font-size: 22px; font-weight: 600; text-transform: uppercase; }
.meta-cell .v.accent { color: var(--accent); }
.lesson-body { display: grid; grid-template-columns: 280px 1fr; gap: 60px; }
.toc { position: sticky; top: 24px; align-self: start; }
.toc h3 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 16px; }
.toc-step { display: grid; grid-template-columns: 32px 1fr 24px; gap: 10px; padding: 12px 0; border-top: 1px solid var(--rule); cursor: pointer; align-items: center; }
.toc-step:hover .toc-title { color: var(--ink); }
.toc-num { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; }
.toc-title { font-size: 13px; color: var(--ink-dim); line-height: 1.3; }
.toc-step.done .toc-title { color: var(--ink); text-decoration: line-through; text-decoration-color: var(--accent); }
.toc-check { width: 18px; height: 18px; border: 1px solid var(--rule); display: grid; place-items: center; }
.toc-step.done .toc-check { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }

.progress-bar { height: 4px; background: var(--rule); margin: 16px 0 8px; position: relative; }
.progress-bar .fill { height: 100%; background: var(--accent); transition: width .25s; }
.progress-text { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--ink-faint); }

.step { padding: 40px 0; border-top: 1px solid var(--rule); position: relative; }
.step:first-child { border-top: none; padding-top: 0; }
.step-header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.step-num-big { font-family: var(--serif); font-size: 64px; font-weight: 700; color: var(--accent); line-height: 1; }
.step-h { font-family: var(--serif); font-size: 36px; text-transform: uppercase; font-weight: 600; line-height: 1; flex: 1; }
.step-content p { font-size: 15px; line-height: 1.7; color: var(--ink); margin: 0 0 16px; max-width: 720px; }
.step-content code { font-family: var(--mono); font-size: 12px; background: var(--bg-3); padding: 2px 6px; color: var(--accent); }
.step-content ul, .step-content ol { color: var(--ink); line-height: 1.7; max-width: 720px; }
.step-content blockquote { border-left: 3px solid var(--accent-2); margin: 20px 0; padding: 16px 20px; background: var(--bg-2); color: var(--ink-dim); font-size: 14px; max-width: 720px; }
.step-content img { max-width: 100%; height: auto; border: 2px solid var(--green); border-radius: 10px; cursor: zoom-in; transition: transform .15s, border-color .15s; }
.step-content img:hover { transform: scale(1.01); border-color: var(--green-deep); }

/* ---------- Callout blocks (shortcodes, sitewide) ----------
   [protip] green · [info] orange · [warning] red · [pro] green · [con] orange
   All share the same outer shape; only accent color, label, and icon vary.
   Driven by inc/callouts.php — never tied to heading levels. */

/* Pro Tip — [protip] — pistachio green */
.step-protip {
  display: block; max-width: 720px;
  margin: 22px 0;
  padding: 0;
  border: 2px solid var(--green);
  border-radius: 14px;
  background: rgba(168, 210, 87, 0.07);
  overflow: hidden;
}
.step-protip .callout-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green); padding: 14px 22px 4px;
  display: flex; align-items: center; gap: 8px;
}
.step-protip .callout-label::before { content: '★'; font-size: 21px; }
.step-protip .callout-title {
  font-family: var(--serif); font-size: 20px; text-transform: uppercase; font-weight: 600; line-height: 1.1;
  padding: 0 22px 8px; color: var(--ink);
}
.step-protip .callout-body { padding: 0 22px 18px; font-size: 14px; color: var(--ink-dim); line-height: 1.7; }
.step-protip .callout-body p:last-child { margin-bottom: 0; }

/* Additional Information — [info] — orange */
.step-callout {
  display: block; max-width: 720px;
  margin: 28px 0;
  padding: 0;
  border: 2px solid var(--orange);
  border-radius: 14px;
  background: rgba(232, 119, 34, 0.07);
  overflow: hidden;
}
.step-callout .callout-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange); padding: 14px 22px 4px;
  display: flex; align-items: center; gap: 8px;
}
.step-callout .callout-label::before { content: 'ⓘ'; font-size: 21px; font-style: normal; }
.step-callout .callout-title {
  font-family: var(--serif); font-size: 22px; text-transform: uppercase; font-weight: 600; line-height: 1.1;
  padding: 0 22px 8px; color: var(--ink);
}
.step-callout .callout-body { padding: 0 22px 18px; font-size: 14px; color: var(--ink-dim); line-height: 1.7; }
.step-callout .callout-body p:last-child { margin-bottom: 0; }

/* Warning — [warning] — red. Slightly stronger tint so it reads as "stop and read this". */
.step-warning {
  display: block; max-width: 720px;
  margin: 28px 0;
  padding: 0;
  border: 2px solid var(--red);
  border-radius: 14px;
  background: rgba(225, 74, 60, 0.09);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(225, 74, 60, 0.18) inset;
}
.step-warning .callout-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red); padding: 14px 22px 4px;
  display: flex; align-items: center; gap: 8px;
}
.step-warning .callout-label::before { content: '\26A0'; font-size: 21px; line-height: 1; }
.step-warning .callout-title {
  font-family: var(--serif); font-size: 22px; text-transform: uppercase; font-weight: 700; line-height: 1.1;
  padding: 0 22px 8px; color: var(--ink);
}
.step-warning .callout-body { padding: 0 22px 18px; font-size: 14px; color: var(--ink-dim); line-height: 1.7; }
.step-warning .callout-body p:last-child { margin-bottom: 0; }
.step-warning .callout-body strong { color: var(--ink); }

/* Pro — [pro] — green, check mark */
.step-pro {
  display: block; max-width: 720px;
  margin: 22px 0;
  padding: 0;
  border: 2px solid var(--green);
  border-radius: 14px;
  background: rgba(168, 210, 87, 0.07);
  overflow: hidden;
}
.step-pro .callout-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green); padding: 14px 22px 4px;
  display: flex; align-items: center; gap: 8px;
}
.step-pro .callout-label::before { content: '✓'; font-size: 21px; font-weight: 700; }
.step-pro .callout-title {
  font-family: var(--serif); font-size: 20px; text-transform: uppercase; font-weight: 600; line-height: 1.1;
  padding: 0 22px 8px; color: var(--ink);
}
.step-pro .callout-body { padding: 0 22px 18px; font-size: 14px; color: var(--ink-dim); line-height: 1.7; }
.step-pro .callout-body p:last-child { margin-bottom: 0; }

/* Con — [con] — orange, cross mark */
.step-con {
  display: block; max-width: 720px;
  margin: 22px 0;
  padding: 0;
  border: 2px solid var(--orange);
  border-radius: 14px;
  background: rgba(232, 119, 34, 0.07);
  overflow: hidden;
}
.step-con .callout-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange); padding: 14px 22px 4px;
  display: flex; align-items: center; gap: 8px;
}
.step-con .callout-label::before { content: '✕'; font-size: 21px; font-weight: 700; }
.step-con .callout-title {
  font-family: var(--serif); font-size: 20px; text-transform: uppercase; font-weight: 600; line-height: 1.1;
  padding: 0 22px 8px; color: var(--ink);
}
.step-con .callout-body { padding: 0 22px 18px; font-size: 14px; color: var(--ink-dim); line-height: 1.7; }
.step-con .callout-body p:last-child { margin-bottom: 0; }

/* Keyboard Shortcuts — [shortcuts] — neutral light-grey, same tone as the table boxes */
.step-shortcuts {
  display: block; max-width: 720px;
  margin: 22px 0;
  padding: 0;
  border: 2px solid var(--silver);
  border-radius: 14px;
  background: rgba(201, 204, 201, 0.05);
  overflow: hidden;
}
.step-shortcuts .callout-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--silver); padding: 14px 22px 4px;
  display: flex; align-items: center; gap: 8px;
}
/* A keyboard keycap with an "S" on top, drawn in CSS (thicker bottom edge = 3D cap) */
.step-shortcuts .callout-label::before {
  content: 'S';
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5em; height: 1.5em;
  font-family: var(--mono); font-weight: 700; font-size: 0.7em; line-height: 1;
  color: var(--ink);
  border: 1.5px solid var(--silver);
  border-bottom-width: 3px;
  border-radius: 4px;
  background: rgba(201, 204, 201, 0.12);
}
.step-shortcuts .callout-title {
  font-family: var(--serif); font-size: 22px; text-transform: uppercase; font-weight: 600; line-height: 1.1;
  padding: 0 22px 8px; color: var(--ink);
}
.step-shortcuts .callout-body { padding: 0 22px 18px; font-size: 14px; color: var(--ink-dim); line-height: 1.7; }
.step-shortcuts .callout-body p:last-child { margin-bottom: 0; }

/* Callout labels + icons run 50% larger than the table label for emphasis */
.step-protip .callout-label,
.step-callout .callout-label,
.step-warning .callout-label,
.step-pro .callout-label,
.step-con .callout-label,
.step-shortcuts .callout-label { font-size: 15px; }

/* Headings inside any callout body sit tight to the box, not full step size */
.step-protip .callout-body :is(h1,h2,h3,h4,h5,h6),
.step-callout .callout-body :is(h1,h2,h3,h4,h5,h6),
.step-warning .callout-body :is(h1,h2,h3,h4,h5,h6),
.step-pro .callout-body :is(h1,h2,h3,h4,h5,h6),
.step-con .callout-body :is(h1,h2,h3,h4,h5,h6),
.step-shortcuts .callout-body :is(h1,h2,h3,h4,h5,h6) {
  font-family: var(--serif); text-transform: uppercase; font-weight: 600;
  font-size: 18px; line-height: 1.15; margin: 14px 0 8px; color: var(--ink);
}
.step-protip .callout-body :is(ul,ol),
.step-callout .callout-body :is(ul,ol),
.step-warning .callout-body :is(ul,ol),
.step-pro .callout-body :is(ul,ol),
.step-con .callout-body :is(ul,ol),
.step-shortcuts .callout-body :is(ul,ol) { margin: 8px 0; padding-left: 20px; }

/* ---------- Table box ([dd_table]) ----------
   Same rounded-box shape as the callouts, but a neutral light-grey tone. */
.dd-table-box {
  display: block; max-width: 720px;
  margin: 28px 0;
  border: 2px solid var(--silver);
  border-radius: 14px;
  background: rgba(201, 204, 201, 0.05);
  overflow: hidden;
}
.dd-table-box .callout-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--silver); padding: 14px 22px 4px;
  display: flex; align-items: center; gap: 8px;
}
.dd-table-box .callout-label::before { content: '\229E'; font-size: 14px; line-height: 1; }
.dd-table-box .callout-title {
  font-family: var(--serif); font-size: 22px; text-transform: uppercase; font-weight: 600; line-height: 1.1;
  padding: 0 22px 10px; color: var(--ink);
}
.dd-table-scroll { padding: 4px 22px 18px; overflow-x: auto; }
.dd-table,
.dd-table-box table {
  width: 100%; border-collapse: collapse;
  font-size: 14px; color: var(--ink-dim); line-height: 1.5;
}
.dd-table th,
.dd-table-box table th {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); font-weight: 600;
  text-align: left; padding: 10px 14px;
  border-bottom: 1.5px solid var(--silver);
  white-space: nowrap; background: none;
}
.dd-table td,
.dd-table-box table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.dd-table tbody tr:last-child td,
.dd-table-box table tbody tr:last-child td { border-bottom: none; }
.dd-table tbody tr:nth-child(even) td,
.dd-table-box table tbody tr:nth-child(even) td { background: rgba(201, 204, 201, 0.035); }
.dd-table td strong,
.dd-table-box table td strong { color: var(--ink); }
.dd-table code,
.dd-table-box table code {
  font-family: var(--mono); font-size: 12px; background: var(--bg-3);
  padding: 2px 6px; border-radius: 3px; color: var(--silver);
}
/* Alignment variants apply to body cells only; headers stay left. */
.dd-table--center td { text-align: center; }
.dd-table--right  td { text-align: right; }

/* Standalone WordPress table block with the "Dabble Grey" block style
   applied — gets the full grey box treatment, no shortcode needed. */
.wp-block-table.is-style-dd-grey {
  max-width: 720px; margin: 28px 0;
  border: 2px solid var(--silver); border-radius: 14px;
  background: rgba(201, 204, 201, 0.05);
  overflow: hidden;
}
.wp-block-table.is-style-dd-grey table {
  width: 100%; border-collapse: collapse; margin: 0;
  font-size: 14px; color: var(--ink-dim); line-height: 1.5;
}
.wp-block-table.is-style-dd-grey :is(th, td) {
  padding: 11px 16px; border: none; border-bottom: 1px solid var(--rule);
  text-align: left; vertical-align: top;
}
.wp-block-table.is-style-dd-grey thead :is(th, td),
.wp-block-table.is-style-dd-grey > table > tr:first-child th,
.wp-block-table.is-style-dd-grey > table > tbody > tr:first-child:only-of-type th {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); font-weight: 600;
  border-bottom: 1.5px solid var(--silver); white-space: nowrap;
}
.wp-block-table.is-style-dd-grey tbody tr:last-child :is(th, td) { border-bottom: none; }
.wp-block-table.is-style-dd-grey tbody tr:nth-child(even) :is(th, td) { background: rgba(201, 204, 201, 0.035); }
.wp-block-table.is-style-dd-grey figcaption {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint); padding: 10px 16px; text-align: left;
}

.complete-btn { margin-top: 24px; }
.complete-btn.done { background: transparent; border: 1px solid var(--accent); color: var(--accent); }

/* Topic reader (no completion) */
.topic-toc h3 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 16px; }
.topic-toc-item {
  display: grid; grid-template-columns: 32px 1fr; gap: 10px;
  padding: 12px 0; border-top: 1px solid var(--rule); cursor: pointer; align-items: baseline;
}
.topic-toc-item:hover .topic-toc-title { color: var(--accent); }
.topic-toc-num { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; }
.topic-toc-title { font-size: 13px; color: var(--ink-dim); line-height: 1.35; }
.topic-section { padding: 40px 0; border-top: 1px solid var(--rule); }
.topic-section:first-child { padding-top: 0; border-top: none; }
.topic-section h2 { font-family: var(--serif); font-size: 40px; text-transform: uppercase; font-weight: 700; line-height: 1; margin: 0 0 20px; }

/* ---------- TOOL single page ---------- */
.tool-shell { max-width: 1000px; margin: 0 auto; padding: 60px 40px; }
.tool-shell h1 { font-family: var(--serif); font-size: clamp(56px, 8vw, 96px); text-transform: uppercase; line-height: 0.92; font-weight: 700; margin: 0 0 16px; }
.tool-shell h1 .accent { color: var(--accent); }
.tool-shell .lead { font-size: 17px; color: var(--ink-dim); margin-bottom: 40px; max-width: 720px; line-height: 1.7; }
.tool-shell .entry-content p { font-size: 15px; line-height: 1.7; color: var(--ink); margin: 0 0 16px; max-width: 720px; }
.tool-shell .entry-content ul, .tool-shell .entry-content ol { line-height: 1.8; color: var(--ink); max-width: 720px; }
.tool-shell .entry-content li { margin-bottom: 6px; }
.tool-shell .entry-content img { max-width: 100%; height: auto; border: 2px solid var(--green); border-radius: 10px; cursor: zoom-in; }

/* H2 = Pros (green) / H3 = Cons (orange) inside Tools — match tool.html design:
   simple large uppercase Barlow Condensed text, no pill, no icon. */
.tool-shell h2,
.tool-shell h3 {
  font-family: var(--serif);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 48px 0 20px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  display: block;
}
.tool-shell h2 {
  font-size: clamp(32px, 6.4vw, 48px);
  color: var(--green);
}
.tool-shell h3 {
  font-size: clamp(32px, 6.4vw, 48px);
  color: var(--orange);
}
.tool-shell h2::before,
.tool-shell h3::before { content: none; }

/* Nozzle rating (10-step) ---------------------------------------------- */
.dd-rating-block {
  display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin: 32px 0 40px;
  padding: 20px 24px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
}
.dd-rating-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-faint);
  flex: 0 0 auto;
}
.dd-nozzle-rating {
  display: inline-flex; align-items: center; gap: 18px;
}
.dd-nozzle-row {
  display: inline-flex; align-items: flex-end; gap: 6px;
}
.dd-nozzle {
  width: 24px; height: 32px; display: block; flex: 0 0 auto;
}
/* inactive: outline only, dim */
.dd-nozzle .n-block,
.dd-nozzle .n-collar,
.dd-nozzle .n-tip,
.dd-nozzle .n-orifice {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1.2;
  stroke-linejoin: round;
}
/* active: solid color (the band color is pushed in via inline --n) */
.dd-nozzle.is-on .n-block,
.dd-nozzle.is-on .n-collar,
.dd-nozzle.is-on .n-tip,
.dd-nozzle.is-on .n-orifice {
  fill: var(--n);
  stroke: var(--n);
  stroke-width: 0.6;
}
.dd-nozzle.is-on .n-orifice { fill: #0E0F0E; stroke: var(--n); stroke-width: 1; }
.dd-nozzle-num {
  font-family: var(--serif);
  font-size: 28px; font-weight: 700; line-height: 1;
  color: var(--ink);
}
.dd-nozzle-num span {
  font-size: 16px; color: var(--ink-faint); font-weight: 500;
}

/* ---------- Section separator (filament → nozzle) ----------
   Inlined SVG returned by dabbledad_separator_svg(). Replaces <hr>
   in post content and is also reachable via [dd_separator] shortcode. */
.dd-separator {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1100px;
  margin: 60px auto;
  overflow: visible;
}
.dd-separator--sm   { max-width: 540px; margin: 32px auto; }
.dd-separator--soft { opacity: 0.6; }
@media (max-width: 600px) {
  .dd-separator { margin: 36px auto; }
}

/* ---------- Newsletter ---------- */
.news { background: var(--bg-2); border: 1px solid var(--rule); padding: 60px; position: relative; overflow: hidden; }
.news h2 { font-family: var(--serif); font-size: 64px; font-weight: 700; text-transform: uppercase; line-height: 0.9; margin: 0 0 20px; }
.news p { color: var(--ink-dim); max-width: 540px; margin: 0 0 32px; font-size: 15px; }
.news-form { display: flex; max-width: 520px; border: 1px solid var(--rule); }
.news-form input { flex: 1; background: var(--bg); border: none; padding: 16px; color: var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; outline: none; }
.news-form button { background: var(--accent); color: var(--bg); border: none; padding: 16px 24px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; cursor: pointer; }
.news-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.news-sample { display: grid; place-items: center; }
.news-sample svg { width: 220px; height: 220px; max-width: 100%; }
@media (max-width: 880px) { .news-inner { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Archive head ---------- */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.archive-pagination { margin-top: 48px; }
.archive-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.archive-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-dim); text-decoration: none; }
.archive-pagination .page-numbers:hover { border-color: var(--ink-dim); color: var(--ink); }
.archive-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #0E0F0E; }
.archive-head { padding: 80px 0 40px; }
.archive-head h1 { font-family: var(--serif); font-size: clamp(56px, 8vw, 120px); text-transform: uppercase; font-weight: 700; line-height: 0.9; margin: 0 0 16px; }
.archive-head h1 .accent { color: var(--accent); }
.archive-head p { color: var(--ink-dim); max-width: 600px; font-size: 17px; }

/* ---------- WP comments ---------- */
.comments-area { max-width: 760px; margin: 60px auto 0; padding: 40px 0; border-top: 1px solid var(--rule); }
.comments-area h2 { font-family: var(--serif); font-size: 36px; text-transform: uppercase; font-weight: 600; margin-bottom: 24px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { padding: 20px 0; border-top: 1px dashed var(--rule); }
.comment-list .comment-author { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.comment-list .comment-meta { font-family: var(--mono); font-size: 10px; color: var(--ink-faint); margin-bottom: 10px; }
.comment-list .comment-content { font-size: 14px; color: var(--ink-dim); line-height: 1.6; }
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea { width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--rule); color: var(--ink); font-family: var(--sans); font-size: 14px; outline: none; }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form label { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); display: block; margin: 14px 0 6px; }
.comment-form .submit { background: var(--accent); color: var(--bg); border: none; padding: 14px 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; cursor: pointer; margin-top: 12px; }

/* Inline post images (single-post .entry-content) — same rounded green look */
.entry-content img { max-width: 100%; height: auto; border: 2px solid var(--green); border-radius: 10px; cursor: zoom-in; transition: transform .15s, border-color .15s; }
.entry-content img:hover { transform: scale(1.01); border-color: var(--green-deep); }

/* Suggest-edit box at bottom */
.suggest-box {
  max-width: 760px; margin: 40px auto 0;
  padding: 32px; background: var(--bg-2); border: 1px solid var(--rule); position: relative;
}
.suggest-box h3 { font-family: var(--serif); font-size: 28px; text-transform: uppercase; margin: 0 0 8px; }
.suggest-box p { color: var(--ink-dim); margin: 0 0 20px; font-size: 14px; }
.suggest-box input, .suggest-box textarea, .suggest-box select {
  width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--rule); color: var(--ink);
  font-family: var(--sans); font-size: 14px; outline: none; margin-bottom: 12px;
}
.suggest-box textarea { min-height: 100px; resize: vertical; }
.suggest-box label { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); display: block; margin-bottom: 4px; }
.dd-notice { padding: 12px 16px; margin: 0 0 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; border: 1px solid var(--accent); color: var(--accent); background: rgba(168,210,87,0.08); }
.dd-notice.error { border-color: var(--accent-2); color: var(--accent-2); background: rgba(232,119,34,0.08); }

/* ---------- Related posts ---------- */
.related-section {
  max-width: 1100px; margin: 80px auto 0; padding: 40px 40px 0;
  border-top: 1px solid var(--rule);
}
.related-section .section-label { margin-bottom: 24px; }
.related-section .section-label .name,
.related-section .section-label .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 500;
}
.related-section .section-label .name { color: var(--ink-dim); }
.related-section .section-label .num { color: var(--accent); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.related-card { background: var(--bg-2); border: 1px solid var(--rule); padding: 18px; transition: border-color .15s; }
.related-card:hover { border-color: var(--accent); }
.related-card .cat { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.related-card .ttl { font-family: var(--serif); font-size: 22px; text-transform: uppercase; font-weight: 600; line-height: 1.05; }
.related-card .ex { font-size: 12px; color: var(--ink-dim); margin-top: 8px; line-height: 1.5; }

/* ---------- Image lightbox ---------- */
.dd-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8,9,8,0.94);
  display: none; align-items: center; justify-content: center;
  cursor: zoom-out; padding: 40px;
}
.dd-lightbox.open { display: flex; }
.dd-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid var(--rule); box-shadow: 0 30px 80px rgba(0,0,0,0.7); }
.dd-lightbox .close {
  position: absolute; top: 20px; right: 24px;
  background: transparent; border: 1px solid var(--rule); color: var(--ink-dim);
  width: 44px; height: 44px; font-size: 20px; cursor: pointer;
  display: grid; place-items: center;
}
.dd-lightbox .close:hover { color: var(--accent); border-color: var(--accent); }

/* Mobile */
@media (max-width: 980px) {
  .hero-grid, .lessons-grid, .lesson-head, .lesson-body, .archive-grid, .related-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .toc { position: static; }
  .nav-links { display: none; }
}

/* ----------------------------------------------------------------------
 * FORUM
 * ---------------------------------------------------------------------- */
.forum-shell { max-width: 1200px; margin: 0 auto; padding: 40px 40px 80px; position: relative; }
.forum-head { padding: 40px 0 32px; }
.forum-head h1 { font-family: var(--serif); font-size: clamp(56px, 8vw, 112px); text-transform: uppercase; line-height: 0.92; font-weight: 700; margin: 0 0 16px; }
.forum-head h1 .accent { color: var(--accent); }
.forum-head .lead { font-size: 17px; color: var(--ink-dim); max-width: 640px; line-height: 1.6; margin: 0; }

.forum-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
.forum-stats { color: var(--ink-faint); }

/* New-topic panel */
.forum-new { background: var(--bg-2); border: 1px solid var(--rule); padding: 28px; margin-bottom: 24px; position: relative; }
.forum-new-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.forum-new label { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); display: block; margin: 14px 0 6px; }
.forum-new input[type=text],
.forum-new textarea { width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--rule); color: var(--ink); font-family: var(--sans); font-size: 14px; outline: none; }
.forum-new input[type=text]:focus,
.forum-new textarea:focus { border-color: var(--accent); }
.forum-new textarea { min-height: 140px; resize: vertical; }
.forum-new-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }

/* Topic list */
.forum-list-head { display: grid; grid-template-columns: 1fr 180px 100px 130px; gap: 16px; padding: 14px 18px; color: var(--ink-faint); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--rule); }
.forum-row { display: grid; grid-template-columns: 1fr 180px 100px 130px; gap: 16px; align-items: center; padding: 22px 18px; border-bottom: 1px solid var(--rule); color: inherit; transition: background-color .15s, border-color .15s; }
.forum-row:hover { background: var(--bg-2); border-bottom-color: var(--accent); }
.forum-row .ft-title { font-family: var(--serif); font-size: 22px; text-transform: uppercase; font-weight: 600; line-height: 1.1; margin-bottom: 6px; }
.forum-row:hover .ft-title { color: var(--accent); }
.forum-row .ft-excerpt { font-size: 13px; color: var(--ink-dim); line-height: 1.5; max-width: 640px; }
.forum-row .col-author { display: flex; align-items: center; gap: 8px; color: var(--ink-dim); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.ft-author-mark { width: 10px; height: 10px; background: var(--accent); display: inline-block; transform: rotate(45deg); flex: 0 0 auto; }
.forum-row .col-replies { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.forum-row .ft-replies-num { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1; }
.forum-row .col-activity { color: var(--ink-faint); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; text-align: right; }

.forum-pager { display: flex; justify-content: center; padding: 32px 0 0; }
.forum-pager .page-numbers { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 10px 14px; border: 1px solid var(--rule); color: var(--ink-dim); margin: 0 4px; }
.forum-pager .page-numbers.current { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* Empty state */
.forum-empty { padding: 80px 40px; text-align: center; border: 1px dashed var(--rule); }
.forum-empty h2 { font-family: var(--serif); font-size: 48px; text-transform: uppercase; margin: 0 0 12px; }
.forum-empty p { color: var(--ink-dim); margin: 0 0 24px; }

/* Single topic */
.forum-topic-meta { display: flex; align-items: center; gap: 10px; color: var(--ink-dim); margin-top: 4px; }
.forum-topic-meta .dot { color: var(--ink-faint); }
.forum-topic-body { padding: 32px 0 48px; border-bottom: 1px solid var(--rule); margin-bottom: 32px; }
.forum-topic-body .entry-content { max-width: 760px; font-size: 16px; line-height: 1.75; color: var(--ink); }
.forum-topic-body .entry-content p { margin: 0 0 18px; }
.forum-topic-body .entry-content a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }

.forum-replies { max-width: 900px; }
.forum-reply-list { list-style: none; margin: 0 0 32px; padding: 0; }
.forum-reply { display: grid; grid-template-columns: 60px 1fr; gap: 16px; padding: 22px 0; border-top: 1px dashed var(--rule); }
.forum-reply:first-child { border-top: none; }
.fr-num { color: var(--ink-faint); font-size: 11px; padding-top: 2px; }
.fr-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.fr-author { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.fr-meta .dot { color: var(--ink-faint); }
.fr-content { font-size: 15px; line-height: 1.7; color: var(--ink); }
.fr-content p { margin: 0 0 12px; }
.fr-content a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }

.forum-no-replies { color: var(--ink-faint); padding: 20px 0 32px; }

.forum-reply-form-wrap { background: var(--bg-2); border: 1px solid var(--rule); padding: 28px; margin-top: 16px; }
.forum-reply-form-wrap textarea { width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--rule); color: var(--ink); font-family: var(--sans); font-size: 14px; outline: none; min-height: 120px; resize: vertical; }
.forum-reply-form-wrap textarea:focus { border-color: var(--accent); }
.forum-reply-form-wrap label { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); display: block; margin-bottom: 6px; }
.forum-reply-form-wrap .submit { background: var(--accent); color: var(--bg); border: none; padding: 14px 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; cursor: pointer; margin-top: 12px; }
.forum-reply-form-wrap .logged-in-as,
.forum-reply-form-wrap .comment-notes { display: none; }

.forum-reply-locked { padding: 32px; border: 1px solid var(--rule); background: var(--bg-2); text-align: center; margin-top: 16px; }
.forum-reply-locked p { color: var(--ink-dim); margin: 0 0 20px; }

@media (max-width: 880px) {
  .forum-list-head { display: none; }
  .forum-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 14px; }
  .forum-row .col-author,
  .forum-row .col-replies,
  .forum-row .col-activity { text-align: left; }
  .forum-row .col-replies { flex-direction: row; align-items: baseline; gap: 8px; }
  .forum-row .ft-replies-num { font-size: 18px; }
}

/* ----------------------------------------------------------------------------
 * Full-width content column
 * Body copy, callout boxes, and table boxes drop their 720px cap so they all
 * stretch to the full width of their parent content column — body text, the
 * callout divs ([protip]/[info]/[warning]/[pro]/[con]/[shortcuts]) and the
 * table divs ([dd_table] / .is-style-dd-grey) now share one consistent width.
 * Placed last so it also overrides the per-page rules (e.g. .tool-shell) above.
 * -------------------------------------------------------------------------- */
.step-content :is(p, ul, ol, blockquote),
.tool-shell .entry-content :is(p, ul, ol),
.step-protip, .step-callout, .step-warning, .step-pro, .step-con, .step-shortcuts,
.dd-table-box,
.wp-block-table.is-style-dd-grey { max-width: none; }

/* ----- Latest From Dabble Dad (YouTube + X feed) ----- */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feed-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.feed-card:hover {
  border-color: var(--accent);
  background: var(--bg-3);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.feed-card[data-platform="youtube"]:hover { border-color: var(--yt); }
.feed-card .feed-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  overflow: hidden;
  border-right: 1px solid var(--rule);
  background: var(--bg-3);
}
.feed-card .feed-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.feed-thumb .feed-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  background: rgba(14,15,14,0.86);
  color: var(--ink);
  padding: 2px 6px;
  border: 1px solid var(--rule);
}
.feed-thumb .feed-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.feed-thumb .feed-play span {
  width: 52px; height: 52px;
  border: 2px solid var(--yt);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(14,15,14,0.55);
  transition: transform .2s ease, background .2s ease;
}
.feed-card:hover .feed-play span { transform: scale(1.08); background: rgba(14,15,14,0.7); }
.feed-thumb .feed-play i {
  border-left: 14px solid var(--yt);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.feed-body {
  padding: 20px 22px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feed-platform {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.feed-platform .pi { display: inline-flex; }
.feed-platform[data-platform="youtube"] { color: var(--yt); }
.feed-platform .feed-dot { color: var(--ink-faint); }
.feed-platform .feed-time { color: var(--ink-faint); letter-spacing: 0.12em; }
.feed-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.feed-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.feed-stat { display: inline-flex; align-items: center; gap: 6px; }
.feed-stat svg { width: 14px; height: 14px; display: block; opacity: 0.85; }
.feed-card:hover .feed-stat svg { opacity: 1; }
.feed-error {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px dashed var(--rule);
  padding: 14px 18px;
  margin-top: 24px;
  text-align: center;
}

/* View More Videos */
.feed-more {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.feed-more-btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .feed-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .feed-card { grid-template-columns: 1fr; }
  .feed-card .feed-thumb { border-right: none; border-bottom: 1px solid var(--rule); aspect-ratio: 16 / 9; }
}
