/* ============================================================
   Foodstocks inner pages
   Shared WordPress-native component composition inspired by
   shadcn/ui. Homepage composition intentionally stays untouched.
============================================================ */

body.fs-inner-page {
  --fs-inner-content: 82rem;
  --fs-inner-reading: 44rem;
  --fs-inner-section-y: clamp(4.75rem, 7vw, 7rem);
  --fs-inner-hero-y: clamp(5.5rem, 9vw, 8rem);
  --fs-inner-ink: #18181b;
  --fs-inner-copy: #52525b;
  --fs-inner-subtle: #71717a;
  --fs-inner-line: #eee2e2;
  --fs-inner-surface: #ffffff;
  --fs-inner-muted: #faf7f7;
  --fs-inner-dark: #111114;
  --fs-inner-red: #d60001;
  --fs-inner-red-dark: #a90001;
  --fs-inner-hero-gradient: linear-gradient(135deg, #7a0001 0%, #b40001 22%, #d60001 45%, #e84040 68%, #ff7575 88%, #ffe0e0 100%);
  --fs-inner-hero-shade: linear-gradient(90deg, rgb(82 0 1 / .05) 0%, rgb(82 0 1 / .08) 56%, rgb(82 0 1 / .48) 100%);
  --fs-inner-cta-gradient:
    radial-gradient(ellipse 48% 72% at 50% 46%, #3a1018 0%, #211217 44%, transparent 76%),
    linear-gradient(135deg, #111318 0%, #181116 52%, #111318 100%);
  --fs-inner-ease: cubic-bezier(.16, 1, .3, 1);
  background: var(--fs-inner-surface);
  color: var(--fs-inner-ink);
}

body.fs-inner-page > :is(main, section),
body.fs-inner-page > div.flex.min-h-screen {
  font-family: var(--font-sans);
}

body.fs-inner-page > :is(main, section) :where(h1, h2, h3) {
  color: var(--fs-inner-ink);
  text-wrap: balance;
}

body.fs-inner-page > :is(main, section) :where(p, li, blockquote) {
  text-wrap: pretty;
}

body.fs-inner-page > :is(main, section) :where(p, li):not([class*="text-white"]) {
  color: var(--fs-inner-copy);
}

body.fs-inner-page > :is(main, section) .heading-brand {
  max-width: 20ch;
  letter-spacing: -.025em;
  line-height: 1.04;
}

body.fs-inner-page > :is(main, section) h1.heading-brand {
  font-size: clamp(2.75rem, 5.7vw, 4.75rem) !important;
}

body.fs-inner-page > :is(main, section) h2.heading-brand {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
}

body.fs-inner-page > :is(main, section) h3 {
  line-height: 1.25;
}

body.fs-inner-page > :is(main, section) :where(.max-w-8xl, .max-w-\[82rem\]) {
  width: min(100%, var(--fs-inner-content));
}

/* Badge bridge: one compact shadcn-like label, never a decorative dot. */
body.fs-inner-page .eyebrow {
  gap: 0;
  padding: .38rem .72rem;
  border: 1px solid rgb(214 0 1 / .15);
  border-radius: var(--fs-radius-pill);
  background: var(--fs-accent);
  color: var(--fs-accent-foreground);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1;
  text-transform: none;
}

body.fs-inner-page .eyebrow::before {
  display: none;
  content: none;
}

body.fs-inner-page .eyebrow-dark {
  border-color: rgb(255 255 255 / .22);
  background: rgb(255 255 255 / .09);
  color: #ffffff;
}

/* Remove the old dot/grid and oversized glow vocabulary on inner pages. */
body.fs-inner-page .bg-dot-grid,
body.fs-inner-page .bg-dot-grid-white {
  display: none !important;
  background-image: none !important;
}

body.fs-inner-page > section > .absolute .blur-3xl,
body.fs-inner-page > section > .absolute .blur-2xl,
body.fs-inner-page > section > .absolute.blur-3xl,
body.fs-inner-page > section > .absolute.blur-2xl {
  display: none;
}

body.fs-inner-page .bg-grain {
  background-image: none;
}

body.fs-inner-page .text-gradient-red {
  background: none;
  color: var(--fs-inner-red);
  -webkit-text-fill-color: currentColor;
}

body.fs-inner-page .border-l-2,
body.fs-inner-page .border-r-2 {
  border-inline-width: 0;
}

/* ============================================================
   Marketing hero system
============================================================ */

body.fs-inner-marketing #main-content > section.hero-bg:first-of-type {
  position: relative;
  isolation: isolate;
  padding-block: var(--fs-inner-hero-y);
  background: var(--fs-inner-hero-shade), var(--fs-inner-hero-gradient) !important;
  border-bottom: 1px solid #970001;
  overflow: hidden;
}

body.fs-inner-marketing #main-content > section.hero-bg:first-of-type::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("../Patterns/1.webp");
  background-position: center;
  background-repeat: repeat;
  background-size: clamp(26rem, 32vw, 34rem);
  content: "";
  opacity: .2;
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / .55) 0%, #000 44%, #000 100%);
  mask-image: linear-gradient(90deg, rgb(0 0 0 / .55) 0%, #000 44%, #000 100%);
  pointer-events: none;
}

body.fs-inner-marketing #main-content > section.hero-bg:first-of-type > .relative {
  position: relative;
  z-index: 1;
}

body.fs-inner-marketing #main-content > section.hero-bg:first-of-type > .relative.text-center {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

body.fs-inner-marketing #main-content > section.hero-bg:first-of-type > .relative.text-center :where(h1, p) {
  margin-inline: 0 !important;
  text-align: left;
}

body.fs-inner-marketing #main-content > section.hero-bg:first-of-type > .relative.text-center > h1 {
  max-width: 15ch;
}

body.fs-inner-marketing #main-content > section.hero-bg:first-of-type > .relative.text-center > p {
  max-width: 58ch;
}

body.fs-inner-marketing #main-content > section.hero-bg:first-of-type > .relative.text-center .justify-center {
  justify-content: flex-start;
}

body.fs-inner-marketing #main-content > section.hero-bg:first-of-type h1,
body.fs-inner-marketing #main-content > section.hero-bg:first-of-type h2,
body.fs-inner-marketing #main-content > section.hero-bg:first-of-type h3 {
  color: #ffffff;
}

body.fs-inner-marketing #main-content > section.hero-bg:first-of-type p {
  color: rgb(255 255 255 / .82);
}

body.fs-inner-marketing #main-content > section.hero-bg:first-of-type .grid {
  gap: clamp(2.5rem, 6vw, 5rem);
}

body.fs-inner-marketing #main-content > section.hero-bg:first-of-type .backdrop-blur-sm {
  backdrop-filter: none;
}

body.fs-inner-marketing #main-content > section.hero-bg:first-of-type :is(.bg-white\/20, .bg-white\/15, .bg-white\/10) {
  border-color: rgb(255 255 255 / .22);
  background: rgb(255 255 255 / .09);
}

/* Editorial heroes reuse the homepage gradient and pattern. */
body.fs-template-contact #main-content > section:first-of-type,
body.fs-template-blog #main-content > section:first-of-type,
body.fs-template-case-studies #main-content > section:first-of-type,
body.fs-inner-page.archive > section:first-of-type {
  position: relative;
  isolation: isolate;
  min-height: 32rem;
  background: var(--fs-inner-hero-shade), var(--fs-inner-hero-gradient) !important;
  border-bottom: 1px solid #970001;
}

body.fs-template-contact #main-content > section:first-of-type::before,
body.fs-template-blog #main-content > section:first-of-type::before,
body.fs-template-case-studies #main-content > section:first-of-type::before,
body.fs-inner-page.archive > section:first-of-type::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("../Patterns/1.webp");
  background-position: center;
  background-repeat: repeat;
  background-size: clamp(26rem, 32vw, 34rem);
  content: "";
  opacity: .2;
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / .55) 0%, #000 44%, #000 100%);
  mask-image: linear-gradient(90deg, rgb(0 0 0 / .55) 0%, #000 44%, #000 100%);
  pointer-events: none;
}

body.fs-template-contact #main-content > section:first-of-type :where(h1, p),
body.fs-template-blog #main-content > section:first-of-type :where(h1, p),
body.fs-template-case-studies #main-content > section:first-of-type :where(h1, p),
body.fs-inner-page.archive > section:first-of-type :where(h1, p) {
  color: #ffffff !important;
}

body.fs-template-contact #main-content > section:first-of-type .text-brand-red,
body.fs-template-blog #main-content > section:first-of-type .text-brand-red,
body.fs-template-case-studies #main-content > section:first-of-type .text-brand-red,
body.fs-inner-page.archive > section:first-of-type .text-brand-red {
  color: #fde047 !important;
}

body.fs-template-contact #main-content > section:first-of-type .eyebrow,
body.fs-template-blog #main-content > section:first-of-type .eyebrow,
body.fs-template-case-studies #main-content > section:first-of-type .eyebrow,
body.fs-inner-page.archive > section:first-of-type .eyebrow {
  border-color: rgb(255 255 255 / .24);
  background: rgb(255 255 255 / .11);
  color: #ffffff;
}

body.fs-template-contact #main-content > section:first-of-type > .relative,
body.fs-template-blog #main-content > section:first-of-type > .relative,
body.fs-template-case-studies #main-content > section:first-of-type > .relative {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 32rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: clamp(4.75rem, 8vw, 7rem);
  text-align: left;
}

body.fs-inner-page.archive > section:first-of-type > div {
  position: relative;
  z-index: 1;
}

body.fs-template-contact #main-content > section:first-of-type .reveal,
body.fs-template-case-studies #main-content > section:first-of-type .reveal {
  width: 100%;
  text-align: left;
}

body.fs-template-contact #main-content > section:first-of-type :where(h1, p),
body.fs-template-case-studies #main-content > section:first-of-type :where(h1, p) {
  margin-inline: 0;
  text-align: left;
}

body.fs-template-contact #main-content > section:first-of-type h1,
body.fs-template-blog #main-content > section:first-of-type h1,
body.fs-template-case-studies #main-content > section:first-of-type h1 {
  max-width: 16ch;
}

body.fs-template-contact #main-content > section:first-of-type p,
body.fs-template-blog #main-content > section:first-of-type p,
body.fs-template-case-studies #main-content > section:first-of-type p {
  max-width: 62ch;
}

/* ============================================================
   Section rhythm and surfaces
============================================================ */

body.fs-inner-marketing #main-content > section:not(:first-of-type) {
  padding-block: var(--fs-inner-section-y);
}

body.fs-inner-marketing #main-content > section.bg-gray-50,
body.fs-inner-marketing #main-content > section[class*="from-slate-50"],
body.fs-inner-marketing #main-content > section[class*="from-gray-50"],
body.fs-inner-marketing #main-content > section[class*="from-white"],
body.fs-inner-marketing #main-content > section[class*="from-orange-50"],
body.fs-inner-marketing #main-content > section[class*="from-red-50"] {
  background-color: var(--fs-inner-muted);
  background-image: radial-gradient(ellipse 70% 60% at 100% 0%, rgb(214 0 1 / .04) 0%, transparent 70%);
}

body.fs-inner-marketing #main-content > section.bg-gray-50:nth-of-type(even) {
  position: relative;
  isolation: isolate;
}

body.fs-inner-marketing #main-content > section.bg-gray-50:nth-of-type(even)::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("../Patterns/2.webp");
  background-position: center;
  background-repeat: repeat;
  background-size: 21rem;
  content: "";
  opacity: .025;
  pointer-events: none;
}

body.fs-inner-marketing #main-content > section.bg-brand-ink {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 72% 82% at 58% 42%, rgb(214 0 1 / .18) 0%, transparent 68%),
    linear-gradient(135deg, #101116 0%, #171116 58%, #290b0f 100%) !important;
}

body.fs-inner-marketing #main-content > section.bg-brand-ink::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("../Patterns/1.webp");
  background-position: center;
  background-repeat: repeat;
  background-size: 24rem;
  content: "";
  opacity: .035;
  pointer-events: none;
}

body.fs-inner-marketing #main-content > section.bg-brand-ink > .relative {
  z-index: 1;
}

body.fs-inner-marketing #main-content > section.bg-brand-red {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 72% 88% at 100% 8%, rgb(255 255 255 / .14) 0%, transparent 66%),
    linear-gradient(135deg, #ba0008 0%, #e3000b 52%, #a50008 100%) !important;
}

body.fs-inner-marketing #main-content > section.bg-brand-red::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("../Patterns/1.webp");
  background-position: center;
  background-repeat: repeat;
  background-size: 24rem;
  content: "";
  opacity: .07;
  pointer-events: none;
}

body.fs-inner-marketing #main-content > section.bg-gray-50:nth-of-type(even) > :not(.absolute),
body.fs-inner-marketing #main-content > section.bg-brand-red > :not(.absolute) {
  position: relative;
  z-index: 1;
}

/* Final CTA: mirror the homepage's dark red glow and edge-revealed pattern. */
body.fs-inner-marketing #main-content > section:last-of-type:is(.bg-brand-ink, .bg-brand-red, .bg-blue-600) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgb(214 0 1 / .22);
  background: var(--fs-inner-cta-gradient) !important;
}

body.fs-inner-marketing #main-content > section:last-of-type:is(.bg-brand-ink, .bg-brand-red, .bg-blue-600)::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("../Patterns/1.webp");
  background-position: center;
  background-repeat: repeat;
  background-size: 17.5rem;
  content: "";
  opacity: .4;
  filter: brightness(.42) saturate(1.4) contrast(1.08);
  -webkit-mask-image: radial-gradient(
    ellipse 60% 70% at center,
    transparent 0%,
    transparent 43%,
    rgb(0 0 0 / .24) 59%,
    rgb(0 0 0 / .76) 82%,
    #000 100%
  );
  mask-image: radial-gradient(
    ellipse 60% 70% at center,
    transparent 0%,
    transparent 43%,
    rgb(0 0 0 / .24) 59%,
    rgb(0 0 0 / .76) 82%,
    #000 100%
  );
  pointer-events: none;
}

body.fs-inner-marketing #main-content > section:last-of-type:is(.bg-brand-ink, .bg-brand-red, .bg-blue-600) > div:not(.absolute) {
  position: relative;
  z-index: 2;
  text-align: center;
}

body.fs-inner-marketing #main-content > section:last-of-type:is(.bg-brand-ink, .bg-brand-red, .bg-blue-600) :where(h1, h2, h3, p) {
  margin-inline: auto;
  text-align: center;
}

body.fs-inner-marketing #main-content > section:last-of-type:is(.bg-brand-ink, .bg-brand-red, .bg-blue-600) :where(h1, h2, h3) {
  color: #ffffff;
}

body.fs-inner-marketing #main-content > section:last-of-type:is(.bg-brand-ink, .bg-brand-red, .bg-blue-600) :where(p, li) {
  color: rgb(255 255 255 / .68);
}

body.fs-inner-marketing #main-content > section:last-of-type:is(.bg-brand-ink, .bg-brand-red, .bg-blue-600) .eyebrow {
  margin-inline: auto;
  border-color: rgb(255 255 255 / .18);
  background: rgb(255 255 255 / .08);
  color: #ffffff;
}

body.fs-inner-marketing #main-content > section:last-of-type:is(.bg-brand-ink, .bg-brand-red, .bg-blue-600) div:not(.absolute) > .flex {
  justify-content: center;
}

body.fs-inner-marketing #main-content > section.bg-brand-ink :where(h1, h2, h3),
body.fs-inner-marketing #main-content > section.bg-brand-red :where(h1, h2, h3) {
  color: #ffffff;
}

body.fs-inner-marketing #main-content > section.bg-brand-ink :where(p, li),
body.fs-inner-marketing #main-content > section.bg-brand-red :where(p, li) {
  color: rgb(255 255 255 / .7);
}

/*
 * Opaque light-card foreground guard.
 * Keep card copy dark even when the component is moved into a colored section.
 * Rounded-full anchors are intentionally excluded because they are buttons.
 */
body.fs-inner-page :is(
  article,
  div,
  section,
  aside,
  form,
  li,
  a[class*="rounded-2xl"],
  a[class*="rounded-3xl"]
).bg-white {
  color: var(--fs-card-foreground) !important;
}

/*
 * Some legacy dark-section cards use bg-white/5 in their markup, while the
 * compatibility layer intentionally renders article surfaces as solid cards.
 * Override the text nodes themselves so utility classes and dark-section
 * inheritance can never leave white copy on the resulting white card.
 */
body.fs-inner-page > :is(main, section) :is(
  article[class*="bg-white"],
  div.bg-white[class*="rounded-"],
  aside.bg-white[class*="rounded-"],
  form.bg-white[class*="rounded-"],
  li.bg-white[class*="rounded-"],
  a.bg-white[class*="rounded-2xl"],
  a.bg-white[class*="rounded-3xl"]
) {
  color: var(--fs-card-foreground) !important;
}

body.fs-inner-page > :is(main, section) :is(
  article[class*="bg-white"],
  div.bg-white[class*="rounded-"],
  aside.bg-white[class*="rounded-"],
  form.bg-white[class*="rounded-"],
  li.bg-white[class*="rounded-"],
  a.bg-white[class*="rounded-2xl"],
  a.bg-white[class*="rounded-3xl"]
) :where(h1, h2, h3, h4, h5, h6, p, li, dt, dd, blockquote, label, legend, th, td, small) {
  color: var(--fs-card-foreground) !important;
}

body.fs-inner-page :is(.bg-brand-ink, .bg-brand-red, .bg-blue-600) .bg-white :where(h1, h2, h3, h4, h5, h6, dt, dd) {
  color: var(--fs-card-foreground) !important;
}

body.fs-inner-page :is(.bg-brand-ink, .bg-brand-red, .bg-blue-600) .bg-white :where(p, li) {
  color: var(--fs-card-foreground) !important;
}

/* Dark and red CTA blocks share one centered axis without affecting heroes. */
body.fs-inner-marketing #main-content > section.bg-brand-ink > .relative.text-center,
body.fs-inner-marketing #main-content > section.bg-brand-red > .relative.text-center {
  display: flex;
  inline-size: min(100%, 48rem);
  flex-direction: column;
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

body.fs-inner-marketing #main-content > section.bg-brand-ink > .relative.text-center :where(h1, h2, h3, p),
body.fs-inner-marketing #main-content > section.bg-brand-red > .relative.text-center :where(h1, h2, h3, p) {
  margin-inline: auto;
  text-align: center;
}

body.fs-inner-marketing #main-content > section.bg-brand-ink > .relative.text-center > .flex,
body.fs-inner-marketing #main-content > section.bg-brand-red > .relative.text-center > .flex {
  justify-content: center;
}

/* Standard section headers share one centered reading axis. */
body.fs-inner-marketing #main-content > section:not(:first-of-type) > div > .text-center.max-w-2xl {
  display: flex;
  max-width: var(--fs-inner-reading);
  flex-direction: column;
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

body.fs-inner-marketing #main-content > section:not(:first-of-type) > div > .text-center.max-w-2xl :where(h2, p) {
  margin-inline: auto;
  text-align: center;
}

body.fs-inner-marketing #main-content > section:not(:first-of-type) > div > .text-center.max-w-2xl h2 {
  max-width: 20ch;
}

/* ============================================================
   Shadcn compatibility layer for existing WordPress markup
============================================================ */

body.fs-inner-page > :is(main, section) .rounded-3xl,
body.fs-inner-page > div.flex.min-h-screen .rounded-3xl {
  border-radius: var(--fs-radius-lg);
}

body.fs-inner-page > :is(main, section) .rounded-2xl,
body.fs-inner-page > div.flex.min-h-screen .rounded-2xl {
  border-radius: var(--fs-radius-md);
}

body.fs-inner-page > :is(main, section) :is(.shadow-xl, .shadow-2xl, .shadow-card, .shadow-soft),
body.fs-inner-page > div.flex.min-h-screen :is(.shadow-xl, .shadow-2xl, .shadow-card, .shadow-soft) {
  box-shadow: var(--fs-shadow-sm);
}

body.fs-inner-page > :is(main, section) :is(article, a.card-hover, div.bg-white.rounded-3xl, div.bg-white.rounded-2xl) {
  border-color: var(--fs-inner-line);
}

body.fs-inner-page > :is(main, section) .card-hover {
  transition:
    background-color var(--fs-duration-base) var(--fs-inner-ease),
    border-color var(--fs-duration-base) var(--fs-inner-ease),
    box-shadow var(--fs-duration-base) var(--fs-inner-ease),
    transform var(--fs-duration-base) var(--fs-inner-ease);
}

body.fs-inner-page > :is(main, section) .card-hover:hover {
  border-color: var(--fs-border-strong);
  box-shadow: var(--fs-shadow-md);
  transform: translateY(-3px);
}

body.fs-inner-page > :is(main, section) article[class*="bg-white"],
body.fs-inner-page > :is(main, section) a.bg-white[class*="border"],
body.fs-inner-page > :is(main, section) div.bg-white.rounded-3xl,
body.fs-inner-page > :is(main, section) div.bg-white.rounded-2xl {
  background: var(--fs-card);
}

body.fs-inner-page > :is(main, section) :is(.bg-red-50, .bg-brand-red\/10) {
  background-color: var(--fs-accent);
}

body.fs-inner-page > :is(main, section) :is(.border-gray-100, .border-red-100) {
  border-color: var(--fs-inner-line);
}

body.fs-inner-page > :is(main, section) :is(.text-gray-400, .text-gray-500, .text-gray-600) {
  color: var(--fs-inner-copy);
}

/* Buttons and links */
body.fs-inner-page > :is(main, section) :is(.btn-primary, .btn-secondary),
body.fs-inner-marketing #main-content > section.hero-bg:first-of-type a[class*="rounded-full"],
body.fs-inner-marketing #main-content > section.bg-brand-red a[class*="rounded-full"],
body.fs-inner-marketing #main-content > section.bg-brand-ink a[class*="rounded-full"] {
  display: inline-flex;
  min-height: var(--fs-control-lg);
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .82rem 1.4rem;
  border-radius: var(--fs-radius-pill);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1;
  transition:
    color var(--fs-duration-fast) var(--fs-inner-ease),
    background-color var(--fs-duration-fast) var(--fs-inner-ease),
    border-color var(--fs-duration-fast) var(--fs-inner-ease),
    box-shadow var(--fs-duration-fast) var(--fs-inner-ease),
    transform var(--fs-duration-fast) var(--fs-inner-ease);
}

body.fs-inner-page > :is(main, section) .btn-primary {
  border: 1px solid transparent;
  background: var(--fs-inner-red);
  color: #ffffff;
  box-shadow: var(--fs-shadow-sm);
}

body.fs-inner-page > :is(main, section) .btn-primary:hover {
  background: var(--fs-inner-red-dark);
  box-shadow: var(--fs-shadow-primary);
  transform: translateY(-2px);
}

body.fs-inner-page > :is(main, section) .btn-secondary {
  border: 1px solid var(--fs-inner-line);
  background: #ffffff;
  color: var(--fs-inner-red);
  box-shadow: var(--fs-shadow-xs);
}

body.fs-inner-page > :is(main, section) .btn-secondary:hover {
  border-color: var(--fs-inner-red);
  background: #fffafa;
  transform: translateY(-2px);
}

body.fs-inner-marketing #main-content > section.hero-bg:first-of-type a.bg-white,
body.fs-inner-marketing #main-content > section.bg-brand-red a.bg-white,
body.fs-inner-marketing #main-content > section.bg-brand-ink a.bg-white {
  border: 1px solid #ffffff;
  background: #ffffff;
  color: var(--fs-inner-red);
  box-shadow: var(--fs-shadow-sm);
}

body.fs-inner-marketing #main-content > section.hero-bg:first-of-type a.bg-white:hover,
body.fs-inner-marketing #main-content > section.bg-brand-red a.bg-white:hover,
body.fs-inner-marketing #main-content > section.bg-brand-ink a.bg-white:hover {
  background: #fff7f7;
  box-shadow: var(--fs-shadow-md);
  transform: translateY(-2px);
}

body.fs-inner-marketing #main-content > section.hero-bg:first-of-type a[class*="bg-white/"],
body.fs-inner-marketing #main-content > section.bg-brand-ink a[class*="border-white"],
body.fs-inner-marketing #main-content > section.bg-brand-red a[class*="border-white"] {
  border-color: rgb(255 255 255 / .34);
  background: transparent;
  color: #ffffff;
  box-shadow: none;
}

body.fs-inner-marketing #main-content > section.hero-bg:first-of-type a[class*="bg-white/"]:hover,
body.fs-inner-marketing #main-content > section.bg-brand-ink a[class*="border-white"]:hover,
body.fs-inner-marketing #main-content > section.bg-brand-red a[class*="border-white"]:hover {
  border-color: #ffffff;
  background: rgb(255 255 255 / .1);
  transform: translateY(-2px);
}

body.fs-inner-marketing #main-content > section:last-of-type:is(.bg-brand-ink, .bg-brand-red, .bg-blue-600) :is(.btn-primary, a.bg-white) {
  border: 1px solid #ffffff;
  background: #ffffff;
  color: var(--fs-inner-red) !important;
  box-shadow: var(--fs-shadow-sm);
}

body.fs-inner-marketing #main-content > section:last-of-type:is(.bg-brand-ink, .bg-brand-red, .bg-blue-600) :is(.btn-primary, a.bg-white):hover {
  background: #fff7f7;
  box-shadow: var(--fs-shadow-md);
  transform: translateY(-2px);
}

body.fs-inner-marketing #main-content > section:last-of-type:is(.bg-brand-ink, .bg-brand-red, .bg-blue-600) a[class*="border-white"] {
  border-color: rgb(255 255 255 / .34);
  background: transparent;
  color: #ffffff;
  box-shadow: none;
}

body.fs-inner-marketing #main-content > section:last-of-type:is(.bg-brand-ink, .bg-brand-red, .bg-blue-600) a[class*="border-white"]:hover {
  border-color: #ffffff;
  background: rgb(255 255 255 / .1);
  transform: translateY(-2px);
}

/* Inputs */
body.fs-inner-page > :is(main, section) :is(input, textarea, select) {
  min-height: var(--fs-control-lg);
  border: 1px solid var(--fs-border-strong);
  border-radius: var(--fs-radius-md);
  background: #ffffff;
  color: var(--fs-inner-ink);
  box-shadow: var(--fs-shadow-xs);
  transition:
    border-color var(--fs-duration-fast) var(--fs-inner-ease),
    box-shadow var(--fs-duration-fast) var(--fs-inner-ease);
}

body.fs-inner-page > :is(main, section) textarea {
  min-height: 8rem;
}

body.fs-inner-page > :is(main, section) :is(input, textarea, select)::placeholder {
  color: #71717a;
  opacity: 1;
}

body.fs-inner-page > :is(main, section) :is(input, textarea, select):focus {
  border-color: var(--fs-ring);
  outline: 0;
  box-shadow: 0 0 0 3px rgb(214 0 1 / .13);
}

body.fs-template-contact .topic-btn {
  border-width: 1px;
  border-color: var(--fs-border-strong);
  border-radius: var(--fs-radius-md);
  background: #ffffff;
  box-shadow: var(--fs-shadow-xs);
}

body.fs-template-contact .topic-btn:hover,
body.fs-template-contact .topic-btn.is-active {
  border-color: var(--fs-inner-red);
  background: var(--fs-accent);
  box-shadow: none;
}

/* ============================================================
   Page families
============================================================ */

/* Solutions overview: white/red only, with one featured span. */
body.fs-template-solutions #main-content > section:nth-of-type(2) .grid > a {
  border: 1px solid var(--fs-inner-line);
  background: #ffffff;
  color: var(--fs-inner-ink);
  box-shadow: var(--fs-shadow-xs);
}

body.fs-template-solutions #main-content > section:nth-of-type(2) .grid > a:first-child {
  border-color: rgb(214 0 1 / .24);
  background: var(--fs-accent);
}

body.fs-template-solutions #main-content > section:nth-of-type(2) .grid > a :is(.bg-red-100, .bg-blue-100, .bg-brand-red\/10) {
  background: #ffffff;
}

body.fs-template-solutions #main-content > section:nth-of-type(2) .grid > a :is(.text-red-600, .text-blue-600, .text-brand-red) {
  color: var(--fs-inner-red);
}

body.fs-template-solutions #main-content > section:nth-of-type(2) .grid > a :is(.bg-red-600, .bg-blue-600, .bg-brand-red) {
  background: var(--fs-inner-red);
}

/* Portal: role is conveyed by content, not three unrelated colors. */
body.fs-template-portal #main-content > section:first-of-type {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgb(214 0 1 / .05) 0%, transparent 70%),
    #ffffff;
}

body.fs-template-portal #main-content > section:first-of-type::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("../Patterns/2.webp");
  background-position: center;
  background-repeat: repeat;
  background-size: 21rem;
  content: "";
  opacity: .025;
}

body.fs-template-portal #main-content > section:first-of-type .grid > a {
  border-color: var(--fs-inner-line);
  border-radius: var(--fs-radius-lg);
  background: #ffffff;
  box-shadow: var(--fs-shadow-xs);
}

body.fs-template-portal #main-content > section:first-of-type .grid > a > div:first-child {
  background: var(--fs-accent);
}

body.fs-template-portal #main-content > section:first-of-type .grid > a > div:first-child svg {
  color: var(--fs-inner-red);
}

body.fs-template-portal #main-content > section:first-of-type .grid > a > div:last-child {
  background: var(--fs-inner-red);
  color: #ffffff;
}

body.fs-template-portal #main-content > section:first-of-type .grid > a:hover {
  border-color: var(--fs-border-strong);
  box-shadow: var(--fs-shadow-md);
}

/* Technology mockups: compact framed artifacts, never giant floating cards. */
body.fs-template-technology #main-content > section:not(:first-of-type) .shadow-card,
body[class*="fs-template-technology-"] > section:not(:first-of-type) .shadow-card {
  border: 1px solid var(--fs-inner-line);
  border-radius: var(--fs-radius-lg);
  box-shadow: var(--fs-shadow-sm);
}

body.fs-template-technology #main-content > section:not(:first-of-type) [class*="bg-gradient"],
body[class*="fs-template-technology-"] > section:not(:first-of-type) [class*="bg-gradient"] {
  background-image: none;
  background-color: #f4f4f5;
}

/* About: keep real warehouse imagery, remove decorative gradients. */
body.fs-template-about #main-content > section[class*="bg-gradient"] {
  background-image: none;
}

body.fs-template-about #main-content > section:nth-of-type(even):not(.bg-brand-red):not(.bg-brand-ink) {
  background: var(--fs-inner-muted);
}

body.fs-template-about #main-content > section:nth-of-type(odd):not(.hero-bg):not(.bg-brand-red):not(.bg-brand-ink) {
  background: #ffffff;
}

body.fs-template-about #main-content > section img {
  border-radius: var(--fs-radius-lg);
}

/* Contact */
body.fs-template-contact #main-content > section:nth-of-type(2) {
  background: var(--fs-inner-muted);
}

body.fs-template-contact #main-content > section:nth-of-type(2) .lg\:col-span-3 > .bg-white {
  border: 1px solid var(--fs-inner-line);
  border-radius: var(--fs-radius-lg);
  box-shadow: var(--fs-shadow-sm) !important;
}

body.fs-template-contact #main-content > section:nth-of-type(3) .border-2 {
  border-width: 1px;
  border-color: var(--fs-border-strong);
}

/* Blog, archives, and posts */
body.fs-template-blog #main-content > section:nth-of-type(2) article,
body.fs-inner-page.archive main article {
  border-color: var(--fs-inner-line);
  border-radius: var(--fs-radius-lg);
  box-shadow: var(--fs-shadow-xs);
}

body.fs-template-blog #main-content > section:nth-of-type(2) article:hover,
body.fs-inner-page.archive main article:hover {
  border-color: var(--fs-border-strong);
  box-shadow: var(--fs-shadow-md);
}

body.fs-template-blog #main-content > section:nth-of-type(2) [class*="bg-gradient"] {
  background-image: none;
  background-color: var(--fs-inner-muted);
}

body.fs-template-blog #main-content > section:nth-of-type(2) > div > .bg-brand-ink {
  border-radius: var(--fs-radius-lg);
  background: var(--fs-inner-dark);
  box-shadow: none;
}

body.fs-inner-page.single main > article {
  max-width: 48rem;
}

body.fs-inner-page.single main > aside {
  border-left: 1px solid var(--fs-inner-line);
  padding-left: clamp(1.5rem, 4vw, 3rem);
}

body.fs-inner-page.single main article img {
  border-radius: var(--fs-radius-lg);
}

/* Product detail */
body.fs-inner-page.single-fs_product {
  background: var(--fs-inner-muted);
}

body.fs-inner-page.single-fs_product > section {
  background: transparent;
}

body.fs-inner-page.single-fs_product > section .bg-white {
  border-color: var(--fs-inner-line);
}

body.fs-inner-page.single-fs_product > section [class*="bg-gradient"] {
  background-image: none;
  background-color: #f4f4f5;
}

/* Generic/default, 404, pricing redirect fallback, thank-you, and portal. */
body.fs-inner-page > main.min-h-\[60vh\],
body.fs-template-thank-you #main-content > section,
body.fs-template-pricing #main-content > section {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgb(214 0 1 / .05) 0%, transparent 70%),
    #ffffff;
}

body.fs-inner-page > main.min-h-\[60vh\]::before,
body.fs-template-thank-you #main-content > section::before,
body.fs-template-pricing #main-content > section::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("../Patterns/2.webp");
  background-position: center;
  background-repeat: repeat;
  background-size: 21rem;
  content: "";
  opacity: .03;
}

/* ============================================================
   Dashboard / app register
============================================================ */

body.fs-template-dashboard {
  background: #f7f7f8;
}

body.fs-template-dashboard #main-content > .flex.min-h-screen {
  background: #f7f7f8;
  color: var(--fs-inner-ink);
}

body.fs-template-dashboard #main-content > .flex.min-h-screen > aside {
  width: 15rem;
  background: #18181b;
}

body.fs-template-dashboard #main-content > .flex.min-h-screen > aside a {
  border-radius: var(--fs-radius-md);
}

body.fs-template-dashboard #main-content > .flex.min-h-screen > aside nav a:hover,
body.fs-template-dashboard #main-content > .flex.min-h-screen > aside nav a[class*="bg-white/10"] {
  background: rgb(255 255 255 / .09);
}

body.fs-template-dashboard #main-content > .flex.min-h-screen .sticky {
  border-color: #e4e4e7;
  background: rgb(255 255 255 / .96);
}

body.fs-template-dashboard #main-content > .flex.min-h-screen :is(.rounded-3xl, .rounded-2xl) {
  border-radius: var(--fs-radius-md);
}

body.fs-template-dashboard #main-content > .flex.min-h-screen section > div.bg-white,
body.fs-template-dashboard #main-content > .flex.min-h-screen section > a.bg-white {
  border-width: 1px;
  border-color: #e4e4e7;
  background: #ffffff;
  box-shadow: var(--fs-shadow-xs);
}

body.fs-template-dashboard #main-content > .flex.min-h-screen section > div.border-2 {
  border-width: 1px;
  border-color: rgb(214 0 1 / .28);
  background: #fffafa;
}

body.fs-template-dashboard #main-content > .flex.min-h-screen input {
  border-color: #d4d4d8;
  border-radius: var(--fs-radius-pill);
  background: #ffffff;
}

body.fs-template-dashboard #main-content > .flex.min-h-screen button {
  transition:
    color var(--fs-duration-fast) var(--fs-inner-ease),
    background-color var(--fs-duration-fast) var(--fs-inner-ease),
    border-color var(--fs-duration-fast) var(--fs-inner-ease),
    transform var(--fs-duration-fast) var(--fs-inner-ease);
}

body.fs-template-dashboard #main-content > .flex.min-h-screen button:hover {
  transform: translateY(-1px);
}

/* ============================================================
   Responsive and reduced motion
============================================================ */

@media (max-width: 1023px) {
  body.fs-inner-marketing #main-content > section.hero-bg:first-of-type > .relative.text-center {
    align-items: flex-start;
  }

  body.fs-inner-page.single main > aside {
    border-top: 1px solid var(--fs-inner-line);
    border-left: 0;
    padding-top: 2rem;
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  body.fs-inner-page {
    --fs-inner-section-y: 4rem;
    --fs-inner-hero-y: 4.75rem;
  }

  body.fs-inner-marketing #main-content > section:last-of-type:is(.bg-brand-ink, .bg-brand-red, .bg-blue-600)::before {
    background-size: 14.375rem;
    opacity: .32;
    -webkit-mask-image: radial-gradient(
      ellipse 78% 62% at center,
      transparent 0%,
      transparent 40%,
      rgb(0 0 0 / .2) 57%,
      rgb(0 0 0 / .72) 82%,
      #000 100%
    );
    mask-image: radial-gradient(
      ellipse 78% 62% at center,
      transparent 0%,
      transparent 40%,
      rgb(0 0 0 / .2) 57%,
      rgb(0 0 0 / .72) 82%,
      #000 100%
    );
  }

  body.fs-inner-page > :is(main, section) h1.heading-brand {
    font-size: clamp(2.4rem, 12vw, 3.5rem) !important;
  }

  body.fs-inner-page > :is(main, section) h2.heading-brand {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  body.fs-inner-marketing #main-content > section.hero-bg:first-of-type::before {
    background-size: 24rem;
    opacity: .18;
  }

  body.fs-inner-marketing #main-content > section.hero-bg:first-of-type > .relative.text-center > h1 {
    max-width: 11ch;
  }

  body.fs-inner-marketing #main-content > section:not(:first-of-type) > div > .text-center.max-w-2xl {
    max-width: 100%;
  }

  body.fs-template-contact #main-content > section:first-of-type,
  body.fs-template-blog #main-content > section:first-of-type,
  body.fs-template-case-studies #main-content > section:first-of-type {
    min-height: 27rem;
  }

  body.fs-template-contact #main-content > section:first-of-type > .relative,
  body.fs-template-blog #main-content > section:first-of-type > .relative,
  body.fs-template-case-studies #main-content > section:first-of-type > .relative {
    min-height: 27rem;
  }
}

/* ============================================================
   Impeccable final layout contract, all inner templates
   Homepage and Portal Reseller intentionally stay untouched.
============================================================ */

/* Every section introduction reads as one centered unit. */
body.fs-inner-marketing:not(.fs-template-solutions-reseller)
  > section:not(:first-of-type)
  :is(.text-center.max-w-2xl, .text-center.max-w-xl, .text-center.max-w-lg),
body.fs-inner-marketing:not(.fs-template-solutions-reseller)
  > section:not(:first-of-type)
  .text-center:has(> .eyebrow) {
  display: flex !important;
  width: 100%;
  max-width: 48rem !important;
  flex-direction: column;
  align-items: center !important;
  margin-inline: auto !important;
  text-align: center !important;
}

body.fs-inner-marketing:not(.fs-template-solutions-reseller)
  > section:not(:first-of-type)
  :is(.text-center.max-w-2xl, .text-center.max-w-xl, .text-center.max-w-lg, .text-center:has(> .eyebrow))
  > :is(.eyebrow, .fs-section-label, h1, h2, p) {
  align-self: center;
  margin-inline: auto !important;
  text-align: center !important;
}

body.fs-inner-marketing:not(.fs-template-solutions-reseller)
  > section:not(:first-of-type)
  .text-center:has(> .eyebrow)
  > :is(h1, h2) {
  max-width: 20ch;
}

/* Marketing cards use quiet borders and content-led hierarchy. */
body.fs-inner-marketing:not(.fs-template-solutions-reseller)
  > section:not(:first-of-type):not(:last-of-type)
  :is(article, div, a)[class*="bg-white"][class*="rounded-"] {
  border-color: var(--fs-inner-line);
  box-shadow: none;
}

body.fs-inner-marketing:not(.fs-template-solutions-reseller)
  > section:not(:first-of-type):not(:last-of-type)
  :is(article, div, a)[class*="bg-white"][class*="rounded-"]:hover {
  border-color: rgb(214 0 1 / .24);
  box-shadow: 0 14px 34px -26px rgb(15 23 42 / .34);
}

/* Solutions overview: service index plus editorial proof, not a card wall. */
body.fs-template-solutions #main-content > section:nth-of-type(3) .grid.md\:grid-cols-3 {
  gap: 0;
  border-block: 1px solid var(--fs-inner-line);
}

body.fs-template-solutions #main-content > section:nth-of-type(3) .grid.md\:grid-cols-3 > div {
  padding: 2rem;
  border: 0;
  border-left: 1px solid var(--fs-inner-line);
  border-radius: 0;
  background: transparent;
}

body.fs-template-solutions #main-content > section:nth-of-type(3) .grid.md\:grid-cols-3 > div:first-child {
  border-left: 0;
}

/* Wholesale: a firm comparison ledger. */
body.fs-template-solutions-wholesale #main-content > section:nth-of-type(2) .grid.md\:grid-cols-3 {
  gap: 0;
  border-block: 1px solid var(--fs-inner-line);
}

body.fs-template-solutions-wholesale #main-content > section:nth-of-type(2) .grid.md\:grid-cols-3 > div {
  min-height: 13rem;
  padding: 2rem;
  border: 0;
  border-left: 1px solid var(--fs-inner-line);
  border-radius: 0;
  background: transparent;
}

body.fs-template-solutions-wholesale #main-content > section:nth-of-type(2) .grid.md\:grid-cols-3 > div:first-child {
  border-left: 0;
}

/* Consignment: the first risk statement leads, the others support it. */
@media (min-width: 768px) {
  body.fs-template-solutions-consignment #main-content > section:nth-of-type(2) .grid.md\:grid-cols-3 {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr);
    gap: 1rem;
  }

  body.fs-template-solutions-consignment #main-content > section:nth-of-type(2) .grid.md\:grid-cols-3 > div:first-child {
    grid-row: span 2;
    display: flex;
    min-height: 23rem;
    flex-direction: column;
    justify-content: flex-end;
    background: #fff7f7;
  }

  body.fs-template-solutions-consignment #main-content > section:nth-of-type(4) .grid.md\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-block: 1px solid var(--fs-inner-line);
  }

  body.fs-template-solutions-consignment #main-content > section:nth-of-type(4) .grid.md\:grid-cols-2.lg\:grid-cols-3 > div {
    padding: 1.75rem;
    border: 0;
    border-bottom: 1px solid var(--fs-inner-line);
    border-radius: 0;
    background: transparent;
  }

  body.fs-template-solutions-consignment #main-content > section:nth-of-type(4) .grid.md\:grid-cols-2.lg\:grid-cols-3 > div:nth-child(even) {
    border-left: 1px solid var(--fs-inner-line);
  }
}

/* Dropship: compact fulfillment requirements followed by a wide feature ledger. */
body.fs-template-solutions-dropship #main-content > section:nth-of-type(2) .grid.md\:grid-cols-3 {
  gap: 0;
  border-block: 1px solid var(--fs-inner-line);
}

body.fs-template-solutions-dropship #main-content > section:nth-of-type(2) .grid.md\:grid-cols-3 > div {
  padding: 2rem;
  border: 0;
  border-left: 1px solid var(--fs-inner-line);
  border-radius: 0;
  background: transparent;
}

body.fs-template-solutions-dropship #main-content > section:nth-of-type(2) .grid.md\:grid-cols-3 > div:first-child {
  border-left: 0;
}

@media (min-width: 768px) {
  body.fs-template-solutions-dropship #main-content > section:nth-of-type(4) .grid.md\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  body.fs-template-solutions-dropship #main-content > section:nth-of-type(4) .grid.md\:grid-cols-2.lg\:grid-cols-3 > div:nth-child(3n) {
    grid-column: span 2;
  }
}

/* Distribution Network: center the context, keep map and regions as the visual lead. */
body.fs-template-solutions-distribution-network #main-content > section:nth-of-type(2) .grid.md\:grid-cols-3,
body.fs-template-solutions-distribution-network #main-content > section:nth-of-type(4) .grid.md\:grid-cols-3 {
  gap: 0;
  border-block: 1px solid var(--fs-inner-line);
}

body.fs-template-solutions-distribution-network #main-content > section:nth-of-type(2) .grid.md\:grid-cols-3 > div,
body.fs-template-solutions-distribution-network #main-content > section:nth-of-type(4) .grid.md\:grid-cols-3 > div {
  padding: 2rem;
  border: 0;
  border-left: 1px solid var(--fs-inner-line);
  border-radius: 0;
  background: transparent;
}

body.fs-template-solutions-distribution-network #main-content > section:nth-of-type(2) .grid.md\:grid-cols-3 > div:first-child,
body.fs-template-solutions-distribution-network #main-content > section:nth-of-type(4) .grid.md\:grid-cols-3 > div:first-child {
  border-left: 0;
}

/* KOL: benefits become a two-column commission brief. */
@media (min-width: 768px) {
  body.fs-template-solutions-kol #main-content > section:nth-of-type(2) .grid.md\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-block: 1px solid var(--fs-inner-line);
  }

  body.fs-template-solutions-kol #main-content > section:nth-of-type(2) .grid.md\:grid-cols-2.lg\:grid-cols-3 > div {
    padding: 1.75rem;
    border: 0;
    border-bottom: 1px solid var(--fs-inner-line);
    border-radius: 0;
    background: transparent;
  }

  body.fs-template-solutions-kol #main-content > section:nth-of-type(2) .grid.md\:grid-cols-2.lg\:grid-cols-3 > div:nth-child(even) {
    border-left: 1px solid var(--fs-inner-line);
  }
}

/* Warehousing: specifications read like an operational board. */
@media (min-width: 768px) {
  body.fs-template-solutions-quality-warehousing #main-content > section:nth-of-type(3) .grid.md\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  body.fs-template-solutions-quality-warehousing #main-content > section:nth-of-type(3) .grid.md\:grid-cols-2.lg\:grid-cols-3 > div:first-child {
    grid-row: span 2;
    min-height: 20rem;
  }
}

/* Supplier Portal: capabilities form an open operating ledger. */
@media (min-width: 768px) {
  body.fs-template-solutions-supplier-portal #main-content > section:nth-of-type(2) .grid.md\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-block: 1px solid var(--fs-inner-line);
  }

  body.fs-template-solutions-supplier-portal #main-content > section:nth-of-type(2) .grid.md\:grid-cols-2.lg\:grid-cols-3 > div {
    padding: 2rem;
    border: 0;
    border-bottom: 1px solid var(--fs-inner-line);
    border-radius: 0;
    background: transparent;
  }

  body.fs-template-solutions-supplier-portal #main-content > section:nth-of-type(2) .grid.md\:grid-cols-2.lg\:grid-cols-3 > div:nth-child(even) {
    border-left: 1px solid var(--fs-inner-line);
  }
}

/* AR features become a calmer two-column feature register. */
@media (min-width: 768px) {
  body.fs-template-technology-ar #main-content > section:nth-of-type(2) .grid.md\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-block: 1px solid var(--fs-inner-line);
  }

  body.fs-template-technology-ar #main-content > section:nth-of-type(2) .grid.md\:grid-cols-2.lg\:grid-cols-3 > div {
    padding: 2rem;
    border: 0;
    border-bottom: 1px solid var(--fs-inner-line);
    border-radius: 0;
    background: transparent;
  }

  body.fs-template-technology-ar #main-content > section:nth-of-type(2) .grid.md\:grid-cols-2.lg\:grid-cols-3 > div:nth-child(even) {
    border-left: 1px solid var(--fs-inner-line);
  }
}

/* Technology hub keeps alternating artifacts, while the intro remains centered. */
body.fs-template-technology #main-content > section:not(:first-of-type):not(:last-of-type)
  .grid.lg\:grid-cols-2 {
  column-gap: clamp(3rem, 7vw, 7rem);
}

body.fs-template-technology #main-content > section:nth-of-type(even):not(:last-of-type) {
  background: var(--fs-inner-quiet);
}

/* Blog and archives gain a real featured rhythm. */
@media (min-width: 768px) {
  body.fs-template-blog #main-content > section:nth-of-type(2) .grid.md\:grid-cols-3 > article:first-child,
  body.fs-template-archive main .grid.md\:grid-cols-2.lg\:grid-cols-3 > article:first-child {
    grid-column: span 2;
  }

  body.fs-template-blog #main-content > section:nth-of-type(2) .grid.md\:grid-cols-3 > article:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr);
  }

  body.fs-template-blog #main-content > section:nth-of-type(2) .grid.md\:grid-cols-3 > article:first-child > a {
    min-height: 100%;
  }
}

/* Case studies: lead case receives the visual emphasis. */
@media (min-width: 1024px) {
  body.fs-template-case-studies #main-content > section:nth-of-type(4) .grid.lg\:grid-cols-3 > article:first-child {
    grid-column: span 2;
  }
}

/* Contact form is the action; contact channels stay compact and visible. */
@media (min-width: 1024px) {
  body.fs-template-contact #main-content > section:nth-of-type(2) .grid.lg\:grid-cols-5 {
    grid-template-columns: minmax(16rem, .72fr) minmax(0, 1.28fr);
    gap: clamp(3rem, 7vw, 6rem);
  }
}

/* Utility and editorial templates. */
body.fs-template-404 main {
  min-height: 70vh;
  background:
    radial-gradient(circle at 50% 35%, rgb(214 0 1 / .08), transparent 30rem),
    var(--fs-inner-canvas);
}

body.fs-template-404 main > div {
  padding: clamp(2rem, 5vw, 4rem);
  border-block: 1px solid var(--fs-inner-line);
}

body.fs-template-page main article,
body.fs-template-single main .lg\:col-span-2 {
  max-width: 48rem;
}

body.fs-template-single main .grid.lg\:grid-cols-3 {
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: clamp(3rem, 7vw, 6rem);
}

body.fs-template-index main > article {
  max-width: 58rem;
  margin-inline: auto;
  padding-block: 2rem;
  border-bottom: 1px solid var(--fs-inner-line);
}

body.fs-template-thank-you #main-content > section:first-of-type {
  background:
    radial-gradient(circle at 50% 20%, rgb(214 0 1 / .07), transparent 24rem),
    var(--fs-inner-canvas);
}

body.fs-template-thank-you #main-content > section:first-of-type .grid.grid-cols-3 {
  gap: 0;
  border-block: 1px solid var(--fs-inner-line);
}

body.fs-template-thank-you #main-content > section:first-of-type .grid.grid-cols-3 > div {
  border: 0;
  border-left: 1px solid var(--fs-inner-line);
  border-radius: 0;
  background: transparent;
}

body.fs-template-thank-you #main-content > section:first-of-type .grid.grid-cols-3 > div:first-child {
  border-left: 0;
}

/* Product detail: clear commerce hierarchy and accessible control sizes. */
body.fs-template-product #main-content > section:first-of-type {
  align-items: start;
  padding-block: clamp(2.5rem, 5vw, 5rem);
}

body.fs-template-product #main-content > section:first-of-type > .lg\:col-span-5 {
  position: sticky;
  top: 7rem;
}

body.fs-template-product button {
  min-height: 2.75rem;
}

/* Dashboard keeps product density and gains usable mobile navigation. */
body.fs-template-dashboard {
  background: #f7f7f8;
}

body.fs-template-dashboard #main-content > .flex.min-h-screen {
  background: #f7f7f8;
}

@media (max-width: 1023px) {
  body.fs-template-dashboard #main-content > .flex.min-h-screen {
    flex-direction: column;
  }

  body.fs-template-dashboard aside.hidden.lg\:flex {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex !important;
    width: 100%;
    max-width: 100vw;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  body.fs-template-dashboard aside.hidden.lg\:flex > div:first-child,
  body.fs-template-dashboard aside.hidden.lg\:flex > div:last-child {
    display: none;
  }

  body.fs-template-dashboard aside.hidden.lg\:flex nav {
    display: flex;
    flex: none;
    gap: .25rem;
    padding: .75rem 1rem;
  }

  body.fs-template-dashboard aside.hidden.lg\:flex nav > a {
    min-height: 2.75rem;
    flex: none;
  }

  body.fs-template-product #main-content > section:first-of-type > .lg\:col-span-5 {
    position: static;
  }

  body.fs-template-thank-you #main-content > section:first-of-type .grid.grid-cols-3 {
    grid-template-columns: 1fr;
  }

  body.fs-template-thank-you #main-content > section:first-of-type .grid.grid-cols-3 > div {
    border-left: 0;
    border-top: 1px solid var(--fs-inner-line);
  }

  body.fs-template-thank-you #main-content > section:first-of-type .grid.grid-cols-3 > div:first-child {
    border-top: 0;
  }
}

@media (max-width: 767px) {
  body.fs-template-product #main-content > section:first-of-type .grid.grid-cols-3 {
    grid-template-columns: 1fr;
  }

  body.fs-template-solutions-mdp #main-content > section:nth-of-type(3) .grid.md\:grid-cols-3 > div + div,
  body.fs-template-solutions-wholesale #main-content > section:nth-of-type(2) .grid.md\:grid-cols-3 > div,
  body.fs-template-solutions-dropship #main-content > section:nth-of-type(2) .grid.md\:grid-cols-3 > div,
  body.fs-template-solutions-distribution-network #main-content > section:nth-of-type(2) .grid.md\:grid-cols-3 > div,
  body.fs-template-solutions-distribution-network #main-content > section:nth-of-type(4) .grid.md\:grid-cols-3 > div,
  body.fs-template-solutions #main-content > section:nth-of-type(3) .grid.md\:grid-cols-3 > div {
    border-left: 0;
    border-top: 1px solid var(--fs-inner-line);
  }
}

/*
 * Blog posts without a featured image use the Foodstocks visual language
 * instead of a blank placeholder. No editorial copy is introduced.
 */
body.fs-template-blog article > a.aspect-\[16\/10\].bg-gray-100 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #fff8f8 0%, #fff 46%, #f6eeee 100%);
}

body.fs-template-blog article > a.aspect-\[16\/10\].bg-gray-100::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("../Patterns/2.webp");
  background-position: center;
  background-repeat: repeat;
  background-size: 17rem;
  content: "";
  opacity: .1;
}

body.fs-template-blog article > a.aspect-\[16\/10\].bg-gray-100::after {
  position: absolute;
  z-index: 1;
  right: clamp(1.25rem, 4vw, 2.5rem);
  bottom: clamp(1.25rem, 4vw, 2.5rem);
  width: clamp(3.5rem, 7vw, 5.5rem);
  aspect-ratio: 1;
  border: 1px solid rgb(214 0 1 / .18);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #d60001 0 18%, transparent 19%),
    #ffffff;
  box-shadow: var(--fs-shadow-xs);
  content: "";
}


@media (prefers-reduced-motion: reduce) {
  body.fs-inner-page *,
  body.fs-inner-page *::before,
  body.fs-inner-page *::after {
    scroll-behavior: auto !important;
  }

  body.fs-inner-page > :is(main, section) :is(.card-hover, .btn-primary, .btn-secondary),
  body.fs-template-dashboard #main-content > .flex.min-h-screen button {
    transition: none !important;
  }

  body.fs-inner-page > :is(main, section) :is(.card-hover, .btn-primary, .btn-secondary):hover,
  body.fs-template-dashboard #main-content > .flex.min-h-screen button:hover {
    transform: none !important;
  }
}

/* ============================================================
   Portal Reseller
   An order-desk composition: open ledgers, shared comparison
   surfaces, and real product imagery instead of repeated cards.
============================================================ */

body.fs-template-solutions-reseller {
  --reseller-section-y: clamp(4rem, 7vw, 6rem);
  --reseller-section-y-tight: clamp(4rem, 6vw, 5rem);
  --reseller-section-y-roomy: clamp(5rem, 8vw, 7rem);
  --reseller-major-gap: clamp(3rem, 5vw, 4rem);
  --reseller-copy-gap: 1.25rem;
  --reseller-label-gap: .75rem;
  --reseller-space-2: .5rem;
  --reseller-space-3: .75rem;
  --reseller-space-4: 1rem;
  --reseller-space-6: 1.5rem;
  --reseller-space-8: 2rem;
  --reseller-space-12: 3rem;
  --reseller-space-16: 4rem;
  --reseller-rule: #eadede;
  --reseller-quiet: #faf7f7;
  --reseller-dark: #111114;
  --reseller-red-deep: #790001;
  --reseller-label-on-light: #c80001;
  --reseller-label-on-light: oklch(47% .24 29);
  --reseller-label-on-dark: #ffd84d;
  --reseller-label-on-hero: #fff0a8;
  --reseller-label-hero-bg: #620000;
  --reseller-label-hero-bg: oklch(30% .14 29);
}

body.fs-template-solutions-reseller .fs-reseller-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, var(--fs-inner-content));
  margin-inline: auto;
}

body.fs-template-solutions-reseller .fs-reseller-badge {
  padding: .5rem .75rem;
  border-color: rgb(214 0 1 / .16);
  background: #fff3f3;
  color: var(--fs-inner-red-dark);
  font-size: .6875rem;
  letter-spacing: .02em;
  text-transform: none;
}

body.fs-template-solutions-reseller .fs-reseller-badge--dark {
  border-color: rgb(255 255 255 / .24);
  background: rgb(255 255 255 / .1);
  color: #ffffff;
}

body.fs-template-solutions-reseller .fs-reseller-badge--hero {
  border-color: #dd3333;
  border-color: oklch(61% .2 29);
  background: var(--reseller-label-hero-bg);
  color: var(--reseller-label-on-hero);
}

body.fs-inner-page.fs-template-solutions-reseller > section .fs-reseller-kicker {
  width: fit-content;
  margin: 0 0 var(--reseller-label-gap);
  color: var(--reseller-label-on-light);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.25;
}

body.fs-inner-page.fs-template-solutions-reseller > .fs-reseller-models .fs-reseller-kicker--dark {
  color: var(--reseller-label-on-dark);
}

body.fs-template-solutions-reseller .fs-reseller-button {
  min-height: 3.25rem;
  padding: 1rem 1.5rem;
}

/* Hero */
body.fs-template-solutions-reseller #main-content > .fs-reseller-hero {
  padding-block: clamp(5rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem);
}

body.fs-template-solutions-reseller .fs-reseller-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(20rem, 5fr);
  grid-template-areas:
    "copy ledger"
    "proof ledger";
  column-gap: var(--reseller-major-gap);
  row-gap: var(--reseller-space-8);
  align-items: start;
}

body.fs-template-solutions-reseller .fs-reseller-hero__copy {
  grid-area: copy;
  max-width: 46rem;
}

body.fs-template-solutions-reseller .fs-reseller-hero__copy > nav[aria-label="breadcrumb"] {
  margin-bottom: var(--reseller-space-6);
  color: var(--reseller-label-on-hero);
}

body.fs-template-solutions-reseller .fs-reseller-hero__copy > nav[aria-label="breadcrumb"] :where(a, span) {
  color: inherit;
}

body.fs-template-solutions-reseller .fs-reseller-hero__copy > nav[aria-label="breadcrumb"] [aria-current="page"] {
  color: #ffffff;
}

body.fs-template-solutions-reseller .fs-reseller-hero__copy > .fs-reseller-badge {
  margin-bottom: var(--reseller-space-4);
}

body.fs-template-solutions-reseller .fs-reseller-hero__copy h1 {
  max-width: 13ch;
  color: #ffffff;
}

body.fs-template-solutions-reseller .fs-reseller-hero__lead {
  max-width: 40rem;
  margin-top: var(--reseller-copy-gap);
  color: rgb(255 255 255 / .86);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
}

body.fs-template-solutions-reseller .fs-reseller-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: var(--reseller-space-8);
}

body.fs-template-solutions-reseller .fs-reseller-button--hero-primary {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--fs-inner-red);
  box-shadow: var(--fs-shadow-sm);
}

body.fs-template-solutions-reseller .fs-reseller-button--hero-primary:hover {
  border-color: #ffffff;
  background: #fff7f7;
  color: var(--fs-inner-red-dark);
  box-shadow: var(--fs-shadow-md);
}

body.fs-template-solutions-reseller .fs-reseller-button--hero-secondary {
  border-color: rgb(255 255 255 / .42);
  background: transparent;
  color: #ffffff;
  box-shadow: none;
}

body.fs-template-solutions-reseller .fs-reseller-button--hero-secondary:hover {
  border-color: #ffffff;
  background: rgb(255 255 255 / .1);
  color: #ffffff;
  box-shadow: none;
}

body.fs-template-solutions-reseller .fs-reseller-ledger {
  grid-area: ledger;
  align-self: center;
  padding-inline: var(--reseller-space-6);
  border: 1px solid rgb(255 255 255 / .28);
  border-radius: var(--fs-radius-lg);
  background: var(--reseller-red-deep);
  color: #ffffff;
}

body.fs-template-solutions-reseller .fs-reseller-ledger__header,
body.fs-template-solutions-reseller .fs-reseller-ledger__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

body.fs-template-solutions-reseller .fs-reseller-ledger__header p {
  color: #ffffff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.fs-template-solutions-reseller .fs-reseller-ledger__header span {
  color: #baf7c7;
  font-size: .75rem;
  font-weight: 700;
}

body.fs-template-solutions-reseller .fs-reseller-ledger__products {
  border-top: 1px solid rgb(255 255 255 / .2);
}

body.fs-template-solutions-reseller .fs-reseller-ledger__row {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding-block: 1rem;
  border-bottom: 1px solid rgb(255 255 255 / .2);
  transition: background-color var(--fs-duration-base) var(--fs-inner-ease);
}

body.fs-template-solutions-reseller .fs-reseller-ledger__icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / .24);
  border-radius: var(--fs-radius-md);
  background: rgb(255 255 255 / .08);
}

body.fs-template-solutions-reseller .fs-reseller-ledger__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

body.fs-template-solutions-reseller .fs-reseller-ledger__name {
  overflow: hidden;
  color: #ffffff;
  font-size: .9375rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.fs-template-solutions-reseller .fs-reseller-ledger__meta,
body.fs-template-solutions-reseller .fs-reseller-ledger__footer {
  color: rgb(255 255 255 / .78);
  font-size: .75rem;
}

body.fs-template-solutions-reseller .fs-reseller-ledger__check {
  color: #baf7c7;
  font-weight: 800;
}

body.fs-template-solutions-reseller .fs-reseller-proof {
  display: grid;
  grid-area: proof;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgb(255 255 255 / .25);
}

body.fs-template-solutions-reseller .fs-reseller-proof > div {
  padding-block: 2rem;
}

body.fs-template-solutions-reseller .fs-reseller-proof > div + div {
  padding-left: 2rem;
  border-left: 1px solid rgb(255 255 255 / .2);
}

body.fs-template-solutions-reseller .fs-reseller-proof dd {
  max-width: none;
  margin-top: .5rem;
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

body.fs-template-solutions-reseller .fs-reseller-proof dt {
  color: rgb(255 255 255 / .76);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Challenge: open list and sticky narrative. */
body.fs-template-solutions-reseller #main-content > .fs-reseller-challenges {
  position: relative;
  isolation: isolate;
  padding-block: var(--reseller-section-y);
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgb(214 0 1 / .05) 0%, transparent 70%),
    #ffffff;
  overflow: hidden;
}

body.fs-template-solutions-reseller #main-content > .fs-reseller-challenges::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("../Patterns/2.webp");
  background-position: right center;
  background-repeat: repeat;
  background-size: 21rem;
  content: "";
  opacity: .035;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 72%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 72%);
  pointer-events: none;
}

body.fs-template-solutions-reseller .fs-reseller-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--reseller-major-gap);
  align-items: start;
}

body.fs-template-solutions-reseller .fs-reseller-section-heading {
  max-width: 34rem;
}

body.fs-template-solutions-reseller .fs-reseller-section-heading h2 {
  margin: 0;
}

body.fs-template-solutions-reseller .fs-reseller-section-heading > p {
  max-width: 39rem;
  margin-top: var(--reseller-copy-gap);
  color: var(--fs-inner-copy);
  line-height: 1.7;
}

body.fs-template-solutions-reseller .fs-reseller-challenges .fs-reseller-section-heading {
  position: sticky;
  top: 7rem;
}

body.fs-template-solutions-reseller .fs-reseller-obstacles {
  border-top: 1px solid var(--reseller-rule);
}

body.fs-template-solutions-reseller .fs-reseller-obstacle {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--reseller-rule);
  transition: background-color var(--fs-duration-base) var(--fs-inner-ease);
}

body.fs-template-solutions-reseller .fs-reseller-obstacle__icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: var(--fs-radius-md);
  background: #fff0f0;
  color: var(--fs-inner-red);
}

body.fs-template-solutions-reseller .fs-reseller-obstacle__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

body.fs-template-solutions-reseller .fs-reseller-obstacle h3 {
  color: var(--fs-inner-ink);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
}

body.fs-template-solutions-reseller .fs-reseller-obstacle p {
  max-width: 50rem;
  margin-top: .5rem;
  color: var(--fs-inner-copy);
  font-size: .9375rem;
  line-height: 1.7;
}

/* Models: one comparison board, three real alternatives. */
body.fs-template-solutions-reseller #main-content > .fs-reseller-models {
  position: relative;
  isolation: isolate;
  padding-block: var(--reseller-section-y-roomy);
  background:
    radial-gradient(ellipse 72% 82% at 58% 42%, rgb(214 0 1 / .16) 0%, transparent 68%),
    linear-gradient(135deg, #101116 0%, #171116 58%, #290b0f 100%);
  overflow: hidden;
}

body.fs-template-solutions-reseller #main-content > .fs-reseller-models::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("../Patterns/1.webp");
  background-position: center;
  background-repeat: repeat;
  background-size: 22rem;
  content: "";
  opacity: .05;
  filter: brightness(.58) saturate(.9);
  -webkit-mask-image: radial-gradient(ellipse 78% 84% at center, rgb(0 0 0 / .25) 0%, #000 100%);
  mask-image: radial-gradient(ellipse 78% 84% at center, rgb(0 0 0 / .25) 0%, #000 100%);
  pointer-events: none;
}

body.fs-template-solutions-reseller .fs-reseller-models__heading {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(18rem, 5fr);
  gap: var(--reseller-major-gap);
  align-items: end;
  margin-bottom: 4rem;
}

body.fs-template-solutions-reseller .fs-reseller-models__heading h2 {
  max-width: 16ch;
  color: #ffffff;
}

body.fs-template-solutions-reseller .fs-reseller-models__heading > p {
  max-width: 30rem;
  color: rgb(255 255 255 / .68);
  line-height: 1.7;
}

body.fs-template-solutions-reseller .fs-reseller-comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: var(--fs-radius-lg);
  background: #ffffff;
  box-shadow: var(--fs-shadow-sm);
  overflow: hidden;
}

body.fs-template-solutions-reseller .fs-reseller-model {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 2rem;
  color: var(--fs-inner-ink);
  background: #ffffff;
}

body.fs-template-solutions-reseller .fs-reseller-model + .fs-reseller-model {
  border-left: 1px solid var(--reseller-rule);
}

body.fs-template-solutions-reseller .fs-reseller-model.is-featured {
  background: #fff5f5;
}

body.fs-template-solutions-reseller .fs-reseller-model.is-featured::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: .25rem;
  background: var(--fs-inner-red);
  content: "";
}

body.fs-template-solutions-reseller .fs-reseller-model__topline {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

body.fs-template-solutions-reseller .fs-reseller-model__icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: var(--fs-radius-md);
  background: #fff0f0;
  color: var(--fs-inner-red);
}

body.fs-template-solutions-reseller .fs-reseller-model__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

body.fs-template-solutions-reseller .fs-reseller-badge--popular {
  border-color: var(--fs-inner-red);
  background: var(--fs-inner-red);
  color: #ffffff;
  letter-spacing: .02em;
}

body.fs-template-solutions-reseller .fs-reseller-model h3 {
  max-width: none;
  color: var(--fs-inner-ink);
  font-size: 1.5rem;
}

body.fs-template-solutions-reseller .fs-reseller-model__description {
  min-height: 3rem;
  margin-top: .5rem;
  color: var(--fs-inner-copy);
  font-size: .875rem;
  line-height: 1.6;
}

body.fs-template-solutions-reseller .fs-reseller-model dl {
  margin-top: 1.5rem;
  border-top: 1px solid var(--reseller-rule);
}

body.fs-template-solutions-reseller .fs-reseller-model dl > div {
  display: grid;
  grid-template-columns: minmax(5.5rem, .8fr) minmax(0, 1.2fr);
  gap: .75rem;
  padding-block: .75rem;
  border-bottom: 1px solid var(--reseller-rule);
  font-size: .8125rem;
}

body.fs-template-solutions-reseller .fs-reseller-model dt {
  color: var(--fs-inner-subtle);
}

body.fs-template-solutions-reseller .fs-reseller-model dd {
  color: var(--fs-inner-ink);
  font-weight: 700;
  text-align: right;
}

body.fs-template-solutions-reseller .fs-reseller-model__button {
  width: 100%;
  margin-top: 2rem;
}

body.fs-template-solutions-reseller .fs-reseller-model .fs-ui-button--outline {
  border-color: var(--fs-inner-red);
  color: var(--fs-inner-red);
}

body.fs-template-solutions-reseller .fs-reseller-model .fs-ui-button--outline:hover {
  background: #fff0f0;
}

/* Platform: a real portal artifact with a ruled feature index. */
body.fs-template-solutions-reseller #main-content > .fs-reseller-platform {
  padding-block: var(--reseller-section-y-tight);
  background: #ffffff;
}

body.fs-template-solutions-reseller .fs-reseller-platform__intro {
  display: grid;
  grid-template-columns: minmax(17rem, 4fr) minmax(0, 8fr);
  gap: var(--reseller-major-gap);
  align-items: center;
}

body.fs-template-solutions-reseller .fs-reseller-platform__visual {
  aspect-ratio: 8 / 5;
  border: 1px solid var(--reseller-rule);
  border-radius: var(--fs-radius-lg);
  background: #ffffff;
  overflow: hidden;
}

body.fs-template-solutions-reseller .fs-reseller-platform__visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

body.fs-template-solutions-reseller .fs-reseller-platform__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 600ms var(--fs-inner-ease);
}

body.fs-template-solutions-reseller .fs-reseller-feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 4rem;
  border-block: 1px solid var(--reseller-rule);
}

body.fs-template-solutions-reseller .fs-reseller-feature {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 2rem 1.5rem;
  transition: background-color var(--fs-duration-base) var(--fs-inner-ease);
}

body.fs-template-solutions-reseller .fs-reseller-feature:hover {
  background: #fff7f7;
}

body.fs-template-solutions-reseller .fs-reseller-feature + .fs-reseller-feature {
  border-left: 1px solid var(--reseller-rule);
}

body.fs-template-solutions-reseller .fs-reseller-feature:nth-child(n + 5) {
  grid-column: span 2;
  border-top: 1px solid var(--reseller-rule);
}

body.fs-template-solutions-reseller .fs-reseller-feature:nth-child(5) {
  border-left: 0;
}

body.fs-template-solutions-reseller .fs-reseller-feature__icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: var(--fs-radius-sm);
  background: #fff0f0;
  color: var(--fs-inner-red);
}

body.fs-template-solutions-reseller .fs-reseller-feature__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

body.fs-template-solutions-reseller .fs-reseller-feature h3 {
  color: var(--fs-inner-ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

body.fs-template-solutions-reseller .fs-reseller-feature p {
  margin-top: .5rem;
  color: var(--fs-inner-copy);
  font-size: .875rem;
  line-height: 1.65;
}

/* Rewards: account statement, not a dashboard made of mini cards. */
body.fs-template-solutions-reseller #main-content > .fs-reseller-rewards {
  position: relative;
  isolation: isolate;
  padding-block: var(--reseller-section-y);
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgb(214 0 1 / .05) 0%, transparent 70%),
    var(--reseller-quiet);
  overflow: hidden;
}

body.fs-template-solutions-reseller #main-content > .fs-reseller-rewards::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("../Patterns/2.webp");
  background-position: left center;
  background-repeat: repeat;
  background-size: 21rem;
  content: "";
  opacity: .03;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgb(0 0 0 / .55) 38%, transparent 70%);
  mask-image: linear-gradient(90deg, #000 0%, rgb(0 0 0 / .55) 38%, transparent 70%);
  pointer-events: none;
}

body.fs-template-solutions-reseller .fs-reseller-rewards__layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(22rem, 6fr);
  gap: var(--reseller-major-gap);
  align-items: start;
}

body.fs-template-solutions-reseller .fs-reseller-rewards__copy > h2 {
  max-width: 15ch;
}

body.fs-template-solutions-reseller .fs-reseller-rewards__copy > p {
  max-width: 40rem;
  margin-top: var(--reseller-copy-gap);
  color: var(--fs-inner-copy);
  line-height: 1.7;
}

body.fs-template-solutions-reseller .fs-reseller-rewards__copy ul {
  margin-top: 2rem;
  border-top: 1px solid var(--reseller-rule);
}

body.fs-template-solutions-reseller .fs-reseller-rewards__copy li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: .75rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--reseller-rule);
  color: var(--fs-inner-copy);
  font-size: .875rem;
  line-height: 1.6;
}

body.fs-template-solutions-reseller .fs-reseller-rewards__copy li > span {
  color: var(--fs-inner-red);
  font-weight: 800;
}

body.fs-template-solutions-reseller .fs-reseller-reward-statement {
  margin-top: 2rem;
  padding: 2rem;
  border-color: var(--reseller-rule);
  box-shadow: var(--fs-shadow-sm);
}

body.fs-template-solutions-reseller .fs-reseller-reward-statement__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

body.fs-template-solutions-reseller .fs-reseller-reward-statement__header > div > p:first-child {
  color: var(--fs-inner-subtle);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.fs-template-solutions-reseller .fs-reseller-reward-statement__header .heading-brand {
  max-width: none;
  margin-top: .5rem;
  color: var(--fs-inner-ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
}

body.fs-template-solutions-reseller .fs-reseller-reward-statement__header .heading-brand span {
  color: var(--fs-inner-subtle);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
}

body.fs-template-solutions-reseller .fs-reseller-reward-statement__header > span {
  padding: .5rem .75rem;
  border-radius: var(--fs-radius-pill);
  background: #f3c623;
  color: #5e4700;
  font-size: .6875rem;
  font-weight: 800;
}

body.fs-template-solutions-reseller .fs-reseller-reward-statement__progress {
  margin-top: 2rem;
  padding-block: 1.5rem;
  border-block: 1px solid var(--reseller-rule);
}

body.fs-template-solutions-reseller .fs-reseller-reward-statement__progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--fs-inner-copy);
  font-size: .75rem;
}

body.fs-template-solutions-reseller .fs-reseller-progress-track {
  height: .5rem;
  margin-top: .75rem;
  border-radius: var(--fs-radius-pill);
  background: #ece4e4;
  overflow: hidden;
}

body.fs-template-solutions-reseller .fs-reseller-progress-track > div {
  height: 100%;
  border-radius: inherit;
  background: var(--fs-inner-red);
}

body.fs-template-solutions-reseller .fs-reseller-reward-statement__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.fs-template-solutions-reseller .fs-reseller-reward-statement__stats > div {
  padding-block: 1.5rem;
}

body.fs-template-solutions-reseller .fs-reseller-reward-statement__stats > div:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--reseller-rule);
}

body.fs-template-solutions-reseller .fs-reseller-reward-statement__stats > div:nth-child(n + 3) {
  border-top: 1px solid var(--reseller-rule);
}

body.fs-template-solutions-reseller .fs-reseller-reward-statement__stats dt {
  color: var(--fs-inner-subtle);
  font-size: .75rem;
}

body.fs-template-solutions-reseller .fs-reseller-reward-statement__stats dd {
  margin-top: .5rem;
  color: var(--fs-inner-ink);
  font-size: .9375rem;
  font-weight: 800;
}

@media (max-width: 1199px) {
  body.fs-template-solutions-reseller .fs-reseller-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.fs-template-solutions-reseller .fs-reseller-feature {
    grid-column: span 1 !important;
    border-top: 1px solid var(--reseller-rule);
  }

  body.fs-template-solutions-reseller .fs-reseller-feature:nth-child(odd) {
    border-left: 0;
  }

  body.fs-template-solutions-reseller .fs-reseller-feature:nth-child(-n + 2) {
    border-top: 0;
  }
}

@media (max-width: 1023px) {
  body.fs-template-solutions-reseller .fs-reseller-hero__layout,
  body.fs-template-solutions-reseller .fs-reseller-split,
  body.fs-template-solutions-reseller .fs-reseller-platform__intro,
  body.fs-template-solutions-reseller .fs-reseller-rewards__layout {
    grid-template-columns: 1fr;
  }

  body.fs-template-solutions-reseller .fs-reseller-hero__layout {
    grid-template-areas:
      "copy"
      "ledger"
      "proof";
    row-gap: var(--reseller-space-12);
  }

  body.fs-template-solutions-reseller .fs-reseller-ledger {
    width: 100%;
  }

  body.fs-template-solutions-reseller .fs-reseller-challenges .fs-reseller-section-heading {
    position: static;
  }

  body.fs-template-solutions-reseller .fs-reseller-models__heading {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  body.fs-template-solutions-reseller .fs-reseller-comparison {
    grid-template-columns: 1fr;
  }

  body.fs-template-solutions-reseller .fs-reseller-model + .fs-reseller-model {
    border-top: 1px solid var(--reseller-rule);
    border-left: 0;
  }

  body.fs-template-solutions-reseller .fs-reseller-model__description {
    min-height: 0;
  }

  body.fs-template-solutions-reseller .fs-reseller-reward-statement {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  body.fs-template-solutions-reseller .fs-reseller-shell {
    width: min(100% - 2rem, var(--fs-inner-content));
  }

  body.fs-template-solutions-reseller #main-content > .fs-reseller-hero {
    padding-top: 4.75rem;
  }

  body.fs-template-solutions-reseller .fs-reseller-hero__copy h1 {
    max-width: 11ch;
  }

  body.fs-template-solutions-reseller .fs-reseller-actions {
    flex-direction: column;
  }

  body.fs-template-solutions-reseller .fs-reseller-actions .fs-ui-button {
    width: 100%;
  }

  body.fs-template-solutions-reseller .fs-reseller-proof > div {
    padding-block: 1.5rem;
  }

  body.fs-template-solutions-reseller .fs-reseller-proof > div + div {
    padding-left: 1rem;
  }

  body.fs-template-solutions-reseller .fs-reseller-obstacle {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 1rem;
  }

  body.fs-template-solutions-reseller .fs-reseller-obstacle__icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  body.fs-template-solutions-reseller .fs-reseller-model {
    padding: 1.5rem;
  }

  body.fs-template-solutions-reseller .fs-reseller-feature-list {
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }

  body.fs-template-solutions-reseller .fs-reseller-feature {
    border-top: 1px solid var(--reseller-rule) !important;
    border-left: 0 !important;
  }

  body.fs-template-solutions-reseller .fs-reseller-feature:first-child {
    border-top: 0 !important;
  }

  body.fs-template-solutions-reseller .fs-reseller-reward-statement {
    padding: 1.5rem;
  }
}

@media (max-width: 519px) {
  body.fs-template-solutions-reseller .fs-reseller-proof {
    grid-template-columns: 1fr;
  }

  body.fs-template-solutions-reseller .fs-reseller-proof > div + div {
    padding-left: 0;
    border-top: 1px solid rgb(255 255 255 / .2);
    border-left: 0;
  }

  body.fs-template-solutions-reseller .fs-reseller-reward-statement__header,
  body.fs-template-solutions-reseller .fs-reseller-reward-statement__progress > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

  body.fs-template-solutions-reseller .fs-reseller-reward-statement__stats {
    grid-template-columns: 1fr;
  }

  body.fs-template-solutions-reseller .fs-reseller-reward-statement__stats > div {
    padding-left: 0 !important;
    border-top: 1px solid var(--reseller-rule);
    border-left: 0 !important;
  }

  body.fs-template-solutions-reseller .fs-reseller-reward-statement__stats > div:first-child {
    border-top: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  body.fs-template-solutions-reseller .fs-reseller-ledger__row:hover {
    background: rgb(255 255 255 / .08);
  }

  body.fs-template-solutions-reseller .fs-reseller-obstacle:hover {
    background: rgb(214 0 1 / .025);
  }

  body.fs-template-solutions-reseller .fs-reseller-platform__visual:hover img {
    transform: scale(1.012);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.fs-template-solutions-reseller .fs-reseller-ledger__row,
  body.fs-template-solutions-reseller .fs-reseller-obstacle,
  body.fs-template-solutions-reseller .fs-reseller-feature,
  body.fs-template-solutions-reseller .fs-reseller-platform__visual img {
    transition: none;
  }

body.fs-template-solutions-reseller .fs-reseller-platform__visual:hover img {
    transform: none;
  }
}

/* ============================================================
   Site-wide section-label and editorial layout refinement
   Homepage and Portal Reseller keep their established layouts.
============================================================ */

body.fs-inner-page {
  --fs-label-light: #b40001;
  --fs-label-dark: #ffd84d;
  --fs-label-hero: #fff0a8;
}

/* Section labels are text, not pills. Status indicators remain components. */
body.fs-inner-page > :is(main, section) .eyebrow {
  display: inline-block;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fs-label-light);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.3;
  text-transform: none;
  box-shadow: none;
}

body.fs-inner-page > :is(main, section) .eyebrow-dark,
body.fs-inner-marketing #main-content > section.bg-brand-ink:not(:last-of-type) .eyebrow,
body.fs-inner-marketing #main-content > section.bg-brand-red:not(:last-of-type) .eyebrow {
  border: 0;
  background: transparent;
  color: var(--fs-label-dark);
}

body.fs-inner-marketing #main-content > section.hero-bg:first-of-type .eyebrow,
body.fs-template-contact #main-content > section:first-of-type .eyebrow,
body.fs-template-blog #main-content > section:first-of-type .eyebrow,
body.fs-template-case-studies #main-content > section:first-of-type .eyebrow,
body.fs-inner-page.archive > section:first-of-type .eyebrow {
  border: 0;
  background: transparent;
  color: var(--fs-label-hero);
}

body.fs-inner-marketing #main-content > section:last-of-type:is(.bg-brand-ink, .bg-brand-red, .bg-blue-600) .eyebrow {
  border: 0;
  background: transparent;
  color: var(--fs-label-dark);
}

/* Legacy one-off section labels get the same text treatment. */
body.fs-inner-page .fs-section-label {
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fs-label-light);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.3;
  text-transform: none;
  box-shadow: none;
}

body.fs-inner-page .fs-section-label--hero {
  color: var(--fs-label-hero);
}

body.fs-inner-marketing #main-content > section.hero-bg:first-of-type .fs-section-label,
body.fs-inner-marketing #main-content > section.bg-brand-ink .fs-section-label,
body.fs-inner-marketing #main-content > section.bg-brand-red .fs-section-label {
  color: var(--fs-label-dark);
}

/* Portal Reseller: label-only correction, no layout changes. */
body.fs-template-solutions-reseller .fs-reseller-badge--hero {
  display: inline-block;
  width: auto;
  margin-bottom: var(--reseller-label-gap);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fs-label-hero);
  box-shadow: none;
}

body.fs-inner-page.fs-template-solutions-reseller > section .fs-reseller-kicker {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* The contact hero already has the shared pattern; remove its obsolete block. */
body.fs-template-contact #main-content > section:first-of-type > .absolute {
  display: none;
}

/*
 * Section introductions always use one centered reading axis.
 * Layout variety belongs to the content below, never between the label,
 * heading, and supporting sentence.
 */
body.fs-inner-marketing:not(.fs-template-solutions-reseller)
  > section:not(:first-of-type)
  > div
  > :is(.text-center.max-w-2xl, .text-center.max-w-xl),
body.fs-inner-marketing:not(.fs-template-solutions-reseller)
  > section:not(:first-of-type)
  > .relative
  > :is(.text-center.max-w-2xl, .text-center.max-w-xl) {
  display: flex;
  width: 100%;
  max-width: 48rem;
  flex-direction: column;
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

body.fs-inner-marketing:not(.fs-template-solutions-reseller)
  > section:not(:first-of-type)
  :is(.text-center.max-w-2xl, .text-center.max-w-xl)
  > :is(.eyebrow, h2, p) {
  justify-self: center;
  margin-inline: auto !important;
  text-align: center !important;
}

body.fs-inner-marketing:not(.fs-template-solutions-reseller)
  > section.bg-brand-ink:not(:last-of-type):has(> .relative > .max-w-3xl.space-y-2)
  > .relative
  > .max-w-3xl.space-y-2 {
  width: 100%;
  max-width: 48rem;
  margin-inline: auto;
}

@media (min-width: 1024px) {

  /* Three-point challenge rows retain cards but gain deliberate emphasis. */
  body[class*="fs-template-solutions-"]:not(.fs-template-solutions-reseller)
    > section:nth-of-type(2)
    .grid.md\:grid-cols-3 {
    grid-template-columns: 1.18fr .91fr .91fr;
    gap: 1rem;
  }

  body[class*="fs-template-solutions-"]:not(.fs-template-solutions-reseller)
    > section:nth-of-type(2)
    .grid.md\:grid-cols-3
    > article:first-child {
    padding: 2.25rem;
    background: #fff7f7;
  }

  /*
   * Six-item benefit collections become open evidence lists instead of
   * another identical card wall.
   */
  body.fs-inner-marketing:not(.fs-template-solutions-reseller)
    > section:not(:first-of-type):not(:last-of-type)
    .grid.md\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-block: 1px solid var(--fs-inner-line);
  }

  body.fs-inner-marketing:not(.fs-template-solutions-reseller)
    > section:not(:first-of-type):not(:last-of-type)
    .grid.md\:grid-cols-2.lg\:grid-cols-3
    > article {
    padding: 2rem;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.fs-inner-marketing:not(.fs-template-solutions-reseller)
    > section:not(:first-of-type):not(:last-of-type)
    .grid.md\:grid-cols-2.lg\:grid-cols-3
    > article:nth-child(even) {
    border-left: 1px solid var(--fs-inner-line);
  }

  body.fs-inner-marketing:not(.fs-template-solutions-reseller)
    > section:not(:first-of-type):not(:last-of-type)
    .grid.md\:grid-cols-2.lg\:grid-cols-3
    > article:nth-child(n + 3) {
    border-top: 1px solid var(--fs-inner-line);
  }
}

/* Never allow dark inherited copy on the newsletter surface. */
body.fs-template-blog #main-content > section:nth-of-type(2) > div > .bg-brand-ink :where(h2, h3) {
  color: #ffffff !important;
}

body.fs-template-blog #main-content > section:nth-of-type(2) > div > .bg-brand-ink :where(p, label) {
  color: rgb(255 255 255 / .76) !important;
}

body.fs-template-blog #main-content > section:nth-of-type(2) > div > .bg-brand-ink p:last-child {
  color: rgb(255 255 255 / .58) !important;
}

/* Restore hierarchy inside white surfaces after the collision guard. */
body.fs-inner-page > :is(main, section) :is(
  article[class*="bg-white"],
  div.bg-white[class*="rounded-"],
  aside.bg-white[class*="rounded-"],
  form.bg-white[class*="rounded-"],
  li.bg-white[class*="rounded-"],
  a.bg-white[class*="rounded-2xl"],
  a.bg-white[class*="rounded-3xl"]
) :where(p, li, dt, small):not([class*="text-brand"]):not([class*="text-red"]):not([class*="text-green"]):not([class*="text-blue"]):not([class*="text-amber"]) {
  color: var(--fs-inner-copy) !important;
}

body.fs-inner-page > :is(main, section) :is(
  article[class*="bg-white"],
  div.bg-white[class*="rounded-"],
  aside.bg-white[class*="rounded-"],
  form.bg-white[class*="rounded-"],
  li.bg-white[class*="rounded-"],
  a.bg-white[class*="rounded-2xl"],
  a.bg-white[class*="rounded-3xl"]
) :where(h1, h2, h3, h4, h5, h6, dd, strong) {
  color: var(--fs-inner-ink) !important;
}

/* Section cadence follows semantic template spacing instead of one flat gap. */
body.fs-inner-marketing #main-content > section.py-16:not(:first-of-type) {
  padding-block: clamp(4rem, 5.5vw, 5rem);
}

body.fs-inner-marketing #main-content > section.py-20:not(:first-of-type) {
  padding-block: clamp(4.75rem, 6.5vw, 6rem);
}

body.fs-inner-marketing #main-content > section.py-24:not(:first-of-type) {
  padding-block: clamp(5.5rem, 7.5vw, 7rem);
}

/* Homepage and Portal Reseller: contrast corrections only. */
body.fs-template-solutions-reseller .fs-reseller-ledger__meta,
body.fs-template-solutions-reseller .fs-reseller-proof dt {
  color: rgb(255 255 255 / .82);
}

/* Portal hub: one role ledger instead of three identical cards. */
@media (min-width: 768px) {
  body.fs-template-portal #main-content > section:first-of-type {
    min-height: calc(100vh - 5rem);
  }

  body.fs-template-portal #main-content > section:first-of-type > .max-w-4xl {
    max-width: 64rem;
  }

  body.fs-template-portal #main-content > section:first-of-type .grid.md\:grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 0;
    border-block: 1px solid var(--fs-inner-line);
  }

  body.fs-template-portal #main-content > section:first-of-type .grid.md\:grid-cols-3 > a {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr) minmax(10rem, auto);
    grid-template-rows: auto auto;
    gap: .35rem 1.5rem;
    align-items: center;
    padding: 1.5rem 0;
    border: 0;
    border-bottom: 1px solid var(--fs-inner-line);
    border-radius: 0;
    background: transparent;
    text-align: left;
    box-shadow: none;
  }

  body.fs-template-portal #main-content > section:first-of-type .grid.md\:grid-cols-3 > a:last-child {
    border-bottom: 0;
  }

  body.fs-template-portal #main-content > section:first-of-type .grid.md\:grid-cols-3 > a > div:first-child {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0;
    border-radius: var(--fs-radius-md);
  }

  body.fs-template-portal #main-content > section:first-of-type .grid.md\:grid-cols-3 > a > h2 {
    grid-column: 2;
    grid-row: 1;
  }

  body.fs-template-portal #main-content > section:first-of-type .grid.md\:grid-cols-3 > a > p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }

  body.fs-template-portal #main-content > section:first-of-type .grid.md\:grid-cols-3 > a > div:last-child {
    grid-column: 3;
    grid-row: 1 / 3;
    width: auto;
    min-width: 10rem;
    margin: 0;
    border-radius: var(--fs-radius-pill);
  }

  body.fs-template-portal #main-content > section:first-of-type .grid.md\:grid-cols-3 > a:hover {
    padding-inline: 1rem;
    background: #fff7f7;
    box-shadow: none;
    transform: none;
  }
}

/* Mini Drop Point: steps read as one continuous process, not three cards. */
body.fs-template-solutions-mdp #main-content > section:nth-of-type(3) .grid.md\:grid-cols-3 {
  gap: 0;
  border-block: 1px solid var(--fs-inner-line);
}

body.fs-template-solutions-mdp #main-content > section:nth-of-type(3) .grid.md\:grid-cols-3 > div {
  min-height: 15rem;
  padding: 2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.fs-template-solutions-mdp #main-content > section:nth-of-type(3) .grid.md\:grid-cols-3 > div + div {
  border-left: 1px solid var(--fs-inner-line);
}

/* About team placeholders look intentional until real portraits are supplied. */
body.fs-template-about .fs-about-team-portrait {
  border: 0 !important;
  border-radius: var(--fs-radius-md) !important;
  background:
    radial-gradient(circle at 50% 35%, #ffffff 0 17%, transparent 18%),
    linear-gradient(145deg, #f4eaea, #ffffff) !important;
  box-shadow: inset 0 0 0 1px var(--fs-inner-line);
}

body.fs-template-about .fs-about-team-card {
  text-align: center;
}

body.fs-template-about .fs-about-team-portrait {
  margin-inline: auto;
}

@media (min-width: 1024px) {
  body.fs-template-contact #main-content > section:nth-of-type(2) .lg\:col-span-2 {
    position: sticky;
    top: 7rem;
    align-self: start;
  }
}

/* Solutions overview: a scannable service index, not an eight-card wall. */
@media (min-width: 1024px) {
  body.fs-template-solutions #main-content > section:nth-of-type(2) .grid.xl\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-block: 1px solid var(--fs-inner-line);
  }

  body.fs-template-solutions #main-content > section:nth-of-type(2) .grid.xl\:grid-cols-4 > a {
    position: relative;
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: .35rem 1.25rem;
    padding: 1.75rem;
    border: 0;
    border-bottom: 1px solid var(--fs-inner-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.fs-template-solutions #main-content > section:nth-of-type(2) .grid.xl\:grid-cols-4 > a:nth-child(even) {
    border-left: 1px solid var(--fs-inner-line);
  }

  body.fs-template-solutions #main-content > section:nth-of-type(2) .grid.xl\:grid-cols-4 > a:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  body.fs-template-solutions #main-content > section:nth-of-type(2) .grid.xl\:grid-cols-4 > a > div:first-child {
    grid-column: 1;
    grid-row: 1 / 5;
    display: block;
    margin: 0;
  }

  body.fs-template-solutions #main-content > section:nth-of-type(2) .grid.xl\:grid-cols-4 > a > div:first-child > span {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
  }

  body.fs-template-solutions #main-content > section:nth-of-type(2) .grid.xl\:grid-cols-4 > a > h3,
  body.fs-template-solutions #main-content > section:nth-of-type(2) .grid.xl\:grid-cols-4 > a > p,
  body.fs-template-solutions #main-content > section:nth-of-type(2) .grid.xl\:grid-cols-4 > a > div:last-child {
    grid-column: 2;
  }

  body.fs-template-solutions #main-content > section:nth-of-type(2) .grid.xl\:grid-cols-4 > a:hover {
    background: #fff7f7;
    box-shadow: none;
    transform: none;
  }

  /* Supplier capabilities read as one operating system, not four tiles. */
  body.fs-template-solutions-supplier #main-content > section:nth-of-type(3) .grid.lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-block: 1px solid rgb(255 255 255 / .14);
  }

  body.fs-template-solutions-supplier #main-content > section:nth-of-type(3) .grid.lg\:grid-cols-4 > article {
    min-height: 15rem;
    padding: 2rem 1.5rem;
    border: 0;
    border-left: 1px solid rgb(255 255 255 / .14);
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
  }

  body.fs-template-solutions-supplier #main-content > section:nth-of-type(3) .grid.lg\:grid-cols-4 > article:first-child {
    border-left: 0;
  }

  /* OrderAgent's four steps become an editorial two-column sequence. */
  body.fs-template-technology-order-agent #main-content > section:nth-of-type(2) .grid.md\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-block: 1px solid var(--fs-inner-line);
  }

  body.fs-template-technology-order-agent #main-content > section:nth-of-type(2) .grid.md\:grid-cols-4 > div.relative.text-center {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: .5rem 1.25rem;
    min-height: 11rem;
    padding: 2rem;
    border-bottom: 1px solid var(--fs-inner-line);
    text-align: left;
  }

  body.fs-template-technology-order-agent #main-content > section:nth-of-type(2) .grid.md\:grid-cols-4 > div.relative.text-center:nth-child(odd) {
    border-left: 1px solid var(--fs-inner-line);
  }

  body.fs-template-technology-order-agent #main-content > section:nth-of-type(2) .grid.md\:grid-cols-4 > div.relative.text-center:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  body.fs-template-technology-order-agent #main-content > section:nth-of-type(2) .grid.md\:grid-cols-4 > div.relative.text-center > div:first-child {
    grid-row: 1 / 3;
    margin: 0;
  }

  body.fs-template-technology-order-agent #main-content > section:nth-of-type(2) .grid.md\:grid-cols-4 > div.relative.text-center :where(h3, p) {
    text-align: left;
  }

  /* Smart WMS prioritizes the lead capability instead of equal card weight. */
  body.fs-template-technology-smart-wms #main-content > section:nth-of-type(2) .grid.md\:grid-cols-3 {
    grid-template-columns: 1.22fr .89fr .89fr;
    gap: 1rem;
  }

  body.fs-template-technology-smart-wms #main-content > section:nth-of-type(2) .grid.md\:grid-cols-3 > div:first-child {
    padding: 2.5rem;
    background: #fff7f7;
  }

  /* About values and trust marks become open indexes with calmer density. */
  body.fs-template-about #main-content > section:nth-of-type(5) .grid.lg\:grid-cols-3 {
    gap: 0;
    border-block: 1px solid var(--fs-inner-line);
  }

  body.fs-template-about #main-content > section:nth-of-type(5) .grid.lg\:grid-cols-3 > article {
    padding: 2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.fs-template-about #main-content > section:nth-of-type(5) .grid.lg\:grid-cols-3 > article:nth-child(3n + 2),
  body.fs-template-about #main-content > section:nth-of-type(5) .grid.lg\:grid-cols-3 > article:nth-child(3n + 3) {
    border-left: 1px solid var(--fs-inner-line);
  }

  body.fs-template-about #main-content > section:nth-of-type(5) .grid.lg\:grid-cols-3 > article:nth-child(n + 4) {
    border-top: 1px solid var(--fs-inner-line);
  }

  body.fs-template-about #main-content > section:nth-of-type(10) .grid.lg\:grid-cols-5 {
    gap: 0;
    max-width: none;
    border-block: 1px solid var(--fs-inner-line);
  }

  body.fs-template-about #main-content > section:nth-of-type(10) .grid.lg\:grid-cols-5 > div {
    padding: 1.5rem;
    border: 0;
    border-left: 1px solid var(--fs-inner-line);
    border-radius: 0;
    background: transparent;
  }

  body.fs-template-about #main-content > section:nth-of-type(10) .grid.lg\:grid-cols-5 > div:first-child {
    border-left: 0;
  }
}

@media (max-width: 1023px) {
  body.fs-inner-marketing:not(.fs-template-solutions-reseller)
    > section:not(:first-of-type):not(:last-of-type)
    > div
    > .text-center.max-w-2xl {
    align-items: center;
    margin-inline: auto;
    text-align: center;
  }

  body.fs-inner-marketing:not(.fs-template-solutions-reseller)
    > section:not(:first-of-type):not(:last-of-type)
    > div
    > .text-center.max-w-2xl
    :where(h2, p) {
    margin-inline: auto;
    text-align: center;
  }
}

@media (max-width: 767px) {
  body.fs-inner-page > :is(main, section) .eyebrow,
  body.fs-inner-page .fs-section-label,
  body.home .fs-home-section-badge {
    font-size: .875rem;
  }

  body.fs-inner-marketing:not(.fs-template-solutions-reseller)
    > section:not(:first-of-type):not(:last-of-type)
    .grid.md\:grid-cols-2.lg\:grid-cols-3
    > article {
    min-height: 0;
  }
}
