/*
Theme Name: Freedcamp Blog (New)
Theme URI: https://freedcamp.com/
Author: Freedcamp
Author URI: https://freedcamp.com/
Description: Custom Theme — 2026 redesign on the Freedcamp design system (Inter, blue/green tokens)
Version: 2.0.0
Text Domain: crb
*/

/* ================================================================================
   #Tokens — Freedcamp design system
================================================================================ */
:root {
  /* Brand blue (primary) */
  --blue-700: #2448b1; --blue-600: #2f6fe0; --blue-500: #4a86f7; --blue-400: #6f9ff8;
  --blue-300: #a3c2fb; --blue-200: #c8dbfd; --blue-100: #edf3fe;
  /* Brand green (accent) */
  --green-700: #438a62; --green-600: #5aa873; --green-500: #83bf6e; --green-400: #97c98a;
  --green-200: #cfe7c5; --green-100: #eef7e9;
  /* Support */
  --red-500: #d94841; --orange-600: #e0704a; --orange-300: #f7c98c; --yellow-400: #fadd6f;
  /* Neutrals (cool gray) */
  --white: #ffffff; --gray-50: #f5f7fa; --gray-100: #ebeef2; --gray-150: #e0e3e6;
  --gray-200: #c9cccf; --gray-300: #a5adc5; --gray-400: #969db3; --gray-500: #6a7185;
  --gray-700: #4a4f5c; --gray-900: #35353d;
  /* Semantic */
  --color-primary: var(--blue-500); --color-primary-hover: var(--blue-600);
  --color-accent: var(--green-500); --color-accent-strong: var(--green-700);
  --surface-app: var(--gray-50); --surface-card: var(--white); --surface-sunken: var(--gray-100);
  --surface-hover: var(--gray-100); --surface-selected: var(--blue-100);
  --text-primary: var(--gray-900); --text-secondary: var(--gray-500); --text-muted: var(--gray-400);
  --text-on-primary: var(--white); --text-link: var(--blue-500);
  --border-subtle: var(--gray-150); --border-default: var(--gray-200); --border-focus: var(--blue-500);
  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
  /* Radius / shadows / motion */
  --radius-xs: 4px; --radius-sm: 5px; --radius-md: 8px; --radius-lg: 10px; --radius-xl: 12px; --radius-pill: 999px;
  --shadow-xs: 1px 2px 4px 0 rgba(26, 36, 71, 0.04);
  --shadow-sm: 0 2px 6px 0 rgba(26, 36, 71, 0.07);
  --shadow-md: 0 4px 16px 0 rgba(26, 36, 71, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(26, 36, 71, 0.14);
  --ring-border: inset 0 0 0 1px var(--border-subtle);
  --focus-ring: 0 0 0 3px rgba(74, 134, 247, 0.25);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-base: 180ms;
  --header-h: 64px;
}

/* Dark theme overrides */
:root[data-theme="dark"] {
  --surface-app: #14161c; --surface-card: #1c1f27; --surface-sunken: #232733;
  --surface-hover: #252a35; --surface-selected: #1d2536;
  --white: #1c1f27; --gray-50: #1a1d24; --gray-100: #252a35; --gray-150: #2c3140;
  --gray-200: #39404f; --gray-400: #7d8595; --gray-500: #a6adbb; --gray-900: #eceef2;
  --blue-100: #1d2536; --border-subtle: #2c3140; --border-default: #39404f;
  --text-primary: #eceef2; --text-secondary: #a6adbb; --text-muted: #7d8595; --text-on-primary: #ffffff;
}
:root[data-theme="dark"] .logo-light { display: none; }
:root:not([data-theme="dark"]) .logo-dark { display: none; }

/* ================================================================================
   #Base
================================================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--surface-app); color: var(--text-primary);
  font: var(--fw-regular) 14px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }
img { max-width: 100%; height: auto; }
/* body prefix out-specifies a site-wide custom-CSS plugin rule that resets ul/ol */
body ul, body ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }
::selection { background: var(--blue-200); }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px;
  overflow: hidden; position: absolute !important; word-wrap: normal !important;
}
.shell { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.shell-narrow { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.shell-article { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; position: fixed !important;
  top: 8px; left: 8px; z-index: 100; background: var(--surface-card); padding: 8px 14px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}

/* ================================================================================
   #Buttons
================================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; cursor: pointer; font-weight: var(--fw-semibold);
  text-decoration: none; white-space: nowrap;
  transition: background var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard);
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 14px; border-radius: var(--radius-lg); }
.btn-md { height: 40px; padding: 0 16px; font-size: 14px; border-radius: var(--radius-lg); }
.btn-lg { height: 48px; padding: 0 20px; font-size: 15px; border-radius: var(--radius-xl); gap: 8px; }
.btn-primary { background: var(--color-primary); color: var(--text-on-primary); box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--text-on-primary); }
.btn-success { background: var(--color-accent); color: var(--text-on-primary); box-shadow: var(--shadow-xs); }
.btn-success:hover { background: var(--green-600); color: var(--text-on-primary); }
.btn-secondary { background: var(--surface-card); color: var(--text-primary); box-shadow: var(--ring-border); }
.btn-secondary:hover { background: var(--surface-hover); color: var(--text-primary); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text-primary); }
.btn-cta { box-shadow: 0 2px 10px rgba(131, 191, 110, 0.32); }
.btn-cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 22px rgba(131, 191, 110, 0.45); }
.btn-cta:active { transform: translateY(0) scale(0.99); }
.btn .arrow-nudge { display: inline-flex; animation: fcNudge 1.8s ease-in-out infinite; }
@keyframes fcNudge { 0%, 60%, 100% { transform: translateX(0); } 78% { transform: translateX(3px); } }

/* ================================================================================
   #Header
================================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface-card); border-bottom: 1px solid var(--border-subtle);
}
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand img { height: 36px; width: auto; display: block; }
.brand-name { display: none; }
.site-nav { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: var(--fw-medium); flex: 0 0 auto; white-space: nowrap; }
.site-nav ul { display: flex; align-items: center; gap: 20px; }
.site-nav li { list-style: none; }
.site-nav a, .site-nav span { color: var(--text-secondary); cursor: pointer; }
.site-nav a:hover, .site-nav span:hover { color: var(--text-primary); text-decoration: none; }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--text-primary); font-weight: var(--fw-semibold); }
.header-search {
  flex: 1 1 0; min-width: 240px; display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px;
  max-width: 520px; background: var(--surface-app); border-radius: var(--radius-xl);
  box-shadow: var(--ring-border); transition: box-shadow var(--dur-base) var(--ease-standard);
}
.header-search:focus-within { box-shadow: 0 0 0 2px var(--blue-200); }
.header-search .search-input {
  flex: 1 1 0; min-width: 0; border: none; outline: none; background: transparent;
  font-family: var(--font-sans); font-size: 14px; color: var(--text-primary);
}
.header-search .search-input::placeholder { color: var(--text-muted); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: 0; flex: 0 0 auto; }
.theme-toggle {
  width: 34px; height: 34px; border-radius: var(--radius-pill); border: none; background: transparent;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--text-secondary); box-shadow: var(--ring-border);
  transition: background var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard);
}
.theme-toggle:hover { background: var(--surface-hover); color: var(--text-primary); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* ================================================================================
   #Search boxes
================================================================================ */
.search-box {
  display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px;
  background: var(--surface-card); border-radius: var(--radius-xl);
  box-shadow: var(--ring-border), var(--shadow-xs);
  transition: box-shadow var(--dur-base) var(--ease-standard);
}
.search-box:focus-within { box-shadow: var(--ring-border), 0 0 0 2px var(--blue-200); }
.search-box .search-input {
  flex: 1; border: none; outline: none; background: transparent; min-width: 0;
  font-family: var(--font-sans); font-size: 14px; color: var(--text-primary);
}
.search-box .search-input::placeholder { color: var(--text-muted); }
.search-icon { flex: none; color: var(--text-muted); }

/* ================================================================================
   #Hero + chips (home)
================================================================================ */
.hero { padding: 44px 0 20px; }
.hero-top { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-copy { flex: 1; min-width: 280px; }
.hero-eyebrow {
  font-size: 13px; font-weight: var(--fw-semibold); letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--color-accent-strong); margin-bottom: 10px;
}
.hero-title {
  font-size: 36px; line-height: 1.15; font-weight: var(--fw-semibold);
  letter-spacing: -0.8px; color: var(--text-primary); max-width: 16ch;
}
.hero-sub { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--text-secondary); max-width: 52ch; }
.hero .search-box { min-width: 280px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips--bordered { padding-bottom: 26px; border-bottom: 1px solid var(--border-subtle); }
.chip {
  height: 32px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px;
  border-radius: var(--radius-pill); font-size: 13px; font-weight: var(--fw-semibold);
  color: var(--text-secondary); background: var(--surface-card); box-shadow: var(--ring-border);
  cursor: pointer; text-decoration: none;
  transition: background var(--dur-base) var(--ease-standard);
}
.chip:hover { background: var(--surface-hover); color: var(--text-primary); text-decoration: none; }
.chip.active { background: var(--surface-selected); color: var(--color-primary); }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-primary); opacity: 0.55; flex: none; }
.chip-count { color: var(--text-muted); font-weight: var(--fw-medium); }
.chip.active .chip-count { color: inherit; opacity: 0.7; }

/* ================================================================================
   #Cards
================================================================================ */
.card {
  background: var(--surface-card); border-radius: var(--radius-md);
  box-shadow: var(--ring-border), var(--shadow-xs);
  transition: box-shadow var(--dur-base) var(--ease-standard);
}
.card--row { position: relative; }
.card--row:hover { box-shadow: var(--ring-border), var(--shadow-md); }
.stretched-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.post-row-sm .row-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
a.card:hover, .card.clickable:hover { box-shadow: var(--ring-border), var(--shadow-md); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; text-decoration: none; }
.card-media { position: relative; background: var(--blue-100); overflow: hidden; flex: none; }
.card-media--16x9 { aspect-ratio: 16 / 9; }
.card-media--16x10 { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--border-subtle); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}
.card-media-ph img { width: 100%; height: 100%; object-fit: cover; opacity: 1; display: block; }
.card-badge {
  font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--white); background: var(--color-primary); padding: 4px 9px; border-radius: var(--radius-pill);
}
:root[data-theme="dark"] .card-badge { color: #ffffff; }
.card-cat { font-size: 13px; font-weight: var(--fw-semibold); color: var(--color-primary); }
.card-cat--sm { font-size: 12px; }
.card-rt { font-size: 13px; color: var(--text-muted); }
.card-rt--sm { font-size: 12px; }
.card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-meta--sm { gap: 9px; margin-bottom: 9px; }
.card-title { font-weight: var(--fw-semibold); color: var(--text-primary); }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--color-primary); text-decoration: none; }
.card-excerpt { color: var(--text-secondary); }
.card-author { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.card-author .avatar { border-radius: 50%; display: block; flex: none; }
.card-author-name { font-size: 12px; font-weight: var(--fw-semibold); color: var(--text-primary); }
.card-author-dot { color: var(--gray-200); }
.card-author-date { font-size: 12px; color: var(--text-secondary); }

/* Home layout */
.home-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; padding: 32px 0 8px; }
.card-featured .card-body { padding: 24px 26px 26px; }
.card-featured .card-title { font-size: 27px; line-height: 1.22; letter-spacing: -0.5px; }
.card-featured .card-excerpt { margin: 12px 0 18px; font-size: 15px; line-height: 1.65; }
.card-featured .card-author-name { font-size: 13px; }
.card-featured .card-author-date { font-size: 13px; }
.latest-col { display: flex; flex-direction: column; gap: 14px; }
.section-eyebrow { font-size: 13px; font-weight: var(--fw-semibold); letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.post-row-sm { display: flex; gap: 16px; padding: 16px; }
.post-row-sm .row-thumb {
  width: 88px; height: 72px; flex: none; border-radius: 6px; overflow: hidden; background: var(--blue-100);
}
.post-row-sm .row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-row-sm .row-main { flex: 1; min-width: 0; }
.post-row-sm .row-title { margin-bottom: 6px; font-size: 15px; line-height: 1.35; font-weight: var(--fw-semibold); }
.post-row-sm .row-title a { color: var(--text-primary); }
.post-row-sm .row-title a:hover { color: var(--color-primary); text-decoration: none; }
.post-row-sm .row-date { font-size: 12px; color: var(--text-secondary); }

/* Grid section */
.grid-section { padding: 38px 0 64px; }
.grid-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.grid-head h2 { font-size: 20px; font-weight: var(--fw-semibold); letter-spacing: -0.2px; color: var(--text-primary); }
.browse-all { font-size: 13px; font-weight: var(--fw-semibold); color: var(--color-primary); flex: none; }
.browse-all:hover { color: var(--color-primary-hover); text-decoration: none; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards-grid .card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.cards-grid .card-title { margin-bottom: 9px; font-size: 17px; line-height: 1.3; letter-spacing: -0.2px; }
.cards-grid .card-excerpt { margin-bottom: 16px; font-size: 14px; line-height: 1.6; }

/* ================================================================================
   #Archive / category / search views
================================================================================ */
.archive-band { background: var(--surface-card); border-bottom: 1px solid var(--border-subtle); }
.archive-band-inner { padding: 40px 32px 32px; }
.back-link { display: inline-block; font-size: 13px; font-weight: var(--fw-semibold); color: var(--color-primary); margin-bottom: 16px; }
.back-link:hover { color: var(--color-primary-hover); text-decoration: none; }
.archive-title { font-size: 32px; font-weight: var(--fw-semibold); letter-spacing: -0.6px; color: var(--text-primary); }
.archive-blurb { margin-top: 10px; font-size: 15px; color: var(--text-secondary); max-width: 70ch; }
.archive-band .chips { margin-top: 22px; }
.archive-body { padding: 28px 32px 72px; }
.archive-filter { max-width: 340px; margin-bottom: 22px; }
.rows-card { overflow: hidden; }
.post-row {
  display: flex; gap: 20px; align-items: center; padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--dur-base) var(--ease-standard);
}
.post-row:last-child { border-bottom: none; }
.post-row:hover { background: var(--surface-hover); }
.post-row .row-thumb {
  width: 64px; height: 48px; flex: none; border-radius: 5px; overflow: hidden; background: var(--blue-100);
}
.post-row .row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-row .row-main { flex: 1; min-width: 0; }
.post-row .row-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.post-row .row-title { margin-bottom: 5px; font-size: 16px; font-weight: var(--fw-semibold); }
.post-row .row-title a { color: var(--text-primary); }
.post-row .row-title a:hover { color: var(--color-primary); text-decoration: none; }
.post-row .row-excerpt { font-size: 13px; line-height: 1.55; color: var(--text-secondary); max-width: 70ch; }
.post-row .row-date { font-size: 13px; color: var(--text-secondary); flex: none; }
.list-empty { padding: 32px 24px; font-size: 15px; color: var(--text-secondary); }

/* ================================================================================
   #Article (single post)
================================================================================ */
.reading-progress { position: sticky; top: var(--header-h); z-index: 30; height: 3px; background: var(--surface-sunken); }
.reading-progress-bar { height: 3px; width: 0; background: var(--color-primary); transition: width 60ms linear; }
.article-hero { padding-top: 44px; padding-bottom: 8px; }
.article-hero .back-link { margin-bottom: 22px; }
.article-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.article-pill {
  font-size: 12px; font-weight: var(--fw-semibold); letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--color-primary); background: var(--surface-selected); padding: 5px 10px;
  border-radius: var(--radius-pill);
}
a.article-pill:hover { color: var(--color-primary-hover); text-decoration: none; }
.article-meta-item { font-size: 13px; color: var(--text-secondary); }
.article-meta-dot { color: var(--gray-200); }
.article-title { font-size: 40px; line-height: 1.14; font-weight: var(--fw-semibold); letter-spacing: -1px; color: var(--text-primary); }
.article-lead { margin: 18px 0 26px; font-size: 19px; line-height: 1.6; color: var(--text-secondary); }
.article-byline { display: flex; align-items: center; gap: 12px; padding-bottom: 28px; border-bottom: 1px solid var(--border-subtle); }
.article-byline .avatar { border-radius: 50%; display: block; flex: none; }
.byline-copy { flex: 1; min-width: 0; }
.byline-name { font-size: 14px; font-weight: var(--fw-semibold); color: var(--text-primary); }
.byline-role { font-size: 13px; color: var(--text-secondary); }
.byline-actions { display: flex; gap: 8px; flex: none; }
.article-figure { margin: 32px 0 8px; }
.article-figure img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--ring-border); display: block; }
.article-figure figcaption, .wp-caption-text { margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.article-content { padding-top: 0; padding-bottom: 0; }

/* Entry typography */
.entry { overflow-wrap: break-word; }
.entry p { font-size: 17px; line-height: 1.75; color: var(--text-primary); margin: 0 0 18px; }
.entry > p:first-child { margin-top: 26px; }
.entry h2 { margin: 40px 0 12px; font-size: 26px; line-height: 1.25; font-weight: var(--fw-semibold); letter-spacing: -0.5px; color: var(--text-primary); }
.entry h3 { margin: 32px 0 10px; font-size: 21px; line-height: 1.3; font-weight: var(--fw-semibold); letter-spacing: -0.3px; color: var(--text-primary); }
.entry h4, .entry h5, .entry h6 { margin: 26px 0 8px; font-size: 17px; font-weight: var(--fw-semibold); color: var(--text-primary); }
.entry ul, .entry ol { margin: 0 0 26px; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry li { font-size: 17px; line-height: 1.7; color: var(--text-primary); }
.entry a { color: var(--text-link); }
.entry a:hover { color: var(--color-primary-hover); text-decoration: underline; }
.entry blockquote {
  margin: 32px 0; padding: 22px 24px; background: var(--surface-card);
  border-radius: var(--radius-md); box-shadow: var(--ring-border), var(--shadow-xs);
  border-left: 3px solid var(--color-accent);
}
.entry blockquote p { margin: 0; font-size: 18px; line-height: 1.6; font-weight: var(--fw-semibold); }
.entry img { border-radius: var(--radius-md); }
.entry figure { margin: 32px 0 26px; }
.entry figure img { width: 100%; }
.entry hr { border: none; border-top: 1px solid var(--border-subtle); margin: 36px 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 15px; }
.entry th, .entry td { border: 1px solid var(--border-default); padding: 8px 12px; text-align: left; }
.entry th { background: var(--surface-sunken); font-weight: var(--fw-semibold); }
.entry pre, .entry code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 15px; }
.entry pre { background: var(--surface-sunken); border-radius: var(--radius-md); padding: 16px 18px; overflow-x: auto; margin: 0 0 26px; }
.entry code { background: var(--surface-sunken); border-radius: var(--radius-xs); padding: 1px 5px; }
.entry pre code { background: none; padding: 0; }
/* Responsive video wrapper (functions.js wraps iframes) */
.video-holder { position: relative; padding-bottom: 56.25%; height: 0; margin: 0 0 26px; border-radius: var(--radius-md); overflow: hidden; }
.video-holder iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: 0; }

/* CTA card */
.cta-card { padding: 30px 32px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; margin-top: 40px; }
.cta-card h3 { font-size: 21px; font-weight: var(--fw-semibold); letter-spacing: -0.3px; color: var(--text-primary); margin-bottom: 8px; }
.cta-card p { font-size: 15px; line-height: 1.6; color: var(--text-secondary); max-width: 52ch; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ================================================================================
   #Comments
================================================================================ */
.comments-section { padding-top: 56px; }
.comments-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.comments-head h2 { font-size: 20px; font-weight: var(--fw-semibold); color: var(--text-primary); }
.comments-count { font-size: 14px; color: var(--text-muted); }
.comment-form-card { padding: 20px 22px; margin-bottom: 22px; display: flex; flex-direction: column; gap: 14px; }
.comment-form-card .logged-in-as { font-size: 13px; color: var(--text-secondary); margin: 0; }
.comment-form-card .logged-in-as a { color: var(--color-primary); }
.comment-reply-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 16px; font-weight: var(--fw-semibold); color: var(--text-primary); margin-bottom: 4px; }
.comment-reply-title a { color: var(--color-primary); }
#cancel-comment-reply-link { font-size: 13px; font-weight: var(--fw-medium); color: var(--text-muted); }
#cancel-comment-reply-link:hover { color: var(--text-secondary); text-decoration: none; }
.comment-awaiting { font-size: 13px; font-weight: var(--fw-semibold); color: var(--green-700); margin: 0 0 8px; }
.comment-list ul, .comment-list ol { list-style: none; margin: 0; padding: 0; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-holder { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.field-holder label { font-size: 12px; font-weight: var(--fw-semibold); color: var(--text-secondary); }
.field-holder label .required { color: var(--red-500); }
.field-holder input[type="text"], .field-holder input[type="email"], .field-holder input[type="url"],
.field-holder textarea, .comment-form input[type="text"], .comment-form textarea {
  width: 100%; border: none; outline: none; background: var(--surface-app);
  border-radius: var(--radius-md); box-shadow: var(--ring-border);
  padding: 10px 12px; font-family: var(--font-sans); font-size: 15px; line-height: 1.6;
  color: var(--text-primary); transition: box-shadow var(--dur-base) var(--ease-standard);
}
.field-holder input:focus, .field-holder textarea:focus,
.comment-form input:focus, .comment-form textarea:focus { box-shadow: 0 0 0 2px var(--blue-200); }
.comment-form textarea { resize: vertical; min-height: 84px; }
.form-submit-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--text-muted); }
.form-submit input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px;
  border: 1px solid transparent; border-radius: var(--radius-lg); cursor: pointer;
  background: var(--color-primary); color: var(--text-on-primary);
  font-family: var(--font-sans); font-size: 14px; font-weight: var(--fw-semibold);
  transition: background var(--dur-base) var(--ease-standard);
}
.form-submit input[type="submit"]:hover { background: var(--color-primary-hover); }
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment-card { padding: 20px 22px; }
.comment-top { display: flex; gap: 14px; }
.comment-card .avatar { border-radius: 50%; display: block; flex: none; }
.comment-main { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 6px; }
.comment-author-name { font-size: 14px; font-weight: var(--fw-semibold); color: var(--text-primary); }
.comment-author-name a { color: inherit; }
.badge-team {
  font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--green-700); background: var(--green-100); padding: 3px 8px; border-radius: var(--radius-pill);
}
.comment-date { font-size: 13px; color: var(--text-muted); }
.comment-date a { color: inherit; }
.comment-body { font-size: 15px; line-height: 1.65; color: var(--text-primary); }
.comment-body p { margin: 0 0 10px; }
.comment-body p:last-child { margin-bottom: 0; }
.comment-actions { margin-top: 10px; display: flex; align-items: center; gap: 18px; }
.comment-actions a, .comment-reply-link { font-size: 13px; font-weight: var(--fw-semibold); color: var(--text-secondary); }
.comment-actions a:hover, .comment-reply-link:hover { color: var(--color-primary); text-decoration: none; }
.comment-list .children { margin: 16px 0 0 50px; padding-left: 18px; border-left: 2px solid var(--border-subtle); display: flex; flex-direction: column; gap: 14px; }
.comment-list .children .comment-card { box-shadow: none; padding: 0; background: transparent; }
.comment-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 13px; font-weight: var(--fw-semibold); }
.comment-nav a { color: var(--text-secondary); }
.comment-nav a:hover { color: var(--color-primary); text-decoration: none; }
#comments-area { display: flex; flex-direction: column; gap: 6px; }
.post-pages { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 28px; font-size: 14px; font-weight: var(--fw-semibold); color: var(--text-secondary); }
.post-pages a { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--radius-md); background: var(--surface-card); box-shadow: var(--ring-border); color: var(--text-secondary); }
.post-pages a:hover { color: var(--text-primary); background: var(--surface-hover); text-decoration: none; }
.nocomments { font-size: 14px; color: var(--text-muted); }
#disqus_thread { padding: 24px 22px; }

/* ================================================================================
   #Related posts
================================================================================ */
.related-section { padding-top: 56px; padding-bottom: 72px; }
.related-section h2 { margin-bottom: 18px; font-size: 20px; font-weight: var(--fw-semibold); color: var(--text-primary); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.related-card { padding: 20px; display: flex; flex-direction: column; gap: 9px; }
.related-card .card-meta { margin-bottom: 0; }
.related-card h3 { font-size: 16px; line-height: 1.32; font-weight: var(--fw-semibold); }
.related-card h3 a { color: var(--text-primary); }
.related-card h3 a:hover { color: var(--color-primary); text-decoration: none; }
.related-card p { font-size: 13px; line-height: 1.6; color: var(--text-secondary); }

/* ================================================================================
   #Pages & 404
================================================================================ */
.page-hero { padding-top: 44px; padding-bottom: 8px; }
.page-content { padding-bottom: 72px; padding-top: 24px; }

/* ================================================================================
   #Pagination
================================================================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.pagination > span.pages-label { display: none; }
.pagination ul.page-numbers { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: transparent; box-shadow: none !important; }
.pagination .page-numbers, .pagination .dir-btn {
  min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); background: var(--surface-card); box-shadow: var(--ring-border);
  font-size: 14px; font-weight: var(--fw-semibold); color: var(--text-secondary);
  transition: background var(--dur-base) var(--ease-standard);
}
.pagination a.page-numbers:hover, .pagination a.dir-btn:hover { background: var(--surface-hover); color: var(--text-primary); text-decoration: none; }
.pagination .page-numbers.current { background: var(--color-primary); color: var(--text-on-primary); box-shadow: none; }
.pagination .dir-btn.prev::before { content: '\2190'; }
.pagination .dir-btn.next::after { content: '\2192'; }

/* ================================================================================
   #Footer
================================================================================ */
.site-footer { background: var(--surface-card); border-top: 1px solid var(--border-subtle); margin-top: auto; }
.footer-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-brand img { height: 22px; width: auto; display: block; }
.footer-tagline { font-size: 13px; color: var(--text-secondary); }
.footer-links { display: flex; gap: 18px; font-size: 13px; margin-left: auto; flex-wrap: wrap; }
.footer-links ul { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links li { list-style: none; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); text-decoration: none; }
.footer-legal { width: 100%; font-size: 12px; color: var(--text-muted); }
.footer-legal p { margin: 0; font-size: 12px; }

/* ================================================================================
   #WordPress core classes
================================================================================ */
.alignright { float: right; margin: 6px 0 12px 20px; }
.alignleft { float: left; margin: 6px 20px 12px 0; }
.aligncenter, div.aligncenter { display: block; margin-left: auto; margin-right: auto; }
img.alignright, img.alignleft { max-width: 45%; }
.wp-caption { max-width: 100%; }
.wp-caption img { border-radius: var(--radius-md); }
.wp-caption p.wp-caption-text { margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.sticky { /* no special treatment in the new design */ }
.gallery-caption { font-size: 13px; color: var(--text-muted); }
.bypostauthor .comment-author-name { color: var(--color-primary); }

/* ================================================================================
   #Responsive
================================================================================ */
@media (max-width: 1100px) {
  .site-nav, .btn-login { display: none; }
}
@media (max-width: 1024px) {
  .home-grid { grid-template-columns: 1fr; }
  .cards-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .shell, .shell-narrow, .shell-article, .header-inner { padding-left: 20px; padding-right: 20px; }
  .archive-band-inner, .archive-body { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 32px; }
  .hero-title { font-size: 30px; }
  .hero .search-box { width: 100%; }
  .article-title { font-size: 32px; }
  .article-lead { font-size: 17px; }
  .archive-title { font-size: 26px; }
  .post-row { flex-wrap: wrap; }
  .post-row .row-date { width: 100%; order: 3; }
  .cards-grid, .related-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { margin-left: 0; }
}
@media (max-width: 640px) {
  .header-search { display: none; }
  .header-inner { gap: 12px; }
}
@media (max-width: 560px) {
  .btn-cta.btn-lg { height: 42px; padding: 0 14px; font-size: 14px; }
}
