/* ==========================================================================
   Making It, Makes Cent$™  —  Core Design System
   Brand colors: Rich Green #0B533B | Heritage Gold #D4AF37 | Black #0B0B0B | Warm Ivory #F7F3E8
   Typography: Montserrat (headlines/labels) + Open Sans (body)
   ========================================================================== */

:root {
  --rich-green: #0B533B;
  --rich-green-light: #146A4C;
  --rich-green-dark: #073826;
  --heritage-gold: #D4AF37;
  --heritage-gold-light: #E4C766;
  --heritage-gold-dark: #A8862A;
  --black: #0B0B0B;
  --warm-ivory: #F7F3E8;
  --warm-ivory-dark: #EDE6D6;
  --white: #FFFFFF;

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(11, 11, 11, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 11, 11, 0.10);
  --shadow-lg: 0 20px 48px rgba(11, 11, 11, 0.16);

  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--warm-ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--heritage-gold-dark);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; color: #3c3c3c; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 15px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-gold {
  background: var(--heritage-gold);
  color: var(--black);
}
.btn-gold:hover { background: var(--heritage-gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-light {
  background: transparent;
  border-color: rgba(247,243,232,0.55);
  color: var(--warm-ivory);
}
.btn-outline-light:hover { background: rgba(247,243,232,0.12); border-color: var(--warm-ivory); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}
.btn-outline-dark:hover { background: var(--black); color: var(--warm-ivory); }
.btn-green {
  background: var(--rich-green);
  color: var(--warm-ivory);
}
.btn-green:hover { background: var(--rich-green-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 8px 15px; font-size: 0.78rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--warm-ivory);
  border-bottom: 1px solid rgba(11,11,11,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo img { height: 50px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 1px; flex: 1; justify-content: center; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 9px;
  border-radius: 999px;
  color: var(--black);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: var(--rich-green); color: var(--warm-ivory); }

.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; color: var(--black); padding: 8px;
  display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--black); }

/* ---------- PWA Install button ---------- */
.pwa-install-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--rich-green);
  color: var(--warm-ivory);
  border: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.pwa-install-btn:hover { background: var(--rich-green-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pwa-install-btn i { font-size: 0.85rem; }
@media (max-width: 480px) {
  .pwa-install-btn span { display: none; }
  .pwa-install-btn { padding: 8px 10px; }
}

/* ---------- Language Translator ---------- */
#lang-switcher { position: relative; flex-shrink: 0; }
.lang-switcher-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: 1px solid rgba(11,11,11,0.18); border-radius: 999px;
  padding: 6px 10px; cursor: pointer; font-family: var(--font-head); font-weight: 600;
  font-size: 0.8rem; color: var(--black); transition: all 0.2s ease;
}
.lang-switcher-btn:hover { background: var(--warm-ivory-dark); border-color: var(--rich-green); }
.lang-switcher-btn i.fa-globe { color: var(--rich-green); font-size: 0.95rem; }
.lang-switcher-btn i.fa-chevron-down { font-size: 0.7rem; transition: transform 0.2s ease; }
#lang-switcher.open .lang-switcher-btn i.fa-chevron-down { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); min-width: 220px;
  padding: 8px; z-index: 1200;
  display: none; flex-direction: column; gap: 2px;
  max-height: 360px; overflow-y: auto;
}
#lang-switcher.open .lang-menu { display: flex; }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 10px 12px; border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: 0.9rem; color: var(--black);
}
.lang-menu button:hover { background: var(--warm-ivory-dark); }
.lang-menu button.active { color: var(--rich-green); font-weight: 700; }
.lang-menu button.active i { color: var(--rich-green); }
.lang-menu-footer {
  font-size: 0.7rem; color: #8a8a8a; padding: 10px 12px 4px;
  border-top: 1px solid rgba(11,11,11,0.08); margin-top: 4px; line-height: 1.4;
}

/* Hide Google's own translate banner/toolbar + iframe artifacts so only
   our custom dropdown UI is visible; the widget itself still runs the
   actual translation in the background. */
#google_translate_element { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.goog-te-banner-frame, .goog-te-balloon-frame, iframe.skiptranslate, iframe.goog-te-banner-frame { display: none !important; visibility: hidden !important; height: 0 !important; }
html.translated-ltr body, html.translated-rtl body, body { top: 0px !important; position: static !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

@media (max-width: 1100px) {
  .lang-menu { right: auto; left: 0; }
}

@media (max-width: 480px) {
  .header-inner { gap: 10px; padding: 12px 14px; }
  .header-actions { gap: 6px; }
  .lang-switcher-btn span { display: none; }
  .lang-switcher-btn { padding: 8px 10px; }
  .header-actions .btn-sm.btn-outline-dark { display: none; }
  .icon-btn { padding: 6px; }
}

@media (max-width: 1090px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--warm-ivory);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    box-shadow: var(--shadow-md);
    gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--rich-green) 0%, var(--rich-green-dark) 100%);
  color: var(--warm-ivory);
  overflow: hidden;
  padding: 10px 0 40px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(212,175,55,0.18) 0%, transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(212,175,55,0.10) 0%, transparent 45%);
  pointer-events: none;
}
/* Step-and-repeat maker-tools line-art pattern, tiled across the entire
   green hero section, showing through faintly from underneath. The source
   art is black line-work on a white tile; a CSS invert flips it to white
   line-work on black, then "screen" blend mode drops the black (now
   transparent-acting) areas entirely so only the tool outlines glow up
   through the dark green — instead of the whole tile faintly whitewashing
   the background, which was nearly invisible at low opacity. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../images/hero-pattern.png');
  background-repeat: repeat;
  background-size: 340px 340px;
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: 0.2;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-content {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-content .eyebrow { color: var(--heritage-gold-light); }

/* "Making It, Makes Cent$" script wordmark — Great Vibes cursive font,
   gold metallic gradient to match the logo, sized as large as possible
   while always staying on a single line at any viewport width. Extra
   line-height + padding above/below prevents the tall loops/swashes of
   this script font from being visually clipped by the container. */
.hero-script {
  display: block;
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: clamp(1.8rem, 8.5vw, 5.2rem);
  line-height: 1.5;
  padding: 0.15em 0 0.2em;
  white-space: nowrap;
  background: linear-gradient(135deg, #F5E7A8 0%, #D4AF37 25%, #A8862A 50%, #E4C766 75%, #F5E7A8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--heritage-gold);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
  margin-bottom: 0;
}

.hero h1 {
  font-size: clamp(2rem, 6.4vw, 5rem);
  margin: 0 0 8px;
  white-space: nowrap;
}
.hero h1 .hero-learn-it {
  color: var(--rich-green);
  -webkit-text-stroke: 1.5px var(--warm-ivory);
  paint-order: stroke fill;
  text-shadow: 0 1px 12px rgba(247,243,232,0.35);
}
.hero h1 .hero-make-it { color: var(--warm-ivory); }
.hero h1 .hero-profit { color: var(--heritage-gold); }

.hero p.lead {
  font-size: clamp(1.05rem, 1.9vw, 1.55rem);
  color: rgba(247,243,232,0.88);
  max-width: 980px;
  margin: 0 auto 0;
  text-align: center;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}
.hero-stats {
  display: flex;
  gap: 56px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--heritage-gold);
}
.hero-stats div span { font-size: 0.85rem; color: rgba(247,243,232,0.75); }

/* ---------- Hero Skills Carousel ---------- */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 2px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
}
.hero-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
}
.hero-carousel-slide.active {
  opacity: 1;
  visibility: visible;
}
.hero-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-carousel-caption {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(11,11,11,0.68);
  backdrop-filter: blur(6px);
  color: var(--warm-ivory);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}
.hero-carousel-dots {
  position: absolute;
  bottom: 14px; right: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-carousel-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(247,243,232,0.45);
  cursor: pointer;
  padding: 0;
}
.hero-carousel-dots button.active { background: var(--heritage-gold); }

@media (max-width: 900px) {
  .hero-carousel { aspect-ratio: 4/3; }
}
@media (max-width: 600px) {
  .hero-stats { gap: 30px; }
  .hero-carousel-caption { font-size: 0.82rem; padding: 6px 12px; }
}

/* ---------- How Do I Make It Search ---------- */
.discovery-search {
  background: var(--black);
  color: var(--warm-ivory);
  padding: 70px 0;
}
.discovery-search .section-head { color: var(--warm-ivory); }
.discovery-search .section-head p { color: rgba(247,243,232,0.75); }
.search-box {
  display: flex;
  gap: 12px;
  background: var(--warm-ivory);
  border-radius: 999px;
  padding: 8px 8px 8px 24px;
  box-shadow: var(--shadow-lg);
  max-width: 760px;
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--black);
}
.search-box button {
  border-radius: 999px;
  border: none;
  background: var(--rich-green);
  color: var(--warm-ivory);
  font-family: var(--font-head);
  font-weight: 700;
  padding: 14px 30px;
  cursor: pointer;
  transition: background 0.2s;
}
.search-box button:hover { background: var(--rich-green-dark); }
.search-suggestions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.search-suggestions button {
  background: rgba(247,243,232,0.08);
  border: 1px solid rgba(247,243,232,0.25);
  color: var(--warm-ivory);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-family: var(--font-head);
  cursor: pointer;
  transition: all 0.2s;
}
.search-suggestions button:hover { background: var(--heritage-gold); color: var(--black); border-color: var(--heritage-gold); }
#search-results { margin-top: 32px; display: grid; gap: 14px; }
.search-result-item {
  background: rgba(247,243,232,0.06);
  border: 1px solid rgba(247,243,232,0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.search-result-item .tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--heritage-gold);
  font-family: var(--font-head);
  font-weight: 700;
}
.search-result-item h4 { margin: 4px 0 0; font-size: 1.02rem; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* The Magazine page's issues grid now shows a single Premiere Issue card;
   center it in the row instead of stretching it to a quarter-width column. */
#issues-grid {
  grid-template-columns: minmax(280px, 340px);
  justify-content: center;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--warm-ivory-dark); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
/* Magazine cover art is portrait-oriented; show it at its natural ratio,
   uncropped, instead of forcing it into the 4:3 landscape frame used for
   photo cards (which was cutting off the top and bottom of the cover). */
.card-media-cover { aspect-ratio: auto; }
.card-media-cover img { height: auto; object-fit: contain; }
.cat-pill {
  background: rgba(11,11,11,0.75);
  color: var(--heritage-gold);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
}
.card-media .cat-pill {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
}
.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
/* Category pill badges that live in the card's off-white/beige text area
   (used for course + video cards): centered, pinned 12px (1/8") above the
   card's bottom edge. card-body's 24px bottom padding is reduced by 12px
   of negative margin on the pill to land exactly 12px from the edge. */
.card-body .cat-pill {
  align-self: center;
  margin-top: 10px;
  margin-bottom: -12px;
}
.card-body h3, .card-body h4 { font-size: 1.08rem; margin-bottom: 8px; }
.card-body p { font-size: 0.92rem; color: #4a4a4a; margin: 0 0 14px; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: #6b6b6b; font-family: var(--font-head); font-weight: 600; }

/* ---------- Category chips ---------- */
.category-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.category-chip {
  flex-shrink: 0;
  width: 168px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.category-chip:hover { transform: translateY(-4px); }
.category-chip img { width: 100%; height: 100%; object-fit: cover; }
.category-chip::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,11,11,0.82) 100%);
}
.category-chip span {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  z-index: 1;
}

/* ---------- Panels ---------- */
.panel-green {
  background: var(--rich-green);
  color: var(--warm-ivory);
}
.panel-green .section-head p { color: rgba(247,243,232,0.8); }
.panel-black { background: var(--black); color: var(--warm-ivory); }

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}
@media (max-width: 900px) { .split-panel { grid-template-columns: 1fr; } }
.split-panel img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-panel .eyebrow { color: var(--heritage-gold); }
.split-panel ul.check-list { margin-top: 20px; display: grid; gap: 12px; }
.split-panel ul.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.split-panel ul.check-list i { color: var(--heritage-gold); margin-top: 3px; }

/* ---------- Creator spotlight ---------- */
.creator-card {
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s;
}
.creator-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.creator-card img {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px; border: 3px solid var(--heritage-gold);
}
.creator-card h4 { margin-bottom: 2px; }
.creator-card .skill { color: var(--rich-green); font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; margin-bottom: 12px; }
.creator-card p { font-size: 0.9rem; color: #4a4a4a; }
.creator-card .loc { font-size: 0.78rem; color: var(--heritage-gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Newsletter ---------- */
.newsletter-panel {
  background: linear-gradient(135deg, var(--heritage-gold) 0%, var(--heritage-gold-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.newsletter-panel h2 { color: var(--black); margin-bottom: 8px; }
.newsletter-panel p { color: rgba(11,11,11,0.75); margin: 0; max-width: 460px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 14px 20px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  min-width: 260px;
  font-size: 0.95rem;
}
.newsletter-form button {
  background: var(--black);
  color: var(--warm-ivory);
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.newsletter-form button:hover { opacity: 0.85; }
.form-msg { font-size: 0.85rem; margin-top: 8px; font-weight: 600; }

/* ---------- App download ---------- */
.app-download {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .app-download { grid-template-columns: 1fr; text-align: center; } }
.store-badges { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 900px) { .store-badges { justify-content: center; } }
.store-badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--black); color: var(--warm-ivory);
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
}
.store-badge i { font-size: 1.4rem; color: var(--heritage-gold); }
.store-badge-disabled { opacity: 0.5; cursor: default; }
.store-badge-btn {
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-head);
  transition: all 0.2s ease;
}
.store-badge-btn:hover { background: var(--rich-green); }
.app-install-hint {
  margin-top: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 440px;
}

/* ---------- "Coming Soon" badge ---------- */
/* Shown in place of a Download/Listen/Read/View button when the
   underlying item doesn't have a real link yet. Keeps the card content
   visible while making clear there's nothing to click yet. */
.badge-coming-soon {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--heritage-gold-dark);
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Podcast / Magazine highlight ---------- */
.media-highlight {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  align-items: center;
}
@media (max-width: 800px) { .media-highlight { grid-template-columns: 1fr; } }
.media-highlight img { border-radius: var(--radius-md); aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.media-highlight .eyebrow { color: var(--rich-green); }

/* ---------- Footer ---------- */
#site-footer {
  background: var(--black);
  color: rgba(247,243,232,0.82);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(247,243,232,0.12);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 {
  color: var(--heritage-gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid li a:hover { color: var(--heritage-gold); }
.footer-brand { text-align: center; }
.footer-brand img { height: 60px; margin: 0 auto 16px; display: block; }
.footer-brand p { font-size: 0.88rem; max-width: 280px; margin: 0 auto; color: rgba(247,243,232,0.65); }
.footer-social { display: flex; gap: 14px; margin-top: 18px; justify-content: center; }
.footer-social a {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(247,243,232,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--heritage-gold); color: var(--black); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(247,243,232,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { margin-left: 18px; }
.footer-bottom a:hover { color: var(--heritage-gold); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.tag-pill {
  display: inline-block;
  background: var(--warm-ivory-dark);
  color: var(--rich-green);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
}
.badge-free {
  background: var(--rich-green);
  color: var(--warm-ivory);
  font-size: 0.7rem;
  font-family: var(--font-head);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

/* Page header banner for sub-pages */
.page-banner {
  background: linear-gradient(160deg, var(--rich-green) 0%, var(--rich-green-dark) 100%);
  color: var(--warm-ivory);
  padding: 64px 0 56px;
  text-align: center;
}
.page-banner .eyebrow { color: var(--heritage-gold-light); }
.page-banner h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-banner p { max-width: 620px; margin: 0 auto; color: rgba(247,243,232,0.85); font-size: 1.05rem; }

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  border: 2px solid var(--rich-green);
  background: transparent;
  color: var(--rich-green);
  border-radius: 999px;
  padding: 9px 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--rich-green); color: var(--warm-ivory); }

/* Sign in / join */
.auth-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rich-green);
  padding: 60px 20px;
}
.auth-card {
  background: var(--warm-ivory);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.auth-card img { height: 56px; margin: 0 auto 20px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 28px; background: var(--warm-ivory-dark); border-radius: 999px; padding: 4px; }
.auth-tabs button {
  flex: 1; border: none; background: transparent; padding: 10px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; cursor: pointer; color: var(--black);
}
.auth-tabs button.active { background: var(--rich-green); color: var(--warm-ivory); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid rgba(11,11,11,0.18); font-family: var(--font-body); font-size: 0.95rem;
  background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: 2px solid var(--rich-green); }
.auth-note { text-align: center; font-size: 0.85rem; margin-top: 18px; color: #4a4a4a; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--black); color: var(--white); padding: 8px 16px; z-index: 2000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ==========================================================================
   Maker's Glossary
   ========================================================================== */

/* ---- Glossary hero / search hub ---- */
.glossary-hero {
  background: linear-gradient(160deg, var(--rich-green) 0%, var(--rich-green-dark) 100%);
  color: var(--warm-ivory);
  padding: 72px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.glossary-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 12%, rgba(212,175,55,0.16) 0%, transparent 55%);
  pointer-events: none;
}
.glossary-hero .container { position: relative; z-index: 1; }
.glossary-hero .eyebrow { color: var(--heritage-gold-light); }
.glossary-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin: 12px 0 6px; }
.glossary-hero .supporting-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--heritage-gold);
  margin-bottom: 10px;
}
.glossary-hero .tagline {
  max-width: 640px;
  margin: 0 auto 34px;
  color: rgba(247,243,232,0.85);
  font-size: 1.05rem;
}

.glossary-search-wrap { max-width: 720px; margin: 0 auto; position: relative; }
.glossary-search-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--warm-ivory);
}
.glossary-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--warm-ivory);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  box-shadow: var(--shadow-lg);
}
.glossary-search-box i.fa-magnifying-glass { color: var(--rich-green); font-size: 1.05rem; }
.glossary-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--black);
  padding: 10px 0;
}
.glossary-search-box button {
  border-radius: 999px;
  border: none;
  background: var(--heritage-gold);
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 700;
  padding: 13px 28px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.glossary-search-box button:hover { background: var(--heritage-gold-dark); }

/* Autocomplete dropdown */
.glossary-autocomplete {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: left;
  overflow: hidden;
  z-index: 50;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}
.glossary-autocomplete.open { display: block; }
.glossary-autocomplete .ac-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 1px solid rgba(11,11,11,0.06);
  color: var(--black);
}
.glossary-autocomplete .ac-item:last-child { border-bottom: none; }
.glossary-autocomplete .ac-item:hover, .glossary-autocomplete .ac-item.hi { background: var(--warm-ivory); }
.glossary-autocomplete .ac-item strong { font-family: var(--font-head); font-size: 0.95rem; }
.glossary-autocomplete .ac-item span.ac-cat {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--rich-green); font-family: var(--font-head); font-weight: 700; flex-shrink: 0;
}
.glossary-autocomplete .ac-empty { padding: 16px 20px; color: #6b6b6b; font-size: 0.9rem; }

.glossary-search-examples {
  margin-top: 18px;
  font-size: 0.85rem;
  color: rgba(247,243,232,0.7);
}
.glossary-search-examples a { color: var(--heritage-gold-light); text-decoration: underline; cursor: pointer; }

/* ---- Glossary hub layout ---- */
.glossary-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: start;
}
@media (max-width: 900px) { .glossary-layout { grid-template-columns: 1fr; } }

.glossary-sidebar {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
@media (max-width: 900px) { .glossary-sidebar { position: static; max-height: none; overflow-y: visible; } }
.glossary-sidebar h4 {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--heritage-gold-dark); margin-bottom: 14px; margin-top: 0;
}
.glossary-sidebar .sidebar-block { margin-bottom: 30px; }
.glossary-sidebar .sidebar-block:last-child { margin-bottom: 0; }

/* A-Z index */
.az-index { display: flex; flex-wrap: wrap; gap: 6px; }
.az-index button {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(11,11,11,0.14);
  background: transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--black);
  cursor: pointer;
  transition: all 0.2s;
}
.az-index button:hover, .az-index button.active { background: var(--rich-green); color: var(--warm-ivory); border-color: var(--rich-green); }
.az-index button:disabled { opacity: 0.28; cursor: default; }
.az-index button:disabled:hover { background: transparent; color: var(--black); }

/* Category list in sidebar — click a category to expand an inline popover
   listing every term in that category (does not filter the results grid). */
.glossary-cat-list { display: grid; gap: 4px; }
.cat-item { border-radius: var(--radius-sm); overflow: hidden; }
.cat-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cat-btn:hover { background: var(--warm-ivory); }
.cat-btn.active { background: var(--rich-green); color: var(--warm-ivory); }
.cat-btn .count { font-size: 0.75rem; opacity: 0.7; }
.cat-btn .cat-chevron { font-size: 0.7rem; opacity: 0.6; transition: transform 0.2s; margin-left: 2px; }
.cat-item.open .cat-btn .cat-chevron { transform: rotate(180deg); }

.cat-term-popover {
  display: grid;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  padding: 0 10px;
  background: var(--warm-ivory);
  border-radius: var(--radius-sm);
  transition: max-height 0.25s ease, padding 0.25s ease;
}
.cat-item.open .cat-term-popover {
  max-height: 260px;
  overflow-y: auto;
  padding: 8px 10px 10px;
  margin-top: 2px;
}
.cat-term-link {
  display: block;
  font-size: 0.84rem;
  color: var(--rich-green);
  padding: 4px 6px;
  border-radius: 4px;
  text-decoration: none;
}
.cat-term-link:hover { background: rgba(11,83,59,0.08); text-decoration: underline; }

/* Results toolbar */
.glossary-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.glossary-toolbar .result-count { font-family: var(--font-head); font-weight: 700; color: var(--rich-green); }
.glossary-toolbar select {
  border: 1.5px solid rgba(11,11,11,0.15);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  background: var(--white);
}

/* Term result cards */
.term-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .term-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .term-grid { grid-template-columns: 1fr; } }

.term-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.term-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.term-card .term-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.term-card h3 { font-size: 1.15rem; margin: 0; }
.term-card h3 a { color: var(--black); }
.term-card h3 a:hover { color: var(--rich-green); }
.term-card .term-pron { font-size: 0.78rem; color: #7a7a7a; font-style: italic; margin-bottom: 8px; font-family: var(--font-body); }
.term-card .term-cat-pill {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--rich-green); font-family: var(--font-head); font-weight: 700;
  background: var(--warm-ivory-dark); padding: 4px 10px; border-radius: 999px; flex-shrink: 0;
}
.term-card p.term-short-def { font-size: 0.92rem; color: #4a4a4a; flex: 1; margin: 0 0 14px; }
.term-card .term-card-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.bookmark-btn {
  background: none; border: none; cursor: pointer;
  color: #b8b8b8; font-size: 1.05rem; padding: 2px;
  transition: color 0.2s, transform 0.15s;
}
.bookmark-btn:hover { transform: scale(1.15); }
.bookmark-btn.saved { color: var(--heritage-gold); }

.no-results { padding: 40px 20px; text-align: center; color: #6b6b6b; }
.no-results i { font-size: 2rem; color: var(--heritage-gold); margin-bottom: 12px; display: block; }

/* ---- Term detail page ---- */
.term-detail-hero {
  background: linear-gradient(160deg, var(--rich-green) 0%, var(--rich-green-dark) 100%);
  color: var(--warm-ivory);
  padding: 56px 0 44px;
}
.term-detail-hero .breadcrumb { font-size: 0.82rem; color: rgba(247,243,232,0.7); margin-bottom: 16px; }
.term-detail-hero .breadcrumb a { color: var(--heritage-gold-light); }
.term-detail-hero .term-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.term-detail-hero .term-badges .badge {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-head); font-weight: 700;
  padding: 5px 14px; border-radius: 999px; background: rgba(247,243,232,0.12); color: var(--heritage-gold-light);
}
.term-detail-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 0 0 6px; }
.term-detail-hero .pron { font-size: 1.05rem; color: rgba(247,243,232,0.75); font-style: italic; margin-bottom: 18px; }
.term-detail-hero .also-known-as { font-size: 0.9rem; color: rgba(247,243,232,0.75); }
.term-detail-hero .term-hero-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.term-hero-actions .bookmark-btn { background: rgba(247,243,232,0.1); border-radius: 999px; padding: 10px 16px; color: var(--warm-ivory); font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 8px; }
.term-hero-actions .bookmark-btn.saved { color: var(--heritage-gold); background: rgba(212,175,55,0.16); }
.term-hero-actions .share-btn { background: rgba(247,243,232,0.1); border-radius: 999px; padding: 10px 16px; color: var(--warm-ivory); font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; }

.term-detail-body { display: grid; grid-template-columns: 2.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .term-detail-body { grid-template-columns: 1fr; } }

.term-section { margin-bottom: 34px; }
.term-section:last-child { margin-bottom: 0; }
.term-section h2 {
  font-size: 1.02rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--rich-green); margin-bottom: 10px;
}
.term-section p { color: #3c3c3c; font-size: 1rem; margin: 0; }
.term-section ul.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.term-section ul.tag-list li {
  background: var(--warm-ivory-dark); color: var(--rich-green);
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem;
  padding: 6px 14px; border-radius: 999px;
}

.beginner-tip-box, .safety-note-box {
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.beginner-tip-box { background: rgba(11,83,59,0.08); border: 1px solid rgba(11,83,59,0.2); }
.beginner-tip-box i { color: var(--rich-green); font-size: 1.2rem; margin-top: 2px; }
.beginner-tip-box strong { display: block; color: var(--rich-green); font-family: var(--font-head); margin-bottom: 4px; }
.safety-note-box { background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.3); }
.safety-note-box i { color: var(--heritage-gold-dark); font-size: 1.2rem; margin-top: 2px; }
.safety-note-box strong { display: block; color: var(--heritage-gold-dark); font-family: var(--font-head); margin-bottom: 4px; }

.show-me-how-panel {
  background: var(--black);
  color: var(--warm-ivory);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-top: 8px;
}
.show-me-how-panel .journey { font-size: 0.78rem; letter-spacing: 0.05em; color: rgba(247,243,232,0.6); margin-bottom: 14px; font-family: var(--font-head); }
.show-me-how-panel .journey span { color: var(--heritage-gold); }
.show-me-how-panel h3 { margin-bottom: 16px; font-size: 1.3rem; }
.btn-show-me-how {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--heritage-gold); color: var(--black);
  font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  padding: 16px 34px; border-radius: 999px; transition: all 0.25s;
}
.btn-show-me-how:hover { background: var(--heritage-gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.term-sidebar-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.term-sidebar-card h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--heritage-gold-dark); margin-bottom: 14px; }
.related-term-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid rgba(11,11,11,0.08); font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--black);
}
.related-term-link:last-child { border-bottom: none; }
.related-term-link:hover { color: var(--rich-green); }
.related-content-link {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid rgba(11,11,11,0.08); font-size: 0.88rem;
}
.related-content-link:last-child { border-bottom: none; }
.related-content-link i { color: var(--heritage-gold-dark); margin-top: 2px; }
.related-content-link .rc-type { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--rich-green); font-family: var(--font-head); font-weight: 700; }

/* Suggest a term */
.suggest-term-panel {
  background: var(--rich-green);
  color: var(--warm-ivory);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.suggest-term-panel h3 { margin-bottom: 6px; }
.suggest-term-panel p { color: rgba(247,243,232,0.8); margin-bottom: 22px; }
.suggest-term-panel .form-group label { color: var(--warm-ivory); }

/* Popular / recent / featured tags list */
.term-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.term-tag-cloud button {
  background: var(--white); border: 1px solid rgba(11,11,11,0.12);
  border-radius: 999px; padding: 7px 16px; font-family: var(--font-head); font-weight: 600;
  font-size: 0.82rem; cursor: pointer; color: var(--black); transition: all 0.2s;
}
.term-tag-cloud button:hover { background: var(--rich-green); color: var(--warm-ivory); border-color: var(--rich-green); }

/* Compact term list (used in Learn page preview + featured strips) */
.term-mini-list { display: grid; gap: 12px; }
.term-mini-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--white); border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow-sm);
}
.term-mini-card .tm-term { font-family: var(--font-head); font-weight: 700; }
.term-mini-card .tm-cat { font-size: 0.72rem; color: var(--rich-green); text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-head); font-weight: 700; }
.term-mini-card a.tm-go { color: var(--heritage-gold-dark); font-size: 0.85rem; font-family: var(--font-head); font-weight: 700; }

/* ==========================================================================
   Legal pages (Privacy Policy / Terms)
   ========================================================================== */
.legal-doc { max-width: 800px; }
.legal-doc h2 { margin-top: 44px; margin-bottom: 14px; font-size: 1.4rem; color: var(--rich-green); scroll-margin-top: 110px; }
.legal-doc p { margin: 0 0 16px; color: #333; }
.legal-updated { color: #6b6b6b; font-size: 0.9rem; }
.legal-list { display: grid; gap: 10px; margin: 0 0 16px; padding-left: 0; }
.legal-list li { position: relative; padding-left: 22px; color: #333; }
.legal-list li::before { content: '\2022'; position: absolute; left: 4px; color: var(--heritage-gold-dark); font-weight: 700; }

.legal-toc {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  margin: 28px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.legal-toc strong { width: 100%; font-family: var(--font-head); color: var(--black); margin-bottom: 4px; }
.legal-toc a { color: var(--rich-green); font-size: 0.9rem; font-weight: 600; }
.legal-toc a:hover { text-decoration: underline; }

.legal-table-wrap { overflow-x: auto; margin-bottom: 16px; }
.legal-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); font-size: 0.9rem; }
.legal-table th, .legal-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(11,11,11,0.08); vertical-align: top; }
.legal-table th { background: var(--rich-green); color: var(--warm-ivory); font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.legal-table tr:last-child td { border-bottom: none; }

/* ==========================================================================
   Measurement Chart & Unit Converter (Learn page)
   ========================================================================== */
.measure-defs { display: grid; gap: 16px; margin: 0; }
.measure-defs dt {
  font-family: var(--font-head); font-weight: 700; color: var(--rich-green);
  font-size: 1rem; margin-bottom: 4px;
}
.measure-defs dd { margin: 0; color: #4a4a4a; font-size: 0.92rem; }

.converter-card h3 { display: flex; align-items: center; gap: 10px; color: var(--rich-green); }
.converter-card h3 i { color: var(--heritage-gold-dark); }
.converter-card .form-group { margin-bottom: 14px; }

.convert-result {
  margin-top: 16px;
  background: var(--warm-ivory-dark);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--black);
  font-size: 1.05rem;
  min-height: 24px;
}
.convert-result .cr-sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.82rem; color: #6b6b6b; margin-top: 4px; }
.convert-result.empty { color: #8a8a8a; font-weight: 400; font-size: 0.9rem; }

/* ==========================================================================
   Cookie Consent Banner + Preferences Modal ("Cookie Bot")
   ========================================================================== */
#cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: var(--black);
  color: var(--warm-ivory);
  padding: 22px 24px;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
  transform: translateY(110%);
  transition: transform 0.4s ease;
}
#cookie-consent-banner.visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 240px; }
.cookie-banner-text h3 {
  font-size: 1rem; margin: 0 0 6px; display: flex; align-items: center; gap: 8px;
  color: var(--warm-ivory);
}
.cookie-banner-text h3 i { color: var(--heritage-gold); }
.cookie-banner-text p { margin: 0; font-size: 0.86rem; color: rgba(247,243,232,0.78); }
.cookie-banner-text p a { color: var(--heritage-gold-light); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 11px 20px; font-size: 0.82rem; }

@media (max-width: 700px) {
  #cookie-consent-banner {
    padding: 12px 14px 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    max-height: 70vh;
    overflow-y: auto;
  }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .cookie-banner-text h3 { font-size: 0.88rem; margin: 0 0 3px; }
  .cookie-banner-text p { font-size: 0.76rem; line-height: 1.35; }
  .cookie-banner-actions { width: 100%; flex-direction: column; flex-wrap: nowrap; gap: 6px; }
  .cookie-banner-actions .btn {
    flex: none;
    width: 100%;
    white-space: normal;
    padding: 9px 14px;
    font-size: 0.78rem;
  }
}

@media (max-width: 700px) and (max-height: 700px) {
  /* Extra-short mobile viewports (landscape phones, small devices) —
     shrink further and rely on the banner's own scroll if needed. */
  #cookie-consent-banner { max-height: 60vh; }
  .cookie-banner-text p { display: none; }
}

/* Preferences modal */
#cookie-prefs-overlay {
  position: fixed; inset: 0; z-index: 3100;
  background: rgba(11,11,11,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#cookie-prefs-overlay.open { display: flex; }
.cookie-prefs-modal {
  background: var(--warm-ivory);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 32px;
}
.cookie-prefs-modal h2 {
  font-size: 1.5rem; margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cookie-prefs-close {
  background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--black); padding: 4px;
}
.cookie-prefs-modal > p.cookie-prefs-intro { color: #4a4a4a; font-size: 0.92rem; margin-bottom: 24px; }
.cookie-pref-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid rgba(11,11,11,0.1);
}
.cookie-pref-row:last-of-type { border-bottom: none; }
.cookie-pref-row-text h4 { margin: 0 0 4px; font-size: 0.98rem; }
.cookie-pref-row-text p { margin: 0; font-size: 0.85rem; color: #5a5a5a; }
.cookie-pref-row-text .always-on { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--rich-green); font-weight: 700; font-family: var(--font-head); }

/* Toggle switch */
.cookie-toggle { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background-color: #ccc; border-radius: 999px; transition: 0.2s;
}
.cookie-toggle-slider::before {
  position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px;
  background-color: white; border-radius: 50%; transition: 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background-color: var(--rich-green); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(20px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { background-color: var(--rich-green); opacity: 0.55; cursor: default; }

.cookie-prefs-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.cookie-prefs-actions .btn { flex: 1; min-width: 140px; }

.cookie-settings-relink {
  background: none; border: none; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: none;
}
