/*
Theme Name: StackTweak
Theme URI: https://stacktweak.com
Author: Faizan E Muhammad
Author URI: https://stacktweak.com
Description: A fast, lightweight WordPress theme for Windows error-fix and missing DLL recovery websites. Includes a searchable File Finder (custom post type), Customizer controls, Google AdSense slots, a secure contact form, SEO schema output and one-click demo content.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stacktweak
Tags: blog, two-columns, custom-menu, custom-logo, featured-images, translation-ready, threaded-comments, right-sidebar
*/

/* ==========================================================================
   1. Tokens & base
   ========================================================================== */
:root {
  --navy-800: #0B2545;
  --navy-900: #06172e;
  --navy-700: #133863;
  --green-500: #239B56;
  --green-600: #1e8349;
  --green-700: #176739;
  --gray-50: #F8F9FA;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --radius: .75rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, .12);
  --shadow-xl: 0 20px 35px rgba(0, 0, 0, .25);
  --mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--green-600); }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 { color: var(--navy-800); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
.st-mono { font-family: var(--mono); }

.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 !important;
  width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus, .skip-link:focus {
  background: #fff; color: var(--navy-800); clip: auto !important; clip-path: none;
  display: block; height: auto; width: auto; left: 8px; top: 8px; padding: 12px 18px;
  z-index: 100000; font-weight: 700; border-radius: .375rem; box-shadow: var(--shadow-md);
}

.st-container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .st-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .st-container { padding: 0 2rem; } }
.st-main { flex-grow: 1; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.st-stack > * + * { margin-top: 2rem; }
.st-stack-sm > * + * { margin-top: 1.5rem; }

/* ==========================================================================
   2. Header
   ========================================================================== */
.st-header {
  background: var(--navy-800); color: #fff; position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-md); border-bottom: 4px solid var(--green-500);
}
.admin-bar .st-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .st-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .st-header { top: 0; } }

.st-header-inner { display: flex; align-items: center; justify-content: space-between; height: 5rem; gap: 1rem; }
.st-brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; min-width: 0; }
.st-brand:hover { color: #fff; }
.st-logo-box {
  width: 3rem; height: 3rem; flex: 0 0 3rem; background: #fff; border-radius: .5rem; padding: .375rem;
  border: 1px solid var(--green-500); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
}
.st-logo-box svg, .st-logo-box img, .st-logo-box .custom-logo-link { width: 100%; height: 100%; display: block; }
.st-logo-box img { object-fit: contain; }
.st-brand-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; display: block; }
.st-brand-name span { color: var(--green-500); }
.st-tagline { display: block; font-size: .68rem; color: var(--gray-300); font-weight: 500; letter-spacing: .05em; }
@media (max-width: 420px) { .st-tagline { display: none; } }

.st-nav .st-menu, .st-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.st-nav a {
  display: block; padding: .5rem .75rem; border-radius: .375rem; color: var(--gray-300);
  font-size: .875rem; font-weight: 600; text-decoration: none; transition: color .15s;
}
.st-nav a:hover { color: var(--green-500); }
.st-nav .current-menu-item > a, .st-nav .current_page_item > a, .st-nav .current-menu-ancestor > a { color: #fff; font-weight: 700; }

.st-header-actions { display: flex; align-items: center; gap: .75rem; }
.st-icon-btn {
  background: var(--navy-900); color: var(--green-500); border: 1px solid #374151; border-radius: .5rem;
  padding: .5rem .7rem; font-size: 1.1rem; line-height: 1; transition: color .15s;
}
.st-icon-btn:hover, .st-icon-btn:focus-visible { color: #fff; }
.st-menu-toggle { display: none; background: none; border: 0; color: var(--gray-300); font-size: 1.6rem; padding: .25rem .5rem; }
.st-menu-toggle:hover { color: #fff; }

@media (max-width: 767px) {
  .st-menu-toggle { display: block; }
  .st-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-900);
    border-top: 1px solid #1f2937; padding: .5rem 1rem 1rem;
  }
  body.nav-open .st-nav { display: block; }
  .st-nav .st-menu, .st-nav ul { flex-direction: column; gap: .25rem; }
  .st-nav a { font-size: 1rem; padding: .6rem .75rem; }
  .st-nav a:hover { background: var(--navy-800); }
}

/* ==========================================================================
   3. Ads
   ========================================================================== */
.st-ad { text-align: center; margin: 1rem 0; overflow: hidden; }
.st-ad-label { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-400); margin-bottom: .25rem; }
.st-ad-placeholder {
  background-image: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 10px, #e2e8f0 10px, #e2e8f0 20px);
  border: 1px solid var(--gray-300); border-radius: .5rem; padding: .75rem;
  font-size: .75rem; font-weight: 500; color: var(--gray-500);
}
.st-ad-rect .st-ad-placeholder { min-height: 250px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); }
.st-footer .st-ad-placeholder { border-color: #374151; color: var(--gray-400); }
.st-ad-top { margin-top: 1rem; margin-bottom: 0; }

/* ==========================================================================
   4. Hero, stats, cards
   ========================================================================== */
.st-hero {
  background: linear-gradient(to right, var(--navy-800), var(--navy-900), var(--navy-800));
  border: 1px solid #1f2937; border-radius: var(--radius-lg); padding: 2rem; color: #fff; box-shadow: var(--shadow-xl);
}
@media (min-width: 640px) { .st-hero { padding: 3rem; } }
.st-hero-inner { max-width: 48rem; }
.st-badge {
  display: inline-block; background: var(--green-500); color: #fff; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; padding: .25rem .75rem; border-radius: 999px; margin-bottom: 1rem;
}
.st-hero h1 { color: #fff; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 1rem; }
@media (min-width: 640px) { .st-hero h1 { font-size: 3rem; } }
.st-hero p { color: var(--gray-300); font-size: 1.05rem; margin-bottom: 2rem; }

.st-hero-search {
  background: #fff; border-radius: var(--radius); padding: .5rem; box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; gap: .5rem; align-items: stretch;
}
@media (min-width: 640px) { .st-hero-search { flex-direction: row; align-items: center; } }
.st-hero-search .st-field { display: flex; align-items: center; flex: 1; padding-left: .75rem; color: var(--gray-500); }
.st-hero-search .st-field i { color: var(--green-500); font-size: 1.1rem; margin-right: .75rem; }
.st-hero-search input[type="search"] {
  width: 100%; border: 0; outline: 0; padding: .6rem 0; color: var(--gray-800); font-family: var(--mono); font-size: .95rem; background: transparent;
}
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: var(--green-500); color: #fff;
  font-weight: 700; border: 0; border-radius: .5rem; padding: .8rem 1.5rem; text-decoration: none; white-space: nowrap;
  box-shadow: var(--shadow-sm); transition: background .15s;
}
.st-btn:hover { background: var(--green-600); color: #fff; }
.st-btn-block { width: 100%; }

.st-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .st-stats { grid-template-columns: repeat(4, 1fr); } }
.st-stat {
  background: #fff; padding: 1.1rem; border-radius: var(--radius); border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 1rem;
}
.st-stat-icon {
  width: 3rem; height: 3rem; flex: 0 0 3rem; background: var(--blue-50); color: var(--green-500); border-radius: .5rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.st-stat-title { font-size: 1.1rem; font-weight: 700; color: var(--navy-800); line-height: 1.2; }
.st-stat-text { font-size: .75rem; color: var(--gray-500); }

.st-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .st-layout { grid-template-columns: 2fr 1fr; } }
.st-sidebar > * + * { margin-top: 1.5rem; }

.st-section-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--gray-200); padding-bottom: .75rem; margin-bottom: 1.25rem; gap: 1rem; }
.st-section-head h2 { font-size: 1.5rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: .5rem; }
.st-section-head h2 i { color: var(--green-500); }
.st-link-strong { font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }

.st-card {
  background: #fff; padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
  transition: box-shadow .15s;
}
.st-card:hover { box-shadow: var(--shadow-md); }
.st-card + .st-card { margin-top: 1rem; }
.st-card-meta { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; flex-wrap: wrap; }
.st-pill {
  display: inline-block; background: var(--blue-50); color: var(--navy-800); border: 1px solid var(--blue-100);
  font-size: .65rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; text-transform: uppercase; text-decoration: none;
}
.st-date { font-size: .75rem; color: var(--gray-400); }
.st-card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.st-card-title a { color: var(--navy-800); text-decoration: none; }
.st-card-title a:hover { color: var(--green-600); }
.st-card-excerpt { font-size: .8rem; color: var(--gray-600); margin-bottom: 1rem; }
.st-card-link { font-size: .8rem; font-weight: 700; text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.st-card-thumb { display: block; margin: -1.5rem -1.5rem 1rem; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.st-card-thumb img { display: block; width: 100%; }

.st-grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .st-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .st-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.st-grid-3 .st-card { display: flex; flex-direction: column; justify-content: space-between; margin: 0; }
.st-grid-3 .st-card-title { font-size: 1.1rem; }
.st-btn-ghost {
  display: block; text-align: center; background: var(--gray-100); color: var(--navy-800); font-size: .75rem; font-weight: 700;
  padding: .55rem; border-radius: .5rem; text-decoration: none; transition: background .15s, color .15s;
}
.st-btn-ghost:hover { background: var(--navy-800); color: #fff; }
.st-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .st-grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* Panels & widgets */
.st-panel { background: #fff; padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.st-panel h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: .5rem; }
.st-panel-lead { color: var(--gray-600); font-size: .9rem; margin: 0; }
.st-panel-dark { background: var(--navy-800); color: #fff; border-color: #374151; padding: 2rem; border-radius: var(--radius); }
.st-panel-dark h1 { color: #fff; font-size: 1.9rem; font-weight: 800; margin-bottom: .5rem; }
.st-panel-dark p { color: var(--gray-300); font-size: .9rem; margin: 0; }
.st-eyebrow { color: var(--green-600); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }

.st-widget { background: #fff; padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.st-widget h3, .st-widget .widget-title { font-size: 1rem; font-weight: 700; }
.st-widget ul { padding-left: 1.1rem; margin: 0; font-size: .875rem; }
.st-widget-dark { background: var(--navy-800); color: #fff; padding: 1.5rem; border-radius: var(--radius); border: 1px solid #374151; box-shadow: var(--shadow-md); }
.st-widget-dark h3 { color: #fff; font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.st-widget-dark h3 i { color: var(--green-500); }
.st-widget-dark p { font-size: .75rem; color: var(--gray-300); margin-bottom: 1rem; }
.st-widget-dark select {
  width: 100%; background: var(--navy-900); border: 1px solid #374151; color: #fff; border-radius: .5rem; padding: .75rem; font-size: .875rem;
}
.st-widget-dark select:focus { outline: 0; border-color: var(--green-500); }

.st-author-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.st-avatar {
  width: 3rem; height: 3rem; flex: 0 0 3rem; border-radius: 50%; background: var(--navy-800); color: #fff; font-weight: 700;
  border: 2px solid var(--green-500); display: flex; align-items: center; justify-content: center;
}
.st-avatar, .st-profile-avatar { overflow: hidden; }
.st-avatar img, .st-profile-avatar img, .st-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.st-author-name { font-weight: 700; color: var(--navy-800); font-size: .875rem; }
.st-author-role { font-size: .75rem; color: var(--green-600); font-weight: 600; }
.st-author-quote { font-size: .75rem; color: var(--gray-600); margin-bottom: .75rem; }

/* Filters */
.st-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.st-filter {
  background: var(--gray-200); color: var(--gray-700); font-size: .75rem; font-weight: 600; padding: .5rem 1rem; border-radius: 999px; text-decoration: none; transition: background .15s;
}
.st-filter:hover { background: var(--gray-300); color: var(--gray-800); }
.st-filter.is-active { background: var(--navy-800); color: #fff; }

/* ==========================================================================
   5. File finder table
   ========================================================================== */
.st-search-field { position: relative; max-width: 42rem; }
.st-search-field i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--gray-400); }
.st-search-field input {
  width: 100%; padding: .75rem 1rem .75rem 2.5rem; border: 1px solid var(--gray-300); border-radius: .5rem; font-family: var(--mono); font-size: .875rem;
}
.st-search-field input:focus { outline: 2px solid var(--green-500); outline-offset: 0; border-color: transparent; }
.st-table-wrap { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); overflow: hidden; }
.st-table-scroll { overflow-x: auto; }
.st-table { width: 100%; border-collapse: collapse; text-align: left; }
.st-table thead tr { background: var(--navy-800); color: #fff; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.st-table th, .st-table td { padding: 1rem; vertical-align: top; }
.st-table tbody tr { border-top: 1px solid var(--gray-200); }
.st-table tbody tr:hover { background: var(--gray-50); }
.st-table td { font-size: .75rem; color: var(--gray-600); }
.st-table td.st-file { font-family: var(--mono); font-weight: 700; color: var(--navy-800); }
.st-table td.st-solution { font-weight: 500; color: var(--gray-800); }
.st-btn-sm { font-size: .75rem; padding: .4rem .8rem; border-radius: .3rem; font-weight: 700; }
.st-empty { padding: 2rem; text-align: center; font-size: .875rem; color: var(--gray-500); }

/* ==========================================================================
   6. Single / prose
   ========================================================================== */
.st-article-head h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.01em; margin: .5rem 0 .75rem; }
@media (min-width: 768px) { .st-article-head h1 { font-size: 2.25rem; } }
.st-article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .8rem; color: var(--gray-500); }
.st-article-meta i { color: var(--green-500); margin-right: .25rem; }
.st-article-thumb { margin: 1.25rem 0 0; border-radius: var(--radius); overflow: hidden; }
.st-article-thumb img { display: block; width: 100%; }

.st-prose { font-size: 1rem; color: var(--gray-700); line-height: 1.75; margin-top: 1.5rem; overflow-wrap: break-word; }
.st-prose > *:first-child { margin-top: 0; }
.st-prose h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 .75rem; }
.st-prose h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.st-prose ul, .st-prose ol { padding-left: 1.4rem; margin: 0 0 1.25em; }
.st-prose li { margin-bottom: .35rem; }
.st-prose code { font-family: var(--mono); font-size: .85em; background: var(--gray-100); border: 1px solid var(--gray-200); padding: .1em .4em; border-radius: .3rem; color: var(--navy-800); }
.st-prose pre { font-family: var(--mono); background: var(--navy-900); color: #4ade80; padding: 1rem; border-radius: .5rem; overflow-x: auto; font-size: .8rem; }
.st-prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.st-prose blockquote { border-left: 4px solid var(--green-500); background: var(--gray-50); margin: 1.5rem 0; padding: .75rem 1rem; font-style: italic; }
.st-prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.25em; font-size: .9rem; }
.st-prose th, .st-prose td { border: 1px solid var(--gray-200); padding: .5rem .75rem; text-align: left; }
.st-prose th { background: var(--gray-100); }
.st-prose img { border-radius: .5rem; }
.st-prose .alignleft { float: left; margin: 0 1rem 1rem 0; }
.st-prose .alignright { float: right; margin: 0 0 1rem 1rem; }
.st-prose .aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption, .wp-caption-text, .gallery-caption { font-size: .8rem; color: var(--gray-500); }

.st-code {
  position: relative; background: var(--navy-900); border-radius: .5rem; margin: 1rem 0; padding: 1rem; font-family: var(--mono);
}
.st-code pre { margin: 0; padding: 0; background: none; color: #4ade80; font-size: .8rem; overflow-x: auto; white-space: pre; }
.st-code pre code { color: inherit; }
.st-code-copy {
  position: absolute; right: .5rem; top: .5rem; background: #1f2937; color: #fff; border: 0; font-size: .65rem; padding: .25rem .6rem; border-radius: .3rem;
}
.st-code-copy:hover { background: #374151; }
.st-code pre { padding-right: 3.5rem; }

.st-warning {
  background: #fefce8; border-left: 4px solid #facc15; padding: 1rem; border-radius: .25rem; font-size: .8rem; color: #854d0e; margin: 1.25rem 0;
}
.st-warning p:last-child { margin-bottom: 0; }

.st-review-bar {
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1rem; margin-top: 2rem;
  display: flex; align-items: center; gap: .75rem; font-size: .8rem; color: var(--gray-600);
}
.st-tags { margin-top: 1.5rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.st-related { margin-top: 2rem; }
.st-related h2 { font-size: 1.25rem; font-weight: 800; }

.st-breadcrumbs { font-size: .75rem; color: var(--gray-500); margin-bottom: .5rem; }
.st-breadcrumbs a { color: var(--gray-500); text-decoration: none; }
.st-breadcrumbs a:hover { color: var(--green-600); }

/* About */
.st-profile { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.st-profile-head { background: var(--navy-800); color: #fff; padding: 2rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
@media (min-width: 640px) { .st-profile-head { padding: 3rem; flex-direction: row; text-align: left; } }
.st-profile-avatar {
  width: 7rem; height: 7rem; flex: 0 0 7rem; background: #fff; color: var(--navy-800); border-radius: 50%; border: 4px solid var(--green-500);
  font-weight: 800; font-size: 1.9rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-xl);
}
.st-profile-head h1 { color: #fff; font-size: 1.9rem; font-weight: 800; margin: .5rem 0 .25rem; }
.st-profile-head p { color: var(--gray-300); font-size: .875rem; margin: 0; }
.st-profile-body { padding: 2rem; }
@media (min-width: 640px) { .st-profile-body { padding: 3rem; } }
.st-profile-body h2 { font-size: 1.5rem; border-bottom: 1px solid var(--gray-200); padding-bottom: .5rem; }
.st-pillars { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin: 1.5rem 0; }
@media (min-width: 768px) { .st-pillars { grid-template-columns: repeat(3, 1fr); } }
.st-pillar { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem; }
.st-pillar i { color: var(--green-500); font-size: 1.5rem; margin-bottom: .5rem; display: block; }
.st-pillar h3 { font-size: .875rem; margin-bottom: .25rem; }
.st-pillar p { font-size: .75rem; color: var(--gray-600); margin: 0; }
.st-quote { background: var(--navy-800); color: #fff; padding: 1.5rem; border-radius: var(--radius); border-left: 4px solid var(--green-500); margin: 1.5rem 0 0; }
.st-quote blockquote { margin: 0; font-style: italic; }
.st-quote cite { display: block; margin-top: .5rem; font-size: .75rem; font-weight: 700; color: var(--green-500); font-style: normal; }

/* ==========================================================================
   7. Forms (contact, comments, search)
   ========================================================================== */
.st-form { display: grid; gap: 1rem; }
.st-form label { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--gray-700); margin-bottom: .25rem; }
.st-form input[type="text"], .st-form input[type="email"], .st-form textarea,
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea,
.search-form input[type="search"] {
  width: 100%; border: 1px solid var(--gray-300); border-radius: .5rem; padding: .75rem; font-size: .9rem; background: #fff;
}
.st-form input:focus, .st-form textarea:focus, .comment-form input:focus, .comment-form textarea:focus, .search-form input:focus {
  outline: 2px solid var(--green-500); border-color: transparent;
}
.st-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.st-notice { padding: 1rem; border-radius: .5rem; font-size: .875rem; text-align: center; font-weight: 500; margin-bottom: 1rem; }
.st-notice-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.st-notice-err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.st-narrow { max-width: 42rem; margin-left: auto; margin-right: auto; }
.search-form { display: flex; gap: .5rem; }
.search-form .search-submit, .comment-form .submit {
  background: var(--green-500); color: #fff; border: 0; border-radius: .5rem; padding: .75rem 1.25rem; font-weight: 700;
}
.search-form .search-submit:hover, .comment-form .submit:hover { background: var(--green-600); }

/* Comments */
.st-comments { margin-top: 2rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; font-size: .9rem; }
.comment-meta { font-size: .75rem; color: var(--gray-500); margin-bottom: .5rem; }
.comment-meta .fn { font-weight: 700; color: var(--navy-800); font-style: normal; }
.comment-meta .avatar { border-radius: 50%; vertical-align: middle; margin-right: .5rem; }
.comment-form p { margin-bottom: 1rem; }

/* Pagination */
.navigation.pagination { margin-top: 2rem; }
.nav-links { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.page-numbers {
  background: #fff; border: 1px solid var(--gray-200); color: var(--navy-800); border-radius: .5rem; padding: .5rem .9rem; text-decoration: none; font-weight: 600; font-size: .875rem;
}
.page-numbers.current, .page-numbers:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* ==========================================================================
   8. Search modal
   ========================================================================== */
.st-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 5rem 1rem 1rem; }
.st-modal.is-open { display: flex; }
.st-modal-box { background: #fff; width: 100%; max-width: 42rem; border-radius: var(--radius); box-shadow: var(--shadow-xl); overflow: hidden; }
.st-modal-bar { display: flex; align-items: center; gap: .75rem; padding: 1rem; border-bottom: 1px solid var(--gray-200); }
.st-modal-bar i { color: var(--green-500); font-size: 1.1rem; }
.st-modal-bar input { flex: 1; border: 0; outline: 0; font-size: 1rem; color: var(--gray-800); background: transparent; min-width: 0; }
.st-modal-close { background: none; border: 0; color: var(--gray-400); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.st-modal-close:hover { color: var(--gray-600); }
.st-modal-results { max-height: 20rem; overflow-y: auto; padding: 1rem; }
.st-modal-results .st-hint { font-size: .75rem; color: var(--gray-400); text-align: center; padding: 1rem 0; margin: 0; }
.st-result { display: block; padding: .75rem .5rem; border-radius: .25rem; text-decoration: none; border-bottom: 1px solid var(--gray-100); }
.st-result:hover { background: var(--gray-50); }
.st-result strong { display: block; font-size: .8rem; color: var(--navy-800); }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.st-footer { background: var(--navy-800); color: #fff; margin-top: 3rem; border-top: 4px solid var(--green-500); }
.st-footer-inner { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.st-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .st-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.st-footer .st-brand-name { font-size: 1.5rem; }
.st-footer p { font-size: .75rem; color: var(--gray-300); }
.st-footer h4 { font-size: .875rem; font-weight: 700; color: var(--green-500); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; }
.st-footer ul { list-style: none; margin: 0; padding: 0; font-size: .75rem; }
.st-footer li + li { margin-top: .5rem; }
.st-footer a { color: var(--gray-300); text-decoration: none; }
.st-footer a:hover { color: #fff; }
.st-footer-bottom {
  border-top: 1px solid #1f2937; padding-top: 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 1rem; font-size: .75rem; color: var(--gray-400);
}
@media (min-width: 640px) { .st-footer-bottom { flex-direction: row; } }
.st-credit { background: var(--navy-900); padding: .5rem 1rem; border-radius: 999px; border: 1px solid #374151; font-weight: 500; color: #e5e7eb; }
.st-credit strong { color: var(--green-500); }

.st-404 { text-align: center; padding: 3rem 1rem; }
.st-404 .st-code-big { font-size: 4rem; font-weight: 800; color: var(--green-500); line-height: 1; font-family: var(--mono); }
.st-404 .search-form { max-width: 28rem; margin: 1.5rem auto; }

@media print {
  .st-header, .st-footer, .st-ad, .st-sidebar, .st-modal { display: none !important; }
  body { background: #fff; }
}
