/* ===== TAE Results — Global Styles ===== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #F7F4F0;
  --bg-white: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #5C5C5C;
  --text-muted: #999999;
  --accent: #1A1A1A;
  --accent-soft: #2D6A4F;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --radius: 10px;
  --font: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== Typography ===== */

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

/* ===== Layout ===== */

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

section { padding: 80px 0; }

@media (max-width: 768px) {
  section { padding: 56px 0; }
}

/* ===== Header ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(247, 244, 240, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
}

.logo-img {
  height: 22px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  font-weight: 500;
}

nav a:hover { color: var(--text); }

.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #333333;
}

/* Mobile nav */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
  }
  nav.open { display: flex; }
}

/* ===== Header Phone ===== */

.header-phone {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: auto;
  margin-left: 24px;
  white-space: nowrap;
  transition: color 0.2s;
}

.header-phone:hover { color: var(--text); }

@media (max-width: 768px) {
  .header-phone { display: none; }
}

/* ===== Hero (left-aligned) ===== */

.hero {
  padding-top: 160px;
  padding-bottom: 60px;
  text-align: center;
}

.hero--left {
  text-align: left;
}

.hero--left .hero-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
  margin-bottom: 16px;
}

.hero--left .hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 640px;
}

.hero h1 {
  max-width: 680px;
  margin: 0 auto 20px;
}

.hero p, .hero .hero-sub {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero--left .hero-sub {
  margin-bottom: 36px;
  max-width: 540px;
}

.btn-hero {
  font-size: 1rem;
  padding: 16px 40px;
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.hero .btn {
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 50px;
}

/* ===== Divider ===== */

.section-divider {
  width: 48px;
  height: 1px;
  background: var(--border-strong);
  margin: 0 auto;
}

/* ===== Video Intro ===== */

.video-intro {
  padding-top: 0;
  padding-bottom: 60px;
}

.video-intro-inner {
  max-width: 680px;
  margin: 0 auto;
}

.video-intro-player {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.video-intro-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ===== What Section ===== */

.what-section {
  border-top: 1px solid var(--border);
}

.what-section h2 {
  margin-bottom: 8px;
}

.what-lead {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 48px;
  max-width: 540px;
}

.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.what-item {
  padding: 28px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.what-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-soft);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}

.what-item h3 {
  margin-bottom: 10px;
}

.what-item p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

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

/* ===== About Section ===== */

.about-section {
  border-top: 1px solid var(--border);
}

.about-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
}

.about-photo-placeholder {
  flex: 0 0 180px;
  height: 220px;
  border-radius: var(--radius);
  background: var(--bg-white);
  border: 2px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.about-photo-placeholder img,
.about-photo {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
  margin-bottom: 8px;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-text a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-inner {
    flex-direction: column;
    text-align: center;
  }
  .about-photo-placeholder { flex: none; width: 140px; height: 170px; margin: 0 auto; }
}

/* ===== Audits Teaser ===== */

.audits-teaser {
  border-top: 1px solid var(--border);
}

.audits-teaser h2 {
  margin-bottom: 8px;
}

.audits-teaser-lead {
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.audits-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.teaser-card {
  padding: 28px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.25s, transform 0.25s;
  text-decoration: none;
}

.teaser-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.teaser-card h3 {
  color: var(--text);
  margin-bottom: 4px;
}

.teaser-loc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.teaser-card > p:last-child {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.audits-teaser-more {
  margin-top: 24px;
}

.audits-teaser-more a {
  color: var(--accent-soft);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .audits-teaser-grid { grid-template-columns: 1fr; }
}

/* ===== Tips Section (secondary email capture) ===== */

.tips-section {
  padding: 40px 0 60px;
}

.tips-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px 28px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tips-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
  line-height: 1.5;
}

.tips-text strong {
  color: var(--text);
}

.tips-form {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.tips-form input[type="email"] {
  width: 180px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-family: var(--font);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
}

.tips-form input::placeholder { color: var(--text-muted); }

.tips-form .btn-secondary {
  padding: 10px 18px;
  font-size: 0.85rem;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .tips-inner { flex-direction: column; text-align: center; }
  .tips-form { width: 100%; }
  .tips-form input[type="email"] { flex: 1; width: auto; }
}

/* ===== Problem ===== */

.problem {
  text-align: center;
}

.problem-lines {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.problem-lines p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.problem-lines p strong {
  color: var(--text);
  font-weight: 600;
}

/* ===== Cards (What You Get) ===== */

.cards-section h2 {
  text-align: center;
  margin-bottom: 48px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #EFF8F4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-soft);
}

.card h3 { margin-bottom: 10px; }

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

/* ===== Steps (How It Works) ===== */

.steps-section h2 {
  text-align: center;
  margin-bottom: 48px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.step { text-align: center; }

.step-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  padding: 4px 14px;
  background: #EFF8F4;
  border-radius: 50px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
}

/* ===== Social Proof ===== */

.proof-bar {
  text-align: center;
  padding: 40px 0;
}

.proof-bar p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.proof-bar span {
  color: var(--text);
  font-weight: 700;
}

/* ===== Video Section ===== */

.video-section { text-align: center; }

.video-section h2 { margin-bottom: 12px; }

.video-section > .container > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.video-wrapper {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== CTA / Form ===== */

.cta-section {
  padding-bottom: 120px;
}

.cta-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}

.cta-inner h2 { margin-bottom: 10px; font-size: 1.6rem; }

.cta-inner > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.audit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.audit-form input {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-family: var(--font);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.audit-form input::placeholder { color: var(--text-muted); }

.audit-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

.audit-form .btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 4px;
  border-radius: 8px;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

@media (max-width: 768px) {
  .cta-inner { padding: 36px 24px; }
}

/* ===== Inner Page Header ===== */

.page-header {
  padding-top: 140px;
  padding-bottom: 40px;
  text-align: center;
}

.page-header p {
  color: var(--text-secondary);
  margin-top: 10px;
  font-size: 1.05rem;
}

/* ===== Audit Grid ===== */

.audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 60px 0;
}

.audit-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}

.audit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.audit-thumb {
  aspect-ratio: 16/9;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.audit-card-body { padding: 20px; }
.audit-card-body h3 { margin-bottom: 6px; }

.audit-card-body p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ===== Services ===== */

.services-list {
  padding: 60px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}

.service-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.service-item:first-child { padding-top: 0; }
.service-item:last-child { border-bottom: none; }

.service-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.service-item h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.service-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== Inner page CTA block ===== */

.inner-cta {
  text-align: center;
  padding: 80px 0 120px;
}

.inner-cta h2 { margin-bottom: 10px; }

.inner-cta p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.inner-cta .btn {
  padding: 14px 36px;
  border-radius: 50px;
}

/* ===== Footer (inner pages only) ===== */

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.site-footer p + p { margin-top: 4px; }

/* ===== Audit Summary (written audit content) ===== */

.audit-summary {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 0 60px;
  line-height: 1.75;
}

.audit-summary h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.audit-summary h2:first-of-type {
  margin-top: 32px;
  border-top: none;
  padding-top: 0;
}

.audit-summary p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1rem;
}

.audit-summary strong {
  color: var(--text);
}

.audit-summary a {
  color: var(--accent, #2563eb);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.audit-summary a:hover {
  opacity: 0.7;
}

/* ===== Audit Post ===== */

.audit-post {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 0;
}

.audit-post h2 {
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.audit-post p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.audit-post ul {
  color: var(--text-secondary);
  padding-left: 20px;
  margin-bottom: 16px;
}

.audit-post li { margin-bottom: 8px; }

/* ===== Blog Section ===== */

.blog-section {
  border-top: 1px solid var(--border);
}

.blog-section h2 {
  text-align: center;
  margin-bottom: 8px;
}

.blog-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card-body {
  padding: 28px 24px;
}

.blog-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-card-body h3 {
  font-size: 1.1rem;
  margin: 10px 0;
  line-height: 1.35;
}

.blog-card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-soft);
}

/* ===== Featured Carousel ===== */

.featured-section {
  padding-top: 0;
  padding-bottom: 40px;
}

.featured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.featured-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
}

.carousel-nav {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-white);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
  background: var(--text);
  color: var(--bg-white);
  border-color: var(--text);
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  /* hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.featured-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}

.featured-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.featured-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg);
  overflow: hidden;
}

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

.featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-soft);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 50px;
}

.featured-card-body {
  padding: 16px 20px 20px;
}

.featured-card-body h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.featured-card-body p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Blog-style featured cards (no thumbnail) */
.featured-card--blog {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card--blog .featured-card-body {
  padding: 28px 24px;
}

.featured-card--blog .blog-date {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.featured-card--blog h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 8px 0;
}

.featured-card--blog p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .featured-card,
  .featured-card--blog {
    flex: 0 0 85vw;
  }
}

/* ===== Browse Section (Search + Filter + Grid) ===== */

.browse-section {
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.browse-section h2 {
  margin-bottom: 20px;
}

.browse-controls {
  margin-bottom: 32px;
}

.search-wrap {
  position: relative;
  margin-bottom: 16px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  font-size: 0.95rem;
  font-family: var(--font);
  background: var(--bg-white);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrap input::placeholder { color: var(--text-muted); }

.search-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  padding: 7px 16px;
  font-size: 0.82rem;
  font-family: var(--font);
  font-weight: 500;
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-tab:hover {
  border-color: var(--text);
  color: var(--text);
}

.filter-tab.active {
  background: var(--text);
  color: var(--bg-white);
  border-color: var(--text);
}

/* ===== Browse Empty & Load More ===== */

.browse-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.load-more-wrap {
  text-align: center;
  padding: 32px 0 0;
}

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

.btn-secondary:hover {
  border-color: var(--text);
}

.result-count {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
  padding-bottom: 8px;
}

/* ===== Utilities ===== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ===== Blog Story Format (engagement posts) ===== */

.blog-story {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 0 60px;
  line-height: 1.85;
}

.blog-story p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.blog-story .story-highlight {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 32px 0;
}

.blog-story .story-break {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  margin: 36px 0;
}

.blog-story .story-signoff {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}

.blog-story a {
  color: var(--accent, #2563eb);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.blog-story a:hover {
  opacity: 0.7;
}

.blog-story h2 {
  color: var(--text);
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.35;
}

.blog-story h3 {
  color: var(--text);
  font-size: 1.1rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

/* Blog tag pill */
.blog-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-tag--insights {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.blog-tag--educational {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}
