/*
Theme Name: Biz Gang
Theme URI: https://thebizgang.com
Author: SubCulture Media
Author URI: https://www.subculturemedia.net
Description: Dark, editorial-authority theme for Biz Gang. Agency-quality design with sharp edges, high contrast, and premium typography.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bizgang
*/

/* ─── Import Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Inter+Tight:wght@600;700;800;900&display=swap');

/* ─── Design Tokens ─── */
:root {
  --bg: #0B0F1A;
  --surface: #131824;
  --card: #1A2035;
  --primary: #2DD4A8;
  --primary-fg: #0B0F1A;
  --secondary: #1E293B;
  --muted: #94A3B8;
  --muted-fg: #64748B;
  --fg: #F1F5F9;
  --border: #1E293B;
  --radius: 0.375rem;
  --container: 1200px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
}

/* ─── Layout ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 15, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
}

.site-logo .logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.875rem;
  font-weight: 900;
}

/* Desktop Nav */
.main-nav { display: none; list-style: none; gap: 0.25rem; }
.main-nav a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a { color: var(--primary); }

@media (min-width: 768px) {
  .main-nav { display: flex; }
  .mobile-toggle { display: none !important; }
}

/* Mobile Toggle */
.mobile-toggle {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-toggle svg { width: 1.25rem; height: 1.25rem; }

/* Mobile Menu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 1rem;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover { color: var(--fg); background: var(--secondary); }
.mobile-menu .current-menu-item a { color: var(--primary); background: var(--secondary); }

@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

/* ─── Hero ─── */
.hero { padding: 5rem 0 4rem; }
@media (min-width: 1024px) { .hero { padding: 8rem 0 6rem; } }

.hero .hero-inner { max-width: 48rem; }
.hero .hero-label {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--primary); }
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }

.hero .hero-desc {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 42rem;
  margin-bottom: 2rem;
}

.hero .hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--secondary); }

/* ─── Section ─── */
.section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
}
.section-link {
  font-size: 0.875rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.section-link:hover { text-decoration: underline; }

/* ─── Post Grid ─── */
.post-grid {
  display: grid;
  gap: 1.5rem;
}
.post-grid.cols-2 { grid-template-columns: 1fr; }
.post-grid.cols-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .post-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .post-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .post-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Post Card ─── */
.post-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.3s;
}
.post-card:hover { border-color: rgba(45, 212, 168, 0.3); }

.post-card .card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.post-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.post-card:hover .card-image img { transform: scale(1.05); }

.post-card .card-body { padding: 1.25rem; }
.post-card.featured .card-body { padding: 1.5rem 2rem; }

.post-card .card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card.featured .card-title { font-size: 1.25rem; }
@media (min-width: 1024px) {
  .post-card.featured .card-title { font-size: 1.5rem; }
}
.post-card:hover .card-title { color: var(--primary); }

.post-card .card-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
}
.post-card .card-meta .author-avatar {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
}

/* ─── Category Badge ─── */
.cat-badge {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius);
  background: rgba(45, 212, 168, 0.1);
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.cat-badge + .cat-badge { margin-left: 0.5rem; }
a.cat-badge:hover { background: rgba(45, 212, 168, 0.2); }

/* ─── Tag Pill ─── */
.tag-pill {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.tag-pill:hover {
  color: var(--fg);
  border-color: rgba(45, 212, 168, 0.3);
}

/* ─── Topic Cards ─── */
.topic-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.topic-card:hover { border-color: rgba(45, 212, 168, 0.3); }
.topic-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}
.topic-card:hover h3 { color: var(--primary); }
.topic-card p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.topic-card .topic-count {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

/* ─── Trust Cards ─── */
.trust-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
}
.trust-card .trust-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.trust-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.trust-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Newsletter ─── */
.newsletter {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
  text-align: center;
}
@media (min-width: 1024px) { .newsletter { padding: 3rem; } }
.newsletter h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 1024px) { .newsletter h2 { font-size: 1.875rem; } }
.newsletter .newsletter-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
}
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }

.newsletter-form input[type="email"] {
  flex: 1;
  height: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0 1rem;
  font-size: 0.875rem;
  color: var(--fg);
}
.newsletter-form input[type="email"]::placeholder { color: var(--muted-fg); }
.newsletter-form input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--primary);
}
.newsletter .newsletter-fine {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-top: 0.75rem;
}

/* ─── Single Post ─── */
.single-hero-image {
  width: 100%;
  aspect-ratio: 21/9;
  max-height: 420px;
  overflow: hidden;
  background: var(--card);
}
.single-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-content { max-width: 48rem; margin: 0 auto; padding: 2.5rem 0; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.post-meta .author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.post-meta .author-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}
.post-meta .author-name { font-weight: 500; color: var(--fg); }

/* ─── Editorial Prose ─── */
.prose-editorial { color: var(--fg); line-height: 1.75; }
.prose-editorial h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .prose-editorial h2 { font-size: 1.875rem; } }
.prose-editorial h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .prose-editorial h3 { font-size: 1.5rem; } }
.prose-editorial h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.prose-editorial p {
  margin-bottom: 1.25rem;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}
@media (min-width: 768px) { .prose-editorial p { font-size: 1.125rem; } }
.prose-editorial a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(45, 212, 168, 0.4);
  transition: text-decoration-color 0.2s;
}
.prose-editorial a:hover { text-decoration-color: var(--primary); }
.prose-editorial ul, .prose-editorial ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.prose-editorial ul { list-style: disc; }
.prose-editorial ol { list-style: decimal; }
.prose-editorial li {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) { .prose-editorial li { font-size: 1.125rem; } }
.prose-editorial blockquote {
  border-left: 4px solid rgba(45, 212, 168, 0.5);
  padding-left: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted);
  background: rgba(30, 41, 59, 0.3);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose-editorial pre {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  font-size: 0.875rem;
}
.prose-editorial code {
  background: var(--secondary);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--primary);
}
.prose-editorial pre code { background: transparent; padding: 0; }
.prose-editorial img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
  width: 100%;
}
.prose-editorial hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--border);
}
.prose-editorial table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}
.prose-editorial th {
  text-align: left;
  padding: 0.75rem;
  background: var(--secondary);
  font-weight: 600;
  color: var(--fg);
  border: 1px solid var(--border);
}
.prose-editorial td {
  padding: 0.75rem;
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ─── Table of Contents ─── */
.toc {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.toc-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.toc-toggle svg { color: var(--primary); }
.toc ol {
  margin-top: 0.75rem;
  list-style: none;
  padding: 0;
}
.toc ol li { margin-bottom: 0.375rem; }
.toc ol li a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
  display: block;
  padding: 0.125rem 0;
}
.toc ol li a:hover { color: var(--primary); }
.toc ol li.level-3 { padding-left: 1rem; }

/* ─── Author Box ─── */
.author-box {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}
.author-box .author-avatar-lg {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.author-box .author-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-fg);
  margin-bottom: 0.25rem;
}
.author-box .author-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.author-box .author-bio {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── CTA Block ─── */
.cta-block {
  margin: 3rem 0;
  border-radius: var(--radius);
  border: 1px solid rgba(45, 212, 168, 0.2);
  background: rgba(45, 212, 168, 0.05);
  padding: 2rem;
  text-align: center;
}
.cta-block h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.cta-block p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

/* ─── FAQ Accordion ─── */
.faq-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 0.5rem;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }
.faq-question svg { transition: transform 0.2s; width: 1rem; height: 1rem; }
.faq-item.is-open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}
.faq-item.is-open .faq-answer { display: block; }

/* ─── Breadcrumbs ─── */
.breadcrumbs {
  margin-bottom: 1.5rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.breadcrumbs a { transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { font-size: 0.75rem; }
.breadcrumbs .current { color: var(--fg); }

/* ─── Search & Filters ─── */
.search-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .search-filters { flex-direction: row; } }

.search-box {
  position: relative;
  flex: 1;
  max-width: 24rem;
}
.search-box input {
  width: 100%;
  height: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0 1rem 0 2.25rem;
  font-size: 0.875rem;
  color: var(--fg);
}
.search-box input::placeholder { color: var(--muted-fg); }
.search-box input:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--primary);
}
.search-box svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--muted-fg);
}

.filter-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
}
.filter-btn:hover { color: var(--fg); }
.filter-btn.active {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

/* ─── Pagination ─── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 3rem;
  list-style: none;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.875rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s;
}
.pagination a:hover { color: var(--fg); border-color: rgba(45, 212, 168, 0.3); }
.pagination .current {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 20rem;
}
.footer-brand .scm-link { color: var(--primary); }
.footer-brand .scm-link:hover { text-decoration: underline; }

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--primary); }

.footer-bottom {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

/* ─── Contact Form ─── */
.contact-form { max-width: 42rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--fg);
}
.form-group input { height: 2.5rem; }
.form-group textarea { min-height: 8rem; resize: none; }
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--primary);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted-fg); }

.form-success {
  border-radius: var(--radius);
  border: 1px solid rgba(45, 212, 168, 0.3);
  background: rgba(45, 212, 168, 0.05);
  padding: 2rem;
  text-align: center;
}
.form-success h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.form-success p { font-size: 0.875rem; color: var(--muted); }

/* ─── Resource Grid ─── */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .resource-grid { grid-template-columns: repeat(2, 1fr); } }

.resource-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.resource-card:hover { border-color: rgba(45, 212, 168, 0.3); }
.resource-card .resource-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.resource-card .resource-cat {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.resource-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.resource-card:hover h3 { color: var(--primary); }
.resource-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.disclosure-box {
  margin-top: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.disclosure-box strong { color: var(--fg); }

/* ─── Related Posts ─── */
.related-posts { margin-top: 3rem; max-width: 64rem; margin-left: auto; margin-right: auto; }
.related-posts h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }

/* ─── Archive page header ─── */
.archive-header { margin-bottom: 2rem; }
.archive-header h1 {
  font-size: 1.875rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) { .archive-header h1 { font-size: 2.25rem; } }
.archive-header p {
  color: var(--muted);
  max-width: 36rem;
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
