:root {
  --surface: #ffffff;
  --surface-soft: #f9fbff;
  --ink: #131b2b;
  --muted: #5d687b;
  --line: #dbe2ee;
  --line-strong: #c8d4e5;
  --navy: #0d1830;
  --navy-soft: #2459b8;
  --brand-blue: #2865d7;
  --brand-blue-dark: #1f52b7;
  --brand-blue-soft: #e8f0ff;
  --brand-orange: #f36b22;
  --brand-orange-dark: #b9470f;
  --brand-orange-soft: #fff0e8;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(16, 34, 66, 0.06);
  --shadow-md: 0 16px 40px rgba(16, 34, 66, 0.09);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-control: 10px;
  --measure: 72rem;
  --page-gutter: 2rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--navy-soft);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--brand-blue-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.nav-shell,
.page-shell,
.site-footer__inner,
.hero-search-shell,
.product-directory__shell {
  width: min(calc(100% - var(--page-gutter)), var(--measure));
  margin-inline: auto;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 16ch;
  margin-bottom: 1rem;
  font-size: clamp(2.35rem, 6vw, 4rem);
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

section[id] {
  scroll-margin-top: 6rem;
}

p,
ul,
ol {
  margin-top: 0;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 11, 22, 0.95);
  backdrop-filter: blur(12px);
}

.nav-shell {
  display: flex;
  min-height: 4.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
  color: white;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: var(--radius-sm);
  background: url("brand-icon.webp") center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 24px rgba(0, 0, 0, 0.24);
  color: transparent;
  font-size: 0;
  overflow: hidden;
}

.brand > span:last-child {
  background: linear-gradient(90deg, var(--brand-blue) 0 34%, #f48a36 34% 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-nav::-webkit-scrollbar {
  display: none;
}

.primary-nav a {
  display: block;
  min-height: 2.75rem;
  padding: 0.62rem 0.75rem;
  border-radius: var(--radius-control);
  color: #cbd4e4;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.page-shell,
.site-footer__inner {
  min-width: 0;
}

.home-page .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(4, 7, 12, 0.94);
}

.home-page .site-header .brand {
  color: white;
}

.home-page .site-header .brand-mark {
  background: url("brand-icon.webp") center / cover no-repeat;
  color: transparent;
}

.home-page .site-header .primary-nav a {
  color: #d6dbe4;
}

.home-page .site-header .primary-nav a:hover,
.home-page .site-header .primary-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.hero--search {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #1a2230;
  background-color: #05080d;
  color: white;
}

.hero-search-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero--search::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 15, 0.98) 0%, rgba(3, 8, 18, 0.91) 46%, rgba(3, 9, 22, 0.34) 76%, rgba(3, 9, 22, 0.08) 100%);
  content: "";
  pointer-events: none;
}

.hero--search::after {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 8rem;
  background: linear-gradient(180deg, transparent, rgba(2, 4, 8, 0.7));
  content: "";
  pointer-events: none;
}

.hero-search-shell {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 35rem;
  padding-block: clamp(3rem, 5vw, 4.8rem);
  align-items: center;
}

.hero-search-copy {
  width: min(100%, 52rem);
}

.hero-label {
  display: inline-flex;
  margin-bottom: 0.8rem;
  align-items: center;
  gap: 0.7rem;
  color: #ffac6f;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-label::before {
  width: 2.5rem;
  height: 2px;
  background: var(--brand-orange);
  content: "";
}

.hero--search h1 {
  max-width: 16ch;
  margin-bottom: 1rem;
  color: white;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.55rem, 5vw, 4.05rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-search-lede {
  max-width: 43rem;
  margin-bottom: 1.15rem;
  color: #c5ccd8;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.6;
}

.hero-finder {
  margin: 0;
}

.hero-finder__bar {
  display: flex;
  width: 100%;
  padding: 0.48rem;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: #fff;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-lg);
}

.hero-finder__icon {
  position: relative;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-left: 0.85rem;
  border: 2px solid #8b95a7;
  border-radius: 50%;
}

.hero-finder__icon::after {
  position: absolute;
  right: -0.38rem;
  bottom: -0.26rem;
  width: 0.5rem;
  height: 2px;
  border-radius: 2px;
  background: #8b95a7;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.hero-finder input {
  min-width: 0;
  min-height: 3.9rem;
  padding: 0.7rem 0.35rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  flex: 1 1 auto;
  font: inherit;
  font-size: 1rem;
}

.hero-finder input::placeholder {
  color: #9ca5b5;
  opacity: 1;
}

.hero-finder button {
  min-height: 3.9rem;
  padding: 0.75rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-orange-dark), #c64b0e);
  color: white;
  flex: 0 0 auto;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.hero-finder button:hover {
  background: linear-gradient(135deg, #a63b08, var(--brand-orange-dark));
  box-shadow: 0 8px 22px rgba(243, 107, 34, 0.24);
}

.hero-quick-search {
  display: flex;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.hero-quick-search > span {
  margin-right: 0.1rem;
  color: #9ca7b8;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-quick-search a {
  padding: 0.34rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(5, 8, 13, 0.48);
  color: #edf0f5;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.hero-quick-search a:hover {
  border-color: var(--brand-orange);
  background: linear-gradient(90deg, rgba(47, 114, 237, 0.18), rgba(243, 107, 34, 0.16));
  color: white;
}

.hero-search-trust {
  max-width: 49rem;
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #9fa8b7;
  font-size: 0.78rem;
  line-height: 1.6;
}

.hero-search-note {
  margin: 0.45rem 0 0;
  color: #c8ced9;
  font-size: 0.78rem;
}

.hero-search-note span {
  color: var(--brand-orange);
}

.product-directory {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.product-directory::before {
  position: absolute;
  inset: 0;
  background: transparent;
  content: "";
  pointer-events: none;
}

.product-directory__shell {
  position: relative;
  padding-block: clamp(3rem, 5vw, 4.8rem);
}

.product-directory__head {
  max-width: 48rem;
  margin: 0 auto clamp(1.4rem, 2.5vw, 2rem);
  text-align: center;
}

.product-directory__kicker {
  margin-bottom: 0.75rem;
  color: var(--brand-orange-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-directory h2 {
  margin-bottom: 0.85rem;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 850;
  letter-spacing: -0.045em;
}

.product-directory__head > p:last-child {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
}

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

.product-category-card {
  display: flex;
  min-height: 11.6rem;
  padding: 1.05rem 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-category-card:hover {
  border-color: rgba(40, 101, 215, 0.58);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-category-icon {
  display: grid;
  width: 4.2rem;
  height: 4.2rem;
  margin-bottom: 0.75rem;
  border: 1px solid;
  border-radius: var(--radius-sm);
  place-items: center;
}

.product-category-icon--orange {
  border-color: rgba(243, 107, 34, 0.28);
  background: var(--brand-orange-soft);
  color: var(--brand-orange-dark);
}

.product-category-icon--green {
  border-color: rgba(40, 101, 215, 0.24);
  background: var(--brand-blue-soft);
  color: var(--brand-blue-dark);
}

.product-category-icon--blue {
  border-color: rgba(40, 101, 215, 0.24);
  background: var(--brand-blue-soft);
  color: var(--brand-blue-dark);
}

.product-category-glyph {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  background: currentColor;
  mask: var(--directory-icon) center / contain no-repeat;
  -webkit-mask: var(--directory-icon) center / contain no-repeat;
}

.product-category-glyph--shoe { --directory-icon: url("icons/shoe.svg"); }
.product-category-glyph--shirt { --directory-icon: url("icons/shirt.svg"); }
.product-category-glyph--jacket { --directory-icon: url("icons/jacket.svg"); }
.product-category-glyph--ruler { --directory-icon: url("icons/ruler-measure.svg"); }
.product-category-glyph--bag { --directory-icon: url("icons/shopping-bag.svg"); }
.product-category-glyph--jersey { --directory-icon: url("icons/shirt-sport.svg"); }
.product-category-glyph--cap { --directory-icon: url("icons/cap-rounded.svg"); }
.product-category-glyph--glasses { --directory-icon: url("icons/sunglasses.svg"); }
.product-category-glyph--headphones { --directory-icon: url("icons/headphones.svg"); }
.product-category-glyph--shorts { --directory-icon: url("icons/ruler-measure.svg"); }
.product-category-glyph--packages { --directory-icon: url("icons/packages.svg"); }

.product-category-card__name {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.015em;
}

.product-category-card__route {
  margin-top: 0.42rem;
  color: var(--brand-orange-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.product-directory__note {
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.product-directory__note a {
  color: var(--brand-blue-dark);
  font-weight: 800;
}

.eyebrow,
.section-kicker,
.crumbs {
  color: var(--navy-soft);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 0.85rem;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  width: 2.5rem;
  height: 0.22rem;
  border-radius: 999px;
  background: var(--brand-orange);
  content: "";
}

.lede {
  max-width: 39rem;
  margin-bottom: 1rem;
  color: #444b59;
  font-size: clamp(1.07rem, 2vw, 1.25rem);
}

.article-meta {
  display: flex;
  margin: -0.15rem 0 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.article-meta time {
  white-space: nowrap;
}

.button-row,
.chip-row,
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.button {
  display: inline-flex;
  min-height: 2.95rem;
  padding: 0.75rem 1.05rem;
  border: 1px solid var(--navy);
  border-radius: var(--radius-control);
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.button--primary {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(40, 101, 215, 0.22);
}

.button--primary:hover {
  border-color: var(--brand-blue-dark);
  background: var(--brand-blue-dark);
  color: white;
  box-shadow: 0 10px 24px rgba(40, 101, 215, 0.28);
  transform: translateY(-2px);
}

.button--secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--navy);
}

.button--secondary:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
  color: var(--brand-blue-dark);
}

.external-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.page-intro {
  padding-block: clamp(2.5rem, 5vw, 4.2rem) 1.4rem;
}

.page-intro h1 {
  max-width: 19ch;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
}

.crumbs {
  margin-bottom: 0.9rem;
  text-transform: none;
  letter-spacing: 0.04em;
}

.crumbs ol {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.35rem;
}

.crumbs li:not(:last-child)::after {
  margin-left: 0.35rem;
  color: #9a9487;
  content: "/";
}

.content-grid {
  display: grid;
  align-items: start;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) 18rem;
}

.article-flow {
  min-width: 0;
}

.article-flow > section,
.home-section {
  padding-block: clamp(1.75rem, 3.5vw, 3rem);
  border-top: 1px solid var(--line);
}

.article-flow > section:first-child {
  border-top: 0;
}

.article-flow p,
.article-flow li {
  max-width: 70ch;
}

.quick-answer {
  position: relative;
  padding: 1.2rem 1.25rem 1.2rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.quick-answer::before {
  position: absolute;
  top: 1.1rem;
  bottom: 1.1rem;
  left: 0;
  width: 0.35rem;
  border-radius: 0 99px 99px 0;
  background: var(--brand-orange);
  content: "";
}

.quick-answer h2 {
  font-size: 1.35rem;
}

.section-head {
  display: grid;
  margin-bottom: 1.2rem;
  align-items: end;
  gap: 1rem 2rem;
  grid-template-columns: minmax(0, 0.75fr) minmax(18rem, 1fr);
}

.section-head > * {
  margin-bottom: 0;
}

.section-head p {
  max-width: 50rem;
  color: var(--muted);
}

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

.card {
  display: flex;
  min-height: 100%;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.card:hover {
  border-color: rgba(40, 101, 215, 0.55);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

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

.card .card-link {
  display: inline-flex;
  min-height: 2.75rem;
  margin-top: auto;
  padding-top: 0.7rem;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 850;
}

.card-number {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: var(--brand-blue-soft);
  color: var(--navy);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  place-items: center;
}

.workflow-list {
  display: grid;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow-step;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-list li {
  position: relative;
  min-height: 7.4rem;
  padding: 1rem 1rem 1rem 3.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  counter-increment: workflow-step;
}

.workflow-list li::before {
  position: absolute;
  top: 0.95rem;
  left: 0.95rem;
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--navy);
  color: #8fb7ff;
  content: counter(workflow-step, decimal-leading-zero);
  font-size: 0.72rem;
  font-weight: 900;
  place-items: center;
}

.workflow-list strong,
.workflow-list span {
  display: block;
}

.workflow-list strong {
  margin-bottom: 0.3rem;
  color: var(--ink);
}

.workflow-list span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.article-tool {
  margin-top: 1.1rem;
  padding: 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.article-tool h3 {
  margin-bottom: 0.75rem;
}

.article-tool-grid {
  display: grid;
  margin: 0;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-tool-grid > div {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface-soft);
}

.article-tool-grid dt {
  margin-bottom: 0.25rem;
  color: var(--navy);
  font-weight: 900;
}

.article-tool-grid dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.template-box {
  margin-top: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.template-box .section-kicker {
  color: var(--brand-blue-dark);
}

.template-box pre {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.9;
  white-space: pre-wrap;
}

.decision-grid,
.formula-grid {
  display: grid;
  margin-top: 1rem;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.decision-grid article,
.formula-grid article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.decision-grid article > span,
.formula-grid article > span {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--brand-blue-soft);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-grid p,
.formula-grid p {
  color: var(--muted);
  font-size: 0.9rem;
}

.formula-grid code {
  color: var(--navy);
  font-weight: 850;
}

.article-library {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-preview {
  display: flex;
  min-height: 14rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  flex-direction: column;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.article-preview:hover {
  border-color: var(--brand-blue);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.article-preview__number {
  margin-bottom: 1.3rem;
  color: var(--brand-orange-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 900;
}

.article-preview h3 {
  font-size: 1.2rem;
}

.article-preview p {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-preview__link {
  margin-top: auto;
  padding-top: 0.7rem;
  color: var(--navy-soft);
  font-size: 0.82rem;
  font-weight: 900;
}

.article-library__more {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.check-list,
.signal-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.signal-list li {
  position: relative;
  max-width: none;
  margin-top: 0.5rem;
  padding: 0.72rem 0.8rem 0.72rem 2.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
}

.check-list li::before {
  position: absolute;
  top: 0.8rem;
  left: 0.85rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--navy-soft);
  border-radius: 3px;
  content: "";
}

.signal-list li::before {
  position: absolute;
  top: 0.92rem;
  left: 1rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--brand-orange);
  content: "";
}

.comparison {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison > div {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.comparison .good {
  border-top: 4px solid var(--brand-blue);
}

.comparison .weak {
  border-top: 4px solid var(--brand-orange);
}

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

.score-grid > div {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.score-grid strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
}

.note-box,
.warning-box {
  margin-block: 1.1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--brand-blue);
  background: var(--brand-blue-soft);
}

.warning-box {
  border-left-color: var(--brand-orange);
  background: var(--brand-orange-soft);
}

.side-rail {
  position: sticky;
  top: 6rem;
  margin-block: 1.75rem 3rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.side-rail strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.02rem;
  font-weight: 900;
}

.side-rail ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-rail li + li {
  margin-top: 0.25rem;
}

.side-rail a {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 700;
}

.search-desk {
  padding: 1.1rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.search-desk h2,
.search-desk h3 {
  color: var(--white);
}

.search-desk p {
  color: #d3dced;
}

.search-form {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.search-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.search-form input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: white;
  color: var(--ink);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-form input:hover {
  border-color: var(--brand-blue);
}

.search-form button {
  min-height: 3.1rem;
  padding-inline: 1.1rem;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--brand-orange-dark);
  color: white;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.search-form button:hover {
  background: #a63b08;
  box-shadow: 0 8px 20px rgba(243, 107, 34, 0.2);
  transform: translateY(-1px);
}

.chip {
  display: inline-flex;
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy);
  align-items: center;
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.chip:hover {
  background: var(--brand-blue-soft);
  border-color: rgba(40, 101, 215, 0.5);
  color: var(--brand-blue-dark);
}

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

.faq-list details {
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  min-height: 2.75rem;
  padding-block: 0.4rem;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.02rem;
  font-weight: 850;
  cursor: pointer;
}

.faq-list details p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.closing-cta {
  display: grid;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  align-items: center;
  gap: 1rem 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  box-shadow: var(--shadow-sm);
}

.closing-cta h2 {
  max-width: 17ch;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.closing-cta p {
  max-width: 52rem;
  color: var(--muted);
}

.site-footer {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.site-footer__inner {
  padding-block: 2rem 1.5rem;
}

.footer-top {
  display: grid;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
  gap: 1rem 2rem;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(18rem, 1.2fr);
}

.footer-top .brand {
  margin-bottom: 0.55rem;
  color: var(--ink);
}

.footer-trust {
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.55rem 1rem;
}

.footer-links a {
  color: var(--navy-soft);
  font-size: 0.86rem;
}

.footer-bottom {
  display: flex;
  padding-top: 1.1rem;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

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

@media (max-width: 960px) {
  .nav-shell {
    display: block;
    padding-block: 0.65rem 0.45rem;
  }

  .brand {
    margin-bottom: 0.5rem;
  }

  .primary-nav {
    margin-inline: -0.2rem;
    padding-bottom: 0.2rem;
    scroll-padding-inline: 0.2rem;
    scroll-snap-type: inline proximity;
    scrollbar-color: rgba(255, 255, 255, 0.36) transparent;
    scrollbar-width: thin;
  }

  .primary-nav::-webkit-scrollbar {
    display: block;
    height: 3px;
  }

  .primary-nav::-webkit-scrollbar-track {
    background: transparent;
  }

  .primary-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
  }

  .primary-nav a {
    scroll-snap-align: start;
  }

  .hero--search {
    background-position: 58% center;
  }

  .hero-search-copy {
    width: min(100%, 46rem);
  }

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

  .product-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .article-library,
  .decision-grid,
  .formula-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .side-rail {
    position: static;
    order: -1;
    margin-block: 0 0.5rem;
    overflow: hidden;
  }

  .side-rail ul {
    display: flex;
    padding-bottom: 0.2rem;
    overflow-x: auto;
    gap: 0.4rem;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-color: var(--line-strong) transparent;
    scrollbar-width: thin;
  }

  .side-rail li + li {
    margin-top: 0;
  }

  .side-rail a {
    min-height: 2.6rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    scroll-snap-align: start;
    white-space: nowrap;
  }
}

@media (max-width: 680px) {
  :root {
    --page-gutter: 1.25rem;
  }

  .article-meta {
    display: grid;
    gap: 0.15rem;
  }

  .article-meta > span[aria-hidden="true"] {
    display: none;
  }

  body {
    font-size: 0.96rem;
  }

  .hero-search-media {
    object-position: 66% center;
  }

  .hero--search::before {
    background: linear-gradient(90deg, rgba(3, 6, 11, 0.96) 0%, rgba(3, 6, 11, 0.84) 72%, rgba(3, 6, 11, 0.62) 100%);
  }

  .hero-search-shell {
    min-height: 32.5rem;
    padding-block: 2.6rem 2.35rem;
  }

  .hero--search h1 {
    max-width: 14ch;
    font-size: clamp(2.25rem, 10vw, 2.9rem);
  }

  .hero-search-lede {
    font-size: 0.96rem;
  }

  .hero-finder__bar {
    padding: 0.38rem;
    gap: 0.35rem;
  }

  .hero-finder__icon {
    display: none;
  }

  .hero-finder input {
    min-height: 3.4rem;
    padding-left: 0.65rem;
    font-size: 1rem;
  }

  .hero-finder button {
    min-height: 3.4rem;
    padding-inline: 1rem;
  }

  .hero-finder__wide-label {
    display: none;
  }

  .product-directory__shell {
    padding-block: 2.7rem;
  }

  .product-directory__head {
    margin-bottom: 1.3rem;
  }

  .product-directory__head > p:last-child {
    font-size: 0.92rem;
  }

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

  .product-category-card {
    min-height: 9.7rem;
    padding-inline: 0.45rem;
    border-radius: var(--radius-sm);
  }

  .product-category-icon {
    width: 3.55rem;
    height: 3.55rem;
    margin-bottom: 0.6rem;
    border-radius: var(--radius-sm);
  }

  .product-category-glyph {
    width: 1.9rem;
    height: 1.9rem;
  }

  .product-category-card__route {
    font-size: 0.7rem;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.2rem);
  }

  .button-row,
  .button-row .button {
    width: 100%;
  }

  .section-head,
  .card-grid,
  .comparison,
  .score-grid,
  .workflow-list,
  .article-tool-grid,
  .article-library,
  .decision-grid,
  .formula-grid,
  .footer-top,
  .closing-cta {
    grid-template-columns: 1fr;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .closing-cta .button {
    width: 100%;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-top: 0.35rem;
  }
}

.whatsapp-float {
  position: fixed;
  z-index: 60;
  right: max(1.125rem, env(safe-area-inset-right));
  bottom: max(1.125rem, env(safe-area-inset-bottom));
  display: flex;
  width: 3.625rem;
  height: 3.625rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(9, 46, 28, 0.3);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  color: #ffffff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 36px rgba(9, 46, 28, 0.38);
}

.whatsapp-float img {
  display: block;
  width: 2rem;
  height: 2rem;
}

.whatsapp-float__label {
  position: absolute;
  top: 50%;
  right: 4.25rem;
  width: max-content;
  max-width: 13.125rem;
  padding: 0.55rem 0.7rem;
  border-radius: 9px;
  background: #17231d;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 180ms ease, visibility 180ms ease;
  visibility: hidden;
}

.whatsapp-float:hover .whatsapp-float__label,
.whatsapp-float:focus-visible .whatsapp-float__label {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 600px) {
  .whatsapp-float {
    right: max(0.875rem, env(safe-area-inset-right));
    bottom: max(0.875rem, env(safe-area-inset-bottom));
    width: 3.375rem;
    height: 3.375rem;
  }

  .whatsapp-float__label {
    display: none;
  }
}

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

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

@media print {
  .site-header,
  .site-footer,
  .button-row,
  .side-rail,
  .whatsapp-float {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .page-shell {
    width: 100%;
  }
}
