/*
Theme Name: ClickTrend Deals
Theme URI: https://clicktrenddeals.com
Author: ClickTrend Deals
Author URI: https://clicktrenddeals.com
Description: Editorial lifestyle & deals blog theme converted pixel-for-pixel from the ClickTrendDeals React source (Fashion, Lifestyle, Travel, Beauty, Technology). Warm cream palette, Playfair Display headings, Inter body copy.
Version: 1.1.13
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clicktrenddeals
Domain Path: /languages
Tags: blog, e-commerce, custom-colors, custom-menu, featured-images, translation-ready
*/

/* -------------------------------------------------------------------------
   0. FONT IMPORT (verbatim from React source src/index.css — only fonts
      that are actually referenced by --font-sans / --font-serif / --font-mono
      / --font-script below; --font-script itself is unused in markup but the
      import + variable are kept for parity with the source design tokens)
------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600&family=Dancing+Script:wght@600;700&family=Playball&display=swap');

/* -------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES — every design token from the source
------------------------------------------------------------------------- */
:root {
  /* Font stacks — exact source stacks, no substitutions */
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, Cambria, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --font-script: "Playball", "Dancing Script", cursive;

  /* Core palette */
  --color-bg: #FAF9F6;
  --color-ink: #2D3130;
  --color-coral: #D9725B;
  --color-coral-hover: #c15e4a;
  --color-sage: #3F5E4D;
  --color-sage-hover: #2F4539;
  --color-border: #EAE2D5;
  --color-white: #ffffff;
  --color-trustpilot: #00b67a;

  /* Ink opacity ramps (rgba equivalents of text-[#2D3130]/NN) */
  --ink-90: rgba(45,49,48,0.90);
  --ink-85: rgba(45,49,48,0.85);
  --ink-80: rgba(45,49,48,0.80);
  --ink-75: rgba(45,49,48,0.75);
  --ink-70: rgba(45,49,48,0.70);
  --ink-60: rgba(45,49,48,0.60);
  --ink-30: rgba(45,49,48,0.30);
  --ink-20: rgba(45,49,48,0.20);

  /* Cream opacity ramps */
  --cream-95: rgba(250,249,246,0.95);
  --cream-85: rgba(250,249,246,0.85);
  --cream-65: rgba(250,249,246,0.65);
  --cream-60: rgba(250,249,246,0.60);
  --cream-50: rgba(250,249,246,0.50);
  --cream-15: rgba(250,249,246,0.15);
  --cream-10: rgba(250,249,246,0.10);

  /* Coral / border opacity ramps */
  --coral-20: rgba(217,114,91,0.20);
  --border-70: rgba(234,226,213,0.70);
  --border-60: rgba(234,226,213,0.60);

  /* White opacity (footer bottom border, social ring) */
  --white-20: rgba(255,255,255,0.20);
  --white-15: rgba(255,255,255,0.15);
  --white-10: rgba(255,255,255,0.10);

  /* Status colors (Tailwind emerald / gray defaults used for success & empty states) */
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-600: #059669;
  --emerald-800: #065f46;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --red-500: #ef4444;
  --red-50: #fef2f2;

  /* Radii / shadows / spacing scale */
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
  --shadow-xs: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.08), 0 1px 2px -1px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.10), 0 8px 10px -6px rgba(0,0,0,0.06);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --container-max: 80rem; /* max-w-7xl */
}

/* -------------------------------------------------------------------------
   2. RESET & BASE
------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* IMPORTANT: use `overflow-x: clip` here, NOT `overflow-x: hidden`.
   Per the CSS Overflow spec, if one axis computes to anything other than
   `visible` or `clip`, the other axis (even if explicitly written as
   `visible`) is forced to compute as `auto` -- turning the element into a
   scroll container and silently breaking `position: sticky` for every
   descendant (header, single-post sidebar). `clip` is specifically exempt
   from that forced-conversion rule, so pairing `overflow-x: clip` with
   `overflow-y: visible` actually stays non-scrolling while still clipping
   horizontal overflow from full-bleed marquees / negative-margin breakouts. */
body {
  margin: 0;
  overflow-x: clip;
  overflow-y: visible;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.site-wrapper { overflow-x: clip; overflow-y: visible; display: flex; flex-direction: column; min-height: 100vh; }
#page-content { overflow-x: clip; overflow-y: visible; flex-grow: 1; }
::selection { background: var(--coral-20); color: var(--color-ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
input, textarea, button { font-family: inherit; }
h1,h2,h3,h4,h5,h6 { margin: 0; font-family: var(--font-serif); font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link {
  position: absolute; left: -9999px; top: 1rem; z-index: 999;
  background: var(--color-sage); color: var(--color-bg); padding: .75rem 1.25rem;
  border-radius: var(--radius-full); font-size: .75rem; font-weight: 700;
}
.skip-link:focus { left: 1rem; }

/* -------------------------------------------------------------------------
   3. HEADER
------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--color-border);
  background: var(--cream-95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
/* .site-header is already position:sticky, which makes it a valid
   containing block for the two position:absolute panels below (search
   panel + mobile menu) — no extra "position:relative" wrapper needed. */
/* Always a single row (logo left, controls right) at every breakpoint —
   below 1050px the row only ever holds the logo + search icon + hamburger
   (text nav/full search/Subscribe move out to the toggleable panels), so
   there's no need to stack into two rows like the old column layout did. */
.site-header__inner {
  display: flex; flex-direction: row; flex-wrap: wrap; row-gap: .75rem;
  align-items: center; justify-content: space-between;
  max-width: var(--container-max); margin: 0 auto;
  padding: 1rem 1.5rem;
}

.site-logo {
  display: flex; align-items: center; gap: .5rem; text-align: left;
  transition: transform .2s;
}
.site-logo:active { transform: scale(.95); }
.site-logo__icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-full);
  background: var(--color-coral); color: var(--color-bg);
  transition: transform .3s, background-color .3s;
}
.site-logo:hover .site-logo__icon { transform: scale(1.05); background: var(--color-sage); }
.site-logo__icon svg { width: 1.25rem; height: 1.25rem; }
.site-logo__text { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; color: var(--color-ink); }
.site-logo__text .accent-coral { color: var(--color-coral); }
.site-logo__text .accent-sage { color: var(--color-sage); }

/* Text nav: tablet + desktop (>=1050px). Mobile (<1050px) uses the hamburger
   + .mobile-menu dropdown instead — see the "RESPONSIVE HEADER BREAKPOINTS"
   rules at the end of this section. */
.primary-nav { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 1050px) { .primary-nav { display: flex; } }
.primary-nav a {
  font-family: var(--font-sans); font-size: .875rem; font-weight: 500; letter-spacing: .01em;
  color: var(--ink-80); padding-bottom: .25rem; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.primary-nav a:hover { color: var(--color-coral); }
.primary-nav a.is-active { color: var(--color-coral); border-bottom-color: var(--color-coral); }
.primary-nav__sep { display: inline-block; height: 1rem; width: 1px; background: var(--color-border); }

.header-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; }
@media (min-width: 640px) { .header-controls { gap: .75rem; } }

/* Base search-form styling, shared by the inline desktop form
   (.header-search--inline) and the below-header panel form used on
   tablet/mobile (inside .header-search-panel). Visibility of each is
   controlled separately — see "RESPONSIVE HEADER BREAKPOINTS" below. */
.header-search { position: relative; display: flex; align-items: center; }
/* top/transform are explicit rather than relying on the flex parent's
   align-items: some browsers only compute an absolutely-positioned child's
   "static position" from the flex container's alignment when no top/bottom
   is set at all — inconsistently enough in practice that the icon rendered
   above center instead of vertically centered in the pill. */
.header-search__icon { position: absolute; left: .875rem; top: 50%; transform: translateY(-50%); color: var(--gray-400); width: .875rem; height: .875rem; pointer-events: none; display: flex; line-height: 0; }
.header-search__icon svg { width: .875rem; height: .875rem; display: block; }
.header-search__input {
  width: 10rem; border-radius: var(--radius-full); border: 1px solid var(--color-border);
  background: var(--color-bg); padding: .375rem 2rem .375rem 2.25rem; font-size: .75rem; color: var(--color-ink);
  transition: all .2s;
}
.header-search__input::placeholder { color: var(--gray-400); }
.header-search__input:focus { width: 12rem; border-color: var(--color-coral); outline: none; }
@media (min-width: 1200px) {
  .header-search__input { width: 12rem; }
  .header-search__input:focus { width: 14rem; }
}
.header-search__clear {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); color: var(--gray-400); background: none; border: none; padding: 0;
  display: flex; line-height: 0;
}
.header-search__clear:hover { color: var(--color-coral); }
.header-search__clear svg { width: .875rem; height: .875rem; }

/* Panel form (tablet/mobile) fills the full width of the panel row. */
.header-search-panel .header-search { width: 100%; }
.header-search-panel .header-search__input,
.header-search-panel .header-search__input:focus { width: 100%; }

/* Search icon toggle button: tablet + mobile only, opens .header-search-panel */
.header-search-toggle {
  display: none; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; color: var(--ink-70); flex-shrink: 0;
  transition: color .2s;
}
.header-search-toggle:hover,
.header-search-toggle.is-open { color: var(--color-coral); }
.header-search-toggle svg { width: 1.125rem; height: 1.125rem; display: block; }

/* Below-header expandable search bar: tablet + mobile only.
   position:absolute + inset (left/right/top) rather than a normal-flow
   block: this (a) overlays the page content below instead of pushing it
   down, (b) is guaranteed full-width via the insets themselves rather
   than "width:auto", which sidesteps flex shrink-to-fit sizing entirely,
   and (c) "top:100%" always lines up with the header's actual current
   height (which varies across breakpoints as the row wraps), with no JS
   measuring required, because .site-header is its containing block. */
.header-search-panel {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
  background: var(--cream-95);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.header-search-panel.is-open { display: block; border-top: 1px solid var(--color-border); }
.header-search-panel__inner {
  max-width: var(--container-max); margin: 0 auto;
  padding: 1rem 1.5rem;
  background: var(--cream-95);
}

/* Hamburger menu toggle button: mobile only, opens .mobile-menu */
.mobile-menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; color: var(--ink-70); flex-shrink: 0;
  transition: color .2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle.is-open { color: var(--color-coral); }
.mobile-menu-toggle svg { width: 1.25rem; height: 1.25rem; display: block; }

.btn-subscribe {
  border-radius: var(--radius-full); background: var(--color-coral); color: var(--color-bg);
  padding: .5rem 1rem; font-family: var(--font-sans); font-size: .75rem; font-weight: 600; letter-spacing: .05em;
  box-shadow: var(--shadow-sm); transition: all .2s; transform: translateY(0);
}
.btn-subscribe:hover { box-shadow: var(--shadow-md); background: var(--color-coral-hover); transform: translateY(-2px); }
.btn-subscribe:active { transform: translateY(0); }

/* Mobile dropdown menu (category links + Subscribe), toggled by the
   hamburger button. Mobile only (<1050px) — see "RESPONSIVE HEADER
   BREAKPOINTS" below. Same position:absolute + inset approach as
   .header-search-panel above (overlay, guaranteed full width, no JS
   height-tracking needed) — see the comment there for why. Note: the
   outer element must NOT itself be display:flex, since — combined with
   this being a flex item of a flex-column ancestor and having
   margin:auto centering — that previously caused the flex item's cross-
   axis stretch to be disabled in favor of auto-margin centering at its
   own shrink-to-fit width, rendering as a narrow floating card instead
   of a full-width bar. Flex layout now lives one level down, on
   .mobile-menu__inner, which is a plain block child of a plain block
   parent, so centering behaves normally there. */
.mobile-menu {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.mobile-menu.is-open { display: block; }
.mobile-menu__inner {
  display: flex; flex-direction: column; gap: .125rem;
  max-width: var(--container-max); margin: 0 auto;
  padding: .25rem 1.5rem 1.25rem;
}
.mobile-menu a {
  font-size: .875rem; font-weight: 500; color: var(--ink-80);
  padding: .75rem 0; border-bottom: 1px solid var(--color-border);
}
.mobile-menu a.is-active { color: var(--color-coral); font-weight: 700; }
.mobile-menu .btn-subscribe { margin-top: 1rem; text-align: center; }

/* -------------------------------------------------------------------------
   RESPONSIVE HEADER BREAKPOINTS
   Desktop  >=1200px    : logo, text nav, full inline search, Subscribe.
   Tablet   1050-1199px : logo, text nav, search ICON (opens panel below
                          header), Subscribe.
   Mobile   <1050px     : logo, search ICON (opens panel below header),
                          hamburger (opens .mobile-menu dropdown, which ends
                          with the Subscribe button) — all inline with the
                          logo in a single header row.
------------------------------------------------------------------------- */
.header-search--inline { display: none; }
@media (max-width: 1199px) {
  .header-search-toggle { display: flex; }
}
@media (min-width: 1200px) {
  .header-search--inline { display: flex; }
  .header-search-toggle { display: none; }
  .header-search-panel,
  .header-search-panel.is-open { display: none; }
}
.btn-subscribe--header { display: none; }
@media (min-width: 1050px) {
  .btn-subscribe--header { display: inline-block; }
}
@media (max-width: 1049px) {
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 1050px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu,
  .mobile-menu.is-open { display: none; }
}

/* Language switcher (no-op / not rendered until Polylang is active) */
.lang-switcher { position: relative; flex-shrink: 0; }
.lang-switcher__toggle {
  display: flex; align-items: center; gap: .3rem;
  height: 2rem; padding: 0 .6rem; border: 1px solid var(--color-border); border-radius: var(--radius-full);
  background: var(--color-bg); color: var(--ink-70);
  font-family: var(--font-sans); font-size: .6875rem; font-weight: 700; letter-spacing: .05em;
  transition: all .2s;
}
.lang-switcher__toggle:hover,
.lang-switcher.is-open .lang-switcher__toggle { border-color: var(--color-coral); color: var(--color-coral); }
.lang-switcher__globe { width: .875rem; height: .875rem; flex-shrink: 0; }
.lang-switcher__code { text-transform: uppercase; }
.lang-switcher__chevron { width: .75rem; height: .75rem; flex-shrink: 0; transition: transform .2s; }
.lang-switcher.is-open .lang-switcher__chevron { transform: rotate(180deg); }

.lang-switcher__list {
  position: absolute; top: calc(100% + 8px); right: 0; background: var(--color-white);
  border: 1px solid var(--color-border); border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
  min-width: 10rem; padding: .375rem; display: none; z-index: 60;
  max-height: 20rem; overflow-y: auto;
}
.lang-switcher.is-open .lang-switcher__list { display: block; }
.lang-switcher__item {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .5rem .625rem; font-size: .8125rem; font-weight: 500; color: var(--color-ink);
  border-radius: .5rem; transition: background-color .15s, color .15s;
}
.lang-switcher__item:hover { background: var(--color-bg); color: var(--color-coral); }
.lang-switcher__item.is-current { color: var(--color-coral); font-weight: 700; }
.lang-switcher__item svg { width: .875rem; height: .875rem; flex-shrink: 0; }

/* -------------------------------------------------------------------------
   4. FOOTER
------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--white-10);
  background: var(--color-sage);
  padding: 4rem 0;
  color: var(--color-bg);
}
.footer-grid {
  display: grid; grid-template-columns: repeat(1, 1fr); gap: 2.5rem;
}
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(12, 1fr); } }

.footer-col--brand { grid-column: span 1; }
@media (min-width: 1024px) { .footer-col--brand { grid-column: span 4; } }
.footer-col--pages { grid-column: span 1; }
@media (min-width: 1024px) { .footer-col--pages { grid-column: span 2 / span 2; grid-column-start: 6; } }
.footer-col--categories { grid-column: span 1; }
@media (min-width: 1024px) { .footer-col--categories { grid-column: span 2; } }
.footer-col--trust { grid-column: span 1; }
@media (min-width: 1024px) { .footer-col--trust { grid-column: span 3 / span 3; grid-column-start: 10; } }

.footer-col { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo { display: flex; align-items: center; gap: .5rem; }
.footer-logo__icon {
  display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem;
  border-radius: var(--radius-full); background: var(--color-coral); color: var(--color-bg);
  transition: transform .3s;
}
.footer-logo:hover .footer-logo__icon { transform: scale(1.05); }
.footer-logo__icon svg { width: 1rem; height: 1rem; }
.footer-logo__text { font-family: var(--font-sans); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.footer-logo__text .accent-coral { color: var(--color-coral); }
.footer-desc { max-width: 24rem; font-size: .8125rem; line-height: 1.6; color: var(--cream-85); }
@media (min-width: 768px) { .footer-desc { font-size: .875rem; } }

.footer-heading {
  font-family: var(--font-sans); font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--color-coral); margin: 0;
}
.footer-nav { display: flex; flex-direction: column; gap: .625rem; font-size: .8125rem; font-weight: 500; color: var(--cream-85); }
@media (min-width: 768px) { .footer-nav { font-size: .875rem; } }
.footer-nav a { display: block; transition: color .2s; }
.footer-nav a:hover { color: var(--color-coral); }
.footer-nav a.is-active { color: var(--color-coral); font-weight: 700; }

.trust-card {
  border-radius: var(--radius-2xl); border: 1px solid var(--white-15);
  background: var(--color-bg); padding: 1.25rem; box-shadow: var(--shadow-xs); color: var(--color-ink);
}
.trust-card__head { display: flex; align-items: center; gap: .5rem; }
.trust-card__star { color: var(--color-trustpilot); font-size: 1.25rem; font-weight: 900; line-height: 1; }
.trust-card__name { font-family: var(--font-sans); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.trust-card__stars { margin-top: .75rem; display: flex; gap: .375rem; }
.trust-card__stars span {
  display: flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem;
  background: var(--color-trustpilot); color: var(--color-white); border-radius: 2px; font-size: .75rem; font-weight: 700;
}
.trust-card__copy { margin-top: 1rem; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .02em; line-height: 1.6; color: var(--ink-70); }

.footer-bottom {
  margin-top: 3rem; border-top: 1px solid var(--white-10); padding-top: 2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1.5rem;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-copyright { font-size: .75rem; color: var(--cream-60); text-align: center; }
@media (min-width: 768px) { .footer-copyright { text-align: left; } }
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a {
  display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem;
  border-radius: var(--radius-full); border: 1px solid var(--white-20); color: var(--cream-85);
  transition: all .2s;
}
.footer-socials a:hover { background: var(--color-coral); color: var(--color-bg); border-color: var(--color-coral); }
.footer-socials svg { width: 1rem; height: 1rem; }

/* -------------------------------------------------------------------------
   5. HERO CAROUSEL (front page)
------------------------------------------------------------------------- */
.hero-carousel-section { padding: 2.5rem 0 3rem; }
.hero-carousel { position: relative; overflow: hidden; padding: .5rem 0; }
.hero-carousel__viewport { overflow: hidden; margin: 0 -12px; }
.hero-carousel__track { display: flex; transition: transform .5s ease-out; will-change: transform; }
.hero-carousel__slide { padding: 0 12px; flex-shrink: 0; transition: width .3s; }

.hero-card {
  background: var(--color-white); border-radius: var(--radius-2xl); border: 1px solid var(--color-border);
  overflow: hidden; display: flex; flex-direction: column; height: 340px; cursor: pointer;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.hero-card:hover { border-color: var(--color-coral); transform: translateY(-4px); box-shadow: var(--shadow-xs); }
.hero-card__image { height: 11rem; width: 100%; overflow: hidden; background: var(--color-bg); position: relative; }
.hero-card__image img { height: 100%; width: 100%; object-fit: cover; transition: transform .5s; }
.hero-card:hover .hero-card__image img { transform: scale(1.03); }
.hero-card__body { padding: 1rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.hero-card__title {
  font-family: var(--font-serif); font-size: .875rem; font-weight: 700; color: var(--color-ink);
  line-height: 1.375; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .3s;
}
@media (min-width: 768px) { .hero-card__title { font-size: 1rem; } }
.hero-card:hover .hero-card__title { color: var(--color-coral); }
.hero-card__excerpt {
  margin-top: .375rem; font-size: .6875rem; color: var(--ink-75); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-card__meta { display: flex; align-items: center; justify-content: space-between; padding-top: .5rem; margin-top: .375rem; border-top: 1px solid var(--color-bg); }
.hero-card__author { display: flex; align-items: center; gap: .5rem; }
.hero-card__avatar { height: 1.25rem; width: 1.25rem; border-radius: var(--radius-full); border: 1px solid var(--color-border); object-fit: cover; }
.hero-card__author-name { font-size: .75rem; font-weight: 700; color: var(--color-ink); }
.hero-card__read {
  font-family: var(--font-mono); font-size: .625rem; font-weight: 700; color: var(--color-sage);
  text-transform: uppercase; letter-spacing: .05em; display: inline-flex; align-items: center; gap: .25rem;
  transition: transform .3s;
}
.hero-card:hover .hero-card__read { transform: translateX(4px); }
.hero-card__read svg { width: .75rem; height: .75rem; }

.hero-carousel__dots { display: flex; justify-content: center; gap: .375rem; margin-top: 1.5rem; }
.hero-carousel__dots button { height: .375rem; border-radius: var(--radius-full); width: .375rem; background: var(--ink-20); transition: all .3s; padding: 0; }
.hero-carousel__dots button:hover { background: rgba(45,49,48,0.4); }
.hero-carousel__dots button.is-active { width: 1.25rem; background: var(--color-sage); }

/* -------------------------------------------------------------------------
   6. CATEGORY SECTIONS (front page editorial blocks)
------------------------------------------------------------------------- */
/* .container is this section's only direct child (holds the per-category
   blocks + the logo-slider partial), so the vertical rhythm between those
   items has to live on the nested selector below — putting it on
   .category-sections itself would be a flex container with a single flex
   item and would produce no visible gap at all. */
.category-sections { padding: 4rem 0; }
.category-sections > .container { display: flex; flex-direction: column; gap: 4rem; }
.category-section__head { display: flex; align-items: center; border-bottom: 1px solid var(--color-border); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.category-section__head-inner { display: flex; align-items: center; gap: .75rem; }
.category-section__bar { height: 1.5rem; width: .375rem; border-radius: var(--radius-full); background: var(--color-coral); display: inline-block; }
.category-section__title {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; color: var(--color-ink);
}
@media (min-width: 768px) { .category-section__title { font-size: 1.875rem; } }

/* Generic grid card (Fashion / Travel / Beauty / search results / archive grid) */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .card-grid--2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 768px) { .card-grid--3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .card-grid--3-lg { grid-template-columns: repeat(3,1fr); } }

.article-card {
  background: var(--color-white); border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border-70); display: flex; flex-direction: column; height: 100%; cursor: pointer;
  transition: all .3s;
}
.article-card:hover { border-color: var(--color-coral); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-card__image { overflow: hidden; background: var(--color-bg); border-bottom: 1px solid var(--border-60); position: relative; }
.article-card__image--16-10 { aspect-ratio: 1.6; }
.article-card__image--square { aspect-ratio: 1; }
.article-card__image img { height: 100%; width: 100%; object-fit: cover; transition: transform .5s; }
.article-card:hover .article-card__image img { transform: scale(1.03); }
.article-card__body { padding: 1.25rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; gap: .75rem; }
.article-card__title {
  font-family: var(--font-serif); font-size: .875rem; font-weight: 700; line-height: 1.375; color: var(--color-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s;
}
@media (min-width: 768px) { .article-card__title { font-size: 1rem; } }
.article-card:hover .article-card__title { color: var(--color-coral); }
.article-card__excerpt {
  font-size: .6875rem; color: var(--ink-70); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 768px) { .article-card__excerpt { font-size: .75rem; } }
.article-card__meta { display: flex; align-items: center; justify-content: space-between; padding-top: .5rem; border-top: 1px solid var(--color-bg); }
.article-card__author { display: flex; align-items: center; gap: .5rem; }
.article-card__avatar { height: 1.25rem; width: 1.25rem; border-radius: var(--radius-full); border: 1px solid var(--color-border); object-fit: cover; }
.article-card__author-name { font-size: 13px; font-weight: 600; color: var(--color-ink); }
.article-card__read { font-size: 13px; color: var(--color-sage); font-family: var(--font-mono); transition: transform .3s; }
.article-card:hover .article-card__read { transform: translateX(4px); }

/* Featured spotlight + list pattern (Lifestyle / Technology sections) */
.spotlight-row { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .spotlight-row { grid-template-columns: repeat(12,1fr); gap: 2rem; } }
.spotlight-row__list { display: flex; flex-direction: column; gap: 1.5rem; justify-content: space-between; grid-column: span 1; order: 2; }
@media (min-width: 1024px) { .spotlight-row__list { grid-column: span 7; order: 1; } }
.spotlight-row__feature { grid-column: span 1; order: 1; }
@media (min-width: 1024px) { .spotlight-row__feature { grid-column: span 5; order: 2; } }
/* Technology section: feature stays left, list stays right (no order flip) */
.spotlight-row--reverse .spotlight-row__list { order: 1; }
.spotlight-row--reverse .spotlight-row__feature { order: 0; }
@media (min-width: 1024px) {
  .spotlight-row--reverse .spotlight-row__feature { order: 1; grid-column: span 5; }
  .spotlight-row--reverse .spotlight-row__list { order: 2; grid-column: span 7; }
}

.list-card {
  background: var(--color-white); border-radius: var(--radius-xl); padding: 1.5rem;
  border: 1px solid var(--border-70); display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start;
  height: 100%; cursor: pointer; transition: all .3s;
}
@media (min-width: 640px) { .list-card { flex-direction: row; } }
.list-card:hover { border-color: var(--color-coral); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.list-card__image { height: 6rem; width: 6rem; border-radius: var(--radius-xl); overflow: hidden; flex-shrink: 0; background: var(--color-bg); border: 1px solid var(--border-60); }
@media (min-width: 640px) { .list-card__image { height: 7rem; width: 7rem; } }
.list-card__image img { height: 100%; width: 100%; object-fit: cover; transition: transform .5s; }
.list-card:hover .list-card__image img { transform: scale(1.03); }
.list-card__body { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 7rem; gap: .5rem; }
.list-card__title {
  font-family: var(--font-serif); font-size: .875rem; font-weight: 700; color: var(--color-ink); line-height: 1.375;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s;
}
@media (min-width: 768px) { .list-card__title { font-size: 1rem; } }
.list-card:hover .list-card__title { color: var(--color-coral); }
.list-card__excerpt {
  font-size: .6875rem; color: var(--ink-60); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 768px) { .list-card__excerpt { font-size: .75rem; } }
.list-card__meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding-top: .5rem; border-top: 1px solid rgba(250,249,246,0.8); }
.list-card__by { font-size: 13px; color: var(--ink-60); }
.list-card__read { font-family: var(--font-mono); color: var(--color-sage); font-weight: 700; display: inline-flex; gap: .25rem; align-items: center; transition: transform .3s; }
.list-card:hover .list-card__read { transform: translateX(4px); }

.feature-card {
  background: var(--color-white); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border-70);
  display: flex; flex-direction: column; height: 100%; cursor: pointer; transition: all .3s;
}
.feature-card:hover { border-color: var(--color-coral); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card__image { aspect-ratio: 1.5; overflow: hidden; background: var(--color-bg); border-bottom: 1px solid var(--border-60); }
.feature-card__image img { height: 100%; width: 100%; object-fit: cover; transition: transform .5s; }
.feature-card:hover .feature-card__image img { transform: scale(1.03); }
.feature-card__body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
@media (min-width: 768px) { .feature-card__body { padding: 2rem; } }
.feature-card__title {
  font-family: var(--font-serif); font-size: 1rem; font-weight: 700; color: var(--color-ink); line-height: 1.375;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s;
}
@media (min-width: 768px) { .feature-card__title { font-size: 1.125rem; } }
@media (min-width: 1024px) { .feature-card__title { font-size: 1.25rem; } }
.feature-card:hover .feature-card__title { color: var(--color-coral); }
.feature-card__excerpt {
  font-size: .6875rem; color: var(--ink-70); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 768px) { .feature-card__excerpt { font-size: .75rem; } }
@media (min-width: 1024px) { .feature-card__excerpt { font-size: .875rem; } }
.feature-card__meta { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--color-bg); }
.feature-card__author { display: flex; align-items: center; gap: .625rem; }
.feature-card__avatar { height: 1.5rem; width: 1.5rem; border-radius: var(--radius-full); border: 1px solid var(--color-border); object-fit: cover; }
.feature-card__author-name { font-size: 13px; font-weight: 600; color: var(--color-ink); }
.feature-card__read {
  font-size: .6875rem; color: var(--color-sage); font-family: var(--font-mono); font-weight: 700;
  display: inline-flex; align-items: center; gap: .25rem; transition: transform .3s;
}
.feature-card:hover .feature-card__read { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   7. POST CARD (required flush-image structure — used by the reusable
      iv_post_card() helper wherever a plain grid card is needed elsewhere)
------------------------------------------------------------------------- */
.post-card {
  background: var(--color-white);
  border: 1px solid var(--border-70);
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column; height: 100%;
  transition: all .3s;
}
.post-card:hover { border-color: var(--color-coral); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__image-wrap {
  border-radius: 0;
  margin: 0;
  aspect-ratio: 1.6;
  overflow: hidden;
  background: var(--color-bg);
  border-bottom: 1px solid var(--border-60);
  position: relative;
}
.post-card__image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__image-wrap img { transform: scale(1.03); }
.post-card__badge {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--color-white); color: var(--color-sage);
  font-family: var(--font-mono); font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: .25rem .625rem; border-radius: var(--radius-full); box-shadow: var(--shadow-xs);
}
.post-card__body { padding: 1rem 1rem 1.25rem; flex-grow: 1; display: flex; flex-direction: column; gap: .5rem; }
.post-card__title {
  font-family: var(--font-serif); font-size: 1rem; font-weight: 700; color: var(--color-ink); line-height: 1.375;
}
.post-card__title a { transition: color .3s; }
.post-card:hover .post-card__title a { color: var(--color-coral); }
.post-card__excerpt {
  font-size: .75rem; color: var(--ink-70); line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* -------------------------------------------------------------------------
   8. LOGO SLIDER (marquee)
------------------------------------------------------------------------- */
.logo-slider {
  background: var(--color-bg); padding: 2.5rem 0; border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border); overflow: hidden;
  /* Cancels the 1.5rem side padding of the .category-sections .container it's
     nested in on the front page (mirrors the source's `-mx-6` wrapper), so
     the band's background/border reach the same edges as the surrounding
     max-width container instead of sitting inset from the card grids above
     and below it. */
  margin: 0 -1.5rem;
}
.logo-slider__viewport { position: relative; width: 100%; overflow: hidden; padding: .5rem 0; display: flex; align-items: center; }
.logo-slider__fade { position: absolute; top: 0; bottom: 0; width: 5rem; z-index: 10; pointer-events: none; }
.logo-slider__fade--left { left: 0; background: linear-gradient(to right, var(--color-bg), transparent); }
.logo-slider__fade--right { right: 0; background: linear-gradient(to left, var(--color-bg), transparent); }
@keyframes marquee { 0% { transform: translateX(0%); } 100% { transform: translateX(-50%); } }
.logo-slider__track { display: flex; gap: 4rem; align-items: center; flex-shrink: 0; white-space: nowrap; animation: marquee 25s linear infinite; }
@media (min-width: 768px) { .logo-slider__track { gap: 6rem; } }
.logo-slider__track:hover { animation-play-state: paused; }
.logo-slider__item {
  display: flex; align-items: center; justify-content: center; padding: 0 1rem;
  transition: transform .3s; user-select: none;
}
.logo-slider__item:hover { transform: scale(1.05); }
.logo-slider__item span {
  font-family: var(--font-sans); font-size: 1.125rem; font-weight: 800; letter-spacing: .25em;
  color: var(--ink-30); transition: color .2s;
}
@media (min-width: 768px) { .logo-slider__item span { font-size: 1.25rem; } }
.logo-slider__item:hover span { color: var(--color-sage); }

/* -------------------------------------------------------------------------
   9. SEARCH RESULTS
------------------------------------------------------------------------- */
.search-results-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--color-border); padding-bottom: 1rem; gap: 1rem; flex-wrap: wrap; }
.search-results-count { font-family: var(--font-mono); font-size: .75rem; color: var(--color-sage); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.search-empty {
  text-align: center; padding: 4rem 1.5rem; background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-3xl); display: flex; flex-direction: column; gap: 1rem; align-items: center;
}
.search-empty p { font-size: .875rem; color: var(--gray-500); max-width: 32rem; margin: 0 auto; }
.btn-clear-search {
  border-radius: var(--radius-full); background: var(--color-sage); color: var(--color-bg); padding: .625rem 1.5rem;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; transition: all .2s;
}
.btn-clear-search:hover { background: var(--color-sage-hover); }

/* -------------------------------------------------------------------------
   10. SINGLE POST
------------------------------------------------------------------------- */
.single-post-wrap { padding: 3rem 0; }
.single-post-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .single-post-grid { grid-template-columns: repeat(12,1fr); gap: 3rem; } }
/* No `order` set here on purpose: the source's default (non-reversed)
   sidebar layout keeps the article as the first grid auto-placement item
   (left) and the aside as the second (right). An explicit `order: 1` here
   with no matching order on .single-post-sidebar (which defaults to 0)
   used to make the grid auto-place the sidebar into the first — i.e.
   left-hand — columns instead, flipping the layout. */
.single-post-main { display: flex; flex-direction: column; gap: 2rem; grid-column: span 1; }
@media (min-width: 1024px) { .single-post-main { grid-column: span 8; } }
.single-post-title {
  font-family: var(--font-serif); font-size: 1.875rem; font-weight: 700; letter-spacing: -0.01em; color: var(--color-ink);
  line-height: 1.2;
}
@media (min-width: 768px) { .single-post-title { font-size: 3rem; line-height: 1.1; } }
.single-post-thumb { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius-2xl); border: 1px solid var(--color-border); background: var(--color-bg); }
.single-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.single-post-content {
  font-family: var(--font-serif); font-size: .875rem; line-height: 1.75; color: var(--ink-90);
}
@media (min-width: 768px) { .single-post-content { font-size: 1rem; } }
.single-post-content > * + * { margin-top: 1.5rem; }
.single-post-content p:first-of-type { font-size: 1.125rem; font-weight: 400; line-height: 1.75; color: var(--color-ink); }
.single-post-content h3 {
  font-family: var(--font-sans); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; color: var(--color-ink);
  padding-top: 1rem;
}
.single-post-content blockquote,
.single-post-content ul,
.single-post-content ol { font-family: var(--font-serif); }

.author-box {
  background: var(--color-white); border-radius: var(--radius-2xl); padding: 1.5rem; border: 1px solid var(--color-border);
  display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center;
}
@media (min-width: 768px) { .author-box { flex-direction: row; align-items: flex-start; text-align: left; } }
.author-box__avatar { height: 3rem; width: 3rem; border-radius: var(--radius-full); border: 1px solid var(--color-border); flex-shrink: 0; object-fit: cover; }
.author-box__name { font-family: var(--font-sans); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--color-sage); margin: 0 0 .25rem; }
.author-box__bio { font-size: .75rem; color: var(--ink-75); line-height: 1.6; margin: 0; }

/* Sidebar */
.single-post-sidebar { display: flex; flex-direction: column; gap: 2rem; grid-column: span 1; }
@media (min-width: 1024px) {
  .single-post-sidebar { grid-column: span 4; position: sticky; top: 6rem; align-self: flex-start; }
}
.sidebar-block { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-block__head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--color-border); padding-bottom: .5rem; }
.sidebar-block__title { font-family: var(--font-sans); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--color-sage); margin: 0; }
.sidebar-block__head svg { width: 1rem; height: 1rem; color: var(--gray-400); }
.recent-list { display: flex; flex-direction: column; gap: .75rem; }
.recent-item {
  display: flex; gap: .75rem; background: var(--color-white); padding: .75rem; border-radius: var(--radius-xl);
  border: 1px solid var(--color-border); transition: all .2s;
}
.recent-item:hover { border-color: var(--color-coral); transform: translateX(4px); }
.recent-item__thumb { height: 3.5rem; width: 3.5rem; border-radius: .5rem; overflow: hidden; flex-shrink: 0; background: var(--color-bg); border: 1px solid var(--color-border); }
.recent-item__thumb img { height: 100%; width: 100%; object-fit: cover; }
.recent-item__title { font-family: var(--font-serif); font-size: .75rem; font-weight: 600; color: var(--color-ink); line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.sidebar-widget { padding: 0; }
.sidebar-widget-title { font-family: var(--font-sans); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--color-sage); margin: 0 0 1rem; }

/* -------------------------------------------------------------------------
   11. NEWSLETTER WIDGET (sidebar + generic newsletter block)
------------------------------------------------------------------------- */
.newsletter-widget {
  background: var(--color-sage); border-radius: var(--radius-2xl); padding: 1.75rem; color: var(--color-bg);
  position: relative; overflow: hidden;
}
.newsletter-widget__eyebrow {
  display: inline-flex; align-items: center; gap: .375rem; border-radius: var(--radius-full);
  background: var(--cream-10); padding: .25rem .75rem; font-size: .625rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: var(--color-coral); width: fit-content;
}
.newsletter-widget__eyebrow svg { width: .625rem; height: .625rem; fill: currentColor; }
.newsletter-widget__title { font-family: var(--font-sans); font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; margin: .75rem 0 0; }
.newsletter-widget__desc { font-size: .8125rem; line-height: 1.6; color: var(--cream-85); margin: .5rem 0 0; }
.newsletter-form { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .625rem; }
.newsletter-form__input-wrap { position: relative; }
.newsletter-form__input-wrap svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--cream-50); pointer-events: none; }
.newsletter-form input[type="email"] {
  width: 100%; border-radius: var(--radius-full); border: 1px solid var(--white-20);
  background: var(--cream-10); padding: .875rem 1rem .875rem 2.75rem; font-size: .8125rem; color: var(--color-bg);
  transition: all .2s;
}
.newsletter-form input[type="email"]::placeholder { color: var(--cream-65); }
.newsletter-form input[type="email"]:focus { border-color: var(--color-coral); background: var(--cream-15); outline: none; box-shadow: 0 0 0 3px var(--coral-20); }
.newsletter-form input.field-error { border-color: var(--red-500); }
.field-error-msg { color: #ffb4a4; font-size: .6875rem; margin-top: .375rem; display: block; }
.newsletter-form button {
  border-radius: var(--radius-full); background: var(--color-coral); padding: .875rem 1.5rem; color: var(--color-bg);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; transition: all .2s;
}
.newsletter-form button:hover { background: var(--color-coral-hover); }
.newsletter-form button:disabled { opacity: .5; cursor: not-allowed; }
.newsletter-widget__disclaimer { font-size: .625rem; color: var(--cream-60); margin-top: .625rem; }
.newsletter-notice {
  margin-top: 1.25rem; background: var(--color-bg); color: var(--color-ink); padding: 1.25rem; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md); text-align: center; display: flex; flex-direction: column; gap: .375rem;
}
.newsletter-notice[hidden] { display: none; }
.newsletter-notice__icon {
  margin: 0 auto; display: flex; height: 2rem; width: 2rem; align-items: center; justify-content: center;
  border-radius: var(--radius-full); background: var(--emerald-100); color: var(--emerald-600);
}
.newsletter-notice__icon svg { width: 1rem; height: 1rem; }
.newsletter-notice__title { font-family: var(--font-sans); font-size: .875rem; font-weight: 700; color: var(--color-sage); margin: 0; }
.newsletter-notice__body { font-size: .6875rem; color: var(--ink-75); margin: 0; }
.newsletter-notice__reset { font-size: .6875rem; font-weight: 600; color: var(--color-coral); margin-top: .25rem; }
.newsletter-notice__reset:hover { text-decoration: underline; }
.newsletter-form.is-submitted,
.newsletter-widget[data-state="success"] .newsletter-form { display: none; }

/* -------------------------------------------------------------------------
   12. CATEGORY ARCHIVE HERO
------------------------------------------------------------------------- */
.cat-hero { padding: 3rem 0; }
.cat-hero__card {
  background: var(--color-white); border-radius: var(--radius-3xl); overflow: hidden; border: 1px solid var(--color-border);
  padding: 1.5rem; box-shadow: var(--shadow-xs); display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center;
}
@media (min-width: 768px) { .cat-hero__card { padding: 2.5rem; } }
@media (min-width: 1024px) { .cat-hero__card { grid-template-columns: repeat(12,1fr); } }
.cat-hero__text { grid-column: span 1; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 1024px) { .cat-hero__text { grid-column: span 7; } }
.cat-hero__title { font-family: var(--font-serif); font-size: 1.875rem; font-weight: 700; letter-spacing: -0.01em; color: var(--color-ink); line-height: 1.2; }
@media (min-width: 768px) { .cat-hero__title { font-size: 3rem; } }
.cat-hero__desc { font-size: .875rem; color: var(--ink-75); line-height: 1.6; max-width: 42rem; margin: 0; }
@media (min-width: 768px) { .cat-hero__desc { font-size: 1rem; } }
.cat-hero__breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--gray-400); font-family: var(--font-mono); padding-top: .5rem; }
.cat-hero__breadcrumb a:hover { color: var(--color-coral); }
.cat-hero__breadcrumb span.current { color: var(--color-sage); font-weight: 600; }
.cat-hero__image { grid-column: span 1; }
@media (min-width: 1024px) { .cat-hero__image { grid-column: span 5; } }
.cat-hero__image-frame { aspect-ratio: 4/3; border-radius: var(--radius-2xl); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-bg); }
.cat-hero__image-frame img { width: 100%; height: 100%; object-fit: cover; }

.cat-archive-list { padding-bottom: 4rem; display: flex; flex-direction: column; gap: 2rem; }
.cat-archive-list__head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--color-border); padding-bottom: 1rem; }
.cat-archive-list__title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--color-ink); }
@media (min-width: 768px) { .cat-archive-list__title { font-size: 1.5rem; } }
.cat-archive-empty { text-align: center; padding: 4rem 1.5rem; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-3xl); }
.cat-archive-empty p { font-size: .875rem; color: var(--gray-500); margin: 0; }
.cat-archive-back { display: inline-flex; align-items: center; gap: .375rem; font-size: .75rem; font-weight: 600; color: var(--color-sage); }
.cat-archive-back:hover { color: var(--color-coral); }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: .5rem; padding-top: 1rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem;
  border-radius: var(--radius-full); border: 1px solid var(--color-border); font-size: .8125rem; font-weight: 600; color: var(--color-ink);
  transition: all .2s; background: var(--color-white);
}
.pagination a:hover { border-color: var(--color-coral); color: var(--color-coral); }
.pagination span.current { background: var(--color-sage); border-color: var(--color-sage); color: var(--color-bg); }
.pagination span.dots { border: none; background: none; }

/* -------------------------------------------------------------------------
   13. CONTACT PAGE
------------------------------------------------------------------------- */
.contact-page { padding: 3rem 0; }
@media (min-width: 768px) { .contact-page { padding: 5rem 0; } }
.contact-card {
  display: grid; grid-template-columns: 1fr; gap: 3rem; background: var(--color-white); border-radius: var(--radius-3xl);
  padding: 1.5rem; border: 1px solid var(--color-border); box-shadow: var(--shadow-xs);
}
@media (min-width: 768px) { .contact-card { padding: 2.5rem; } }
@media (min-width: 1024px) { .contact-card { grid-template-columns: repeat(12,1fr); } }
.contact-card__image { grid-column: span 1; position: relative; }
@media (min-width: 1024px) { .contact-card__image { grid-column: span 5; } }
.contact-card__image-frame { aspect-ratio: 3/4; border-radius: var(--radius-2xl); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-bg); }
.contact-card__image-frame img { width: 100%; height: 100%; object-fit: cover; }
.contact-card__form-col { grid-column: span 1; display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; }
@media (min-width: 1024px) { .contact-card__form-col { grid-column: span 7; } }
.page-eyebrow {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--color-coral); margin: 0;
}
.contact-card__title { font-family: var(--font-serif); font-size: 1.875rem; font-weight: 700; letter-spacing: -0.01em; color: var(--color-ink); margin: .5rem 0; }
@media (min-width: 768px) { .contact-card__title { font-size: 2.25rem; } }
.contact-card__subtitle { font-size: .8125rem; color: var(--ink-70); line-height: 1.6; margin: 0; }
@media (min-width: 768px) { .contact-card__subtitle { font-size: .875rem; } }

.form { display: flex; flex-direction: column; gap: 1rem; padding-top: .5rem; font-size: .75rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2,1fr); } }
.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-group label {
  font-family: var(--font-sans); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .625rem; color: var(--color-sage);
}
.form-group input, .form-group textarea {
  width: 100%; padding: .875rem 1rem; border-radius: var(--radius-xl); border: 1px solid var(--color-border);
  background: var(--color-bg); color: var(--color-ink); font-size: .75rem; transition: all .2s;
}
.form-group textarea { line-height: 1.6; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-coral); outline: none; }
.form-group input.field-error, .form-group textarea.field-error { border-color: var(--red-500); }
.form-error-msg { color: var(--red-500); font-size: .6875rem; margin-top: .25rem; display: block; }
.btn-submit,
.contact-form-cf7 input.wpcf7-submit {
  width: 100%; background: var(--color-sage); color: var(--color-bg); padding: 1rem; border-radius: var(--radius-xl);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; transition: all .2s; transform: translateY(0);
  border: none; cursor: pointer; font-family: var(--font-sans);
}
.btn-submit:hover,
.contact-form-cf7 input.wpcf7-submit:hover { background: var(--color-sage-hover); transform: translateY(-2px); }
.btn-submit:active,
.contact-form-cf7 input.wpcf7-submit:active { transform: translateY(0); }
.contact-form-cf7 input.wpcf7-submit:disabled { opacity: .6; cursor: default; transform: none; }

/* -------------------------------------------------------------------------
   13b. CONTACT FORM 7 STYLING — maps CF7's own default output classes
   onto the `.form` / `.form-row` / `.form-group` / `.btn-submit` design
   already defined above (the pasted CF7 "Form" tab content wraps its
   [text]/[email]/[textarea]/[submit] tags in those same theme classes,
   so almost no CF7-specific selectors are required beyond validation/
   response-message states, which CF7 renders itself and the theme can't
   pre-style with a plain class name).
------------------------------------------------------------------------- */
.contact-form-cf7 form.wpcf7-form { display: flex; flex-direction: column; gap: 1rem; padding-top: .5rem; font-size: .75rem; }
.contact-form-cf7 .wpcf7-form-control-wrap { display: block; position: relative; }
.contact-form-cf7 .form-group input.wpcf7-form-control,
.contact-form-cf7 .form-group textarea.wpcf7-form-control { width: 100%; }
.contact-form-cf7 .form-group input.wpcf7-not-valid,
.contact-form-cf7 .form-group textarea.wpcf7-not-valid { border-color: var(--red-500); }
.contact-form-cf7 .wpcf7-not-valid-tip { color: var(--red-500); font-size: .6875rem; margin-top: .25rem; display: block; }
.contact-form-cf7 .wpcf7-spinner { margin: 0 0 0 .5rem; }

.contact-form-cf7 .wpcf7-response-output {
  margin: 0; padding: 1.25rem 1.5rem; border-radius: var(--radius-2xl); text-align: center; font-size: .75rem; line-height: 1.6;
}
.contact-form-cf7 .wpcf7-response-output:empty { display: none; padding: 0; border: 0; margin: 0; }
/* Success uses the React-matching card below — hide CF7's plain response. */
.contact-form-cf7 .wpcf7-form.sent .wpcf7-response-output,
.contact-form-cf7 .wpcf7-form[data-status="sent"] .wpcf7-response-output {
  display: none !important;
}
.contact-form-cf7.is-success .wpcf7 { display: none; }
.contact-form-cf7__success {
  background: var(--emerald-50); border: 1px solid var(--emerald-200); color: var(--emerald-800);
  padding: 1.5rem; border-radius: var(--radius-2xl); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
.contact-form-cf7__success[hidden] { display: none !important; }
.contact-form-cf7__success-icon {
  width: 3rem; height: 3rem; border-radius: 9999px; background: #d1fae5; color: #059669;
  display: flex; align-items: center; justify-content: center;
}
.contact-form-cf7__success-icon svg { width: 1.5rem; height: 1.5rem; }
.contact-form-cf7__success-copy { display: flex; flex-direction: column; gap: .25rem; }
.contact-form-cf7__success-title {
  margin: 0; font-family: var(--font-sans); font-size: 1rem; font-weight: 700; color: var(--color-sage);
}
.contact-form-cf7__success-body {
  margin: 0; font-family: var(--font-sans); font-size: .75rem; line-height: 1.6; color: rgba(45, 49, 48, .8);
}
.contact-form-cf7__success-reset {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: .75rem; font-weight: 600; color: var(--color-coral);
}
.contact-form-cf7__success-reset:hover { text-decoration: underline; }
.contact-form-cf7 .wpcf7-form.invalid .wpcf7-response-output,
.contact-form-cf7 .wpcf7-form.failed .wpcf7-response-output,
.contact-form-cf7 .wpcf7-form.spam .wpcf7-response-output,
.contact-form-cf7 .wpcf7-form.aborted .wpcf7-response-output,
.contact-form-cf7 .wpcf7-form[data-status="validation_failed"] .wpcf7-response-output,
.contact-form-cf7 .wpcf7-form[data-status="mail_failed"] .wpcf7-response-output,
.contact-form-cf7 .wpcf7-form[data-status="spam"] .wpcf7-response-output,
.contact-form-cf7 .wpcf7-form[data-status="aborted"] .wpcf7-response-output {
  background: #fef2f2; border: 1px solid var(--red-500); color: var(--red-500);
}

/* Fallback shown only when no CF7 shortcode has been configured yet. */
.contact-form-cf7__missing {
  background: var(--color-bg); border: 1px dashed var(--color-border); border-radius: var(--radius-2xl);
  padding: 1.5rem; font-size: .8125rem; color: var(--ink-70); line-height: 1.6;
}
.contact-form-cf7__admin-hint { display: block; margin-top: .5rem; font-size: .6875rem; font-style: italic; color: var(--color-coral); }

/* -------------------------------------------------------------------------
   14. ABOUT PAGE
------------------------------------------------------------------------- */
.about-page { padding: 3rem 0; display: flex; flex-direction: column; gap: 6rem; }
@media (min-width: 768px) { .about-page { padding: 5rem 0; } }
.about-hero { text-align: center; max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.about-hero .page-eyebrow { margin: 0 auto; }
.about-hero__title { font-family: var(--font-serif); font-size: 1.875rem; font-weight: 700; letter-spacing: -0.01em; color: var(--color-ink); }
@media (min-width: 768px) { .about-hero__title { font-size: 3rem; } }
.about-hero__subtitle { font-size: .875rem; color: var(--ink-75); line-height: 1.6; margin: 0; }
@media (min-width: 768px) { .about-hero__subtitle { font-size: 1rem; } }

.about-split { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .about-split { grid-template-columns: repeat(12,1fr); } }
.about-split__text { grid-column: span 1; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 1024px) { .about-split__text { grid-column: span 7; } }
.about-split__image-col { grid-column: span 1; display: flex; flex-direction: column; gap: .5rem; }
@media (min-width: 1024px) { .about-split__image-col { grid-column: span 5; } }
.about-split--reverse .about-split__image-col { order: -1; }
@media (min-width: 1024px) { .about-split--reverse .about-split__image-col { order: 0; } }
.about-split__heading { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--color-ink); margin: 0; }
@media (min-width: 768px) { .about-split__heading { font-size: 1.875rem; } }
.about-split__body { font-size: .875rem; line-height: 1.6; color: var(--ink-80); margin: 0; }
@media (min-width: 768px) { .about-split__body { font-size: 1rem; } }
.about-split__image-frame { aspect-ratio: 4/3; border-radius: var(--radius-2xl); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-white); box-shadow: var(--shadow-xs); }
.about-split__image-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-split__caption { font-size: .625rem; font-family: var(--font-mono); color: var(--gray-400); display: block; text-align: center; text-transform: uppercase; letter-spacing: .03em; }

/* -------------------------------------------------------------------------
   15. LEGAL PAGES
------------------------------------------------------------------------- */
.legal-page { padding: 4rem 0; }
@media (min-width: 768px) { .legal-page { padding: 6rem 0; } }
.legal-page .container { max-width: 48rem; }
.legal-article { background: var(--color-white); border: 1px solid var(--color-border); padding: 2rem; border-radius: var(--radius-3xl); box-shadow: var(--shadow-xs); font-size: .75rem; }
@media (min-width: 768px) { .legal-article { padding: 3rem; font-size: .875rem; } }
.legal-article__header { padding-bottom: 1.5rem; border-bottom: 1px solid var(--color-bg); margin-bottom: 2rem; }
.legal-article__title { font-family: var(--font-serif); font-size: 1.875rem; font-weight: 700; letter-spacing: -0.01em; color: var(--color-ink); margin: 0; }
.legal-content { font-family: var(--font-sans); line-height: 1.6; color: var(--ink-80); }
.legal-content > * + * { margin-top: 1.25rem; }
/* margin-bottom here mirrors the source: its heading is a direct child of
   the space-y-5 container, which (in Tailwind v4) assigns margin-bottom
   directly to every non-last child, headings included — not just margin-top
   to whatever follows. Setting it explicitly here keeps the gap after a
   heading correct even if a future rule ever zeroes the next sibling's own
   margin-top again (adjacent margins still collapse to the larger value, so
   this doesn't double up with `.legal-content > * + *`). */
.legal-content h2 { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 700; color: var(--color-ink); padding-top: 1rem; margin-top: 1.5rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .legal-content h2 { font-size: 1.25rem; } }
.legal-content h3 { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; color: var(--color-ink); padding-top: .5rem; margin-top: 1rem; margin-bottom: 1.25rem; }
/* margin-bottom only (not the `margin` shorthand): this selector's
   specificity (0,1,1) beats `.legal-content > * + *`'s (0,1,0), so a full
   `margin: 0` here was silently zeroing out that rule's margin-top on every
   plain paragraph and every .legal-bullet item (both are <p> tags) and
   collapsing all their vertical spacing to nothing. */
.legal-content p { font-size: .8125rem; color: var(--ink-80); margin-bottom: 0; }
@media (min-width: 768px) { .legal-content p { font-size: .9375rem; } }
.legal-content .legal-bullet {
  padding-left: 1rem; border-left: 2px solid var(--coral-20); padding-top: .125rem; padding-bottom: .125rem;
  color: var(--ink-75); font-size: .8125rem;
}
@media (min-width: 768px) { .legal-content .legal-bullet { font-size: .9375rem; } }

/* -------------------------------------------------------------------------
   16. NEWSLETTER MODAL (header Subscribe button)
------------------------------------------------------------------------- */
.subscribe-modal-overlay {
  position: fixed; inset: 0; z-index: 999; display: none; align-items: center; justify-content: center; padding: 1rem;
}
.subscribe-modal-overlay.is-open { display: flex; }
.subscribe-modal-overlay__bg {
  position: absolute; inset: 0; background: rgba(0,0,0,0.4);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.subscribe-modal {
  position: relative; width: 100%; max-width: 28rem; overflow: hidden; border-radius: var(--radius-3xl);
  background: var(--color-sage); padding: 2rem; color: var(--color-bg); box-shadow: var(--shadow-2xl); border: 1px solid var(--white-10);
}
.subscribe-modal__close { position: absolute; top: 1rem; right: 1rem; color: var(--cream-65); }
.subscribe-modal__close:hover { color: var(--color-bg); }
.subscribe-modal__close svg { width: 1.25rem; height: 1.25rem; }
.subscribe-modal__body { display: flex; flex-direction: column; gap: 1rem; text-align: center; }
.subscribe-modal__icon {
  margin: 0 auto; display: flex; height: 3rem; width: 3rem; align-items: center; justify-content: center;
  border-radius: var(--radius-full); background: var(--cream-10); color: var(--color-coral);
}
.subscribe-modal__icon svg { width: 1.5rem; height: 1.5rem; }
.subscribe-modal__title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.subscribe-modal__desc { font-size: .75rem; color: var(--cream-85); line-height: 1.6; margin: 0; }
.subscribe-modal .newsletter-form { margin-top: .5rem; }
/* Modal form has no leading icon and uses rounded-xl (not the pill shape
   the sidebar/widget newsletter form uses), matching the React modal markup. */
.subscribe-modal .newsletter-form input[type="email"] { padding-left: 1rem; border-radius: var(--radius-xl); }
.subscribe-modal .newsletter-form button { border-radius: var(--radius-xl); }
.subscribe-modal .newsletter-notice { color: var(--color-ink); }

/* -------------------------------------------------------------------------
   17. COOKIE POPUP
------------------------------------------------------------------------- */
.cookie-popup {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 998; max-width: 28rem; margin: 0 auto;
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl); padding: 1.5rem; display: none; flex-direction: column; gap: .75rem;
}
.cookie-popup.is-open { display: flex; }
.cookie-popup__title { font-family: var(--font-sans); font-weight: 700; font-size: .875rem; color: var(--color-ink); margin: 0; }
.cookie-popup__body { font-size: .75rem; color: var(--ink-75); line-height: 1.5; margin: 0; }
.cookie-popup__actions { display: flex; gap: .75rem; margin-top: .25rem; }
.cookie-popup__actions button {
  flex: 1; padding: .625rem 1rem; border-radius: var(--radius-full); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.cookie-popup__accept { background: var(--color-coral); color: var(--color-bg); }
.cookie-popup__accept:hover { background: var(--color-coral-hover); }
.cookie-popup__dismiss { background: transparent; color: var(--color-sage); border: 1px solid var(--color-border); }
.cookie-popup__dismiss:hover { border-color: var(--color-sage); }

/* -------------------------------------------------------------------------
   18. SEARCH TEMPLATE / 404
------------------------------------------------------------------------- */
.page-hero { padding: 3rem 0 1rem; }
.page-hero__title { font-family: var(--font-serif); font-size: 1.875rem; font-weight: 700; color: var(--color-ink); }
.error-404 { text-align: center; padding: 6rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.error-404__code { font-family: var(--font-serif); font-size: 5rem; font-weight: 700; color: var(--color-coral); line-height: 1; }
.error-404__title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--color-ink); }
.error-404__desc { font-size: .875rem; color: var(--ink-70); max-width: 28rem; }
.btn-home {
  border-radius: var(--radius-full); background: var(--color-sage); color: var(--color-bg); padding: .75rem 2rem;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; transition: all .2s;
}
.btn-home:hover { background: var(--color-sage-hover); }

/* -------------------------------------------------------------------------
   19. THEME STRINGS ADMIN SCREEN (Appearance > Theme Strings)
------------------------------------------------------------------------- */
.iv-strings-admin .form-table th { width: 220px; }
.iv-strings-admin h2 { font-family: sans-serif; }
.iv-strings-admin textarea { width: 100%; max-width: 640px; }
.iv-strings-admin input[type="text"] { width: 100%; max-width: 640px; }

/* -------------------------------------------------------------------------
   20. RESPONSIVE HELPERS
------------------------------------------------------------------------- */
.hidden-mobile { display: none; }
@media (min-width: 1024px) { .hidden-mobile { display: revert; } }
