/* ─── GOOGLE FONTS ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --primary: #DC2626;
  --primary-fg: #ffffff;
  --muted: #ececf0;
  --muted-fg: #717182;
  --border: rgba(0,0,0,0.1);
  --radius: 10px;
  --radius-sm: 6px;
  --font: 'Barlow', system-ui, sans-serif;
  --header-h: 57px;
}

body.dark-mode {
  --bg: #0a0a0a;
  --fg: #fafafa;
  --primary: #EF4444;
  --muted: #1a1a1a;
  --muted-fg: #a1a1aa;
  --border: #2a2a2a;
}

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

html { font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  transition: background 0.2s, color 0.2s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* ─── LAYOUT ────────────────────────────────────────────────── */
.site-wrapper {
  display: flex;
  flex: 1;
}

.ad-column {
  display: none;
  width: 160px;
  flex-shrink: 0;
  padding: 24px 8px;
}

@media (min-width: 1024px) {
  .ad-column { display: block; }
}

.ad-placeholder {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  width: 100%;
  height: 580px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--muted) 50%, transparent);
}

.ad-placeholder span {
  font-size: 11px;
  color: var(--muted-fg);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.site-main {
  flex: 1;
  min-width: 0;
  padding: 20px 16px;
}

@media (min-width: 768px) {
  .site-main { padding: 32px; }
}

/* ─── HEADER ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 16px;
}

@media (min-width: 768px) {
  .header-inner { padding: 0 24px; }
}

.site-logo {
  position: absolute;
  left: 16px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 9rem);
  z-index: 1;
}

@media (min-width: 768px) {
  .site-logo {
    left: 24px;
    font-size: 30px;
  }
}

.site-logo:hover { color: var(--primary); }

.site-nav {
  display: none;
  width: 100%;
  justify-content: center;
  gap: 32px;
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
}

.site-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.current { color: var(--primary); }

.header-actions {
  position: absolute;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 1;
}

@media (min-width: 768px) {
  .header-actions { right: 24px; }
}

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--fg);
  transition: color 0.2s;
}

.header-btn:hover { color: var(--primary); }

.header-btn svg { width: 20px; height: 20px; }

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

/* ─── MOBILE NAV ────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  transition: color 0.2s, background 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a.current {
  color: var(--primary);
  background: var(--muted);
}

/* ─── SEARCH OVERLAY ────────────────────────────────────────── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 96px;
  padding-left: 16px;
  padding-right: 16px;
}

.search-overlay.open { display: flex; }

.search-box {
  width: 100%;
  max-width: 576px;
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--fg);
  padding-bottom: 12px;
}

.search-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 18px;
  color: var(--fg);
}

.search-input-row input::placeholder { color: var(--muted-fg); }

.search-results { margin-top: 16px; }

.search-result-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  text-align: left;
  color: var(--fg);
}

.search-result-item:hover { background: var(--muted); }

.search-result-thumb {
  width: 64px;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--muted);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }

.search-result-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-item:hover .search-result-title { color: var(--primary); }

.search-result-meta {
  font-size: 12px;
  color: var(--muted-fg);
  margin-top: 2px;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 16px;
}

@media (min-width: 768px) {
  .footer-main {
    position: relative;
    flex-direction: row;
    align-items: center;
    min-height: 76px;
    gap: 0;
    padding: 0 24px;
  }
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  transition: color 0.2s;
}

@media (min-width: 768px) {
  .footer-logo {
    position: absolute;
    left: 24px;
    font-size: 30px;
  }
}

.footer-logo:hover { color: var(--primary); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

@media (min-width: 768px) {
  .footer-links {
    width: 100%;
    justify-content: center;
  }
}

.footer-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted-fg);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-copy {
  border-top: 1px solid var(--border);
  padding: 12px;
  text-align: center;
}

.footer-copy p {
  font-size: 12px;
  color: var(--muted-fg);
}

/* ─── SECTION HEADER ────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  .section-title { font-size: 24px; }
}

.view-all-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  transition: color 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}

@media (min-width: 640px) {
  .view-all-btn { font-size: 16px; }
}

.view-all-btn:hover { color: var(--primary); }
.view-all-btn svg { width: 16px; height: 16px; }

/* ─── CATEGORY SECTION ──────────────────────────────────────── */
.category-section { margin-bottom: 56px; }

.cards-large {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .cards-large { grid-template-columns: 1fr 1fr; }
}

.cards-small {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .cards-small { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .cards-small { grid-template-columns: repeat(4, 1fr); }
}

/* ─── ARTICLE CARD ──────────────────────────────────────────── */
.article-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: var(--fg);
}

.card-image {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  background: var(--muted);
  flex-shrink: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .card-image img { transform: scale(1.05); }

.card-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title-wrap { flex: 1; }

.card-title {
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.2s;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.card-title.large {
  font-size: 16px;
  -webkit-line-clamp: 3;
}

@media (min-width: 768px) {
  .card-title.large { font-size: 18px; }
}

.card-title.small {
  font-size: 14px;
  -webkit-line-clamp: 2;
}

.article-card:hover .card-title { color: var(--primary); }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted-fg);
}

.card-category { color: var(--primary); font-weight: 500; }
.card-sep { opacity: 0.5; }

/* ─── PAGE HEADING ──────────────────────────────────────────── */
.page-heading {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .page-heading { font-size: 36px; }
}

/* ─── ARTICLE / SINGLE POST ─────────────────────────────────── */
.article-wrap {
  max-width: 768px;
  margin: 0 auto;
}

.article-category-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  cursor: pointer;
}

.article-category-label:hover { text-decoration: underline; }

.article-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .article-title { font-size: 36px; }
}

.article-hero {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  background: var(--muted);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── ARTICLE METADATA BAR ──────────────────────────────────── */
.article-meta-bar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 32px;
}

.meta-bar-inner {
  display: flex;
  min-width: 440px;
}

.meta-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  gap: 8px;
  border-right: 1px solid var(--border);
}

.meta-section:last-child { border-right: none; }

.meta-author-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--muted);
  cursor: pointer;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.meta-author-photo:hover { opacity: 0.75; }
.meta-author-photo img { width: 100%; height: 100%; object-fit: cover; }

.meta-author-name {
  font-size: 11px;
  font-weight: 400;
  color: var(--fg);
  text-align: center;
  line-height: 1.3;
  cursor: pointer;
  transition: color 0.2s;
}

.meta-author-name:hover { color: var(--primary); }

.meta-social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: color 0.2s;
  cursor: pointer;
}

.meta-social-icon:hover { color: var(--primary); }
.meta-social-icon svg { width: 16px; height: 16px; }

.meta-label {
  font-size: 11px;
  color: var(--muted-fg);
  text-align: center;
}

.meta-value {
  font-size: 11px;
  color: var(--fg);
  text-align: center;
  line-height: 1.4;
}

.meta-dash { opacity: 0.3; }

/* ─── ARTICLE BODY ──────────────────────────────────────────── */
.article-body {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.article-body p { margin-bottom: 20px; }
.article-body h2 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; }
.article-body h3 { font-size: 18px; font-weight: 600; margin: 24px 0 10px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { margin-bottom: 8px; list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--muted-fg);
  font-style: italic;
}

/* ─── TAGS ──────────────────────────────────────────────────── */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-bottom: 40px;
}

.tag-category {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.tag-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: 12px;
  color: var(--fg);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.tag-item:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* ─── MORE ARTICLES ─────────────────────────────────────────── */
.more-section-title {
  font-size: 20px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.cards-four {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .cards-four { grid-template-columns: repeat(4, 1fr); }
}

/* ─── AUTHOR PAGE ────────────────────────────────────────────── */
.author-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
  max-width: 512px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 8px;
}

.author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--muted);
  margin-bottom: 16px;
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-name {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}

.author-designation {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.author-bio {
  font-size: 14px;
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 16px;
}

.author-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.social-link-btn {
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--fg);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.social-link-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.author-articles-header {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-bottom: 24px;
}

.author-articles-title {
  font-size: 20px;
  font-weight: 700;
}

/* ─── CATEGORY ARCHIVE ──────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--muted-fg);
  margin-bottom: 24px;
  transition: color 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.back-link:hover { color: var(--primary); }
.back-link svg { width: 14px; height: 14px; }

.archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.archive-title {
  font-size: 26px;
  font-weight: 700;
}

@media (min-width: 640px) {
  .archive-title { font-size: 30px; }
}

.archive-count {
  font-size: 14px;
  color: var(--muted-fg);
}

/* ─── STATIC PAGES ──────────────────────────────────────────── */
.page-wrap {
  max-width: 768px;
  margin: 0 auto;
}

.page-wrap h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-wrap .page-subtitle {
  font-size: 14px;
  color: var(--muted-fg);
  margin-bottom: 32px;
}

.prose-section { margin-bottom: 32px; }
.prose-section h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.prose-section p {
  font-size: 15px;
  color: var(--muted-fg);
  line-height: 1.7;
}

/* ─── ABOUT PAGE ────────────────────────────────────────────── */
.about-hero {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--muted);
  margin-bottom: 32px;
}

.about-hero img { width: 100%; height: 100%; object-fit: cover; }

.about-body p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-team-section {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 40px;
}

.about-team-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary svg { width: 14px; height: 14px; }

/* ─── TEAM PAGE ─────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 896px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}

.team-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s;
  text-decoration: none;
  color: var(--fg);
  display: block;
}

.team-card:hover { border-color: var(--primary); }

.team-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.team-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--muted);
  flex-shrink: 0;
}

.team-card-avatar img { width: 100%; height: 100%; object-fit: cover; }

.team-card-name {
  font-weight: 700;
  font-size: 16px;
  transition: color 0.2s;
}

.team-card:hover .team-card-name { color: var(--primary); }

.team-card-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 2px;
}

.team-card-location {
  font-size: 12px;
  color: var(--muted-fg);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.team-card-location svg { width: 10px; height: 10px; flex-shrink: 0; }

.team-card-bio {
  font-size: 14px;
  color: var(--muted-fg);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.team-card-social { display: flex; flex-wrap: wrap; gap: 8px; }

/* ─── FAQ PAGE ──────────────────────────────────────────────── */
.faq-wrap { max-width: 672px; margin: 0 auto; }

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  cursor: pointer;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  transition: color 0.2s;
  width: 100%;
  text-align: left;
}

@media (min-width: 768px) {
  .faq-question { font-size: 16px; }
}

.faq-question:hover { color: var(--primary); }

.faq-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
}

.faq-item.open .faq-answer { display: block; }

.faq-answer p {
  font-size: 14px;
  color: var(--muted-fg);
  line-height: 1.7;
}

/* ─── CONTACT PAGE ──────────────────────────────────────────── */
.contact-wrap {
  max-width: 896px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 40px;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info { display: flex; flex-direction: column; gap: 28px; }

.contact-info-item { display: flex; align-items: flex-start; gap: 12px; }
.contact-info-item svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

.contact-info-label { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.contact-info-value { font-size: 14px; color: var(--muted-fg); line-height: 1.5; }
.contact-info-note { font-size: 12px; color: var(--muted-fg); margin-top: 2px; }

.contact-note {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 14px;
  color: var(--muted-fg);
  line-height: 1.7;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label { font-size: 14px; font-weight: 500; }

.form-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus { border-color: var(--primary); }
.form-input::placeholder { color: var(--muted-fg); }

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

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-submit:hover { opacity: 0.9; }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 16px;
  text-align: center;
}

.success-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.success-icon svg { width: 24px; height: 24px; color: white; }
.form-success h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--muted-fg); }

/* ─── 404 & SEARCH ──────────────────────────────────────────── */
.not-found-wrap, .search-results-wrap {
  max-width: 640px;
  margin: 64px auto;
  text-align: center;
  padding: 0 16px;
}

.not-found-wrap h1 { font-size: 80px; font-weight: 700; color: var(--primary); line-height: 1; }
.not-found-wrap h2 { font-size: 24px; font-weight: 700; margin: 16px 0 8px; }
.not-found-wrap p { color: var(--muted-fg); margin-bottom: 24px; }

.search-results-wrap h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.search-results-wrap .search-count { color: var(--muted-fg); margin-bottom: 32px; }
.search-results-wrap .cards-small { text-align: left; }
