/* ============================================================
   AI DECOR DIGEST — Editorial Magazine Stylesheet
   Design: Light, airy, content-first editorial publication
   Fonts: Outfit (display) + DM Sans (body)
   Palette: White bg, warm off-white sections, coral accent,
            sage green, muted clay — editorial, not techy
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white: #ffffff;
  --off-white: #faf9f7;
  --warm-gray: #f3f1ee;
  --light-gray: #e8e5e0;
  --mid-gray: #b0a89e;
  --text-dark: #000000;
  --text-body: #1a1a1a;
  --text-muted: #333333;

  --tracking-wide: 0.08em;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.15rem;
  --text-xl: 1.35rem;

  /* Category accent colors — editorial color coding */
  --coral: #e8603c;
  --coral-light: #fdf0ec;
  --sage: #5a7a5e;
  --sage-light: #edf3ee;
  --amber: #c4820a;
  --amber-light: #fdf5e6;
  --plum: #7b4f8a;
  --plum-light: #f5eef8;
  --teal: #2d7d7d;
  --teal-light: #e8f5f5;
  --navy: #2c3e6b;
  --navy-light: #edf0f8;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  --max-width: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;

  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--coral);
}

ul {
  list-style: none;
}

/* ── UTILITY ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 0.875rem;
  border-bottom: 2px solid var(--text-dark);
}

.see-all {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition);
}

.see-all:hover {
  color: var(--coral);
}

.see-all::after {
  content: ' →';
}

/* ── GLOBAL LAYOUT & UTILITIES ────────────────────────────── */
/* ── GLOBAL STRUCTURAL COMPONENTS ──────────────────────────── */
.page-section {
  margin-bottom: 5rem;
}


.content-grid-4 {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .content-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .content-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.content-grid-3 {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {

  .content-grid-4 {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  @media (min-width: 768px) {
    .content-grid-4 {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 1000px) {
    .content-grid-4 {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .content-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {

  .content-grid-4 {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  @media (min-width: 768px) {
    .content-grid-4 {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 1000px) {
    .content-grid-4 {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .content-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-wrapper {
  padding-block: 4rem;
}

.page-header {
  margin-bottom: 3rem;
  max-width: 800px;
}

.hero-banner-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 3rem;
}

.hero-banner-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── TYPOGRAPHY UTILITIES ─────────────────────────────────── */
.heading-xl,
.heading-lg,
.heading-md,
.heading-sm {
  font-family: var(--font-display);
  color: var(--text-dark);
}

.heading-xl {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.875rem;
}

.heading-lg {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.875rem;
}

.heading-md {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.heading-sm {
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

/* Link hover behavior for all headings */
.heading-xl a:hover,
.heading-lg a:hover,
.heading-md a:hover,
.heading-sm a:hover {
  color: var(--coral);
}

/* ── CATEGORY LABELS ──────────────────────────────────────── */
.cat {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 0.2em 0.55em;
  border-radius: 2px;
  line-height: 1.4;
}

.cat-reviews {
  background: var(--coral-light);
  color: var(--coral);
}

.cat-guides {
  background: var(--sage-light);
  color: var(--sage);
}

.cat-news {
  background: var(--amber-light);
  color: var(--amber);
}

.cat-compare {
  background: var(--plum-light);
  color: var(--plum);
}

.cat-tools {
  background: var(--teal-light);
  color: var(--teal);
}

.cat-spotlight {
  background: var(--navy-light);
  color: var(--navy);
}

/* ── TOP BAR ──────────────────────────────────────────────── */
.top-bar {
  background: var(--text-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0.55rem 1rem;
}

.top-bar a {
  color: var(--coral);
  text-decoration: underline;
}

/* ── HEADER / NAV ─────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-block: 0.875rem;
  gap: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}

.header-search:hover {
  color: var(--text-dark);
}

.header-search svg {
  flex-shrink: 0;
}

.site-logo {
  text-align: center;
  text-decoration: none;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--coral);
  display: block;
  margin-top: 0.15rem;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.btn-subscribe {
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-subscribe:hover {
  background: #d04e2a;
  color: var(--white);
  transform: translateY(-1px);
}

/* ── PRIMARY NAV ──────────────────────────────────────────── */
.primary-nav {
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-nav::-webkit-scrollbar {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  padding-block: 0;
  white-space: nowrap;
  justify-content: center;
}

.nav-list a {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--text-dark);
  border-bottom-color: var(--coral);
}

/* ── HERO — FEATURED ARTICLE ──────────────────────────────── */
.hero-section {
  background: var(--white);
  padding-block: 2rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 2rem;
}

.hero-main {
  position: relative;
}

.hero-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 16/10;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-img-wrap:hover img {
  transform: scale(1.03);
}

.hero-content {
  padding-top: 1.25rem;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.hero-excerpt {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  max-width: 42ch;
}

.hero-meta {
  font-size: var(--text-sm);
  color: var(--mid-gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-meta .dot {
  color: var(--light-gray);
}

/* Hero sidebar — secondary featured articles */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-secondary {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.875rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--light-gray);
}

.hero-secondary:first-child {
  padding-top: 0;
}

.hero-secondary:last-child {
  border-bottom: none;
}

.hero-secondary-img {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.hero-secondary-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-secondary:hover .hero-secondary-img img {
  transform: scale(1.05);
}

.hero-secondary-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-secondary-meta {
  font-size: var(--text-xs);
  color: var(--mid-gray);
}

/* ── EDITORIAL TICKER ─────────────────────────────────────── */
.ticker-wrap {
  background: var(--white);
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  padding-block: 0.55rem;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.ticker-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--white);
  background: var(--coral);
  padding: 0.25em 0.7em;
  border-radius: 2px;
  flex-shrink: 0;
  margin-right: 1.25rem;
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.ticker-item::after {
  content: '◆';
  font-size: var(--text-xs);
  color: var(--coral);
  opacity: 0.5;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── MAIN CONTENT LAYOUT ──────────────────────────────────── */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3.5rem;
  padding-block: 4rem;
  align-items: start;
}

/* ── ARTICLE CARDS ────────────────────────────────────────── */
.article-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-card-img {
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.article-card-img img {
  transition: transform 0.35s ease;
}

.article-card:hover .article-card-img img {
  transform: scale(1.04);
}

.article-card-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.article-card-excerpt {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.article-card-meta {
  font-size: var(--text-xs);
  color: var(--mid-gray);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Card size variants */
.card-large .card-medium .card-small .card-small .article-card-excerpt {
  display: none;
}

/* ── LATEST STORIES GRID ──────────────────────────────────── */

/* ── FEATURED STORY (wide card) ───────────────────────────── */
.featured-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding-block: 2rem;
  margin-block: 1.5rem;
  border-top: 2px solid var(--text-dark);
  border-bottom: 1px solid var(--light-gray);
  background: transparent;
  padding-inline: 0;
  border-radius: 0;
}

.featured-story-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 0.75rem;
}

.featured-story-badge::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--mid-gray);
  display: inline-block;
}

.featured-story-excerpt {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  transition: gap var(--transition);
}

.read-more:hover {
  gap: 0.6rem;
  color: var(--coral);
}

/* ── TOOL REVIEWS SECTION ─────────────────────────────────── */

.tool-card {
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}

.tool-card:hover {
  border-color: var(--coral);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--text-xl);
}

.tool-info {
  flex: 1;
  min-width: 0;
}

.tool-name {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.tool-name a:hover {
  color: var(--coral);
}

.tool-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.tool-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.stars {
  color: var(--amber);
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
}

.rating-num {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-dark);
}

.rating-count {
  font-size: var(--text-xs);
  color: var(--mid-gray);
}

.tool-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 0.15em 0.5em;
  border-radius: 2px;
  background: var(--coral-light);
  color: var(--coral);
  flex-shrink: 0;
}

/* ── COMPARISON SECTION ───────────────────────────────────── */

.compare-card {
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
  background: var(--white);
}

.compare-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.compare-card-header {
  background: var(--warm-gray);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.compare-vs {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.compare-tools {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.compare-tools .vs-dot {
  font-size: var(--text-xs);
  color: var(--coral);
  font-weight: 900;
}

.compare-card-body {
  padding: 1rem 1.25rem;
}

.compare-winner {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.compare-winner strong {
  color: var(--sage);
  font-weight: 700;
}

.compare-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.compare-link {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--plum);
  transition: color var(--transition);
}

.compare-link:hover {
  color: var(--coral);
}

/* ── SIDEBAR ──────────────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  border-top: 2px solid var(--text-dark);
  padding-top: 1rem;
}

.sidebar-widget-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

/* Newsletter widget */
.newsletter-widget {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--light-gray);
}

.newsletter-widget h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.newsletter-widget p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter-input {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-input:focus {
  border-color: var(--coral);
}

.newsletter-input::placeholder {
  color: var(--mid-gray);
}

.newsletter-btn {
  width: 100%;
  padding: 0.65rem;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}

.newsletter-btn:hover {
  background: #d04e2a;
}

/* Newsletter submit status message (Kit) — works on light + dark backgrounds */
.newsletter-status {
  margin: 0.6rem 0 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.45;
}
.newsletter-status:empty {
  display: none;
}
.newsletter-status[data-state="success"] {
  color: #2f8f5b;
  font-weight: 600;
}
.newsletter-status[data-state="error"] {
  color: #e8603c;
  font-weight: 600;
}
/* On the dark footer, lift the success colour for contrast */
.site-footer .newsletter-status[data-state="success"] {
  color: #7ed9a6;
}
.site-footer .newsletter-status[data-state="error"] {
  color: #ff9b7d;
}

/* Trending list widget */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.trending-item {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--light-gray);
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--light-gray);
  line-height: 1;
  flex-shrink: 0;
  min-width: 1.5rem;
}

.trending-content {
  flex: 1;
}

.trending-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.trending-title a:hover {
  color: var(--coral);
}

.trending-meta {
  font-size: var(--text-xs);
  color: var(--mid-gray);
}

/* Category widget */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-pill {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.35em 0.75em;
  border-radius: 100px;
  border: 1px solid var(--light-gray);
  color: var(--text-body);
  transition: all var(--transition);
}

.category-pill:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: var(--coral-light);
}

/* ── GUIDES SECTION ───────────────────────────────────────── */
.guides-section {
  background: var(--white);
  border-top: 2px solid var(--text-dark);
  padding-block: 4rem;
  margin-top: 3rem;
}

.guide-card {
  background: var(--white);
  border-radius: 0;
  overflow: visible;
  border: none;
  border-top: 1px solid var(--light-gray);
  padding-top: 1.25rem;
}

.guide-card:hover .guide-title a {
  color: var(--coral);
}

.guide-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 0.875rem;
}

.guide-card-img img {
  transition: transform 0.4s ease;
}

.guide-card:hover .guide-card-img img {
  transform: scale(1.03);
}

.guide-card-body {
  padding: 0;
}

.guide-step {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 0.35rem;
}

.guide-meta {
  font-size: var(--text-xs);
  color: var(--mid-gray);
}

/* ── DECORVIZ SPOTLIGHT ───────────────────────────────────── */
.spotlight-section {
  background: var(--off-white);
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  padding-block: 4rem;
  margin-block: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.spotlight-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spotlight-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--mid-gray);
}

.spotlight-body {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.spotlight-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.25rem;
}

.spotlight-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--light-gray);
}

.spotlight-feature:last-child {
  border-bottom: none;
}

.spotlight-feature::before {
  content: '→';
  color: var(--coral);
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
  margin-top: 0.05em;
}

.btn-try {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--coral);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  border: 1.5px solid var(--coral);
  transition: background var(--transition), color var(--transition);
}

.btn-try:hover {
  background: var(--coral);
  color: var(--white);
}

.spotlight-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.spotlight-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--text-dark);
  color: var(--white);
  padding-top: 3rem;
  padding-bottom: 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-wordmark {
  color: var(--white);
  font-size: var(--text-xl);
}

.footer-brand .logo-sub {
  color: var(--coral);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
}

.social-link:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: rgba(232, 96, 60, 0.1);
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.35);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ── DIVIDER ──────────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: var(--light-gray);
  margin-block: 2.5rem;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {

  .hero-secondary {
    grid-template-columns: 90px 1fr;
  }
}

/* ── PRINT / ACCESSIBILITY ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* ── MOBILE NAV ───────────────────────────────────────────── */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.3s ease;
  transform-origin: left;
}

/* ── ARTICLE PAGE ──────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-block: 4rem;
}

@media (min-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr 320px;
  }
}

/* Let the main column shrink below its content's intrinsic width so wide
   elements (e.g. comparison tables) scroll inside their own .table-wrapper
   instead of forcing page-wide horizontal overflow on mobile. */
.article-main {
  min-width: 0;
}

.article-header {
  margin-bottom: 2.5rem;
}

.article-header .cat {
  margin-bottom: 1rem;
}

.article-intro {
  font-size: var(--text-xl);
  color: var(--text-muted);
  line-height: 1.6;
  margin-block: 1rem;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.article-rating {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin-top: 1.25rem;
}

.article-rating-score {
  font-family: var(--font-display, inherit);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-dark);
}

.article-rating-scale {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.article-rating-label {
  width: 100%;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-body-content {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--text-body);
}

.article-body-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 4.5rem;
  margin-bottom: 1.5rem;
}

.article-body-content p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-body);
}

.article-references {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  border-top: 1px solid var(--gray);
  padding-top: 2rem;
}

.article-references a {
  color: inherit;
  text-decoration: underline;
}

.article-body-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body-content li {
  margin-bottom: 0.5rem;
}

.article-sidebar .sticky-wrapper {
  position: sticky;
  top: 100px;
}

.sidebar-box {
  background: var(--warm-gray);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.sidebar-box ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.sidebar-box ul li {
  margin-bottom: 0.75rem;
}

.sidebar-box a {
  color: var(--text-body);
  text-decoration: none;
}

.sidebar-box a:hover {
  color: var(--coral);
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-sidebar {
    display: none;
  }

  .spotlight-section {
    grid-template-columns: 1fr;
  }

  .spotlight-img {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo actions"
      "search search";
    row-gap: 0.75rem;
  }

  .site-logo {
    grid-area: logo;
    text-align: left;
  }

  .header-right {
    grid-area: actions;
  }

  .header-left {
    grid-area: search;
    width: 100%;
  }

  .header-search-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
  }

  .header-search-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .header-search span {
    display: none;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .mobile-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    top: 70px;
    /* Below header */
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 99;
    padding: 2rem 1rem;
    overflow-y: auto;
  }

  .primary-nav.nav-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-list a {
    font-size: var(--text-xl);
    padding: 0.5rem 0;
    border-bottom: none;
  }

  /* Hamburger to X animation */
  .mobile-toggle[aria-expanded="true"] span:first-child {
    transform: rotate(45deg) translate(-2px, -2px);
  }

  .mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg) translate(-2px, 3px);
  }

}

/* LISTICLE COMPONENT STYLES */
.quick-answer {
  background: var(--light);
  border-left: 4px solid var(--coral);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
}

.quick-answer ul {
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.quick-answer li {
  margin-bottom: 0.75rem;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
}

.comparison-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--text-base);
}

.comparison-table th {
  background: var(--light);
  font-weight: 700;
  padding: 1rem;
  border-bottom: 2px solid var(--dark);
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.comparison-table tr:hover td {
  background: #f9fafb;
}

/* ── ARTICLE: BREADCRUMBS ─────────────────────────────────── */
.breadcrumbs {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumbs a {
  color: var(--coral);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span[aria-current] {
  color: var(--text-muted);
}

/* ── ARTICLE: KEY POINTS ──────────────────────────────────── */
.key-points {
  background: var(--sage-light);
  border-left: 4px solid var(--sage);
  border-radius: 0.35rem;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.key-points-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-size: var(--text-xs);
  margin-bottom: 0.75rem;
}

.key-points ul {
  padding-left: 1.25rem;
  margin: 0;
}

.key-points li {
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

/* ── ARTICLE: RECOMMENDATION / CTA BOX ────────────────────── */
.recommendation-box {
  background: var(--coral-light);
  border: 1px solid #f3d3c7;
  border-radius: 0.5rem;
  padding: 1.75rem;
  margin: 2.5rem 0;
}

.recommendation-title {
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: 0.75rem;
}

.recommendation-box p {
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.btn-try {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-try:hover {
  background: var(--coral);
}

/* ── ARTICLE: FAQ ─────────────────────────────────────────── */
.article-faq {
  margin: 3rem 0;
}

.faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.faq-item h3 {
  margin-bottom: 0.5rem;
}

.faq-item p {
  line-height: 1.6;
  color: var(--text-body);
}

/* ── ARTICLE: RELATED READING ─────────────────────────────── */
.related-articles {
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 2px solid var(--light-gray);
}

.related-articles .heading-lg {
  margin-bottom: 1.5rem;
}

/* ── HEADER SEARCH (INLINE) ───────────────────────────────── */
.header-search-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-search-input {
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-body);
  padding: 0.4rem 0.6rem;
  width: 180px;
  outline: none;
  transition: border-color var(--transition), width var(--transition);
}

.header-search-input:focus {
  border-color: var(--mid-gray);
}

/* ── SEARCH RESULTS PAGE ──────────────────────────────────── */
.search-page-form {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0 0.5rem;
  max-width: 560px;
}

.search-page-input {
  flex: 1;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-body);
  padding: 0.7rem 0.9rem;
  outline: none;
}

.search-page-input:focus {
  border-color: var(--mid-gray);
}

.search-page-submit {
  border: none;
  border-radius: var(--radius-sm);
  background: var(--text-dark);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  padding: 0 1.25rem;
  cursor: pointer;
}

.search-page-submit:hover {
  background: var(--coral);
}

.search-meta {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: 2rem;
}

.search-no-results {
  color: var(--text-body);
  font-size: var(--text-lg);
  margin: 2rem 0;
}