/*
Theme Name: The Home Barista
Theme URI: https://coffeehomebrewing.com
Author: The Home Barista
Author URI: https://coffeehomebrewing.com
Description: A high-performance WordPress theme for coffee affiliate blogs. Built for topical authority, SEO, E-E-A-T signals, and affiliate conversions. Features 7 custom page templates including homepage, archive, single post, best-of roundup, pillar/hub page, about, and contact layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-home-barista
Tags: blog, affiliate, coffee, custom-colors, custom-logo, featured-images, footer-widgets, post-thumbnails, threaded-comments, translation-ready

Color Psychology:
- Deep Brown (#1A0F0A): Authority, expertise, coffee association
- Warm Amber (#D47A1F): Appetite stimulation, warmth, CTA energy (highest converting for food/lifestyle affiliate)
- Soft Cream (#FBF7F2): Trust, readability, reduces eye fatigue
- Forest Green (#2D5016): Trust, health, savings (best value signals)
*/

/* ============================================================
   CSS CUSTOM PROPERTIES - DESIGN SYSTEM
   ============================================================ */
:root {
  --thb-brown-deep:    #1A0F0A;
  --thb-brown-mid:     #3C1F0F;
  --thb-brown-light:   #6B3A1F;
  --thb-amber:         #D47A1F;
  --thb-amber-hover:   #E8971F;
  --thb-amber-pale:    #FFF3E0;
  --thb-cream:         #FBF7F2;
  --thb-tan:           #F0E6D6;
  --thb-tan-mid:       #DDD0C0;
  --thb-green-trust:   #2D5016;
  --thb-green-light:   #E8F2E0;
  --thb-white:         #FFFFFF;
  --thb-text-dark:     #1A0F0A;
  --thb-text-mid:      #5C3D28;
  --thb-text-light:    #8C6A50;
  --thb-text-muted:    #B09080;
  --thb-border:        #E5D5C5;
  --thb-shadow-sm:     0 2px 8px rgba(26,15,10,0.08);
  --thb-shadow-md:     0 4px 20px rgba(26,15,10,0.12);
  --thb-shadow-lg:     0 8px 40px rgba(26,15,10,0.18);
  --thb-radius:        4px;
  --thb-font-heading:  'Lora', Georgia, serif;
  --thb-font-body:     'Nunito Sans', -apple-system, sans-serif;
  --thb-max-width:     1200px;
  --thb-content-width: 760px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--thb-cream);
  color: var(--thb-text-dark);
  font-family: var(--thb-font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--thb-amber);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--thb-amber-hover); }

a:focus-visible {
  outline: 2px solid var(--thb-amber);
  outline-offset: 2px;
  border-radius: 2px;
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button { cursor: pointer; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--thb-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--thb-brown-deep);
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1rem, 2vw, 1.2rem); }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { margin-bottom: 1.4rem; color: var(--thb-text-mid); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.thb-container {
  max-width: var(--thb-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

.thb-section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.thb-section--dark { background: var(--thb-brown-deep); }
.thb-section--tan { background: var(--thb-tan); }
.thb-section--white { background: var(--thb-white); }
.thb-section--cream { background: var(--thb-cream); }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.thb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--thb-font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--thb-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.thb-btn--primary {
  background: var(--thb-amber);
  color: #fff;
  border-color: var(--thb-amber);
  box-shadow: 0 4px 14px rgba(212,122,31,0.35);
}
.thb-btn--primary:hover {
  background: var(--thb-amber-hover);
  border-color: var(--thb-amber-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,122,31,0.45);
}

.thb-btn--secondary {
  background: transparent;
  color: var(--thb-brown-deep);
  border-color: var(--thb-brown-deep);
}
.thb-btn--secondary:hover {
  background: var(--thb-brown-deep);
  color: var(--thb-cream);
}

.thb-btn--outline-light {
  background: transparent;
  color: var(--thb-cream);
  border-color: rgba(255,255,255,0.3);
}
.thb-btn--outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: var(--thb-cream);
}

.thb-btn--sm { padding: 0.5rem 1rem; font-size: 0.75rem; }
.thb-btn--lg { padding: 1rem 2rem; font-size: 0.9rem; }

/* ============================================================
   LABELS & TAGS
   ============================================================ */
.thb-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--thb-amber);
  margin-bottom: 0.5rem;
}

.thb-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--thb-amber);
  padding: 0.2rem 0;
}

.thb-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
}
.thb-badge--amber { background: var(--thb-amber); color: #fff; }
.thb-badge--green { background: var(--thb-green-trust); color: #fff; }
.thb-badge--dark { background: var(--thb-brown-light); color: #fff; }
.thb-badge--outline { background: transparent; border: 1px solid var(--thb-amber); color: var(--thb-amber); }

/* ============================================================
   CARDS
   ============================================================ */
.thb-card {
  background: var(--thb-white);
  border: 1px solid var(--thb-border);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.thb-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--thb-shadow-md);
}

.thb-card__img {
  position: relative;
  overflow: hidden;
}
.thb-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.thb-card:hover .thb-card__img img { transform: scale(1.03); }

.thb-card__body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.thb-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

.thb-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--thb-text-muted);
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.thb-card__title {
  font-family: var(--thb-font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--thb-brown-deep);
  margin-bottom: 0.5rem;
}
.thb-card__title a { color: inherit; }
.thb-card__title a:hover { color: var(--thb-amber); }

.thb-card__excerpt {
  font-size: 0.85rem;
  color: var(--thb-text-mid);
  line-height: 1.65;
  flex: 1;
}

.thb-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--thb-border);
}

.thb-read-more {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--thb-amber);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
}
.thb-read-more:hover { gap: 0.6rem; color: var(--thb-amber-hover); }
.thb-read-more::after { content: '→'; }

/* Stars */
.thb-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}
.thb-stars__star { color: var(--thb-amber); font-size: 0.85rem; }
.thb-stars__star--empty { opacity: 0.3; }
.thb-stars__count { font-size: 0.72rem; color: var(--thb-text-muted); margin-left: 0.3rem; }

/* ============================================================
   TOPBAR
   ============================================================ */
.thb-topbar {
  background: var(--thb-brown-deep);
  padding: 0.5rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
}
.thb-topbar a {
  color: var(--thb-amber-hover);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.thb-header {
  background: var(--thb-white);
  border-bottom: 1px solid var(--thb-border);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: var(--thb-shadow-sm);
}

.thb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1.5rem;
}

/* Logo */
.thb-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  text-decoration: none;
}
.thb-logo__icon {
  width: 40px;
  height: 40px;
  background: var(--thb-brown-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.thb-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.thb-logo__name {
  font-family: var(--thb-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--thb-brown-deep);
}
.thb-logo__tagline {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--thb-amber);
}

/* Desktop nav */
.thb-nav {
  display: flex;
  align-items: stretch;
  height: 70px;
  flex: 1;
  justify-content: center;
}
.thb-nav__list {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
  height: 100%;
}
.thb-nav__item { position: relative; display: flex; align-items: stretch; }
.thb-nav__link {
  display: flex;
  align-items: center;
  padding: 0 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--thb-text-mid);
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  gap: 0.25rem;
}
.thb-nav__link:hover,
.thb-nav__link--active {
  color: var(--thb-brown-deep);
  border-bottom-color: var(--thb-amber);
}
.thb-nav__item--has-dropdown .thb-nav__link::after {
  content: '▾';
  font-size: 0.65rem;
  opacity: 0.6;
}

/* Dropdown */
.thb-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: var(--thb-white);
  border: 1px solid var(--thb-border);
  border-top: 3px solid var(--thb-amber);
  min-width: 200px;
  box-shadow: var(--thb-shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: all 0.2s ease;
  z-index: 600;
}
.thb-nav__item--has-dropdown:hover .thb-dropdown,
.thb-nav__item--has-dropdown:focus-within .thb-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.thb-dropdown__link {
  display: block;
  padding: 0.65rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--thb-text-mid);
  border-bottom: 1px solid var(--thb-border);
  transition: all 0.15s ease;
}
.thb-dropdown__link:last-child { border-bottom: none; }
.thb-dropdown__link:hover { background: var(--thb-tan); color: var(--thb-amber); }

/* Header right */
.thb-header__right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.thb-search-toggle {
  background: var(--thb-tan);
  border: 1.5px solid var(--thb-border);
  border-radius: 2rem;
  padding: 0.45rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--thb-text-light);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: var(--thb-font-body);
}
.thb-search-toggle:hover {
  border-color: var(--thb-amber);
  background: var(--thb-amber-pale);
  color: var(--thb-text-dark);
}

/* Search overlay */
.thb-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,15,10,0.9);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.thb-search-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.thb-search-box {
  width: 100%;
  max-width: 600px;
  padding: 0 1.5rem;
}
.thb-search-box form {
  display: flex;
  border-bottom: 2px solid var(--thb-amber);
}
.thb-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--thb-cream);
  font-family: var(--thb-font-heading);
  font-size: clamp(1.2rem, 3vw, 2rem);
  padding: 0.5rem 0;
}
.thb-search-input::placeholder { color: rgba(251,247,242,0.3); }
.thb-search-submit {
  background: none;
  border: none;
  color: var(--thb-amber);
  font-size: 1.5rem;
  padding: 0.5rem;
  cursor: pointer;
}
.thb-search-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(251,247,242,0.6);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hamburger */
.thb-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.thb-hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--thb-brown-deep);
  transition: all 0.3s ease;
  transform-origin: center;
}
.thb-hamburger.is-open .thb-hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.thb-hamburger.is-open .thb-hamburger__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.thb-hamburger.is-open .thb-hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.thb-mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--thb-white);
  z-index: 490;
  overflow-y: auto;
  padding: 1.5rem;
  border-top: 3px solid var(--thb-amber);
  flex-direction: column;
  gap: 0;
}
.thb-mobile-nav.is-open { display: flex; }
.thb-mobile-nav__section {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--thb-amber);
  padding: 1.2rem 0 0.5rem;
}
.thb-mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--thb-text-dark);
  border-bottom: 1px solid var(--thb-border);
  transition: color 0.2s ease;
}
.thb-mobile-nav a:hover { color: var(--thb-amber); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.thb-trust-bar {
  background: var(--thb-tan);
  border-bottom: 1px solid var(--thb-border);
  padding: 0.75rem 0;
}
.thb-trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}
.thb-trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--thb-text-mid);
  white-space: nowrap;
}
.thb-trust-divider {
  width: 1px;
  height: 18px;
  background: var(--thb-tan-mid);
}

/* ============================================================
   HERO
   ============================================================ */
.thb-hero {
  background: var(--thb-brown-deep);
  position: relative;
  overflow: hidden;
  min-height: clamp(480px, 70vh, 680px);
  display: flex;
  align-items: center;
}
.thb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 72% 50%, rgba(212,122,31,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(60,31,15,0.5) 0%, transparent 45%);
  pointer-events: none;
}
.thb-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  width: 100%;
}
.thb-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212,122,31,0.15);
  border: 1px solid rgba(212,122,31,0.3);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--thb-amber-hover);
  margin-bottom: 1.4rem;
}
.thb-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--thb-cream);
  margin-bottom: 1.2rem;
  line-height: 1.12;
}
.thb-hero h1 em {
  font-style: italic;
  color: var(--thb-amber-hover);
}
.thb-hero__desc {
  font-size: 1rem;
  color: rgba(251,247,242,0.65);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 460px;
}
.thb-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.thb-hero__stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.thb-hero__stat-num {
  display: block;
  font-family: var(--thb-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--thb-amber-hover);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.thb-hero__stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(251,247,242,0.45);
}
/* Hero featured card */
.thb-hero__card {
  background: var(--thb-white);
  border-radius: var(--thb-radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: thbFloat 5s ease-in-out infinite;
  text-decoration: none;
  display: block;
}
@keyframes thbFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.thb-hero__card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.thb-hero__card-img img { width: 100%; height: 100%; object-fit: cover; }
.thb-hero__card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2a1208 0%, #8B4513 60%, var(--thb-amber) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.thb-hero__card-body { padding: 1.4rem; }
.thb-hero__card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--thb-amber);
  margin-bottom: 0.4rem;
}
.thb-hero__card-title {
  font-family: var(--thb-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--thb-brown-deep);
  line-height: 1.35;
  margin-bottom: 0.7rem;
}
.thb-hero__card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--thb-text-muted);
}
.thb-hero__card-read {
  color: var(--thb-amber);
  font-weight: 700;
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   CATEGORY HUBS
   ============================================================ */
.thb-hubs__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.thb-hubs__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.thb-hub {
  background: var(--thb-cream);
  border: 1.5px solid var(--thb-border);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
}
.thb-hub::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--thb-amber);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.thb-hub:hover {
  background: var(--thb-tan);
  border-color: var(--thb-amber);
  transform: translateY(-3px);
  box-shadow: var(--thb-shadow-md);
}
.thb-hub:hover::after { transform: scaleX(1); }
.thb-hub__icon { font-size: 2rem; display: block; margin-bottom: 0.7rem; }
.thb-hub__name {
  font-family: var(--thb-font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--thb-brown-deep);
  margin-bottom: 0.25rem;
}
.thb-hub__count { font-size: 0.7rem; color: var(--thb-text-muted); letter-spacing: 0.04em; }

/* ============================================================
   POSTS GRID
   ============================================================ */
.thb-posts__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.thb-posts__grid--featured {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}
.thb-post-card--featured {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}
.thb-post-card--featured .thb-card__img { aspect-ratio: 16/9; }
.thb-post-card--featured .thb-card__title { font-size: 1.4rem; margin-bottom: 0.7rem; }
.thb-post-card--featured .thb-card__excerpt { display: block; }

.thb-post-card--small .thb-card__img { aspect-ratio: 16/9; }
.thb-post-card--small .thb-card__excerpt { display: none; }

.thb-posts__row2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* ============================================================
   AFFILIATE PRODUCTS
   ============================================================ */
.thb-products__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.thb-products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.thb-product-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.thb-product-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(212,122,31,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.thb-product-card__img {
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.thb-product-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.thb-product-card__body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.thb-product-card__category {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(212,122,31,0.8);
  margin-bottom: 0.3rem;
}
.thb-product-card__name {
  font-family: var(--thb-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--thb-cream);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.thb-product-card__desc {
  font-size: 0.82rem;
  color: rgba(251,247,242,0.55);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 0.9rem;
}
.thb-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: auto;
}
.thb-product-price {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.thb-product-price__from {
  font-size: 0.62rem;
  color: rgba(251,247,242,0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.thb-product-price__amount {
  font-family: var(--thb-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--thb-amber-hover);
}
.thb-affiliate-disclaimer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.72rem;
  color: rgba(251,247,242,0.3);
  font-style: italic;
}
.thb-affiliate-disclaimer a { color: rgba(212,122,31,0.55); text-decoration: underline; }

/* ============================================================
   PILLAR STRIP
   ============================================================ */
.thb-pillar__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}
.thb-pillar__guides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.thb-pillar__guide {
  background: var(--thb-white);
  border: 1px solid var(--thb-border);
  padding: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.thb-pillar__guide:hover {
  border-color: var(--thb-amber);
  box-shadow: var(--thb-shadow-sm);
  transform: translateY(-1px);
}
.thb-pillar__guide-icon { font-size: 1.5rem; flex-shrink: 0; }
.thb-pillar__guide-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--thb-amber);
  margin-bottom: 0.2rem;
  display: block;
}
.thb-pillar__guide h4 {
  font-family: var(--thb-font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--thb-brown-deep);
  line-height: 1.35;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.thb-newsletter {
  background: linear-gradient(135deg, var(--thb-brown-mid) 0%, var(--thb-brown-deep) 100%);
  position: relative;
  overflow: hidden;
}
.thb-newsletter::before {
  content: '☕';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20rem;
  opacity: 0.03;
  pointer-events: none;
  user-select: none;
}
.thb-newsletter__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.thb-newsletter__left h2 {
  color: var(--thb-cream);
  margin-bottom: 0.8rem;
}
.thb-newsletter__left p {
  color: rgba(251,247,242,0.6);
  font-size: 0.95rem;
}
.thb-newsletter__perks {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.2rem;
}
.thb-perk {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(251,247,242,0.65);
  font-weight: 600;
}
.thb-perk__check { color: var(--thb-amber-hover); font-size: 1rem; flex-shrink: 0; }
.thb-newsletter__form { display: flex; flex-direction: column; gap: 1rem; }
.thb-form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.thb-form-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251,247,242,0.45);
}
.thb-form-input {
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--thb-radius);
  color: var(--thb-cream);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
  font-family: var(--thb-font-body);
}
.thb-form-input:focus { border-color: var(--thb-amber); background: rgba(255,255,255,0.12); }
.thb-form-input::placeholder { color: rgba(255,255,255,0.28); }
.thb-form-disclaimer {
  font-size: 0.72rem;
  color: rgba(251,247,242,0.28);
  text-align: center;
}

/* ============================================================
   E-E-A-T AUTHOR
   ============================================================ */
.thb-eeat__inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: center;
}
.thb-eeat__photo { text-align: center; }
.thb-eeat__avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 5px solid var(--thb-amber);
  box-shadow: 0 0 0 4px rgba(212,122,31,0.15);
  overflow: hidden;
  margin: 0 auto 1rem;
  background: var(--thb-brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.thb-eeat__name {
  font-family: var(--thb-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--thb-brown-deep);
  margin-bottom: 0.2rem;
}
.thb-eeat__role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--thb-amber);
}
.thb-eeat__right h2 { margin-bottom: 0.8rem; }
.thb-eeat__right p { margin-bottom: 1rem; font-size: 0.95rem; }
.thb-credentials {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.thb-credential {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--thb-white);
  border: 1px solid var(--thb-border);
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--thb-text-mid);
  border-radius: var(--thb-radius);
}

/* ============================================================
   FOOTER
   ============================================================ */
.thb-footer { background: var(--thb-brown-deep); }
.thb-footer__affiliate-notice {
  background: rgba(212,122,31,0.08);
  border: 1px solid rgba(212,122,31,0.15);
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.78rem;
  color: rgba(251,247,242,0.45);
  line-height: 1.7;
  text-align: center;
}
.thb-footer__affiliate-notice strong { color: rgba(251,247,242,0.65); }
.thb-footer__top {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.thb-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.thb-footer__brand h3 {
  font-family: var(--thb-font-heading);
  font-size: 1.15rem;
  color: var(--thb-cream);
  margin-bottom: 0.7rem;
}
.thb-footer__brand p {
  font-size: 0.85rem;
  color: rgba(251,247,242,0.45);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.2rem;
}
.thb-footer__social { display: flex; gap: 0.6rem; }
.thb-social-btn {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(251,247,242,0.6);
  transition: all 0.2s ease;
  text-decoration: none;
}
.thb-social-btn:hover { background: var(--thb-amber); border-color: var(--thb-amber); color: white; }
.thb-footer__col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--thb-amber);
  margin-bottom: 1.2rem;
}
.thb-footer__col ul { list-style: none; }
.thb-footer__col li { margin-bottom: 0.6rem; }
.thb-footer__col a {
  font-size: 0.85rem;
  color: rgba(251,247,242,0.45);
  transition: color 0.2s ease;
  text-decoration: none;
}
.thb-footer__col a:hover { color: var(--thb-amber-hover); }
.thb-footer__bottom {
  padding: 1.5rem 0;
}
.thb-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
}
.thb-footer__legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.thb-footer__legal a { color: rgba(251,247,242,0.3); transition: color 0.2s; text-decoration: none; }
.thb-footer__legal a:hover { color: var(--thb-amber-hover); }
.thb-footer__copy { color: rgba(251,247,242,0.25); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.thb-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--thb-text-muted);
  margin-bottom: 1.5rem;
}
.thb-breadcrumbs a { color: var(--thb-text-light); }
.thb-breadcrumbs a:hover { color: var(--thb-amber); }
.thb-breadcrumbs__sep { opacity: 0.4; font-size: 0.65rem; }
.thb-breadcrumbs__current { color: var(--thb-amber); font-weight: 600; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.thb-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.thb-widget {
  background: var(--thb-white);
  border: 1px solid var(--thb-border);
  overflow: hidden;
}
.thb-widget__header {
  background: var(--thb-brown-deep);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.thb-widget__title {
  font-family: var(--thb-font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--thb-cream);
  letter-spacing: 0.03em;
}
.thb-widget__body { padding: 1.2rem; }
.thb-widget--amber .thb-widget__header { background: var(--thb-amber); }

/* TOC widget */
.thb-toc { list-style: none; counter-reset: toc-counter; }
.thb-toc__item {
  counter-increment: toc-counter;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.thb-toc__item::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-size: 0.6rem;
  color: var(--thb-amber);
  font-weight: 700;
  flex-shrink: 0;
  width: 20px;
}
.thb-toc__link {
  font-size: 0.82rem;
  color: var(--thb-text-mid);
  line-height: 1.4;
  transition: color 0.2s;
  text-decoration: none;
}
.thb-toc__link:hover { color: var(--thb-amber); }
.thb-toc__link--active { color: var(--thb-amber); font-weight: 700; }

/* Sidebar product card */
.thb-sidebar-product {
  padding: 1.2rem;
  border-bottom: 1px solid var(--thb-border);
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.thb-sidebar-product:last-child { border-bottom: none; }
.thb-sidebar-product__img {
  width: 64px;
  height: 64px;
  background: var(--thb-tan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  border-radius: var(--thb-radius);
  overflow: hidden;
}
.thb-sidebar-product__img img { width: 100%; height: 100%; object-fit: contain; }
.thb-sidebar-product__name {
  font-family: var(--thb-font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--thb-brown-deep);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}
.thb-sidebar-product__price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--thb-amber);
  margin-bottom: 0.4rem;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.thb-post-header {
  background: var(--thb-brown-deep);
  padding: clamp(2.5rem, 5vw, 4rem) 0 0;
  position: relative;
  overflow: hidden;
}
.thb-post-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(212,122,31,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.thb-post-header__inner { position: relative; z-index: 1; max-width: 820px; }
.thb-post-header h1 {
  color: var(--thb-cream);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  margin-bottom: 1.2rem;
  line-height: 1.15;
}
.thb-post-header__subtitle {
  font-size: 1.05rem;
  color: rgba(251,247,242,0.6);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 680px;
}
.thb-post-header__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.thb-post-header__author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.thb-post-header__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--thb-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  overflow: hidden;
  flex-shrink: 0;
}
.thb-post-header__avatar img { width: 100%; height: 100%; object-fit: cover; }
.thb-post-header__author-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(251,247,242,0.85);
}
.thb-post-header__date { font-size: 0.8rem; color: rgba(251,247,242,0.45); }
.thb-post-header__read-time { font-size: 0.8rem; color: rgba(251,247,242,0.45); }
.thb-post-header__updated {
  background: rgba(212,122,31,0.15);
  border: 1px solid rgba(212,122,31,0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  color: var(--thb-amber-hover);
  font-weight: 700;
}
.thb-post-hero-img {
  margin-top: 2rem;
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  position: relative;
}
.thb-post-hero-img img { width: 100%; height: 480px; object-fit: cover; display: block; }

/* Post layout */
.thb-post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}
.thb-post-layout__main { max-width: 760px; }
.thb-post-layout__sidebar { position: sticky; top: 90px; }

/* Reading progress */
.thb-reading-progress {
  position: fixed;
  top: 70px;
  left: 0;
  height: 3px;
  background: var(--thb-amber);
  z-index: 400;
  width: 0%;
  transition: width 0.1s linear;
}

/* Quick answer / TL;DR */
.thb-quick-answer {
  background: var(--thb-amber-pale);
  border-left: 4px solid var(--thb-amber);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 var(--thb-radius) var(--thb-radius) 0;
}
.thb-quick-answer__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--thb-amber);
  margin-bottom: 0.4rem;
  display: block;
}
.thb-quick-answer p { font-size: 0.95rem; color: var(--thb-text-mid); margin: 0; }

/* Post content */
.thb-post-content { line-height: 1.85; }
.thb-post-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--thb-border);
  color: var(--thb-brown-deep);
}
.thb-post-content h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin: 2rem 0 0.8rem;
  color: var(--thb-brown-mid);
}
.thb-post-content p {
  font-size: 1rem;
  color: var(--thb-text-mid);
  margin-bottom: 1.4rem;
  line-height: 1.85;
}
.thb-post-content ul, .thb-post-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1.4rem;
}
.thb-post-content ul { list-style: disc; }
.thb-post-content ol { list-style: decimal; }
.thb-post-content li {
  color: var(--thb-text-mid);
  margin-bottom: 0.5rem;
  line-height: 1.7;
  font-size: 1rem;
}
.thb-post-content strong { color: var(--thb-brown-deep); font-weight: 700; }
.thb-post-content a { color: var(--thb-amber); text-decoration: underline; text-underline-offset: 2px; }
.thb-post-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--thb-amber);
  background: var(--thb-tan);
  font-style: italic;
  color: var(--thb-text-mid);
}
.thb-post-content img {
  border-radius: var(--thb-radius);
  margin: 1.5rem 0;
  box-shadow: var(--thb-shadow-md);
}
.thb-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.thb-post-content thead th {
  background: var(--thb-brown-deep);
  color: var(--thb-amber-hover);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.thb-post-content tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--thb-border);
  color: var(--thb-text-mid);
}
.thb-post-content tbody tr:nth-child(even) td { background: var(--thb-cream); }

/* Inline affiliate box */
.thb-affiliate-box {
  border: 2px solid var(--thb-amber);
  border-radius: var(--thb-radius);
  overflow: hidden;
  margin: 2rem 0;
}
.thb-affiliate-box__header {
  background: var(--thb-amber);
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
}
.thb-affiliate-box__body {
  background: var(--thb-amber-pale);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.thb-affiliate-box__img {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: var(--thb-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
  overflow: hidden;
}
.thb-affiliate-box__img img { width: 100%; height: 100%; object-fit: contain; }
.thb-affiliate-box__info { flex: 1; min-width: 200px; }
.thb-affiliate-box__name {
  font-family: var(--thb-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--thb-brown-deep);
  margin-bottom: 0.3rem;
}
.thb-affiliate-box__price { font-size: 0.9rem; color: var(--thb-text-mid); margin-bottom: 0; }

/* Callout box */
.thb-callout {
  background: var(--thb-brown-deep);
  color: var(--thb-cream);
  padding: 1.4rem 1.6rem;
  border-radius: var(--thb-radius);
  margin: 1.8rem 0;
}
.thb-callout p { color: rgba(251,247,242,0.8); margin: 0; font-size: 0.95rem; }
.thb-callout strong { color: var(--thb-amber-hover); }

/* Post tags */
.thb-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.5rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--thb-border);
}
.thb-post-tag {
  background: var(--thb-tan);
  border: 1px solid var(--thb-border);
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--thb-text-mid);
  transition: all 0.2s ease;
  border-radius: var(--thb-radius);
  text-decoration: none;
}
.thb-post-tag:hover { background: var(--thb-brown-deep); color: var(--thb-cream); border-color: var(--thb-brown-deep); }

/* Author bio */
.thb-author-bio {
  background: var(--thb-tan);
  padding: 1.5rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  border-radius: var(--thb-radius);
  margin: 2rem 0;
}
.thb-author-bio__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--thb-brown-deep);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 3px solid var(--thb-amber);
}
.thb-author-bio__avatar img { width: 100%; height: 100%; object-fit: cover; }
.thb-author-bio__name {
  font-family: var(--thb-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--thb-brown-deep);
  margin-bottom: 0.3rem;
}
.thb-author-bio__text { font-size: 0.88rem; color: var(--thb-text-mid); margin: 0; }

/* Related posts */
.thb-related { margin-top: 3rem; }
.thb-related h3 {
  font-family: var(--thb-font-heading);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}
.thb-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* ============================================================
   ARCHIVE / CATEGORY PAGE
   ============================================================ */
.thb-archive-hero {
  background: var(--thb-brown-deep);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  position: relative;
  overflow: hidden;
}
.thb-archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(212,122,31,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.thb-archive-hero__inner { position: relative; z-index: 1; max-width: 680px; }
.thb-archive-hero h1 { color: var(--thb-cream); margin-bottom: 0.8rem; }
.thb-archive-hero p { color: rgba(251,247,242,0.6); font-size: 1rem; margin: 0; }

.thb-filter-bar {
  background: var(--thb-white);
  border-bottom: 1px solid var(--thb-border);
  position: sticky;
  top: 70px;
  z-index: 100;
}
.thb-filter-bar__inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.thb-filter-bar__inner::-webkit-scrollbar { display: none; }
.thb-filter-btn {
  padding: 1rem 1.1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--thb-font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--thb-text-light);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  opacity: 0.65;
}
.thb-filter-btn:hover { opacity: 1; color: var(--thb-brown-deep); }
.thb-filter-btn.is-active {
  border-bottom-color: var(--thb-amber);
  color: var(--thb-amber);
  opacity: 1;
}

.thb-archive-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: clamp(2rem, 4vw, 3rem) 0;
  align-items: start;
}
.thb-archive__sidebar { position: sticky; top: 130px; }
.thb-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.thb-archive-grid .thb-card--featured {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
}
.thb-archive-grid .thb-card--featured .thb-card__img {
  width: 45%;
  min-width: 45%;
  aspect-ratio: unset;
  height: 100%;
  flex-shrink: 0;
}
.thb-archive-grid .thb-card--featured .thb-card__title { font-size: 1.3rem; }
.thb-archive-grid .thb-card--featured .thb-card__excerpt { display: block; }

.thb-pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.thb-page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--thb-border);
  background: var(--thb-white);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--thb-text-mid);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border-radius: var(--thb-radius);
  font-family: var(--thb-font-body);
}
.thb-page-btn:hover,
.thb-page-btn.is-active {
  background: var(--thb-brown-deep);
  border-color: var(--thb-brown-deep);
  color: var(--thb-cream);
}

/* ============================================================
   BEST-OF / ROUNDUP TEMPLATE
   ============================================================ */
.thb-quickpicks {
  background: var(--thb-tan);
  border: 1px solid var(--thb-border);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: var(--thb-radius);
}
.thb-quickpicks__title {
  font-family: var(--thb-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--thb-border);
}
.thb-quickpicks__table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.thb-quickpicks__table thead th {
  background: var(--thb-brown-deep);
  color: var(--thb-amber-hover);
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.thb-quickpicks__table tbody td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--thb-border);
  color: var(--thb-text-mid);
  vertical-align: middle;
}
.thb-quickpicks__table tbody tr:last-child td { border-bottom: none; }
.thb-quickpicks__table tbody tr:hover td { background: var(--thb-cream); }
.thb-quickpicks__name { font-weight: 700; color: var(--thb-brown-deep); }
.thb-quickpicks__price { font-weight: 700; color: var(--thb-amber); }

/* Product review section */
.thb-product-review {
  border: 1px solid var(--thb-border);
  border-radius: var(--thb-radius);
  overflow: hidden;
  margin: 2rem 0;
}
.thb-product-review__header {
  background: var(--thb-cream);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border-bottom: 1px solid var(--thb-border);
  flex-wrap: wrap;
}
.thb-product-review__img {
  width: 120px;
  height: 120px;
  background: var(--thb-tan);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-radius: var(--thb-radius);
  overflow: hidden;
}
.thb-product-review__img img { width: 100%; height: 100%; object-fit: contain; }
.thb-product-review__info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.thb-product-review__score {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--thb-brown-deep);
  color: var(--thb-amber-hover);
  padding: 0.3rem 0.7rem;
  border-radius: var(--thb-radius);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.thb-product-review__body { padding: 1.5rem; }
.thb-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.thb-pros { background: var(--thb-green-light); padding: 1rem; border-radius: var(--thb-radius); }
.thb-cons { background: #FDECEA; padding: 1rem; border-radius: var(--thb-radius); }
.thb-pros h4 { color: var(--thb-green-trust); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.6rem; }
.thb-cons h4 { color: #C0392B; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.6rem; }
.thb-pros ul, .thb-cons ul { list-style: none; padding: 0; }
.thb-pros li, .thb-cons li { font-size: 0.85rem; color: var(--thb-text-mid); margin-bottom: 0.35rem; padding-left: 1.2rem; position: relative; }
.thb-pros li::before { content: '✓'; position: absolute; left: 0; color: var(--thb-green-trust); font-weight: 700; }
.thb-cons li::before { content: '✗'; position: absolute; left: 0; color: #C0392B; font-weight: 700; }
.thb-product-review__footer {
  padding: 1rem 1.5rem;
  background: var(--thb-tan);
  border-top: 1px solid var(--thb-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.thb-verdict {
  font-size: 0.85rem;
  color: var(--thb-text-mid);
  font-style: italic;
  flex: 1;
  min-width: 200px;
}

/* ============================================================
   PILLAR HUB PAGE
   ============================================================ */
.thb-pillar-hero {
  background: var(--thb-brown-deep);
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}
.thb-pillar-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 40%, rgba(212,122,31,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.thb-pillar-hero__inner { position: relative; z-index: 1; max-width: 780px; }
.thb-pillar-hero h1 { color: var(--thb-cream); margin-bottom: 1rem; }
.thb-pillar-hero__desc { font-size: 1.05rem; color: rgba(251,247,242,0.65); max-width: 580px; margin: 0; }

.thb-cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}
.thb-cluster-card {
  background: var(--thb-white);
  border: 1px solid var(--thb-border);
  padding: 1.4rem;
  transition: all 0.25s ease;
  text-decoration: none;
  display: block;
  border-radius: var(--thb-radius);
}
.thb-cluster-card:hover {
  border-color: var(--thb-amber);
  transform: translateY(-2px);
  box-shadow: var(--thb-shadow-md);
}
.thb-cluster-card__icon { font-size: 1.8rem; margin-bottom: 0.7rem; display: block; }
.thb-cluster-card__tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--thb-amber);
  margin-bottom: 0.3rem;
  display: block;
}
.thb-cluster-card h4 {
  font-family: var(--thb-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--thb-brown-deep);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}
.thb-cluster-card p { font-size: 0.82rem; color: var(--thb-text-muted); margin: 0; }

/* FAQ accordion */
.thb-faq { margin: 2rem 0; }
.thb-faq__item { border-bottom: 1px solid var(--thb-border); }
.thb-faq__question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 0;
  font-family: var(--thb-font-body);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--thb-brown-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s ease;
}
.thb-faq__question:hover { color: var(--thb-amber); }
.thb-faq__icon {
  font-size: 1.3rem;
  color: var(--thb-amber);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  line-height: 1;
}
.thb-faq__item.is-open .thb-faq__icon { transform: rotate(45deg); }
.thb-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease;
}
.thb-faq__answer-inner {
  padding-bottom: 1.2rem;
  font-size: 0.95rem;
  color: var(--thb-text-mid);
  line-height: 1.75;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.thb-about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
.thb-about-hero__left {
  background: var(--thb-brown-deep);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.thb-about-hero__left h1 { color: var(--thb-cream); margin-bottom: 1.2rem; }
.thb-about-hero__left p { color: rgba(251,247,242,0.65); font-size: 1rem; margin: 0; max-width: 440px; }
.thb-about-hero__right {
  background: linear-gradient(135deg, #2a1208 0%, var(--thb-brown-light) 50%, var(--thb-amber) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.thb-gear-shelf { background: var(--thb-brown-deep); }
.thb-gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
}
.thb-gear-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 1.4rem;
  transition: background 0.2s ease;
}
.thb-gear-item:hover { background: rgba(255,255,255,0.08); }
.thb-gear-item__icon { font-size: 1.7rem; margin-bottom: 0.7rem; display: block; }
.thb-gear-item__category {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(212,122,31,0.8);
  margin-bottom: 0.25rem;
  display: block;
}
.thb-gear-item__name {
  font-family: var(--thb-font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--thb-cream);
  margin-bottom: 0.2rem;
}
.thb-gear-item__note { font-size: 0.78rem; color: rgba(251,247,242,0.4); }

.thb-beliefs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}
.thb-belief { border-top: 3px solid var(--thb-amber); padding-top: 1rem; }
.thb-belief h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.thb-belief p { font-size: 0.88rem; color: var(--thb-text-mid); margin: 0; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.thb-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 70px);
}
.thb-contact-left {
  background: var(--thb-brown-deep);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.thb-contact-left h1 { color: var(--thb-cream); margin-bottom: 1.2rem; }
.thb-contact-left__intro { color: rgba(251,247,242,0.6); font-size: 1rem; margin-bottom: 2.5rem; max-width: 380px; }
.thb-contact-channels { display: flex; flex-direction: column; gap: 1.4rem; }
.thb-contact-channel {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.thb-contact-channel:last-child { border-bottom: none; padding-bottom: 0; }
.thb-contact-channel__icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border-radius: var(--thb-radius);
}
.thb-contact-channel__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--thb-amber);
  margin-bottom: 0.2rem;
  display: block;
}
.thb-contact-channel__value { font-size: 0.88rem; color: rgba(251,247,242,0.7); }
.thb-contact-channel__value a { color: var(--thb-amber-hover); }
.thb-contact-channel__note { font-size: 0.75rem; color: rgba(251,247,242,0.35); display: block; margin-top: 0.15rem; }
.thb-contact-right {
  background: var(--thb-white);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.thb-contact-right h2 { margin-bottom: 1.5rem; }
.thb-contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.thb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.thb-field { display: flex; flex-direction: column; gap: 0.35rem; }
.thb-field label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--thb-text-mid);
  opacity: 0.75;
}
.thb-field input,
.thb-field select,
.thb-field textarea {
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--thb-border);
  background: var(--thb-cream);
  font-family: var(--thb-font-body);
  font-size: 0.95rem;
  color: var(--thb-text-dark);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  border-radius: var(--thb-radius);
  appearance: none;
  width: 100%;
}
.thb-field input:focus,
.thb-field select:focus,
.thb-field textarea:focus {
  border-color: var(--thb-amber);
  background: var(--thb-white);
}
.thb-field textarea { resize: vertical; min-height: 120px; line-height: 1.65; }
.thb-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='%23D47A1F'%3E%3Cpath d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}
.thb-success-msg {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}
.thb-success-msg__icon { font-size: 3.5rem; margin-bottom: 1rem; display: block; }
.thb-success-msg h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.thb-success-msg p { color: var(--thb-text-mid); }

/* ============================================================
   COMMENTS
   ============================================================ */
.thb-comments { margin-top: 3rem; }
.thb-comments h3 { font-size: 1.3rem; margin-bottom: 2rem; }
.thb-comment {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--thb-border);
}
.thb-comment:last-child { border-bottom: none; }
.thb-comment__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--thb-tan);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  overflow: hidden;
}
.thb-comment__avatar img { width: 100%; height: 100%; object-fit: cover; }
.thb-comment__name { font-weight: 700; font-size: 0.9rem; color: var(--thb-brown-deep); margin-bottom: 0.2rem; }
.thb-comment__date { font-size: 0.75rem; color: var(--thb-text-muted); margin-bottom: 0.6rem; }
.thb-comment__text { font-size: 0.9rem; color: var(--thb-text-mid); line-height: 1.7; margin: 0; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Large tablets (1024px and below) */
@media (max-width: 1024px) {
  .thb-hubs__grid { grid-template-columns: repeat(3, 1fr); }
  .thb-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .thb-products__grid { grid-template-columns: repeat(2, 1fr); }
  .thb-pillar__inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* Tablets (860px and below) */
@media (max-width: 860px) {
  .thb-nav { display: none; }
  .thb-hamburger { display: flex; }
  .thb-search-toggle span:not(:first-child) { display: none; }

  .thb-hero__inner { grid-template-columns: 1fr; }
  .thb-hero__card { display: none; }
  .thb-hero { min-height: auto; }
  .thb-hero__stats { gap: 1.5rem; }

  .thb-posts__grid--featured { grid-template-columns: 1fr; }
  .thb-post-card--featured { grid-row: auto; }
  .thb-post-card--small .thb-card__excerpt { display: block; }

  .thb-newsletter__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .thb-eeat__inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .thb-credentials { justify-content: center; }

  .thb-post-layout { grid-template-columns: 1fr; }
  .thb-post-layout__sidebar { position: static; }

  .thb-archive-layout { grid-template-columns: 1fr; }
  .thb-archive__sidebar { position: static; display: none; }
  .thb-filter-bar { top: 70px; }

  .thb-about-hero { grid-template-columns: 1fr; }
  .thb-about-hero__right { height: 240px; font-size: 5rem; min-height: 0; }

  .thb-contact-layout { grid-template-columns: 1fr; }

  .thb-pillar__guides { grid-template-columns: 1fr; }

  .thb-related__grid { grid-template-columns: 1fr 1fr; }

  .thb-archive-grid .thb-card--featured { flex-direction: column; }
  .thb-archive-grid .thb-card--featured .thb-card__img { width: 100%; min-width: 0; aspect-ratio: 16/9; height: auto; }

  .thb-pros-cons { grid-template-columns: 1fr; }
}

/* Mobile (600px and below) */
@media (max-width: 600px) {
  .thb-hubs__grid { grid-template-columns: repeat(2, 1fr); }
  .thb-posts__row2 { grid-template-columns: 1fr; }
  .thb-products__grid { grid-template-columns: 1fr; }
  .thb-related__grid { grid-template-columns: 1fr; }
  .thb-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .thb-footer__bottom-inner { flex-direction: column; align-items: center; text-align: center; }
  .thb-hero__actions { flex-direction: column; }
  .thb-hero__actions .thb-btn { width: 100%; justify-content: center; }
  .thb-trust-divider { display: none; }
  .thb-trust-bar__inner { gap: 0.8rem; }
  .thb-gear-grid { grid-template-columns: 1fr 1fr; }
  .thb-beliefs-grid { grid-template-columns: 1fr; }
  .thb-archive-grid { grid-template-columns: 1fr; }
  .thb-form-row { grid-template-columns: 1fr; }
  .thb-header__right .thb-btn { display: none; }
  .thb-quickpicks__table { font-size: 0.78rem; }
  .thb-quickpicks__table thead th,
  .thb-quickpicks__table tbody td { padding: 0.5rem; }
  .thb-affiliate-box__body { flex-direction: column; }
  .thb-pillar-hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
}

/* Small mobile (400px and below) */
@media (max-width: 400px) {
  .thb-hubs__grid { grid-template-columns: 1fr; }
  .thb-gear-grid { grid-template-columns: 1fr; }
  .thb-credentials { flex-direction: column; align-items: center; }
  .thb-hero__stat-num { font-size: 1.2rem; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .thb-header,
  .thb-topbar,
  .thb-trust-bar,
  .thb-reading-progress,
  .thb-newsletter,
  .thb-footer,
  .thb-post-layout__sidebar { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .thb-post-content a::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}

/* ============================================================
   WORDPRESS SPECIFIC
   ============================================================ */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--thb-text-muted); text-align: center; font-style: italic; margin-top: 0.5rem; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignnone { margin-bottom: 1rem; }
.gallery { display: grid; gap: 0.5rem; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-item { margin: 0; }
