/*
Theme Name: ThumbForge
Theme URI: https://thumbforge.io
Author: ThumbForge Team
Author URI: https://thumbforge.io
Description: A dark, bold SaaS-style WordPress theme for ThumbForge. Optimised for image-tech and creative tooling products.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thumbforge
Tags: dark, one-column, two-columns, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, full-width-template, sticky-post, threaded-comments, translation-ready, wide-blocks
*/

/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  /* Surfaces */
  --tf-bg:          #0d0f14;
  --tf-surface:     #161a22;
  --tf-card:        #1c2130;
  --tf-border:      #2a3040;
  --tf-border-soft: rgba(255,255,255,0.06);

  /* Brand */
  --tf-primary:     #7c5cfc;
  --tf-primary-dim: #5a3ed4;
  --tf-accent:      #00e5a0;

  /* Text */
  --tf-text:        #e8eaf2;
  --tf-muted:       #8890a8;
  --tf-subtle:      #50576a;

  /* Type scale */
  --tf-font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --tf-font-mono:   'JetBrains Mono', 'Fira Code', monospace;

  /* Radius */
  --tf-radius:      8px;
  --tf-radius-lg:   14px;

  /* Shadows */
  --tf-shadow:      0 4px 20px rgba(0,0,0,0.45);
  --tf-shadow-card: 0 2px 12px rgba(0,0,0,0.35);
  --tf-glow:        0 0 28px rgba(124,92,252,0.25);
}

/* ─────────────────────────────────────────────
   RESET / BASE
───────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--tf-bg);
  color: var(--tf-text);
  font-family: var(--tf-font-sans);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--tf-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--tf-accent); }
ul, ol { padding-left: 1.5rem; }

/* ─────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--tf-font-sans);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1.25rem; color: var(--tf-text); }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 3px solid var(--tf-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--tf-card);
  border-radius: 0 var(--tf-radius) var(--tf-radius) 0;
  color: var(--tf-muted);
  font-style: italic;
}

code, kbd, samp {
  font-family: var(--tf-font-mono);
  font-size: 0.875em;
  background: var(--tf-card);
  padding: 0.2em 0.5em;
  border-radius: 4px;
  color: var(--tf-accent);
  border: 1px solid var(--tf-border);
}
pre {
  background: var(--tf-card);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: var(--tf-font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--tf-text);
  margin-bottom: 1.5rem;
}
pre code { background: none; padding: 0; border: none; font-size: inherit; color: inherit; }

hr {
  border: none;
  border-top: 1px solid var(--tf-border);
  margin: 2rem 0;
}

/* ─────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────── */
.tf-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.tf-container--narrow { max-width: 760px; }
.tf-container--wide   { max-width: 1400px; }

.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-content  { flex: 1; padding: 3rem 0; }

/* Two-column layout */
.content-area { min-width: 0; }
.with-sidebar .content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .with-sidebar .content-sidebar-wrap { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   SITE HEADER
───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,15,20,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tf-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

/* Logo */
.site-logo a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.site-logo img { height: 32px; width: auto; }
.site-logo .logo-dot { color: var(--tf-primary); }

/* Primary nav */
.primary-navigation { display: flex; align-items: center; gap: 0.25rem; }
.primary-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 0.25rem; }
.primary-navigation a {
  color: var(--tf-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a { color: #fff; background: var(--tf-card); }

/* Nav CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--tf-border);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--tf-text);
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 3px 0;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 768px) {
  .primary-navigation { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--tf-surface); border-bottom: 1px solid var(--tf-border); padding: 1rem 1.5rem; }
  .primary-navigation.is-open { display: flex; flex-direction: column; align-items: flex-start; }
  .primary-navigation ul { flex-direction: column; width: 100%; gap: 0; }
  .primary-navigation a { display: block; padding: 0.65rem 0.5rem; font-size: 1rem; }
  .menu-toggle { display: block; }
  .header-cta .tf-btn--ghost { display: none; }
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.tf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--tf-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.6rem 1.25rem;
  border-radius: var(--tf-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.tf-btn--primary {
  background: var(--tf-primary);
  color: #fff;
  border-color: var(--tf-primary);
  box-shadow: var(--tf-glow);
}
.tf-btn--primary:hover { background: var(--tf-primary-dim); color: #fff; border-color: var(--tf-primary-dim); transform: translateY(-1px); }
.tf-btn--ghost { background: transparent; color: var(--tf-muted); border-color: var(--tf-border); }
.tf-btn--ghost:hover { color: #fff; border-color: var(--tf-primary); background: rgba(124,92,252,0.08); }
.tf-btn--lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: var(--tf-radius-lg); }
.tf-btn--sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

/* ─────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────── */
.tf-hero {
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,92,252,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.tf-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(124,92,252,0.12);
  border: 1px solid rgba(124,92,252,0.35);
  color: var(--tf-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tf-hero__title { margin-bottom: 1.25rem; }
.tf-hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--tf-primary), var(--tf-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tf-hero__subtitle {
  font-size: 1.2rem;
  color: var(--tf-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.tf-hero__actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ─────────────────────────────────────────────
   FEATURE GRID
───────────────────────────────────────────── */
.tf-features {
  padding: 5rem 0;
}
.tf-section-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tf-primary);
  margin-bottom: 0.75rem;
}
.tf-section-title { text-align: center; margin-bottom: 0.75rem; }
.tf-section-subtitle { text-align: center; color: var(--tf-muted); max-width: 560px; margin: 0 auto 3rem; }

.tf-grid {
  display: grid;
  gap: 1.5rem;
}
.tf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tf-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .tf-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tf-grid--3,
  .tf-grid--2 { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   CARDS
───────────────────────────────────────────── */
.tf-card {
  background: var(--tf-card);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tf-card:hover { border-color: rgba(124,92,252,0.4); box-shadow: var(--tf-glow); }
.tf-card__icon {
  width: 44px;
  height: 44px;
  background: rgba(124,92,252,0.12);
  border: 1px solid rgba(124,92,252,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.tf-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; color: #fff; }
.tf-card__body  { font-size: 0.9rem; color: var(--tf-muted); line-height: 1.6; }

/* ─────────────────────────────────────────────
   POSTS / ARCHIVE
───────────────────────────────────────────── */
.post-card {
  background: var(--tf-card);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { border-color: rgba(124,92,252,0.4); transform: translateY(-2px); }
.post-card__thumb { aspect-ratio: 16/9; overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card__meta { font-size: 0.8rem; color: var(--tf-subtle); margin-bottom: 0.6rem; display: flex; gap: 0.75rem; align-items: center; }
.post-card__cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tf-primary);
  background: rgba(124,92,252,0.1);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
}
.post-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; color: #fff; }
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--tf-primary); }
.post-card__excerpt { font-size: 0.875rem; color: var(--tf-muted); line-height: 1.6; flex: 1; margin-bottom: 1.25rem; }
.post-card__footer { margin-top: auto; }

/* Single post */
.single-post { max-width: 760px; margin: 0 auto; }
.single-post__header { margin-bottom: 2.5rem; }
.single-post__cats { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.single-post__title { margin-bottom: 1rem; }
.single-post__meta { font-size: 0.875rem; color: var(--tf-muted); display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.single-post__thumb { border-radius: var(--tf-radius-lg); overflow: hidden; margin-bottom: 2.5rem; aspect-ratio: 16/9; }
.single-post__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Entry content */
.entry-content h2 { margin: 2.5rem 0 1rem; padding-top: 0.5rem; }
.entry-content h3 { margin: 2rem 0 0.75rem; }
.entry-content h4, .entry-content h5, .entry-content h6 { margin: 1.5rem 0 0.5rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.25rem 1.5rem; }
.entry-content li { margin-bottom: 0.35rem; }
.entry-content img { border-radius: var(--tf-radius); margin: 1.5rem 0; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.entry-content th {
  background: var(--tf-card);
  color: var(--tf-text);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border: 1px solid var(--tf-border);
  text-align: left;
}
.entry-content td {
  padding: 0.65rem 1rem;
  border: 1px solid var(--tf-border);
  color: var(--tf-muted);
}
.entry-content tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* ─────────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────────── */
.widget-area {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.widget {
  background: var(--tf-card);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  padding: 1.5rem;
}
.widget-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tf-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--tf-border);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 0.4rem 0; border-bottom: 1px solid var(--tf-border-soft); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { font-size: 0.9rem; color: var(--tf-muted); }
.widget ul li a:hover { color: var(--tf-primary); }

/* Search widget */
.widget_search .search-form { display: flex; gap: 0.5rem; }
.widget_search input[type="search"] {
  flex: 1;
  background: var(--tf-surface);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius);
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  color: var(--tf-text);
  outline: none;
  transition: border-color 0.2s;
}
.widget_search input[type="search"]:focus { border-color: var(--tf-primary); }
.widget_search button {
  background: var(--tf-primary);
  border: none;
  border-radius: var(--tf-radius);
  padding: 0.55rem 0.9rem;
  color: #fff;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s;
}
.widget_search button:hover { background: var(--tf-primary-dim); }

/* ─────────────────────────────────────────────
   FORMS (WP COMMENT / CONTACT)
───────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
  background: var(--tf-surface);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius);
  padding: 0.65rem 1rem;
  font-family: var(--tf-font-sans);
  font-size: 0.9rem;
  color: var(--tf-text);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--tf-primary);
  box-shadow: 0 0 0 3px rgba(124,92,252,0.15);
}
textarea { min-height: 120px; resize: vertical; }
label { font-size: 0.875rem; font-weight: 600; color: var(--tf-muted); display: block; margin-bottom: 0.4rem; }

/* Comment form */
#comments { margin-top: 4rem; }
.comments-title { font-size: 1.3rem; margin-bottom: 2rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.comment { background: var(--tf-card); border: 1px solid var(--tf-border); border-radius: var(--tf-radius-lg); padding: 1.5rem; }
.comment-meta { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.75rem; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 700; color: #fff; font-size: 0.95rem; }
.comment-metadata a { font-size: 0.8rem; color: var(--tf-subtle); }
.comment-content p { font-size: 0.9rem; }
.comment-form { display: grid; gap: 1.25rem; }
.comment-form .form-submit .submit {
  background: var(--tf-primary);
  color: #fff;
  border: none;
  border-radius: var(--tf-radius);
  padding: 0.7rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.comment-form .form-submit .submit:hover { background: var(--tf-primary-dim); }

/* ─────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────── */
.pagination, .post-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.page-numbers, .nav-links a, .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--tf-radius);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--tf-border);
  color: var(--tf-muted);
  background: var(--tf-card);
  transition: all 0.2s;
}
.page-numbers:hover, .nav-links a:hover { color: #fff; border-color: var(--tf-primary); background: rgba(124,92,252,0.12); }
.page-numbers.current { background: var(--tf-primary); color: #fff; border-color: var(--tf-primary); }

/* ─────────────────────────────────────────────
   SITE FOOTER
───────────────────────────────────────────── */
.site-footer {
  background: var(--tf-surface);
  border-top: 1px solid var(--tf-border);
  padding: 4rem 0 2rem;
  margin-top: auto;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .site-footer__top { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand__tagline { font-size: 0.9rem; color: var(--tf-muted); margin-top: 0.75rem; line-height: 1.6; }
.footer-col__heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tf-subtle);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: 0.875rem; color: var(--tf-muted); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--tf-primary); }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--tf-border);
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer__copy { font-size: 0.8rem; color: var(--tf-subtle); }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.5rem; }
.footer-nav a { font-size: 0.8rem; color: var(--tf-subtle); }
.footer-nav a:hover { color: var(--tf-primary); }

/* ─────────────────────────────────────────────
   NOTICE / ALERT BOXES
───────────────────────────────────────────── */
.tf-notice {
  padding: 1rem 1.25rem;
  border-radius: var(--tf-radius);
  border-left: 3px solid var(--tf-primary);
  background: rgba(124,92,252,0.08);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.tf-notice--success { border-color: var(--tf-accent); background: rgba(0,229,160,0.08); }
.tf-notice--warning { border-color: #fbbf24; background: rgba(251,191,36,0.08); }
.tf-notice--danger  { border-color: #f87171; background: rgba(248,113,113,0.08); }

/* ─────────────────────────────────────────────
   UTILITY
───────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.text-center { text-align: center; }
.text-muted   { color: var(--tf-muted); }
.mt-auto { margin-top: auto; }
.gradient-text {
  background: linear-gradient(135deg, var(--tf-primary), var(--tf-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────────────
   WORDPRESS ALIGNMENT CLASSES
───────────────────────────────────────────── */
.alignleft { float: left; margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.aligncenter { display: block; margin: 1.5em auto; }
.alignwide { width: calc(100% + 3rem); margin-left: -1.5rem; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* ─────────────────────────────────────────────
   WORDPRESS BLOCK EDITOR COMPAT
───────────────────────────────────────────── */
.wp-block-quote { border-left: 3px solid var(--tf-primary); padding: 1rem 1.5rem; background: var(--tf-card); border-radius: 0 var(--tf-radius) var(--tf-radius) 0; }
.wp-block-code  { background: var(--tf-card); border: 1px solid var(--tf-border); border-radius: var(--tf-radius); padding: 1.25rem; }
.wp-block-separator { border: none; border-top: 1px solid var(--tf-border); margin: 2rem 0; }
.wp-block-button__link {
  background: var(--tf-primary) !important;
  color: #fff !important;
  border-radius: var(--tf-radius) !important;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  transition: background 0.2s;
}
.wp-block-button__link:hover { background: var(--tf-primary-dim) !important; }

/* ─────────────────────────────────────────────
   SCROLLBAR
───────────────────────────────────────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--tf-border) transparent;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--tf-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--tf-primary); }

/* ─────────────────────────────────────────────
   404 PAGE
───────────────────────────────────────────── */
.error-404 { text-align: center; padding: 6rem 0; }
.error-404 .error-code { font-size: 8rem; font-weight: 800; line-height: 1; color: var(--tf-card); margin-bottom: 1rem; }
.error-404 h1 { font-size: 2rem; margin-bottom: 1rem; }
.error-404 p  { color: var(--tf-muted); margin-bottom: 2rem; }

/* ─────────────────────────────────────────────
   SEARCH RESULTS
───────────────────────────────────────────── */
.search-form { display: flex; gap: 0.5rem; max-width: 480px; }
.search-form input { flex: 1; }
.search-form button { background: var(--tf-primary); border: none; border-radius: var(--tf-radius); padding: 0.65rem 1.25rem; color: #fff; cursor: pointer; font-weight: 600; transition: background 0.2s; }
.search-form button:hover { background: var(--tf-primary-dim); }
.search-no-results { text-align: center; padding: 4rem 0; }

/* ─────────────────────────────────────────────
   RESPONSIVE PRINT
───────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .widget-area, .post-navigation { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
