/*
Theme Name: Rawebs Knowledge Base
Theme URI: https://rawebs.com
Author: Rawebs Ltd
Author URI: https://rawebs.com
Description: A lean, classic WordPress theme for the Rawebs blog / knowledge base, built to match the brand and visual language of rawebs.com (dark ink header, warm paper sections, burnt-orange accent, Archivo/Inter/IBM Plex Mono type). Designed to sit alongside the main static rawebs.com site rather than replace it — no page builder, minimal JS, and cache-friendly output so it stays fast.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rawebs-blog
Tags: blog, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, and the CSS design tokens it uses, are matched to the Rawebs
business hosting site (rawebs.com), its WHMCS client-area theme, and its
cPanel skin, so the three feel like one brand. See readme.txt for setup
notes, including a recommendation to pair this theme with a page-caching
plugin.
*/

/* ===========================================================
   DESIGN TOKENS — matched to rawebs.com / assets/styles.css
   =========================================================== */
:root{
  --ink: #17130F;
  --ink-soft: #4A423A;
  --paper: #FBF7F1;
  --paper-dim: #F1E9DE;
  --line: #E4D9C8;
  --line-dark: #362E26;
  --cream: #F4ECDF;
  --orange: #C1440E;
  --orange-dark: #9C3609;
  --ember: #E9812E;
  --green: #4F9B6E;

  --font-display: "Archivo", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --radius: 6px;
}

/* ===========================================================
   RESET / BASE
   =========================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg{ display: block; max-width: 100%; height: auto; }
figure{ margin: 0; }

a{ color: inherit; text-decoration: none; }

ul, ol{ padding-left: 0; margin: 0; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow{ max-width: var(--wrap-narrow); }

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--orange); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus{ left: 12px; top: 12px; }

:focus-visible{
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.screen-reader-text, .visually-hidden{
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- typography ---------- */
h1, h2, h3, h4, h5, h6{
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}
p{ margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin: 0 0 16px;
}
.eyebrow--light{ color: var(--cream); }

.section-title{
  font-size: clamp(28px, 3.4vw, 40px);
  max-width: 720px;
}
.section-title--light{ color: var(--cream); }
.section-sub{
  max-width: 620px;
  font-size: 17px;
}
.section-sub--light{ color: #C9BEB0; }

/* ---------- signature: pulse dot ---------- */
.pulse-dot{
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}
.pulse-dot::after{
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: var(--green);
  opacity: .45;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse{
  0%{ transform: scale(.6); opacity: .45; }
  80%{ transform: scale(1.9); opacity: 0; }
  100%{ transform: scale(1.9); opacity: 0; }
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  padding: 13px 22px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-sm{ padding: 9px 16px; font-size: 14px; }
.btn-lg{ padding: 15px 26px; font-size: 16px; }

.btn-primary{ background: var(--orange); color: #fff; }
.btn-primary:hover{ background: var(--orange-dark); color: #fff; }

.btn-outline{ border-color: rgba(244,236,223,.35); color: var(--cream); }
.btn-outline:hover{ border-color: var(--cream); background: rgba(244,236,223,.08); }

.btn-ghost{ color: var(--cream); }
.btn-ghost:hover{ color: var(--ember); }

.btn-outline-dark{ border-color: rgba(23,19,15,.35); color: var(--ink); }
.btn-outline-dark:hover{ border-color: var(--ink); background: rgba(23,19,15,.08); }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner{
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.logo{ display: flex; align-items: center; gap: 10px; flex: none; }
.logo-mark{
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  border-radius: 4px;
  font-size: 16px;
  flex: none;
}
.logo-mark img{ width: 100%; height: 100%; object-fit: contain; }
.logo-text{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--cream);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.logo-dot{ color: var(--orange); }
.logo-custom img{ max-height: 34px; width: auto; display: block; }

.main-nav{ display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.main-nav ul{ list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.main-nav li{ position: relative; }
.main-nav a{
  display: block;
  font-size: 14.5px; font-weight: 500; color: #C9BEB0;
  transition: color .15s ease;
}
.main-nav a:hover{ color: var(--cream); }
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a,
.main-nav a.is-active{ color: var(--cream); }

/* simple hover/focus dropdown for menu items with children — single column,
   not the full mega-panel used on the main site, kept intentionally light
   for a blog/KB nav */
.main-nav .menu-item-has-children > a{ display: flex; align-items: center; gap: 5px; }
.main-nav .menu-item-has-children > a::after{
  content: "▾"; font-size: 10px; transition: transform .15s ease;
}
.main-nav .menu-item-has-children:hover > a::after,
.main-nav .menu-item-has-children:focus-within > a::after{ transform: rotate(180deg); }
.main-nav .sub-menu{
  position: absolute; top: 100%; left: 0;
  min-width: 220px;
  margin-top: 14px;
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 200;
}
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu{
  opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav .sub-menu li{ position: static; }
.main-nav .sub-menu a{
  padding: 9px 12px; border-radius: 4px; font-size: 13.5px; color: var(--cream);
  white-space: nowrap;
}
.main-nav .sub-menu a:hover{ background: rgba(244,236,223,.06); color: var(--ember); }

.header-actions{ display: flex; align-items: center; gap: 10px; flex: none; }
.header-search-toggle{
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: none; border: 1px solid var(--line-dark); border-radius: var(--radius);
  color: var(--cream); cursor: pointer;
}
.header-search-toggle:hover{ border-color: var(--orange); color: var(--orange); }

.nav-toggle{
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 0;
  flex: none;
}
.nav-toggle span{ display: block; height: 2px; background: var(--cream); border-radius: 2px; }

@media (max-width: 880px){
  .main-nav{
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px 24px 16px;
    display: none;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .main-nav.is-open{ display: block; }
  .main-nav ul{ flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a{ padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
  .main-nav .menu-item-has-children > a::after{ display: none; }
  .main-nav .sub-menu{
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-top: 1px dashed var(--line-dark);
    border-radius: 0; margin: 0 0 0 12px; padding: 4px 0;
  }
  .nav-toggle{ display: flex; }
}

/* ===========================================================
   HERO
   =========================================================== */
.hero{
  background-color: var(--ink);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 64px 0 56px;
  position: relative;
}
.hero-inner{ max-width: 720px; }
.hero-title{
  font-size: clamp(32px, 4.6vw, 50px);
  color: var(--cream);
}
.hero-title .accent{ color: var(--orange); }
.hero-sub{
  font-size: 17px;
  color: #C9BEB0;
  max-width: 560px;
  margin-bottom: 0;
}
.hero-meta{ display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 18px; }

.hero--kb{
  background-image:
    radial-gradient(circle at 12% 18%, rgba(193,68,14,.28), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(79,155,110,.20), transparent 38%),
    repeating-linear-gradient(0deg, rgba(244,236,223,.05) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(244,236,223,.05) 0 1px, transparent 1px 46px);
}
.hero--article{
  padding-bottom: 48px;
  background-image:
    radial-gradient(circle at 90% 0%, rgba(233,129,46,.20), transparent 40%),
    repeating-linear-gradient(180deg, rgba(244,236,223,.05) 0 2px, transparent 2px 34px);
}
.hero--404{
  background-image:
    radial-gradient(circle at 50% 0%, rgba(193,68,14,.24), transparent 48%),
    repeating-linear-gradient(135deg, rgba(244,236,223,.05) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(45deg, rgba(244,236,223,.035) 0 1px, transparent 1px 38px);
}
.hero--search{
  background-image:
    radial-gradient(circle at 15% 0%, rgba(193,68,14,.22), transparent 40%),
    repeating-radial-gradient(circle at 85% 90%, rgba(244,236,223,.06) 0 2px, transparent 2px 38px);
}
.hero--archive{
  background-image:
    radial-gradient(circle at 88% 12%, rgba(79,155,110,.20), transparent 42%),
    repeating-radial-gradient(circle at 18% 82%, rgba(244,236,223,.05) 0 2px, transparent 2px 36px);
}

/* ===========================================================
   SECTION SCAFFOLD
   =========================================================== */
.section{ padding: 64px 0; }
.section--dark{ background: var(--ink); }
.section--tint{ background: var(--paper-dim); }
.section--tight{ padding: 40px 0; }

@media (max-width: 640px){
  .section{ padding: 44px 0; }
  .hero{ padding-top: 44px; padding-bottom: 40px; }
}

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer{ background: var(--ink); padding-top: 56px; }
.footer-grid{
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand p{ color: #9C9186; font-size: 14px; margin-top: 14px; max-width: 260px; }
.logo--footer{ margin-bottom: 4px; }
.footer-col h3{
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: #9C9186; font-weight: 600; margin-bottom: 16px;
}
.footer-col{ display: flex; flex-direction: column; gap: 10px; }
.footer-col ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-static{ color: #C9BEB0; font-size: 14.5px; }
.footer-col a:hover{ color: var(--ember); }

.footer-bottom{
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 20px 24px 26px;
}
.footer-bottom p{ color: #6E6459; font-size: 12.5px; margin: 0; font-family: var(--font-mono); }

@media (max-width: 820px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ===========================================================
   FAQ / ACCORDION (reusable inside article content or widgets)
   =========================================================== */
.faq-list{ margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.faq-item{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 22px;
}
.faq-item summary{
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "+";
  font-family: var(--font-mono);
  color: var(--orange);
  font-size: 20px;
  margin-left: 16px;
}
.faq-item[open] summary::after{ content: "\2013"; }
.faq-item p:last-child{ padding-bottom: 20px; margin: 0; }

/* ===========================================================
   BREADCRUMBS
   =========================================================== */
.breadcrumbs{
  font-family: var(--font-mono); font-size: 12.5px; color: #9C9186;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-bottom: 22px;
}
.breadcrumbs a{ color: #C9BEB0; }
.breadcrumbs a:hover{ color: var(--ember); }
.breadcrumbs .sep{ color: #6E6459; }
.breadcrumbs--light{ color: #6E6459; }

/* ===========================================================
   POST GRID / POST CARD  (blog index, archive, related posts)
   =========================================================== */
.post-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 8px;
}
.post-grid--2{ grid-template-columns: repeat(2, 1fr); }
.post-card{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.post-card:hover{ border-color: var(--orange); }
.post-card-thumb{
  aspect-ratio: 16 / 9; background: var(--paper-dim); overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.post-card-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.post-card-thumb--placeholder{
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(193,68,14,.14), transparent 45%),
    var(--paper-dim);
}
.post-card-thumb--placeholder .logo-mark{ opacity: .5; }
.post-card-body{ padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card-cat{
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 10px;
}
.post-card-cat a:hover{ color: var(--orange-dark); }
.post-card h3{ font-size: 18px; margin-bottom: 8px; line-height: 1.28; }
.post-card h3 a:hover{ color: var(--orange); }
.post-card p{ font-size: 14px; margin-bottom: 16px; flex: 1; }
.post-card-meta{
  display: flex; gap: 12px; align-items: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft);
  padding-top: 14px; border-top: 1px solid var(--line);
}

.post-card--featured{
  grid-column: span 2;
  display: grid; grid-template-columns: 1fr 1fr;
}
.post-card--featured .post-card-thumb{ border-bottom: none; border-right: 1px solid var(--line); aspect-ratio: auto; }
.post-card--featured .post-card-body{ justify-content: center; }
.post-card--featured h3{ font-size: 24px; }
.post-card--featured p{ font-size: 15px; }

@media (max-width: 980px){
  .post-grid{ grid-template-columns: repeat(2, 1fr); }
  .post-card--featured{ grid-column: span 2; grid-template-columns: 1fr; }
  .post-card--featured .post-card-thumb{ border-right: none; border-bottom: 1px solid var(--line); aspect-ratio: 16/9; }
}
@media (max-width: 640px){
  .post-grid{ grid-template-columns: 1fr; }
  .post-card--featured{ grid-column: span 1; }
}

/* ===========================================================
   CATEGORY / KB TOPIC PILLS
   =========================================================== */
.topic-rail{ display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.topic-pill{
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .03em; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px;
  transition: border-color .15s ease, color .15s ease;
}
.topic-pill:hover, .topic-pill.is-active{ border-color: var(--orange); color: var(--orange); }

.tag-list{ display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag-list a{
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--ink-soft); background: var(--paper-dim);
  border-radius: 4px; padding: 5px 10px;
}
.tag-list a:hover{ color: var(--orange); background: rgba(193,68,14,.08); }

/* ===========================================================
   ARTICLE / SINGLE POST
   =========================================================== */
.article-layout{
  display: grid; grid-template-columns: 1fr 300px; gap: 56px;
  align-items: start; padding: 56px 0 80px;
}
.article-main{ min-width: 0; }
.article-thumb{
  margin: 0 0 40px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}

.post-body{ font-size: 16.5px; line-height: 1.75; color: var(--ink); max-width: 720px; }
.post-body > *:first-child{ margin-top: 0; }
.post-body h2{ font-size: 26px; margin-top: 1.6em; }
.post-body h3{ font-size: 20px; margin-top: 1.4em; }
.post-body h4{ font-size: 17px; margin-top: 1.2em; }
.post-body p{ color: var(--ink); }
.post-body ul, .post-body ol{ margin: 0 0 1.2em; padding-left: 1.4em; color: var(--ink); }
.post-body li{ margin-bottom: .4em; }
.post-body li > ul, .post-body li > ol{ margin-top: .4em; }
.post-body a{ color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover{ color: var(--orange-dark); }
.post-body strong{ color: var(--ink); }
.post-body blockquote{
  margin: 1.6em 0; padding: 4px 24px;
  border-left: 3px solid var(--orange);
  background: var(--paper-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-body blockquote p{ font-size: 16px; font-style: italic; }
.post-body blockquote p:last-child{ margin-bottom: 0; }
.post-body code{
  font-family: var(--font-mono); font-size: .88em;
  background: var(--paper-dim); border: 1px solid var(--line);
  border-radius: 4px; padding: .15em .4em;
}
.post-body pre{
  background: var(--ink); color: var(--cream);
  border-radius: var(--radius); padding: 20px 22px; overflow-x: auto;
  margin: 1.6em 0;
}
.post-body pre code{ background: none; border: none; padding: 0; color: inherit; font-size: 13.5px; line-height: 1.6; }
.post-body img{ border-radius: var(--radius); margin: 1.6em 0; }
.post-body figure{ margin: 1.6em 0; }
.post-body figcaption{ font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; text-align: center; }
.post-body hr{ border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.post-body table{ width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 14.5px; }
.post-body th, .post-body td{ text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.post-body th{ font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.post-body .wp-block-quote{ border-left: 3px solid var(--orange); padding-left: 20px; margin: 1.6em 0; }

.post-meta-row{
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft);
  margin: 20px 0 0;
}
.post-meta-row .author{ display: flex; align-items: center; gap: 8px; }
.post-meta-row .author img{ width: 22px; height: 22px; border-radius: 50%; }

.share-row{ display: flex; gap: 10px; align-items: center; margin: 40px 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-row .label{ font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-right: 4px; }

.author-box{
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--paper-dim); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin: 40px 0;
}
.author-box img{ width: 56px; height: 56px; border-radius: 50%; flex: none; }
.author-box h4{ font-size: 15px; margin-bottom: 4px; }
.author-box p{ font-size: 13.5px; margin: 0; }

.post-nav{
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin: 40px 0 0;
}
.post-nav a{
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; transition: border-color .15s ease;
}
.post-nav a:hover{ border-color: var(--orange); }
.post-nav-label{ font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-bottom: 6px; }
.post-nav--next{ text-align: right; }
.post-nav-title{ font-family: var(--font-display); font-weight: 700; font-size: 14.5px; }

@media (max-width: 700px){ .post-nav{ grid-template-columns: 1fr; } }

/* ===========================================================
   SIDEBAR / WIDGETS
   =========================================================== */
.sidebar{ display: flex; flex-direction: column; gap: 28px; }
.widget{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.widget-title{
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 16px;
}
.widget ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.widget li > a, .widget li{ font-size: 14px; }
.widget a{
  display: flex; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink);
}
.widget li:last-child > a{ border-bottom: none; }
.widget a:hover{ color: var(--orange); }
.widget a .count{ font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); flex: none; }

.widget_search .search-form{ display: flex; gap: 8px; }
.search-form-input{
  flex: 1; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14px; background: var(--paper);
}
.search-form-input:focus-visible{ outline: 2px solid var(--orange); outline-offset: 2px; }
.search-form-submit{
  background: var(--orange); color: #fff; border: none; border-radius: var(--radius);
  padding: 13px 16px; cursor: pointer; font-weight: 600;
}
.search-form-submit:hover{ background: var(--orange-dark); }

.widget-cta{
  background: var(--ink); border-radius: var(--radius); padding: 26px 22px;
  text-align: center;
}
.widget-cta h4{ color: var(--cream); font-size: 16px; margin-bottom: 8px; }
.widget-cta p{ color: #9C9186; font-size: 13px; margin-bottom: 18px; }

.recent-post-item{ display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.recent-post-item:last-child{ border-bottom: none; }
.recent-post-thumb{ width: 56px; height: 56px; border-radius: 4px; overflow: hidden; flex: none; background: var(--paper-dim); }
.recent-post-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.recent-post-title{ font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.recent-post-title a:hover{ color: var(--orange); }
.recent-post-date{ font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); margin-top: 4px; }

@media (max-width: 980px){
  .article-layout{ grid-template-columns: 1fr; gap: 40px; }
}

/* ===========================================================
   PAGINATION
   =========================================================== */
.pagination{
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-top: 48px; font-family: var(--font-mono); font-size: 13.5px;
}
.pagination a, .pagination span{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink-soft);
}
.pagination a:hover{ border-color: var(--orange); color: var(--orange); }
.pagination .current{ background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pagination .dots{ border: none; }

/* ===========================================================
   COMMENTS
   =========================================================== */
.comments-area{ margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.comments-title{ font-size: 22px; }
.comment-list{ list-style: none; margin: 24px 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.comment-body{ background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.comment-author{ font-family: var(--font-display); font-weight: 700; font-size: 14.5px; }
.comment-metadata{ font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); margin-bottom: 10px; }
.comment-content p{ font-size: 14.5px; margin-bottom: .6em; }
.comment-reply-link{ font-family: var(--font-mono); font-size: 12px; color: var(--orange); }
.comment-respond{ margin-top: 32px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea{
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14.5px; background: #fff; margin-bottom: 14px;
}
.comment-form textarea{ min-height: 130px; }
.comment-form label{ display: block; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 6px; }
.comment-form .comment-form-cookies-consent{ display: flex; align-items: center; gap: 8px; }
.comment-form .comment-form-cookies-consent label{ display: inline; margin: 0; text-transform: none; font-family: var(--font-body); font-size: 13px; }

/* ===========================================================
   404 / EMPTY STATE
   =========================================================== */
.empty-state{ text-align: center; padding: 40px 0; }
.empty-state .eyebrow{ justify-content: center; }
.empty-state h1{ font-size: clamp(32px, 5vw, 54px); }
.empty-state .btn-row{ display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

.cta-band{ background: var(--orange); }
.cta-inner{ text-align: center; max-width: 640px; margin: 0 auto; }
.cta-band h2{ color: #fff; font-size: clamp(24px, 3.2vw, 32px); }
.cta-band p{ color: rgba(255,255,255,.85); font-size: 16px; margin-bottom: 24px; }
.cta-band .btn-row{ display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
