:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --border: #e2e8f0;
  --impact-mint: #0d9488;
  --impact-peach: #f97316;
  --impact-violet: #7c3aed;
  --glow-blue: rgba(37, 99, 235, 0.12);
  --glow-pink: rgba(236, 72, 153, 0.12);
  --glow-mint: rgba(13, 148, 136, 0.1);
  /* Brand gradient (lighter blues: blue 400 → sky 400 → cyan 500) */
  --brand-gradient: linear-gradient(90deg, #60a5fa 0%, #38bdf8 50%, #0ea5e9 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% -10%, rgba(99, 102, 241, 0.18), transparent 55%),
    radial-gradient(circle at 85% 0%, rgba(16, 185, 129, 0.14), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), var(--bg));
  min-height: 100vh;
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  line-height: 1.3;
}

.container {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--brand-gradient);
  color: #fff;
  border-bottom: 0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  z-index: 10;
  backdrop-filter: saturate(140%) blur(4px);
  background-size: 300% 300%;
  animation: headerShift 75s ease-in-out infinite;
  isolation: isolate;
}

.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  grid-template-areas: "sidebar content";
  gap: 2rem;
  align-items: start;
}

main {
  padding: 2rem 0 2rem;
}

.layout-content {
  grid-area: content;
  min-width: 0;
}

.layout-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 6rem;
  align-self: start;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.75rem; /* bigger wordmark */
  font-weight: 800;
  color: #fff;
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: block;
}

.logo-word {
  color: var(--text);
}

/* Branded, high‑readability wordmark */
.logo-word.brand {
  position: relative;
  display: inline-flex;
  font-weight: 900;
  letter-spacing: 0.55px;
  line-height: 1;
  gap: 0;
  color: #ff9248;
  background-image: linear-gradient(120deg,
      #ffe974 0%,
      #ffb54f 28%,
      #ff7357 58%,
      #d26bff 100%);
  background-size: 180% 210%;
  background-position: 30% 50%;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 5px rgba(15, 23, 42, 0.4),
    0 4px 18px rgba(15, 23, 42, 0.6);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .logo-word.brand {
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
  }
}

@supports (-webkit-text-stroke: 1px rgba(0, 0, 0, 0.5)) {
  .logo-word.brand {
    -webkit-text-stroke: 0.025em rgba(15, 23, 42, 0.35);
  }
}

@supports (text-stroke: 1px rgba(0, 0, 0, 0.5)) {
  .logo-word.brand {
    text-stroke: 0.025em rgba(15, 23, 42, 0.35);
  }
}

.site-header .logo,
.site-header .logo:hover {
  text-decoration: none;
}

.site-header .logo:hover .logo-word.brand { filter: none; }

/* No extra overlays on wordmark */
.logo-word.brand::after { display: none; }
.logo-word.brand::before { display: none; }

/* Adaptive legibility: invert relative to header gradient when supported */
@supports (mix-blend-mode: difference) {
  .site-header .logo-word.brand {
    mix-blend-mode: normal;
  }
}

/* Brand-colored content link underline (subtle) */
.layout-content a {
  text-decoration: none;
  background-image: var(--brand-gradient);
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.2s ease;
}
.layout-content a:hover {
  background-size: 100% 3px;
}

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
}

nav a:hover {
  background: var(--border);
  text-decoration: none;
  color: var(--text);
}

/* Header-specific nav contrast on gradient */
.site-header nav a {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.0);
  border: 1px solid transparent;
}

.site-header nav a.active {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
}

.site-header nav a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.sidebar-toggle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.sidebar-toggle svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.layout-sidebar.is-open .sidebar-toggle svg {
  transform: rotate(180deg);
}

.sidebar-panel {
  margin-top: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.layout-sidebar.is-open .sidebar-panel {
  max-height: 1000px;
  opacity: 1;
  pointer-events: auto;
}

.sidebar-panel-inner {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-section h3,
.sidebar-section h4 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.category-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0;
  color: var(--text);
}

.category-list li a:hover {
  color: var(--accent);
}

.category-list .meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.category-list.featured li a {
  justify-content: flex-start;
  gap: 0.4rem;
}

.hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(240px, 0.9fr);
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Standalone quick search panel under hero */
.quick-search {
  margin: 1rem 0 2rem;
}

.quick-search-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.quick-search-card h3 {
  margin: 0 0 0.5rem;
}

.quick-search .search-inline {
  max-width: 680px;
}
.quick-search .search-inline input {
  width: 100%;
}

.hero:not(.category-hero)::before,
.hero:not(.category-hero)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero:not(.category-hero)::before {
  background:
    radial-gradient(circle at 15% 20%, var(--glow-blue), transparent 55%),
    radial-gradient(circle at 85% 15%, var(--glow-pink), transparent 50%);
  opacity: 0.5;
}

.hero:not(.category-hero)::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.2;
}

.hero:not(.category-hero) > * {
  position: relative;
  z-index: 1;
}

.hero-text {
  order: 1;
}

.promo-banner {
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(249, 115, 22, 0.12));
  border: 1px solid rgba(249, 115, 22, 0.35);
  padding: 1.25rem 1.75rem;
  margin: 1.5rem 0 2rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.promo-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.promo-eyebrow {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #b45309;
  margin: 0;
}

.promo-copy {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  flex: 1 1 280px;
}

.promo-banner .btn {
  white-space: nowrap;
  align-self: center;
}

.hero-highlights {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem;
  color: var(--muted);
  list-style: none;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.85);
  display: grid;
  gap: 0.75rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.hero-highlights li {
  margin: 0;
  font-size: 0.95rem;
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  align-items: start;
  column-gap: 0.75rem;
}

.hero-highlights li::before { content: none; }

.hero-highlights .term { color: var(--text); font-weight: 700; }
.hero-highlights .desc { color: var(--muted); }

.hero-art {
  order: 2;
  text-align: center;
}

.hero-art img {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 30px 45px rgba(15, 23, 42, 0.25));
  animation: float 12s ease-in-out infinite;
}

.hero.category-hero {
  border: 0;
  background: var(--hero-bg, var(--card));
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  position: relative;
}

.hero.category-hero .hero-text .eyebrow {
  color: var(--hero-accent, var(--accent));
}

.hero.category-hero .btn.primary {
  background: var(--hero-accent, var(--accent));
  border-color: var(--hero-accent, var(--accent));
}

.hero.category-hero .btn.primary:hover {
  background: var(--hero-accent-dark, var(--accent-dark));
  border-color: var(--hero-accent-dark, var(--accent-dark));
}

.hero.category-hero .hero-art img {
  max-width: 380px;
  animation: none;
}

.hero-theme-kitchen {
  --hero-bg: linear-gradient(135deg, #fff6ec, #ffeaf2);
  --hero-accent: #f97316;
  --hero-accent-dark: #ea580c;
}

.hero-theme-garage {
  --hero-bg: linear-gradient(135deg, #eef7ff, #f5f8ff);
  --hero-accent: #0f766e;
  --hero-accent-dark: #0d5c55;
}

.hero-theme-office {
  --hero-bg: linear-gradient(135deg, #eef6ff, #f3ecff);
  --hero-accent: #6366f1;
  --hero-accent-dark: #4f46e5;
}

.category-intro {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

#category-grid {
  scroll-margin-top: 5rem;
}

.category-grid {
  margin-top: 2rem;
}

.category-grid .more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.category-grid .more-link:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.category-grid-head {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.category-grid .grid {
  margin-top: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

/* Section titles with a subtle brand accent bar */
h2 {
  position: relative;
  padding-left: 0.75rem;
}
h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 4px;
  border-radius: 6px;
  background: var(--brand-gradient);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 0;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-transform: capitalize;
}

.btn.primary {
  background: var(--brand-gradient);
  color: #fff;
  background-size: 200% 200%;
  transition: background-position 0.25s ease;
}

.btn.primary:hover {
  background-position: 100% 0%;
}

.btn.ghost {
  background: #e2e8f0;
  border: 1px solid #cbd5f5;
  color: var(--text);
}

.btn.ghost:hover {
  background: #cbd5f5;
  border-color: var(--accent);
  color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.impact-section {
  margin: 2.5rem 0 3rem;
  padding: 2.5rem;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 10% 20%, rgba(15, 23, 42, 0.05), transparent 55%),
    radial-gradient(circle at 85% 0%, rgba(37, 99, 235, 0.08), transparent 45%),
    var(--card);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(220px, 0.85fr);
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
}

.impact-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 60%);
  z-index: 0;
  pointer-events: none;
}

/* Gentle brand tint behind impact section */
.impact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.06), rgba(14, 165, 233, 0.05));
  z-index: 0;
  pointer-events: none;
}

.impact-section > * {
  position: relative;
  z-index: 1;
}

.impact-content p {
  color: var(--text);
  font-size: 1rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.impact-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  position: relative;
}

.impact-card:nth-child(1) {
  border-top-color: var(--impact-mint);
}

.impact-card:nth-child(2) {
  border-top-color: var(--impact-peach);
}

.impact-card:nth-child(3) {
  border-top-color: var(--impact-violet);
}

.impact-card img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.impact-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.impact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.impact-visual {
  text-align: center;
}

.impact-visual img {
  width: 100%;
  max-width: 420px;
  animation: float 10s ease-in-out infinite;
  filter: drop-shadow(0 35px 50px rgba(15, 23, 42, 0.35));
}

.impact-note {
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: #0f172a;
  color: #f8fafc;
  text-align: left;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.25);
}

.impact-note strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.impact-note span {
  font-size: 0.9rem;
  color: #cbd5f5;
}

.card {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
  position: relative;
}

/* Gradient border ring on hover for key cards */
.card::after,
.product-card::after,
.impact-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.card:hover::after,
.product-card:hover::after,
.impact-card:hover::after {
  opacity: 1;
}

.card h3 {
  margin-top: 0;
}

/* Modernize card title links (no underline, clean hover) */
.card h3 a {
  color: inherit;
  text-decoration: none;
  background-image: none;
}
.card h3 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.latest-list li > a {
  text-decoration: none;
  background-image: none;
}
.latest-list li > a:hover {
  text-decoration: none;
}

/* Thin gradient top bars for cards and product cards */
.card::before,
.product-card::before,
.impact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
  opacity: 0.9;
}

.latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.latest-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff;
  margin-right: 0.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  background: #fff;
  position: relative;
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* Product cards keep neutral borders */

.product-card h3 {
  margin: 0;
  font-size: 1rem;
}

.product-card ul,
.product-card p {
  padding-left: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-card ul {
  list-style: none;
}
.product-card ul li {
  margin-bottom: 0.35rem;
}
.product-card ul li:last-child {
  margin-bottom: 0;
}

.category-highlights {
  margin: 2rem 0;
}

.category-highlights .highlights-head {
  margin-bottom: 1rem;
}

.category-highlights .product-grid {
  margin-bottom: 0;
}

.product-card .btn.primary {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding-right: 1.5rem;
  padding-left: 1rem;
  position: relative;
}

.product-card .btn.primary::after {
  content: '→';
  position: absolute;
  right: 0.7rem;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.product-card .btn.primary:hover::after {
  transform: translateX(2px);
}

.product-section {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
  margin: 2rem 0;
  overflow: hidden;
}

.product-section summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-section summary::-webkit-details-marker {
  display: none;
}

.product-section summary div {
  flex: 1;
}

.product-section summary h2 {
  margin: 0;
}

.product-section summary p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.product-section summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.product-section[open] summary::after {
  transform: rotate(45deg);
}

.product-section .product-grid {
  margin: 0;
  padding: 0 1.5rem 1.5rem;
}

.section-notes {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem 1.75rem;
  background: #f8fafc;
}

.section-notes ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.section-notes strong {
  display: block;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.hero-media {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 0 auto 2rem;
  max-width: 360px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.hero-media video,
.hero-media img {
  width: 100%;
  max-height: 210px;
  margin: 0 auto;
  border-radius: 16px;
  display: block;
  object-fit: cover;
}

.hero-media .media-embed {
  margin: 0;
}

.media-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.media-gallery {
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  padding: 2rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.media-gallery-head h2 {
  margin: 0.35rem 0 0;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.media-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.media-card img,
.media-card video {
  border-radius: 12px;
  width: 100%;
  display: block;
}

.media-card figcaption {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.media-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #020617;
  border-radius: 14px;
  overflow: hidden;
}

.media-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th {
  width: 38%;
  background: rgba(248, 250, 252, 0.8);
}

.spec-table th,
.spec-table td {
  vertical-align: top;
}

.comparison-callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.calc-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(16, 185, 129, 0.06));
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  margin: 2rem 0;
}

.calc-card form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.calc-card label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: var(--text);
}

.calc-card input {
  margin-top: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.calc-card .result {
  margin: 0.5rem 0 0;
  font-weight: 600;
}

.calc-card .result.highlight {
  font-size: 1.15rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--impact-mint);
  margin-top: 1rem;
  text-align: center;
}
.calc-cta {
  text-align: center;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calc-cta p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.calc-cta .btn.primary {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  width: auto;
  min-width: 260px;
}
.calc-cta .btn.primary.btn-arrow {
  position: relative;
  padding-right: 2.75rem;
}
.calc-cta .btn.primary.btn-arrow::after {
  content: '→';
  position: absolute;
  right: 1.25rem;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}
.calc-cta .btn.primary.btn-arrow:hover::after {
  transform: translateX(4px);
}

.calc-link {
  margin: 0.25rem 0 0.5rem;
  align-self: flex-start;
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

.calc-secondary {
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(226, 232, 240, 0.3);
}

.calc-secondary-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.calc-secondary-inner .meta {
  margin: 0;
  color: var(--muted);
}

.calc-secondary-fields {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.calc-secondary-fields label {
  flex: 1;
  min-width: 140px;
}

.planting-plan-callout {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(37, 99, 235, 0.05));
  padding: 1.5rem;
  margin: 1.5rem 0 2.5rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

.planting-plan-callout h2 {
  margin-top: 0;
}

.planting-plan-callout ol {
  margin: 0;
  padding-left: 1.2rem;
}

.planting-plan-callout ol li {
  margin-bottom: 0.5rem;
}

.faq {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}

.disclaimer {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #fff;
}

footer {
  background: #0f172a;
  color: #f8fafc;
  padding: 2.5rem 0;
  margin-top: 3rem;
}

footer a {
  color: #cbd5f5;
}

/* Thin brand bar above footer for a little color */
footer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9, #0d9488);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #cbd5f5;
  margin-top: 0.25rem;
}

.disclosure {
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #fff;
  border-radius: 6px;
  z-index: 100;
}

/* Back to Top button */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  pointer-events: none;
  z-index: 80;
}

.back-to-top svg {
  width: 1rem;
  height: 1rem;
}

.back-to-top:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  text-decoration: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.search-inline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.search-inline.small {
  min-width: 200px;
}

.search-inline input {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.search-inline input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

/* Search in gradient header */
.site-header .search-inline input {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--text);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 0.25rem;
  padding: 0.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  display: none;
  z-index: 20;
  max-height: 60vh;
  overflow: auto;
}

.search-results.active {
  display: block;
}

.search-results ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.search-results li {
  font-size: 0.9rem;
}

/* Compact, polished search results */
.search-results a.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
}
.search-results a.search-result:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: var(--border);
  text-decoration: none;
}
.search-results a.search-result strong {
  font-weight: 600;
}
.search-results a.search-result .meta {
  margin-left: auto;
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Content links: colorful underline (avoids nav/buttons) */
/* Content links use base anchor styles */

.article-page h2 {
  margin-top: 2rem;
}

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

@media (max-width: 768px) {
  nav {
    width: 100%;
    justify-content: flex-start;
  }
  .site-header .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  nav {
    flex-direction: column;
    gap: 0.35rem;
  }
  nav a {
    display: inline-flex;
    justify-content: center;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: rgba(226, 232, 240, 0.9);
  }
  /* Mobile nav uses base styles */
  .logo {
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 1024px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content";
  }
  .layout-sidebar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 2rem;
    grid-template-columns: 1fr;
  }
  .hero-media {
    padding: 1.25rem;
  }
  .media-gallery {
    padding: 1.5rem;
  }
  .impact-section {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

.impact-section .meta {
  color: inherit;
  font-size: inherit;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Slow, subtle header gradient shift */
@keyframes headerShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Gentle wordmark gradient shift */
@keyframes wordmarkShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art img,
  .impact-visual img {
    animation: none;
  }
  .site-header {
    animation: none;
  }
  .logo-word.brand {
    animation: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 0.95rem;
  }
  .container {
    width: min(100% - 1.25rem, 100%);
  }
  .site-header .nav {
    padding: 0.5rem 0 0.75rem;
  }
  .search-inline.small {
    width: 100%;
  }
  .hero {
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .hero-highlights {
    padding: 0.85rem;
  }
  .hero .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .hero .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
  .hero-highlights li {
    grid-template-columns: 1fr;
    row-gap: 0.25rem;
  }
  .btn {
    font-size: 1rem;
    padding: 0.85rem 1.1rem;
    min-height: 44px;
  }
  .hero-art img {
    max-width: 320px;
    margin: 0 auto;
  }
  .grid,
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .impact-section {
    padding: 1.75rem;
    gap: 1.5rem;
  }
  .impact-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .layout-with-sidebar {
    gap: 1rem;
  }
  .sidebar-panel-inner {
    padding: 1rem;
  }
  .hero .search-inline,
  .search-inline.small {
    margin-top: 0.5rem;
  }
  .guide-hero {
    margin: 1rem 0 1.25rem;
  }
  .spec-table tr {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
  }
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
    border: 0;
    padding: 0.35rem 0;
  }
  .spec-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
  }
}

/* Selection color */
::selection {
  background: rgba(56, 189, 248, 0.25);
}

.card-thumb {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 0.75rem;
  display: block;
  border-radius: 12px;
}
.guide-hero {
  margin: 1.5rem 0;
}

.guide-hero img {
  width: 100%;
  max-width: 560px;
}

.guide-hero--compact {
  max-width: 520px;
  margin: 0 auto 2rem;
}

.guide-hero--compact img {
  max-width: 420px;
  margin: 0 auto;
  display: block;
}

.guide-hero figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}
.calc-secondary[hidden] {
  display: none;
}

/* Affiliate disclosure (injected under H1 when Amazon links exist) */
.affiliate-disclosure {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: #fff;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0 1rem;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
  font-size: 0.95rem;
}

/* Creeping thyme seeds page blocks */
.intro-summary {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.25rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.intro-cta {
  text-align: center;
  margin-top: 0.5rem;
}

.quick-pick {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 1.25rem;
  margin: 1.25rem 0 1.5rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.quick-pick h2 {
  margin: 0 0 0.75rem;
}

.btn-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
}

.btn-group .btn {
  width: 100%;
  justify-content: center;
}

.fit-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 0.25rem 0 1.25rem;
}

.fit-guide h3 {
  margin: 0 0 0.35rem;
}

.fit-guide ul {
  margin: 0.35rem 0 0;
}

.pick-section {
  margin: 1.25rem 0 0.5rem;
  scroll-margin-top: 5rem;
}

.pick-section h2 {
  margin: 0 0 0.5rem;
}

.planting-plan-callout {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 1.25rem 1.25rem 1.5rem;
  margin: 1.5rem 0 0.75rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

@media (max-width: 640px) {
  .intro-summary { padding: 0.9rem 1rem; }
  .quick-pick { padding: 1rem; }
  .planting-plan-callout { padding: 1rem; }
}

.note {
  font-size: 0.95rem;
  color: var(--muted);
}
