/* =============================================================
   THEME: CLEARING  (Direction B — cleaner / modern, still warm)
   Editorial whitespace · crisp grid · flat photo-forward cards ·
   sage as a calm dominant surface · larger headshots · refined
   geometry.  Scoped under .theme-clearing.
============================================================= */

.theme-clearing {
  --bg:               #FBF8F3;   /* airy warm white */
  --bg-2:             #F3EEE6;
  --bg-card:          #FFFFFF;
  --bg-strip:         #EFEAE2;
  --accent-terra:     #C16A45;
  --accent-terra-dk:  #A5552F;
  --accent-terra-lt:  #E5BC9F;
  --accent-terra-bg:  #FBEEE5;
  --accent-sage:      #567A5E;
  --accent-sage-lt:   #AAC6AE;
  --accent-sage-bg:   #E9F1EA;
  --header-green:     #243826;
  --header-green-dk:  #1A291C;
  --text-dark:        #232624;
  --text-mid:         #585C57;
  --text-light:       #97978F;
  --border:           #E6E0D6;
  --border-mid:       #CFC8BB;
  --open-bg:          #E7F3EB;
  --open-text:        #2E7048;
  --inquire-bg:       #EEF1F3;
  --inquire-text:     #566570;
  --closed-bg:        #F0EEE9;
  --closed-text:      #828079;
  --shadow-sm:        0 1px 2px rgba(40,40,30,0.05);
  --shadow-md:        0 2px 10px rgba(40,40,30,0.07);
  --shadow-hover:     0 8px 26px rgba(40,40,30,0.11);
  --radius:           10px;
  --radius-sm:        7px;
  --headshot-h:       320px;      /* photo-forward */
  --card-border-w:    1px;
  --photo-radius:     0px;
}

/* ---- Editorial, left-aligned hero ---- */
.theme-clearing .page-hero { padding: 92px 24px 60px; text-align: left; }
.theme-clearing .hero-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: end; }
.theme-clearing .hero-copy { max-width: 640px; }
.theme-clearing .page-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -0.015em; margin-bottom: 24px; }
.theme-clearing .page-hero .lede { margin: 0 0 0; font-size: 1.12rem; }
.theme-clearing .hero-stats { justify-content: flex-start; gap: 40px; flex-direction: column; align-items: flex-start; padding-top: 0; border-left: 2px solid var(--border); padding-left: 28px; gap: 26px; }
.theme-clearing .hero-stats > div { display: flex; align-items: baseline; gap: 12px; }
.theme-clearing .stat-num { font-size: 2rem; }
.theme-clearing .stat-label { margin-top: 0; }
@media (max-width: 880px) {
  .theme-clearing .hero-inner { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .theme-clearing .hero-stats { flex-direction: row; flex-wrap: wrap; border-left: none; padding-left: 0; gap: 32px; }
  .theme-clearing .hero-stats > div { flex-direction: column; gap: 4px; }
}

.theme-clearing .eyebrow { letter-spacing: 0.18em; }

/* ---- Differentiators: calm sage surface instead of dark ---- */
.theme-clearing .diff-banner { background: var(--accent-sage); }
.theme-clearing .diff-label { color: rgba(255,255,255,0.6); }
.theme-clearing .diff-chip {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
  border-radius: 7px;
}
.theme-clearing .diff-chip:hover { background: rgba(255,255,255,0.22); }

/* ---- Filter: clean, minimal ---- */
.theme-clearing .filter-wrap { background: var(--bg); border-bottom: 1px solid var(--border); }
.theme-clearing .search-input { background: var(--bg-card); }

/* ---- Cards: flat, photo-forward, hairline ---- */
.theme-clearing .card { box-shadow: none; border: 1px solid var(--border); }
.theme-clearing .card:hover { box-shadow: var(--shadow-hover); border-color: var(--border-mid); }
.theme-clearing .headshot { aspect-ratio: 4 / 5; }
.theme-clearing .headshot::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(20,28,20,0.34), rgba(20,28,20,0) 42%);
}
.theme-clearing .card-badges { z-index: 3; }
.theme-clearing .card-name { font-size: 1.3rem; }

/* name overlaps onto the photo for an editorial feel */
.theme-clearing .card-body { padding: 20px 22px 6px; }

/* tags squared */
.theme-clearing .tag,
.theme-clearing .diff-chip { letter-spacing: 0.005em; }
.theme-clearing .tag { border-radius: 6px; }
.theme-clearing .spec-btn { border-radius: 7px; }

/* buttons crisp */
.theme-clearing .btn-primary { border-radius: var(--radius-sm); font-weight: 600; }

/* ---- Bottom CTA: lighter, editorial ---- */
.theme-clearing .bottom-cta { background: var(--header-green); }
.theme-clearing .bottom-cta h2 { letter-spacing: -0.01em; }

/* ---- Bio panel: crisper ---- */
.theme-clearing .bio-photo { height: 320px; }
