:root {
  color-scheme: light;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--page-bg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page-bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: min(1180px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: auto;
  height: 40px;
}

.primary-navigation {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.primary-navigation a,
.language-links a {
  text-decoration: none;
}

.primary-navigation a:hover,
.language-links a:hover {
  text-decoration: underline;
}

.language-links {
  display: flex;
  gap: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Shared tutorial surface for the reverse-purchasing route. It stays semantic
   HTML so every localized guide remains useful without JavaScript or images. */
.reverse-workflow {
  width: 100%;
  margin: clamp(2rem, 5vw, 4rem) 0;
  padding: clamp(2.5rem, 5vw, 4.5rem) max(1rem, calc((100% - 1180px) / 2));
  background: color-mix(in srgb, var(--surface-raised) 82%, var(--accent-soft) 18%);
  border-block: 1px solid var(--line);
}

.reverse-workflow__head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.reverse-workflow__head h2 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.reverse-workflow__head > p:last-child {
  max-width: 70ch;
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.reverse-workflow__steps {
  width: min(1180px, 100%);
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--line);
}

.reverse-workflow__step {
  position: relative;
  min-width: 0;
  min-height: 280px;
  padding: 1.35rem 1.35rem 1.5rem;
  background: var(--surface);
}

.reverse-workflow__number {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  background: var(--text);
  color: var(--page-bg);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.reverse-workflow__body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.18;
}

.reverse-workflow__body p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.reverse-workflow__body ul {
  margin: 1rem 0 0;
  padding: 0.85rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
  border-top: 1px solid var(--line);
  list-style: none;
}

.reverse-workflow__body li {
  position: relative;
  padding-left: 0.85rem;
  color: var(--text);
  font-size: 0.75rem;
  line-height: 1.35;
}

.reverse-workflow__body li::before {
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--accent);
  content: "";
}

.reverse-workflow__note {
  width: min(1180px, 100%);
  margin: 1.25rem 0 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 0.82rem;
}

.reverse-workflow__note strong {
  color: var(--text);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0.55rem 0.85rem;
}

main {
  overflow: hidden;
}

.hero,
.section,
.page-intro,
.article-layout {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  min-height: 480px;
  padding-block: clamp(2.5rem, 5.5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(1.75rem, 4.5vw, 3.5rem);
}

.hero h1,
.page-intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero__lead,
.page-intro > p:not(.eyebrow) {
  max-width: 62ch;
  margin: 1.1rem 0 0;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.eyebrow,
.card-kicker {
  margin: 0 0 0.65rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__visual {
  min-height: 440px;
}

.cta-group {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  min-height: 48px;
  padding: 0.78rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: var(--button-radius);
  font-weight: 850;
  text-decoration: none;
}

.button--primary {
  background: var(--accent);
  color: var(--accent-text);
}

.button--secondary {
  border-color: var(--text);
  background: transparent;
}

.cta-note {
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.9rem;
}

/*
 * Inline icons from src/core/icons.mjs. They inherit colour so each theme can
 * tint them, and they are always paired with a text label - never load-bearing
 * on their own.
 */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  color: var(--accent-strong);
}

.icon--category {
  width: 2.5rem;
  height: 2.5rem;
}

.icon--lg {
  width: 2rem;
  height: 2rem;
}

.section {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.4rem;
}

.section-heading h2,
.split-section h2,
.closing-cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-heading > p:last-child {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.content-card {
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
}

.content-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.content-card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.content-card a {
  font-weight: 850;
}

.steps-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.steps-list li {
  padding: 1rem 1rem 1rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  border-top: 1px solid var(--line);
}

.step-number {
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
}

.steps-list h3 {
  margin: 0;
  font-size: 1.05rem;
}

.steps-list p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.split-section {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.split-section--reverse .split-section__main {
  order: 2;
}

.split-section__aside,
.article-rail {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface-raised);
}

.check-list,
.split-section__aside ul,
.article-rail ul {
  padding-left: 1.2rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  padding: 1rem 1.2rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  color: var(--muted);
}

.page-intro {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
}

.page-intro h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

.article-layout {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.article-content {
  display: grid;
  gap: 2rem;
}

.article-section {
  max-width: 760px;
}

.article-section h2,
.article-rail h2 {
  margin-top: 0;
  font-family: var(--font-display);
}

.article-section h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  line-height: 1.16;
}

.article-section p,
.article-section li {
  color: var(--muted);
}

.article-rail {
  position: sticky;
  top: 96px;
}

.article-rail a {
  font-weight: 750;
}

.closing-cta {
  margin-bottom: clamp(3rem, 6vw, 6rem);
  padding-inline: clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--card-radius);
  background: var(--accent-soft);
}

.site-footer {
  padding: 3rem max(1rem, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  color: var(--footer-text);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 0;
  opacity: 0.72;
  font-size: 0.86rem;
}

@media (max-width: 1120px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: var(--page-bg);
  }

  .primary-navigation[data-open="true"] {
    display: flex;
  }

  .language-links {
    margin-left: 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 360px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps-list li {
    padding-right: 0;
  }

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

  .article-rail {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    min-height: 64px;
  }

  .brand img {
    height: 34px;
  }

  .language-links {
    padding-left: 0.65rem;
  }

  .hero,
  .section,
  .page-intro,
  .article-layout {
    width: min(100% - 1.25rem, 1180px);
  }

  .hero {
    padding-top: 3rem;
  }

  .hero h1,
  .page-intro h1 {
    letter-spacing: -0.04em;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .split-section--reverse .split-section__main {
    order: initial;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 860px) {
  .reverse-workflow__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .reverse-workflow {
    padding-inline: 1rem;
  }

  .reverse-workflow__steps {
    grid-template-columns: 1fr;
  }

  .reverse-workflow__step {
    min-height: 0;
  }
}

.theme-oopbuy-es-gallery {
  --page-bg: #f8f5ef;
  --surface: #fffdf9;
  --surface-raised: #f1eee5;
  --text: #0b2b3b;
  --muted: #5f6864;
  --line: #d8d3c7;
  --accent: #b8351f;
  --accent-strong: #902412;
  --accent-soft: #eee3d3;
  --accent-text: #ffffff;
  --focus: #2f5f5c;
  --olive: #697354;
  --olive-soft: #e7e8dc;
  --navy: #06283a;
  --stone: #d6c4a8;
  --footer-bg: #06283a;
  --footer-text: #f8f5ef;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", Arial, Helvetica, sans-serif;
  --card-radius: 0;
  --button-radius: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
}

.theme-oopbuy-es-gallery main {
  overflow: hidden;
}

.theme-oopbuy-es-gallery h1,
.theme-oopbuy-es-gallery h2,
.theme-oopbuy-es-gallery h3,
.theme-oopbuy-es-gallery p {
  text-wrap: pretty;
}

.theme-oopbuy-es-gallery a:focus-visible,
.theme-oopbuy-es-gallery button:focus-visible,
.theme-oopbuy-es-gallery summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

/* Header */
.theme-oopbuy-es-gallery .site-header {
  border-bottom: 1px solid rgba(11, 43, 59, 0.14);
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(14px);
}

.theme-oopbuy-es-gallery .site-header__inner {
  width: min(1240px, calc(100% - 40px));
  min-height: 70px;
  gap: clamp(0.75rem, 2vw, 1.6rem);
}

.theme-oopbuy-es-gallery .brand img {
  width: auto;
  height: 42px;
}

.theme-oopbuy-es-gallery .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--navy);
  text-decoration: none;
}

.theme-oopbuy-es-gallery .brand__label {
  max-width: 92px;
  padding-left: 0.72rem;
  border-left: 1px solid var(--line);
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1.22;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-oopbuy-es-gallery .primary-navigation {
  gap: clamp(0.7rem, 1.7vw, 1.35rem);
  color: #344f58;
  font-size: 0.78rem;
  font-weight: 700;
}

.theme-oopbuy-es-gallery .primary-navigation a {
  position: relative;
  padding: 1.55rem 0 1.45rem;
  text-decoration: none;
}

.theme-oopbuy-es-gallery .primary-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 1rem;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-oopbuy-es-gallery .primary-navigation a:hover,
.theme-oopbuy-es-gallery .primary-navigation a[aria-current="page"] {
  color: var(--accent-strong);
  text-decoration: none;
}

.theme-oopbuy-es-gallery .primary-navigation a:hover::after,
.theme-oopbuy-es-gallery .primary-navigation a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.theme-oopbuy-es-gallery .button {
  min-height: 48px;
  padding: 0.78rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.theme-oopbuy-es-gallery .button--primary,
.theme-oopbuy-es-gallery .button--header {
  background: var(--accent);
  color: #fff;
}

.theme-oopbuy-es-gallery .button--primary:hover,
.theme-oopbuy-es-gallery .button--header:hover {
  background: var(--accent-strong);
  text-decoration: none;
  transform: translateY(-2px);
}

.theme-oopbuy-es-gallery .button--header {
  min-height: 40px;
  margin-left: 0.2rem;
  padding: 0.58rem 0.9rem;
  flex: 0 0 auto;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.theme-oopbuy-es-gallery .button--secondary {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

.theme-oopbuy-es-gallery .cta-group {
  margin-top: 1.45rem;
  gap: 0.7rem;
}

.theme-oopbuy-es-gallery .cta-note {
  max-width: 62ch;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.es-kicker,
.es-edition {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.es-text-link {
  color: var(--olive);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.es-text-link:hover {
  color: var(--accent-strong);
}

.es-section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.es-section-heading--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.es-section-heading h2,
.es-evidence-card h2,
.es-final h2,
.theme-oopbuy-es-gallery .faq-section h2,
.es-guide h1,
.es-guide h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
}

.es-section-heading h2,
.es-evidence-card h2,
.es-final h2,
.theme-oopbuy-es-gallery .faq-section h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
}

.es-section-heading > p:last-child {
  max-width: 62ch;
  margin: 0.8rem auto 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.65;
}

/* Home hero */
.es-home-hero {
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  background: var(--navy);
}

.es-home-hero__copy {
  width: min(620px, 100%);
  margin-left: max(20px, calc((100vw - 1240px) / 2));
  padding: clamp(3.3rem, 6vw, 5.2rem) clamp(2rem, 5vw, 5.5rem) clamp(3.2rem, 5vw, 4.8rem) 0;
  align-self: center;
  color: #f8f5ef;
}

.es-edition {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #d7deca;
}

.es-edition img {
  width: 27px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.es-home-hero h1 {
  max-width: 11ch;
  margin: 0;
  color: #fffdf9;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.8vw, 4.55rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.es-home-hero__lead {
  max-width: 52ch;
  margin: 1.25rem 0 0;
  color: #dce1df;
  font-size: 1rem;
  line-height: 1.65;
}

.es-home-hero .button--secondary {
  border-color: rgba(255, 255, 255, 0.62);
  color: #fff;
}

.es-home-hero .cta-note,
.es-home-hero__status {
  color: #aebcc0;
}

.es-home-hero__status {
  margin: 1rem 0 0;
  font-size: 0.71rem;
  font-weight: 700;
  line-height: 1.55;
}

.es-home-hero__media {
  min-height: 510px;
  overflow: hidden;
  display: block;
  background: var(--stone);
}

.es-home-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 51% center;
}

/* Orientation strip */
.es-orientation {
  border-bottom: 1px solid var(--line);
  background: #fffdf9;
}

.es-orientation ul {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 1.35rem 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.es-orientation__item {
  min-width: 0;
  padding: 0.25rem clamp(1rem, 3vw, 2.7rem);
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.es-orientation__item + .es-orientation__item {
  border-left: 1px solid var(--line);
}

.es-orientation__item img {
  width: 56px;
  height: 56px;
  display: block;
  object-fit: cover;
}

.es-orientation h2,
.es-orientation p {
  margin: 0;
}

.es-orientation h2 {
  color: var(--navy);
  font-size: 0.84rem;
  line-height: 1.25;
}

.es-orientation p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

/* Category wall */
.es-categories {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 6.3rem) 0;
}

.es-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.es-category {
  min-width: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.es-category:hover {
  border-bottom-color: var(--accent);
  text-decoration: none;
  transform: translateY(-4px);
}

.es-category__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
  background: #e9e1d3;
}

.es-category__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.es-category:hover .es-category__media img {
  transform: scale(1.035);
}

.es-category__label,
.es-category > strong,
.es-category > span:not(.es-category__label) {
  min-width: 0;
}

.es-category__label {
  min-height: 58px;
  padding: 0.82rem 0.2rem 0.85rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}

.es-category strong {
  display: block;
  color: var(--navy);
  font-size: 0.77rem;
  line-height: 1.28;
}

.es-category__label > span {
  color: var(--accent);
  font-size: 0.88rem;
}

/* Compatibility for the category directory renderer. */
.es-categories--page .es-category > strong {
  min-height: 2.8rem;
  padding: 0.8rem 0.2rem 0.15rem;
}

.es-categories--page .es-category > span {
  padding: 0 0.2rem 0.8rem;
  display: block;
  color: var(--olive);
  font-size: 0.72rem;
}

/* Method */
.es-method {
  padding: clamp(4rem, 7vw, 6.2rem) max(20px, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fffdf9;
  text-align: center;
}

.es-method ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  text-align: left;
}

.es-method__step {
  position: relative;
  min-height: 185px;
  padding: 1.2rem clamp(1.2rem, 3vw, 3rem);
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 1rem;
}

.es-method__step + .es-method__step {
  border-left: 1px solid var(--line);
}

.es-method__number {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2.15rem;
  line-height: 1;
}

.es-method__step img {
  width: 50px;
  height: 50px;
  margin-top: 0.75rem;
  grid-column: 1;
  object-fit: cover;
}

.es-method__step div {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}

.es-method h3,
.es-method p {
  margin: 0;
}

.es-method h3 {
  color: var(--navy);
  font-size: 0.93rem;
}

.es-method p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.es-method__link {
  margin-top: 1.5rem;
  display: inline-block;
}

/* QC and shipping */
.es-evidence {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 6.4rem) 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.es-evidence-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(260px, 0.94fr);
  border: 1px solid var(--line);
  background: var(--surface);
}

.es-evidence-card__media {
  width: 100%;
  min-width: 0;
  min-height: 390px;
  overflow: hidden;
  display: block;
}

.es-evidence-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.es-evidence-card__copy {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  align-self: center;
}

.es-evidence-card h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
}

.es-evidence-card__copy > p:not(.es-kicker) {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.6;
}

.es-checklist {
  margin: 1.1rem 0 1.2rem;
  padding: 0;
  display: grid;
  gap: 0.58rem;
  list-style: none;
}

.es-checklist li {
  position: relative;
  padding-left: 1.1rem;
  color: #394c4e;
  font-size: 0.77rem;
  line-height: 1.45;
}

.es-checklist li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--olive);
  content: "";
}

/* FAQ */
.theme-oopbuy-es-gallery .faq-section {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(3.6rem, 6vw, 5.8rem) 0;
}

.theme-oopbuy-es-gallery .faq-section .section-heading {
  margin-bottom: 1.8rem;
  text-align: center;
}

.theme-oopbuy-es-gallery .faq-section .eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.theme-oopbuy-es-gallery .faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.theme-oopbuy-es-gallery .faq-list details {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.theme-oopbuy-es-gallery .faq-list summary {
  position: relative;
  min-height: 62px;
  padding: 1.15rem 3rem 1.15rem 0;
  display: flex;
  align-items: center;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 800;
  list-style: none;
}

.theme-oopbuy-es-gallery .faq-list summary::-webkit-details-marker {
  display: none;
}

.theme-oopbuy-es-gallery .faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 0.3rem;
  color: var(--accent);
  content: "+";
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  transform: translateY(-50%);
}

.theme-oopbuy-es-gallery .faq-list details[open] summary::after {
  content: "−";
}

.theme-oopbuy-es-gallery .faq-answer {
  overflow: hidden;
}

.theme-oopbuy-es-gallery .faq-answer__inner {
  padding: 0 3rem 1.2rem 0;
}

.theme-oopbuy-es-gallery .faq-list p {
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

/* Closing */
.es-final {
  padding: clamp(3.3rem, 6vw, 5.5rem) max(20px, calc((100vw - 1120px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3rem;
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.98), rgba(255, 253, 249, 0.76)),
    linear-gradient(135deg, #efe7da, #d8c4a6);
}

.es-final > div:first-child {
  max-width: 680px;
}

.es-final > div > p:not(.es-kicker) {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.es-final .cta-group {
  margin: 0;
  justify-content: flex-end;
}

.es-final .button--secondary,
.es-final .cta-note {
  display: none;
}

/* Inner pages */
.es-guide {
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

.es-guide-hero {
  width: min(1240px, calc(100% - 40px));
  margin: clamp(2rem, 4vw, 3.5rem) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  border: 1px solid var(--line);
  background: var(--surface);
}

.es-guide-hero__copy {
  padding: clamp(2rem, 5vw, 4.7rem);
  align-self: center;
}

.es-guide-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.35rem, 4.6vw, 4.35rem);
  letter-spacing: -0.035em;
}

.es-guide-hero__copy > p:not(.es-kicker):not(.cta-note) {
  max-width: 58ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.es-guide-hero__meta {
  margin: 1.35rem 0 0;
  padding: 0.9rem 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.es-guide-hero__meta span {
  min-width: 0;
  padding: 0 0.7rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.es-guide-hero__meta span:first-child {
  padding-left: 0;
}

.es-guide-hero__meta span + span {
  border-left: 1px solid var(--line);
}

.es-guide-hero__meta strong {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

.es-guide-hero__visual {
  min-height: 520px;
  overflow: hidden;
  display: block;
  background: var(--stone);
}

.es-guide-hero__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.es-guide-layout {
  width: min(1120px, calc(100% - 40px));
  margin: clamp(3.5rem, 7vw, 6rem) auto 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.es-guide-rail {
  position: sticky;
  top: 100px;
  height: fit-content;
  padding-top: 0.2rem;
}

.es-guide-rail ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.es-guide-rail li {
  border-bottom: 1px solid var(--line);
}

.es-guide-rail a {
  padding: 0.75rem 0;
  display: block;
  color: #4f6060;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.es-guide-rail a:hover {
  color: var(--accent);
}

.es-guide-content {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: clamp(2rem, 5vw, 4.5rem);
}

.es-guide-section {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 1.3rem;
}

.es-guide-section + .es-guide-section {
  margin-top: 2.8rem;
  padding-top: 2.8rem;
  border-top: 1px solid var(--line);
}

.es-guide-section__number {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.es-guide-section h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
}

.es-guide-section p,
.es-guide-list li {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.7;
}

.es-guide-section p {
  max-width: 70ch;
}

.es-guide-list {
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.6rem;
  list-style: none;
}

.es-guide-list li {
  position: relative;
  padding-left: 1rem;
}

.es-guide-list li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--olive);
  content: "";
}

.es-guide--task-categories .es-categories--page {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: 0;
}

.es-guide--task-categories .es-guide-layout {
  margin-top: 4rem;
}

.es-guide--task-faq > .faq-section {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: 0;
}

.es-final-cta {
  width: min(1120px, calc(100% - 40px));
  margin: clamp(3.5rem, 7vw, 6rem) auto 0;
  padding: clamp(1.7rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.5rem;
  border-top: 3px solid var(--accent);
  background: var(--navy);
  color: #f8f5ef;
}

.es-final-cta__copy {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.es-final-cta__icon {
  color: #d7deca;
  font-size: 1.8rem;
}

.es-final-cta h2 {
  color: #fff;
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
}

.es-final-cta p:not(.es-kicker) {
  max-width: 62ch;
  margin: 0.65rem 0 0;
  color: #bbc7c8;
  font-size: 0.83rem;
  line-height: 1.6;
}

.es-final-cta .cta-group {
  margin: 0;
}

.es-final-cta .button--secondary,
.es-final-cta .cta-note {
  display: none;
}

/* Footer */
.theme-oopbuy-es-gallery .site-footer {
  padding: 2.8rem max(20px, calc((100% - 1240px) / 2));
  border-top: 0;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.theme-oopbuy-es-gallery .site-footer a {
  color: inherit;
}

.theme-oopbuy-es-gallery .site-footer p {
  max-width: 60ch;
  color: #b9c6c7;
  font-size: 0.76rem;
  line-height: 1.55;
}

.theme-oopbuy-es-gallery .site-footer nav {
  font-size: 0.78rem;
  font-weight: 700;
}

/* Purposeful motion */
@media (prefers-reduced-motion: no-preference) {
  .es-home-hero__copy > *,
  .es-orientation__item,
  .es-category,
  .es-method__step,
  .es-evidence-card,
  .es-guide-hero > * {
    animation: es-rise-in 620ms both cubic-bezier(0.2, 0.75, 0.25, 1);
  }

  .es-home-hero__copy > :nth-child(2),
  .es-orientation__item:nth-child(2),
  .es-category:nth-child(3n + 2),
  .es-method__step:nth-child(2),
  .es-evidence-card:nth-child(2),
  .es-guide-hero > :nth-child(2) {
    animation-delay: 90ms;
  }

  .es-home-hero__copy > :nth-child(3),
  .es-orientation__item:nth-child(3),
  .es-category:nth-child(3n),
  .es-method__step:nth-child(3) {
    animation-delay: 160ms;
  }
}

@keyframes es-rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .es-evidence {
    grid-template-columns: 1fr;
    max-width: 900px;
  }

  .es-evidence-card {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  }
}

@media (max-width: 1040px) {
  .es-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .es-home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .es-home-hero__copy {
    padding-right: 2rem;
  }
}

@media (max-width: 960px) {
  .theme-oopbuy-es-gallery .primary-navigation {
    gap: 0;
    border-radius: 0;
    background: #fffdf9;
  }

  .theme-oopbuy-es-gallery .primary-navigation a {
    padding: 0.78rem 0;
    border-bottom: 1px solid var(--line);
  }

  .theme-oopbuy-es-gallery .primary-navigation a::after {
    display: none;
  }

  .theme-oopbuy-es-gallery .button--header {
    display: none;
  }

  .es-home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .es-home-hero__copy {
    width: min(100% - 40px, 760px);
    margin: 0 auto;
    padding: 3.5rem 0;
  }

  .es-home-hero h1 {
    max-width: 13ch;
  }

  .es-home-hero__media {
    min-height: 390px;
  }

  .es-guide-hero {
    grid-template-columns: 1fr;
  }

  .es-guide-hero__visual {
    min-height: 420px;
  }

  .es-guide-layout {
    grid-template-columns: 1fr;
  }

  .es-guide-rail {
    position: static;
  }

  .es-guide-rail ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.2rem;
  }

  .es-guide-content {
    padding-top: 2.2rem;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .theme-oopbuy-es-gallery .site-header__inner,
  .es-orientation ul,
  .es-categories,
  .es-evidence,
  .theme-oopbuy-es-gallery .faq-section,
  .es-guide-hero,
  .es-guide-layout,
  .es-final-cta {
    width: min(100% - 24px, 1240px);
  }

  .theme-oopbuy-es-gallery .brand img {
    height: 36px;
  }

  .es-home-hero__copy {
    width: min(100% - 32px, 760px);
    padding: 3rem 0 2.7rem;
  }

  .es-home-hero__media {
    min-height: 330px;
  }

  .es-home-hero__media img {
    object-position: center 52%;
  }

  .es-orientation ul {
    padding: 0;
    grid-template-columns: 1fr;
  }

  .es-orientation__item {
    padding: 1rem 0;
  }

  .es-orientation__item + .es-orientation__item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .es-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .es-method ol {
    grid-template-columns: 1fr;
  }

  .es-method__step {
    min-height: 0;
    padding: 1.3rem 0;
  }

  .es-method__step + .es-method__step {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .es-evidence-card {
    grid-template-columns: 1fr;
  }

  .es-evidence-card__media {
    min-height: 330px;
    aspect-ratio: 3 / 2;
  }

  .es-final,
  .es-final-cta {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .es-final .cta-group,
  .es-final-cta .cta-group {
    justify-content: flex-start;
  }

  .es-guide-hero__copy {
    padding: 2rem 1.35rem;
  }

  .es-guide-hero__visual {
    min-height: 330px;
  }

  .es-guide-section {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0.8rem;
  }

  .es-guide-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .theme-oopbuy-es-gallery .site-header__inner {
    min-height: 62px;
  }

  .theme-oopbuy-es-gallery .brand img {
    height: 32px;
  }

  .theme-oopbuy-es-gallery .brand__label {
    max-width: 72px;
    font-size: 0.56rem;
  }

  .es-home-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }

  .es-home-hero__media {
    min-height: 285px;
  }

  .es-categories,
  .es-method,
  .es-evidence,
  .theme-oopbuy-es-gallery .faq-section {
    padding-top: 3.4rem;
    padding-bottom: 3.4rem;
  }

  .es-category-grid {
    gap: 0.7rem;
  }

  .es-category__label {
    min-height: 62px;
  }

  .es-category strong {
    font-size: 0.7rem;
  }

  .es-guide-hero__meta {
    grid-template-columns: 1fr;
  }

  .es-guide-hero__meta span {
    padding: 0.55rem 0;
  }

  .es-guide-hero__meta span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .es-guide-hero__visual,
  .es-evidence-card__media {
    min-height: 270px;
  }

  .es-final-cta__copy {
    gap: 0.75rem;
  }
}
