/*
Theme Name:  CryptoScript Editorial
Theme URI:   https://cryptoexchangeclonescript.com
Author:      Pixel Web Solutions
Author URI:  https://pixelwebsolutions.com
Description: A clean, editorial WordPress theme built for crypto & tech blogs. Matches the cryptoexchangeclonescript.com brand system — warm off-white background, monospace accents, serif headings, badge categories, and keyword pill tags.
Version:     1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cryptoscript
Tags: blog, custom-menu, custom-logo, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:             #f5f4f0;
  --bg-alt:         #eeede8;
  --card:           #ffffff;
  --text-primary:   #18181a;
  --text-secondary: #52524f;
  --text-tertiary:  #88887f;
  --border:         rgba(0,0,0,0.09);
  --border-strong:  rgba(0,0,0,0.17);
  --accent:         #1a3fbd;
  --accent-bg:      #eff3ff;
  --accent-hover:   #1230a0;
  --danger:         #c0392b;
  --radius:         9px;
  --radius-lg:      13px;
  --radius-pill:    99px;
  --mono:           'Courier New', Courier, monospace;
  --sans:           'Plus Jakarta Sans', sans-serif;
  --serif:          'Playfair Display', Georgia, serif;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.06);
  --shadow:         0 2px 8px rgba(0,0,0,0.08);
  --transition:     160ms ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

img, video { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.5em; }

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

/* ============================================================
   LAYOUT
   ============================================================ */
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 80px;
}

.content-area { min-width: 0; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  border-bottom: 2px solid var(--text-primary);
  padding: 32px 0 18px;
  margin-bottom: 0;
}

.site-header__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-header__brand { flex: 1; min-width: 200px; }

.site-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  background: var(--text-primary);
  color: var(--bg);
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
  letter-spacing: .04em;
  text-transform: lowercase;
}

.site-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1.2;
}

.site-title a { color: var(--text-primary); }
.site-title a:hover { color: var(--accent); }

.site-description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-family: var(--sans);
}

.custom-logo-link { display: block; margin-bottom: 8px; }
.custom-logo { max-height: 40px; width: auto; }

/* ============================================================
   PRIMARY NAVIGATION
   ============================================================ */
.site-nav { display: flex; align-items: center; gap: 2px; }

.site-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.site-nav a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius);
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--accent);
  background: var(--accent-bg);
  border-color: rgba(26,63,189,0.15);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 6px 10px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: .04em;
}

.nav-toggle:hover { background: var(--card); }

/* Search form in header */
.header-search { display: flex; }

.header-search input[type="search"] {
  font-family: var(--sans);
  font-size: 12.5px;
  border: 1px solid var(--border-strong);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 6px 12px;
  background: var(--card);
  color: var(--text-primary);
  outline: none;
  width: 180px;
}

.header-search input[type="search"]:focus { border-color: var(--accent); }

.header-search button {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--text-primary);
  color: var(--bg);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 6px 12px;
  cursor: pointer;
  letter-spacing: .04em;
}

.header-search button:hover { background: var(--accent); }

/* Nav bar row under brand */
.site-nav-row {
  border-top: 1px solid var(--border);
  padding: 12px 0 0;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  line-height: 1.4;
}

.badge-hp    { background: #EEEDFE; color: #3C3489; }
.badge-h     { background: #E1F5EE; color: #085041; }
.badge-m     { background: #FAEEDA; color: #633806; }
.badge-lt    { background: #FAECE7; color: #712B13; }
.badge-tech  { background: #E6F1FB; color: #0C447C; }
.badge-default { background: var(--bg-alt); color: var(--text-secondary); }

/* Category term badges (auto-applied) */
.cat-badge-hub       { background: #E1F5EE; color: #085041; }
.cat-badge-technical { background: #E6F1FB; color: #0C447C; }
.cat-badge-long-tail { background: #FAECE7; color: #712B13; }
.cat-badge-guide     { background: #FAEEDA; color: #633806; }
.cat-badge-security  { background: #FAECE7; color: #712B13; }
.cat-badge-compliance{ background: #E6F1FB; color: #0C447C; }
.cat-badge-business  { background: #FAEEDA; color: #633806; }

/* ============================================================
   KEYWORD PILLS
   ============================================================ */
.kw-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }

.kw-pill {
  font-size: 11.5px;
  font-family: var(--mono);
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 3px 9px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.kw-pill.primary {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

.kw-pill a { color: inherit; }
.kw-pill a:hover { color: var(--accent); }

/* ============================================================
   POST ROW (Index / Archive list item)
   ============================================================ */
.post-list { display: flex; flex-direction: column; gap: 0; }

.post-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  margin-bottom: 5px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.post-row:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.post-row__num {
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--text-tertiary);
  min-width: 28px;
  padding-top: 2px;
  flex-shrink: 0;
}

.post-row__badge { flex-shrink: 0; padding-top: 1px; }

.post-row__body { flex: 1; min-width: 0; }

.post-row__title {
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.45;
  font-weight: 500;
  display: block;
  margin-bottom: 3px;
}

.post-row__title a { color: inherit; }
.post-row__title a:hover { color: var(--accent); }

.post-row__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-row__date,
.post-row__author,
.post-row__read-time {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-tertiary);
}

.post-row__kw {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-tertiary);
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-top: 2px;
  flex-shrink: 0;
}

.post-row__link {
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 3px 8px;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
  transition: all var(--transition);
}

.post-row__link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============================================================
   POST CARD (featured / alternate view)
   ============================================================ */
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.post-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.post-card__image { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.post-card:hover .post-card__image img { transform: scale(1.02); }

.post-card__body { padding: 20px 22px; }

.post-card__badge { margin-bottom: 10px; }

.post-card__title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.2px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.post-card__title a { color: var(--text-primary); }
.post-card__title a:hover { color: var(--accent); }

.post-card__excerpt {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  flex-wrap: wrap;
}

.post-card__meta {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-tertiary);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.read-more {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--accent);
  letter-spacing: .03em;
}

.read-more:hover { color: var(--accent-hover); }

/* ============================================================
   FEATURED POST (top of blog home)
   ============================================================ */
.featured-post {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.featured-post__eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.featured-post__title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.4px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.featured-post__title a { color: var(--text-primary); }
.featured-post__title a:hover { color: var(--accent); }

.featured-post__excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 560px;
}

.featured-post__meta {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-tertiary);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.featured-post__image {
  width: 200px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
}

.featured-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   CLUSTER SECTION HEADER
   ============================================================ */
.cluster-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-tertiary);
  margin-bottom: 11px;
  padding-left: 2px;
}

.cluster { margin-bottom: 32px; }

/* ============================================================
   PAGE HEADER (Archive / Search / etc.)
   ============================================================ */
.page-header {
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 18px;
  margin-bottom: 32px;
}

.page-header .site-tag { margin-bottom: 8px; }

.page-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.4px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.page-description {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-wrap {
  padding: 44px 0 80px;
}

.post-header {
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 20px;
  margin-bottom: 32px;
}

.post-header__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.post-header__back {
  font-size: 11.5px;
  font-family: var(--mono);
  color: var(--text-tertiary);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 2px 8px;
  transition: all var(--transition);
}

.post-header__back:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-bg);
}

.entry-title {
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.entry-meta__item {
  font-size: 11.5px;
  font-family: var(--mono);
  color: var(--text-tertiary);
}

.entry-meta__item a { color: var(--text-secondary); }
.entry-meta__item a:hover { color: var(--accent); }

/* ============================================================
   ARCH NOTE / CALLOUT
   ============================================================ */
.arch-note {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 20px 0;
  line-height: 1.7;
}

.arch-note strong { color: var(--text-primary); }

/* ============================================================
   ARTICLE CONTENT TYPOGRAPHY
   ============================================================ */
.entry-content {
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-primary);
  max-width: 700px;
}

.entry-content > * + * { margin-top: 1.3em; }

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: var(--serif);
  color: var(--text-primary);
  line-height: 1.3;
  margin-top: 1.8em;
  margin-bottom: .6em;
  letter-spacing: -.2px;
}

.entry-content h2 { font-size: 1.7rem; border-bottom: 1px solid var(--border); padding-bottom: .4em; }
.entry-content h3 { font-size: 18px; }
.entry-content h4 { font-size: 15px; font-family: var(--sans); font-weight: 700; }
.entry-content h5 { font-size: 13px; font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-tertiary); }

.entry-content p { color: var(--text-secondary); }
.entry-content strong { color: var(--text-primary); font-weight: 600; }
.entry-content em { font-style: italic; }

.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: var(--accent); }

.entry-content ul,
.entry-content ol {
  padding-left: 1.6em;
  color: var(--text-secondary);
}

.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--text-tertiary); }

.entry-content blockquote {
  border-left: 3px solid var(--accent);
  margin-left: 0;
  padding: 12px 20px;
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.entry-content blockquote cite {
  display: block;
  font-size: 12px;
  font-style: normal;
  font-family: var(--mono);
  color: var(--text-tertiary);
  margin-top: 8px;
}

.entry-content code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text-primary);
}

.entry-content pre {
  background: var(--text-primary);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.entry-content pre code {
  background: none;
  border: none;
  color: #e8e6e0;
  font-size: 13px;
  padding: 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 1.5em 0;
}

.wp-block-table thead {border-bottom:0px solid;}

.entry-content th {
  background: var(--text-primary);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 8px 12px;
  text-align: left;
}

.entry-content td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--card);
  font-size:16px;
}

.entry-content tr:nth-child(even) td { background: var(--bg); }

.entry-content img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--mono);
  margin-top: 8px;
  text-align: center;
}

.entry-content .wp-caption { max-width: 100%; }
.entry-content .aligncenter { margin: 1.5em auto; text-align: center; display: block; }
.entry-content .alignleft { float: left; margin: .5em 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: .5em 0 1em 1.5em; }

/* ============================================================
   ENTRY FOOTER (tags, sharing)
   ============================================================ */
.entry-footer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.entry-footer__label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

/* ============================================================
   POST NAVIGATION
   ============================================================ */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
}

.nav-link {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: all var(--transition);
}

.nav-link:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

.nav-link--prev { grid-column: 1; }
.nav-link--next { grid-column: 2; text-align: right; }

.nav-link__direction {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-tertiary);
  font-family: var(--mono);
  display: block;
  margin-bottom: 4px;
}

.nav-link__title {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
  display: block;
}

.nav-link:hover .nav-link__title { color: var(--accent); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.pagination a,
.pagination .current,
.pagination span {
  font-size: 12px;
  font-family: var(--mono);
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  display: inline-block;
  transition: all var(--transition);
  min-width: 34px;
  text-align: center;
}

.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

.pagination .current {
  background: var(--text-primary);
  color: var(--bg);
  border-color: var(--text-primary);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: 24px; }

.widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.widget-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-tertiary);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--sans);
}

.widget ul { list-style: none; padding: 0; }
.widget li { padding: 5px 0; border-bottom: 1px solid var(--border); }
.widget li:last-child { border-bottom: none; }

.widget li a {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget li a:hover { color: var(--accent); }

.widget li .count {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-tertiary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 1px 7px;
}

/* Tag cloud widget */
.widget .tagcloud { display: flex; flex-wrap: wrap; gap: 5px; }
.widget .tagcloud a {
  font-size: 11.5px !important;
  font-family: var(--mono);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 3px 8px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.widget .tagcloud a:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}

/* Search widget */
.widget .search-form { display: flex; }
.widget .search-form input[type="search"] {
  flex: 1;
  font-size: 12.5px;
  font-family: var(--sans);
  border: 1px solid var(--border-strong);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 7px 11px;
  background: var(--bg);
  color: var(--text-primary);
  outline: none;
  min-width: 0;
}

.widget .search-form input[type="search"]:focus { border-color: var(--accent); }

.widget .search-form button,
.widget .search-form input[type="submit"] {
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 700;
  background: var(--text-primary);
  color: var(--bg);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 7px 12px;
  cursor: pointer;
  letter-spacing: .04em;
  white-space: nowrap;
}

.widget .search-form button:hover,
.widget .search-form input[type="submit"]:hover { background: var(--accent); }

/* Recent Posts in sidebar */
.recent-post-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.recent-post-item:last-child { border-bottom: none; }

.recent-post-item__title {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
  display: block;
  margin-bottom: 2px;
}

.recent-post-item__title:hover { color: var(--accent); }

.recent-post-item__date {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-tertiary);
}

/* ============================================================
   STRATEGY GRID (reusable)
   ============================================================ */
.strategy-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-top: 32px;
}

.strategy-box__title {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.strategy-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.strategy-item h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.strategy-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.strategy-item strong { color: var(--text-primary); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--text-primary);
  max-width: 700px;
}

.comments-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.comment-list { list-style: none; padding: 0; }

.comment-list .children {
  list-style: none;
  padding-left: 24px;
  border-left: 2px solid var(--border);
  margin-left: 20px;
}

.comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.comment:last-child { border-bottom: none; }

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.comment-author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.comment-avatar { border-radius: 50%; border: 1px solid var(--border); }

.comment-date {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-tertiary);
}

.comment-body { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; }
.comment-body p { margin-bottom: .5em; }

.reply a {
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text-tertiary);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 2px 8px;
  margin-top: 6px;
  display: inline-block;
}

.reply a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-bg); }

/* Comment form */
.comment-respond {
  margin-top: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

.comment-reply-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
}

.comment-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-tertiary);
  margin-bottom: 5px;
  font-family: var(--sans);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 13.5px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 9px 12px;
  background: var(--bg);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 14px;
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); background: var(--card); }

.comment-form textarea { min-height: 120px; resize: vertical; }

.comment-form-comment { margin-bottom: 0; }

.form-submit { margin-top: 8px; }

.comment-form input[type="submit"] {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--text-primary);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  padding: 10px 22px;
  cursor: pointer;
  transition: background var(--transition);
}

.comment-form input[type="submit"]:hover { background: var(--accent); }

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.page-content {
  max-width: 700px;
  padding: 44px 0 80px;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  text-align: center;
  padding: 80px 24px;
}

.error-404__code {
  font-family: var(--mono);
  font-size: 72px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 12px;
}

.error-404__title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-404__desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-info {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.search-info strong { color: var(--text-primary); }

.no-results {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.no-results p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 24px;
  margin-top: auto;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 48px;
    margin-bottom: 28px;
}

.footer-col__heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 5px; }
.footer-col li a {
  font-size: 12.5px;
  color: var(--text-secondary);
}
.footer-col li a:hover { color: var(--accent); }

.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer__copy {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--mono);
}

.site-footer__copy a { color: var(--text-tertiary); }
.site-footer__copy a:hover { color: var(--accent); }

.footer-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-nav a {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--mono);
}
.footer-nav a:hover { color: var(--accent); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.text-mono { font-family: var(--mono); }
.text-serif { font-family: var(--serif); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 8px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg);
  border: 1px solid var(--text-primary);
}

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

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-bg);
}

/* Blog home top padding */
.blog-home-wrap { padding: 25px 0 80px; }
h1.page-title {
    text-align: center;
    font-size: 32px;
}
/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    h1.page-title {
    text-align: center;
    font-size: 24px;
 }
  .with-sidebar {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sidebar { position: static; }

  .featured-post {
    grid-template-columns: 1fr;
  }
  .featured-post__image { width: 100%; aspect-ratio: 16/9; }

  .site-header__inner { flex-direction: column; align-items: flex-start; }

  .site-nav { display: none; width: 100%; }
  .site-nav.is-active { display: flex; }
  .site-nav ul { flex-direction: column; gap: 2px; width: 100%; }
  .site-nav a { display: block; }

  .nav-toggle { display: block; }

  .strategy-grid { grid-template-columns: 1fr; }

  .post-navigation { grid-template-columns: 1fr; }
  .nav-link--next { grid-column: 1; text-align: left; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 20px; }

  .post-row__kw { display: none; }
  .post-row { flex-wrap: wrap; }

  .page-title { font-size: 20px; }
  .entry-title { font-size: 22px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .post-row { padding: 10px; }
  .post-row__link { display: none; }
}
