/* ========================================================================== 
   FITCO CALIBRATED KNOWLEDGE SYSTEM
   Knowledge Centre · Testing Solutions · ISO/ASTM · Articles · Case Studies
   Version: 1.1.0 | 2026-07-20
   ========================================================================== */

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) {
  --ks-ink: #17181a;
  --ks-ink-2: #34363a;
  --ks-muted: #686b70;
  --ks-line: #e6e6e2;
  --ks-line-strong: #d5d5d0;
  --ks-paper: #fff;
  --ks-paper-2: #f7f7f5;
  --ks-paper-3: #f0f0ed;
  --ks-blue: #34383e;
  --ks-blue-deep: #181a1e;
  --ks-navy: #181a1e;
  --ks-gold: #9a7534;
  --ks-gold-soft: #f7f2e8;
  --ks-accent: var(--ks-blue);
  --ks-accent-deep: var(--ks-blue-deep);
  --ks-accent-soft: #f1f1ef;
  --ks-accent-rgb: 52, 56, 62;
  --ks-radius-sm: 6px;
  --ks-radius: 12px;
  --ks-radius-lg: 18px;
  --ks-shadow-sm: 0 1px 2px rgba(17, 18, 20, 0.04), 0 8px 24px rgba(17, 18, 20, 0.04);
  --ks-shadow: 0 20px 52px -34px rgba(17, 18, 20, 0.28);
  --ks-grid: rgba(17, 18, 20, 0.045);
  --ks-display: "Manrope", "Inter", system-ui, sans-serif;
  --ks-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ks-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ks-container: 1180px;
  --ks-reading: 760px;
  --ks-section: clamp(3.5rem, 7vw, 6rem);

  color: var(--ks-ink);
  background: var(--ks-paper);
  font-family: var(--ks-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.fitco-astm-context :where(.fud-v1, .fitco-standards-home) {
  --ks-accent: var(--ks-gold);
  --ks-accent-deep: #765014;
  --ks-accent-soft: var(--ks-gold-soft);
  --ks-accent-rgb: 169, 119, 34;
}

body.fitco-case-context :where(.fitco-articles-home, .fitco-article-page, .case-study-main) {
  --ks-accent: var(--ks-blue-deep);
  --ks-accent-deep: var(--ks-navy);
  --ks-accent-soft: #f1f1ef;
  --ks-accent-rgb: 24, 26, 30;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) *,
:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) *::before,
:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) *::after {
  box-sizing: border-box;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) :where(.container) {
  width: min(var(--ks-container), calc(100% - 3rem));
  margin-inline: auto;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) :where(h1, h2, h3, h4) {
  margin: 0;
  color: var(--ks-ink);
  font-family: var(--ks-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) :where(p, ul, ol, blockquote) {
  margin-top: 0;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) :where(p, li) {
  color: var(--ks-ink-2);
  line-height: 1.72;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) :where(img, svg) {
  max-width: 100%;
}

/* White media substrate: transparent PNG/WebP assets must remain visually
   neutral when a page section uses the blue-grey paper surface. The image and
   its common WordPress/media frame are both covered so padding cannot reveal
   the surrounding tint. */
:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) img,
:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) :where(picture, figure:has(img), .wp-block-image, .standard-image-wrapper, .header-image, .hero-image-panel) {
  background: #fff;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) a {
  color: var(--ks-accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) :where(a, button):focus-visible {
  outline: 3px solid rgba(var(--ks-accent-rgb), 0.3);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   CONTEXT LABELS + BUTTONS
   -------------------------------------------------------------------------- */

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) :where(.hero-badge, .standard-tag, .industry-tag .tag, .card-label, .section-kicker) {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  border: 1px solid var(--ks-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ks-accent-deep);
  font-family: var(--ks-mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) :where(.hero-badge, .standard-tag, .industry-tag .tag) {
  padding: 0.55rem 0.78rem;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) :where(.hero-badge, .standard-tag)::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--ks-accent);
  box-shadow: 0 0 0 4px rgba(var(--ks-accent-rgb), 0.1);
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) :where(.btn, .hero-chip, .cta-primary, .cta-secondary) {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.15rem;
  border: 1px solid var(--ks-line-strong);
  border-radius: var(--ks-radius-sm);
  background: var(--ks-paper);
  color: var(--ks-ink);
  font-family: var(--ks-sans);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) :where(.btn-primary, .cta-primary) {
  border-color: var(--ks-accent-deep);
  background: var(--ks-accent-deep);
  color: #fff;
  box-shadow: 0 10px 24px -18px rgba(var(--ks-accent-rgb), 0.8);
}

/* Keep filled actions legible against legacy theme-level anchor rules. `:is`
   intentionally contributes scope specificity here; the structural selectors
   above remain zero-specificity so page content can still extend them. */
:is(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) :is(.btn-primary, .cta-primary) {
  color: #fff;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) :where(.btn, .hero-chip, .cta-primary, .cta-secondary):hover {
  transform: translateY(-2px);
  border-color: var(--ks-accent);
  color: var(--ks-accent-deep);
  box-shadow: var(--ks-shadow-sm);
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) :where(.btn-primary, .cta-primary):hover {
  border-color: var(--ks-accent);
  background: var(--ks-accent);
  color: #fff;
}

:is(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page,
  .case-study-main
) :is(.btn-primary, .cta-primary):hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   HERO FAMILY
   -------------------------------------------------------------------------- */

:where(
  .fitco-knowledge-home .hero,
  .fitco-testing-home .hero,
  .fitco-standards-home .standard-header,
  .fud-v1:not(.fitco-standards-home) .standard-header,
  .fitco-articles-home .articles-hero,
  .case-study-main .case-study-header
) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5.75rem);
  border-bottom: 1px solid var(--ks-line);
  background-color: var(--ks-paper-2);
  background-image:
    linear-gradient(var(--ks-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ks-grid) 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(var(--ks-accent-rgb), 0.13), transparent 34%);
  background-size: 28px 28px, 28px 28px, auto;
}

:where(
  .fitco-knowledge-home .hero,
  .fitco-testing-home .hero,
  .fitco-standards-home .standard-header,
  .fud-v1:not(.fitco-standards-home) .standard-header,
  .fitco-articles-home .articles-hero,
  .case-study-main .case-study-header
)::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--ks-accent), var(--ks-accent-deep));
  z-index: -1;
}

:where(.fitco-knowledge-home, .fitco-testing-home) .hero-bg,
.fud-v1 .glow-blob {
  display: none;
}

:where(.fitco-knowledge-home, .fitco-testing-home) .hero-layout,
.fitco-standards-home .standard-header .container,
.fud-v1:not(.fitco-standards-home) .standard-header .container,
.case-study-main .case-study-header .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.fitco-articles-home .articles-hero .hero-content {
  width: min(860px, 100%);
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .case-study-main
) :where(.hero-copy, .header-content, .hero-content, .header-media) {
  min-width: 0;
}

:where(
  .fitco-knowledge-home .hero-title,
  .fitco-testing-home .hero-title,
  .fitco-standards-home .standard-title,
  .fud-v1:not(.fitco-standards-home) .standard-title,
  .fitco-articles-home .hero-title,
  .case-study-main .case-study-title
) {
  max-width: 16ch;
  margin-block: 1.1rem 1.15rem;
  color: var(--ks-ink);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.fud-v1:not(.fitco-standards-home) .standard-title {
  max-width: 18ch;
  font-size: clamp(2.1rem, 3.3vw, 2.85rem);
}

.case-study-main .case-study-title {
  max-width: 17ch;
  font-size: clamp(2.15rem, 3.4vw, 3rem);
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .case-study-main
) :where(.accent-word, .text-gradient, .highlight) {
  color: var(--ks-accent);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
}

:where(
  .fitco-knowledge-home .hero-desc,
  .fitco-testing-home .hero-desc,
  .fitco-standards-home .standard-lead,
  .fud-v1:not(.fitco-standards-home) .standard-lead,
  .fitco-articles-home .hero-desc,
  .case-study-main .case-study-subtitle
) {
  max-width: 64ch;
  margin-bottom: 1.65rem;
  color: var(--ks-ink-2);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.72;
}

:where(.fitco-knowledge-home, .fitco-testing-home) .hero-actions,
.fitco-standards-home .standards-home-actions,
.case-study-main .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

:where(
  .fitco-knowledge-home .hero-panel,
  .fitco-testing-home .hero-panel,
  .fitco-standards-home .standards-home-panel
) {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--ks-line-strong);
  border-radius: var(--ks-radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--ks-shadow);
}

:where(
  .fitco-knowledge-home .hero-panel,
  .fitco-testing-home .hero-panel,
  .fitco-standards-home .standards-home-panel
)::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--ks-accent);
}

:where(
  .fitco-knowledge-home .hero-panel-label,
  .fitco-testing-home .hero-panel-label,
  .fitco-standards-home .standards-home-panel-label
) {
  display: block;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--ks-line);
  color: var(--ks-muted);
  font-family: var(--ks-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:where(
  .fitco-knowledge-home .hero-panel-grid,
  .fitco-testing-home .hero-panel-grid,
  .fitco-standards-home .standards-home-panel-grid
) {
  display: grid;
  gap: 0.2rem;
}

:where(
  .fitco-knowledge-home .hero-panel-item,
  .fitco-testing-home .hero-panel-item,
  .fitco-standards-home .standards-home-panel-item
) {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 0 0.9rem 1rem;
  border-left: 2px solid rgba(var(--ks-accent-rgb), 0.35);
}

:where(
  .fitco-knowledge-home .hero-panel-item,
  .fitco-testing-home .hero-panel-item,
  .fitco-standards-home .standards-home-panel-item
) strong {
  color: var(--ks-ink);
  font-size: 0.94rem;
}

:where(
  .fitco-knowledge-home .hero-panel-item,
  .fitco-testing-home .hero-panel-item,
  .fitco-standards-home .standards-home-panel-item
) span {
  color: var(--ks-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.fud-v1 .standard-meta,
.case-study-main .industry-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.fud-v1 .meta-item,
.case-study-main .date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.72rem;
  border: 1px solid var(--ks-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ks-muted);
  font-family: var(--ks-mono);
  font-size: 0.74rem;
}

.fud-v1 .meta-icon {
  color: var(--ks-accent);
}

.fud-v1 .standard-image-wrapper {
  position: relative;
  display: grid;
  min-height: 300px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--ks-line-strong);
  border-radius: var(--ks-radius-lg);
  background: #fff;
  box-shadow: var(--ks-shadow);
}

.fud-v1 .standard-image-wrapper::after {
  content: "CALIBRATED METHOD";
  position: absolute;
  right: 1rem;
  bottom: 0.8rem;
  color: var(--ks-muted);
  font-family: var(--ks-mono);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
}

.fud-v1 .standard-image-wrapper img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  padding: clamp(1rem, 3vw, 2.5rem);
}

/* --------------------------------------------------------------------------
   SECTION SYSTEM + CARDS
   -------------------------------------------------------------------------- */

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) :where(.bento-section, .list-section, .cta-section) {
  padding-block: var(--ks-section);
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .list-section {
  border-block: 1px solid var(--ks-line);
  background: var(--ks-paper-2);
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) :where(.section-heading, .section-title) {
  font-size: clamp(1.7rem, 2.4vw, 2.25rem);
  line-height: 1.08;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) :where(.section-note) {
  max-width: 48ch;
  margin: 0;
  color: var(--ks-muted);
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) :where(.col-span-4, .md\:col-span-4) { grid-column: span 4; }

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) :where(.col-span-6) { grid-column: span 6; }

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) :where(.col-span-8, .md\:col-span-8) { grid-column: span 8; }

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .col-span-12 { grid-column: span 12; }

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .bento-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 220px;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(1.25rem, 2.7vw, 1.8rem);
  border: 1px solid var(--ks-line);
  border-radius: var(--ks-radius);
  background: var(--ks-paper);
  color: var(--ks-ink);
  text-decoration: none;
  box-shadow: var(--ks-shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .bento-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--ks-accent), transparent 72%);
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--ks-accent-rgb), 0.45);
  box-shadow: var(--ks-shadow);
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .bento-card .card-content {
  display: flex;
  height: 100%;
  flex-direction: column;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .bento-card .card-label {
  margin-bottom: 1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 0.68rem;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .bento-card :where(.card-title, h3) {
  margin-bottom: 0.8rem;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.18;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .bento-card :where(.card-desc, p) {
  margin-bottom: 1rem;
  color: var(--ks-muted);
  font-size: 0.94rem;
  line-height: 1.66;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .bento-card :where(.card-footer, .card-arrow) {
  margin-top: auto;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .card-arrow {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid var(--ks-line);
  border-radius: 50%;
  color: var(--ks-accent-deep);
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .bento-card.is-featured {
  border-color: transparent;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 52%),
    var(--ks-navy);
  color: #fff;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .bento-card.is-featured :where(h3, .card-title, .card-label, .card-link) {
  color: #fff;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .bento-card.is-featured :where(p, .card-desc, .card-meta) {
  color: rgba(255, 255, 255, 0.74);
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .bento-card.is-featured .card-arrow {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* Directory rows */
:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .list-container {
  overflow: hidden;
  border: 1px solid var(--ks-line);
  border-radius: var(--ks-radius);
  background: var(--ks-paper);
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) :where(.standard-item, .standard-item-row) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  min-height: 92px;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ks-line);
  color: var(--ks-ink);
  text-decoration: none;
  transition: background 150ms ease, padding-left 150ms ease;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) :where(.standard-item, .standard-item-row):last-child {
  border-bottom: 0;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) :where(.standard-item, .standard-item-row):hover {
  padding-left: 1.55rem;
  background: var(--ks-accent-soft);
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .item-content {
  display: grid;
  grid-template-columns: minmax(90px, 0.25fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-width: 0;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .item-code {
  color: var(--ks-accent-deep);
  font-family: var(--ks-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .item-title {
  font-size: 1rem;
  line-height: 1.35;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .item-action {
  color: var(--ks-muted);
  font-family: var(--ks-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   STANDARD DETAIL PAGES
   -------------------------------------------------------------------------- */

.fud-v1 .reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 9999;
  width: 0;
  height: 3px;
  background: var(--ks-accent);
}

.fud-v1 .standard-layout {
  display: grid;
  grid-template-columns: minmax(210px, 248px) minmax(0, var(--ks-reading));
  gap: clamp(2.5rem, 5vw, 5rem);
  justify-content: center;
  align-items: start;
  padding-block: var(--ks-section);
}

.fud-v1 .standard-toc {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border: 1px solid var(--ks-line);
  border-radius: var(--ks-radius);
  background: var(--ks-paper);
  box-shadow: var(--ks-shadow-sm);
}

.fud-v1 .standard-toc :is(h2, h3) {
  padding: 1rem 1.05rem;
  border-bottom: 1px solid var(--ks-line);
  background: var(--ks-paper-2);
  color: var(--ks-muted);
  font-family: var(--ks-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fud-v1 .standard-toc ul {
  max-height: min(64vh, 620px);
  overflow: auto;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
}

.fud-v1 .standard-toc li {
  margin: 0;
}

.fud-v1 .standard-toc a {
  display: block;
  padding: 0.58rem 0.68rem;
  border-left: 2px solid transparent;
  border-radius: 4px;
  color: var(--ks-muted);
  font-size: 0.78rem;
  line-height: 1.42;
  text-decoration: none;
}

.fud-v1 .standard-toc a:hover,
.fud-v1 .standard-toc a.active {
  border-left-color: var(--ks-accent);
  background: var(--ks-accent-soft);
  color: var(--ks-accent-deep);
}

.fud-v1 .standard-content {
  min-width: 0;
  counter-reset: ks-section;
}

.fud-v1 .standard-content > section {
  min-width: 0;
  padding-block: 0 3.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--ks-line);
  counter-increment: ks-section;
  scroll-margin-top: 110px;
}

.fud-v1 .standard-content > section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.fud-v1 .standard-content > section > .section-title:first-child::before {
  content: counter(ks-section, decimal-leading-zero);
  display: block;
  margin-bottom: 0.65rem;
  color: var(--ks-accent);
  font-family: var(--ks-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.fud-v1 .standard-content .section-title {
  margin-bottom: 1.25rem;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
}

.fud-v1 .standard-content h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.22rem;
  line-height: 1.3;
}

.fud-v1 .standard-content :where(p, li) {
  font-size: 1rem;
}

.fud-v1 .standard-content p {
  margin-bottom: 1.1rem;
}

.fud-v1 .standard-content :where(ul, ol):not(.stepped) {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
}

.fud-v1 .standard-callout,
.fud-v1 .callout,
.fud-v1 .tip {
  position: relative;
  margin-block: 1.5rem;
  padding: 1.15rem 1.2rem 1.15rem 1.35rem;
  border: 1px solid rgba(var(--ks-accent-rgb), 0.2);
  border-left: 4px solid var(--ks-accent);
  border-radius: 0 var(--ks-radius) var(--ks-radius) 0;
  background: var(--ks-accent-soft);
  color: var(--ks-ink-2);
}

.fud-v1 .standard-callout strong {
  color: var(--ks-accent-deep);
}

.fud-v1 .standard-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin-block: 1.5rem 2rem;
  border: 1px solid var(--ks-line);
  border-radius: var(--ks-radius);
  border-collapse: separate;
  border-spacing: 0;
  background: var(--ks-paper);
  -webkit-overflow-scrolling: touch;
}

.fud-v1 .standard-table :where(thead, tbody) {
  display: table;
  width: 100%;
  min-width: 640px;
  table-layout: fixed;
}

.fud-v1 .standard-table tr {
  display: table-row;
}

.fud-v1 .standard-table :where(th, td) {
  display: table-cell;
  padding: 0.9rem 1rem;
  border-right: 1px solid var(--ks-line);
  border-bottom: 1px solid var(--ks-line);
  color: var(--ks-ink-2);
  font-size: 0.86rem;
  line-height: 1.52;
  text-align: left;
  vertical-align: top;
  white-space: normal;
}

.fud-v1 .standard-table th {
  background: var(--ks-navy);
  color: #fff;
  font-family: var(--ks-mono);
  font-size: 0.71rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fud-v1 .standard-table :where(th, td):last-child {
  border-right: 0;
}

.fud-v1 .standard-table tbody tr:last-child td {
  border-bottom: 0;
}

.fud-v1 .stepped {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  counter-reset: ks-step;
}

.fud-v1 .stepped li {
  position: relative;
  min-height: 3.4rem;
  padding: 0.9rem 1rem 0.9rem 4rem;
  border: 1px solid var(--ks-line);
  border-radius: var(--ks-radius-sm);
  background: var(--ks-paper);
  counter-increment: ks-step;
}

.fud-v1 .stepped li::before {
  content: counter(ks-step, decimal-leading-zero);
  position: absolute;
  top: 0.85rem;
  left: 1rem;
  color: var(--ks-accent);
  font-family: var(--ks-mono);
  font-size: 0.76rem;
  font-weight: 700;
}

.fud-v1 .span-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.fud-v1 .span-card {
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid var(--ks-line);
  border-radius: var(--ks-radius-sm);
  background: var(--ks-paper-2);
}

.fud-v1 .span-card .th {
  margin-bottom: 0.75rem;
  color: var(--ks-ink);
  font-family: var(--ks-mono);
  font-weight: 700;
}

.fud-v1 .span-card .rows {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.45rem;
}

.fud-v1 .span-card .badge {
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  background: var(--ks-accent);
  color: #fff;
  font-family: var(--ks-mono);
  font-size: 0.68rem;
}

.fud-v1 .muted {
  color: var(--ks-muted);
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   CASE STUDY DETAIL
   -------------------------------------------------------------------------- */

.case-study-main {
  min-width: 0;
  overflow-x: clip;
}

.case-study-main .case-study-header .container {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.case-study-main .case-study-header .header-image:empty,
.case-study-main .case-study-header .header-image:not(:has(img)) {
  display: none;
}

.case-study-main .case-study-header .container:has(.header-image:empty),
.case-study-main .case-study-header .container:not(:has(.header-image img)) {
  grid-template-columns: minmax(0, 1fr);
}

.case-study-main .case-study-header .container:not(:has(.header-image img)) .header-content {
  width: min(1020px, 100%);
}

.case-study-main .case-study-header .container:not(:has(.header-image img)) .case-study-title {
  max-width: 22ch;
}

.case-study-main .header-image img {
  display: block;
  width: 100%;
  border: 1px solid var(--ks-line-strong);
  border-radius: var(--ks-radius-lg);
  background: #fff;
  box-shadow: var(--ks-shadow);
}

.case-study-main .key-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.case-study-main .metric {
  min-width: 0;
  padding: 1.05rem 0.75rem;
  border: 1px solid var(--ks-line);
  border-top: 3px solid var(--ks-accent);
  border-radius: var(--ks-radius-sm);
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  box-shadow: var(--ks-shadow-sm);
}

.case-study-main .metric-value {
  margin-bottom: 0.35rem;
  color: var(--ks-accent-deep);
  font-family: var(--ks-display);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1;
}

.case-study-main .metric-label {
  color: var(--ks-muted);
  font-family: var(--ks-mono);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.case-study-main > section {
  padding-block: var(--ks-section);
  border-bottom: 1px solid var(--ks-line);
}

.case-study-main > section:nth-of-type(even) {
  background: var(--ks-paper-2);
}

.case-study-main > section .section-title {
  margin-bottom: 1.75rem;
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
}

.case-study-main :where(.challenge-intro, .solution-intro, .results-intro, .lead-text) {
  max-width: 66ch;
  margin-bottom: 2rem;
  color: var(--ks-muted);
  font-size: 1.02rem;
}

.case-study-main :where(
  .challenge-grid,
  .utm-systems,
  .enhancement-grid,
  .results-grid,
  .compliance-grid,
  .standards-grid
) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.case-study-main :where(.results-grid, .compliance-grid) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-study-main :where(
  .client-card,
  .challenge-item,
  .utm-system,
  .enhancement-item,
  .result-item,
  .compliance-item,
  .standard-item,
  .standards-compliance,
  .tech-enhancements,
  .compliance-achievement
) {
  min-width: 0;
  padding: clamp(1.15rem, 2.6vw, 1.7rem);
  border: 1px solid var(--ks-line);
  border-radius: var(--ks-radius);
  background: var(--ks-paper);
  box-shadow: var(--ks-shadow-sm);
}

.case-study-main :where(.challenge-item, .utm-system, .enhancement-item, .result-item, .compliance-item) {
  position: relative;
  overflow: hidden;
}

.case-study-main :where(.challenge-item, .utm-system, .enhancement-item, .result-item, .compliance-item)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--ks-accent), transparent 72%);
}

.case-study-main :where(.challenge-item, .utm-system, .enhancement-item, .result-item, .compliance-item) :where(h3, h4) {
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.case-study-main :where(.challenge-item, .utm-system, .enhancement-item, .result-item, .compliance-item) p {
  margin-bottom: 0;
  color: var(--ks-muted);
  font-size: 0.9rem;
}

.case-study-main .challenge-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: var(--ks-radius-sm);
  background: var(--ks-accent-soft);
  color: var(--ks-accent-deep);
  font-size: 1.15rem;
}

/* Case-study capability cards are stacked evidence cards, not article
   directory rows. Explicit ownership prevents the shared `.standard-item`
   name from collapsing the first column when legacy article wrappers survive. */
.case-study-main .standards-grid .standard-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.45rem;
  align-content: start;
  min-height: 0;
}

.case-study-main .standards-grid .standard-item strong,
.case-study-main .standards-grid .standard-item span {
  display: block;
  min-width: 0;
}

.case-study-main .standards-grid .standard-item strong {
  color: var(--ks-ink);
  font-family: var(--ks-display);
  font-size: 1rem;
  line-height: 1.3;
}

.case-study-main .standards-grid .standard-item span {
  color: var(--ks-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

body.fitco-polymer-rheology-case .case-study-main .technical-capabilities .challenge-grid,
body.fitco-polymer-rheology-case .case-study-main .measurement-capabilities .standards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-study-main .utm-system ul {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.case-study-main .utm-system li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--ks-muted);
  font-size: 0.86rem;
}

.case-study-main .utm-system li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--ks-accent);
  font-weight: 800;
}

.case-study-main .result-item {
  text-align: left;
}

.case-study-main :where(.result-metric, .checkmark) {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--ks-accent-deep);
  font-family: var(--ks-display);
  font-size: clamp(1.5rem, 2.25vw, 2.05rem);
  font-weight: 800;
  line-height: 1;
}

.case-study-main .result-label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--ks-muted);
  font-family: var(--ks-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.case-study-main .client-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.case-study-main .detail-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--ks-line);
}

.case-study-main .detail-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ks-muted);
  font-family: var(--ks-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-study-main .testimonial {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--ks-line-strong);
  border-radius: var(--ks-radius-lg);
  background: var(--ks-navy);
  color: #fff;
  box-shadow: var(--ks-shadow);
}

.case-study-main .quote-mark {
  color: rgba(255, 255, 255, 0.22);
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 0.8;
}

.case-study-main .testimonial-text {
  color: #fff;
  font-family: var(--ks-display);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.55;
}

.case-study-main .testimonial-footer,
.case-study-main .testimonial-footer cite {
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--ks-mono);
  font-size: 0.74rem;
  font-style: normal;
}

.case-study-main .conclusion-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 1.5rem;
  align-items: stretch;
}

.case-study-main .conclusion-content,
.case-study-main .cta-content {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--ks-line);
  border-radius: var(--ks-radius);
  background: var(--ks-paper);
}

.case-study-main .cta-content {
  border-color: transparent;
  background: var(--ks-navy);
  color: #fff;
}

.case-study-main .cta-content :where(h3, p) {
  color: #fff;
}

.case-study-main .cta-content p {
  opacity: 0.72;
}

/* --------------------------------------------------------------------------
   ARTICLE SHELL + CTA FAMILY
   -------------------------------------------------------------------------- */

.fitco-article-page .article-shell,
.fitco-article-page .article-layout,
.fitco-article-page .article-content {
  min-width: 0;
}

.fitco-article-page .article-content {
  width: min(var(--ks-reading), calc(100% - 3rem));
  margin-inline: auto;
  padding-block: var(--ks-section);
}

.fitco-article-page .article-content :where(h2, h3) {
  margin: 2.4rem 0 0.85rem;
}

.fitco-article-page .article-content h2 {
  font-size: clamp(1.55rem, 2.3vw, 2rem);
}

.fitco-article-page .article-content p {
  margin-bottom: 1.15rem;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .cta-section {
  position: relative;
  overflow: hidden;
  border-top: 0;
  background-color: var(--ks-navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 85% 20%, rgba(var(--ks-accent-rgb), 0.42), transparent 34%);
  background-size: 28px 28px, 28px 28px, auto;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .cta-box {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .cta-box h3 {
  margin-bottom: 0.9rem;
  color: #fff;
  font-size: clamp(1.7rem, 2.7vw, 2.25rem);
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .cta-box p {
  max-width: 62ch;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.72);
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .cta-section :where(.btn-primary, .btn-outline) {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .cta-section .btn-primary {
  border-color: #fff;
  background: #fff;
  color: var(--ks-navy);
}

:where(
  .fitco-knowledge-home,
  .fitco-testing-home,
  .fitco-standards-home,
  .fud-v1,
  .fitco-articles-home,
  .fitco-article-page
) .cta-section .btn-outline {
  background: transparent;
}

/* --------------------------------------------------------------------------
   MOTION + RESPONSIVE
   -------------------------------------------------------------------------- */

.fitco-kc-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.fitco-kc-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1020px) {
  :where(.fitco-knowledge-home, .fitco-testing-home) .hero-layout,
  .fitco-standards-home .standard-header .container,
  .fud-v1:not(.fitco-standards-home) .standard-header .container,
  .case-study-main .case-study-header .container {
    grid-template-columns: minmax(0, 1fr);
  }

  :where(
    .fitco-knowledge-home .hero-panel,
    .fitco-testing-home .hero-panel,
    .fitco-standards-home .standards-home-panel,
    .fud-v1 .standard-image-wrapper
  ) {
    max-width: 760px;
  }

  .fud-v1 .standard-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .fud-v1 .standard-toc {
    position: static;
  }

  .fud-v1 .standard-toc ul {
    display: flex;
    max-height: none;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.6rem;
  }

  .fud-v1 .standard-toc li {
    flex: 0 0 auto;
  }

  .fud-v1 .standard-toc a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    max-width: 220px;
    border: 1px solid var(--ks-line);
    white-space: nowrap;
  }

  :where(
    .fitco-knowledge-home,
    .fitco-testing-home,
    .fitco-standards-home,
    .fud-v1,
    .fitco-articles-home,
    .fitco-article-page
  ) :where(.col-span-4, .md\:col-span-4, .col-span-6) {
    grid-column: span 6;
  }

  :where(
    .fitco-knowledge-home,
    .fitco-testing-home,
    .fitco-standards-home,
    .fud-v1,
    .fitco-articles-home,
    .fitco-article-page
  ) :where(.col-span-8, .md\:col-span-8) {
    grid-column: span 12;
  }

  .case-study-main :where(.challenge-grid, .utm-systems, .enhancement-grid, .standards-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-study-main :where(.results-grid, .compliance-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :where(
    .fitco-knowledge-home,
    .fitco-testing-home,
    .fitco-standards-home,
    .fud-v1,
    .fitco-articles-home,
    .fitco-article-page,
    .case-study-main
  ) :where(.container) {
    width: min(var(--ks-container), calc(100% - 2rem));
  }

  :where(
    .fitco-knowledge-home .hero,
    .fitco-testing-home .hero,
    .fitco-standards-home .standard-header,
    .fud-v1:not(.fitco-standards-home) .standard-header,
    .fitco-articles-home .articles-hero,
    .case-study-main .case-study-header
  ) {
    padding-block: 2.75rem;
    background-size: 22px 22px, 22px 22px, auto;
  }

  :where(
    .fitco-knowledge-home .hero-title,
    .fitco-testing-home .hero-title,
    .fitco-standards-home .standard-title,
    .fud-v1:not(.fitco-standards-home) .standard-title,
    .fitco-articles-home .hero-title,
    .case-study-main .case-study-title
  ) {
    max-width: none;
    font-size: clamp(2rem, 8.5vw, 2.6rem);
    line-height: 1.04;
  }

  .fud-v1 .standard-image-wrapper {
    min-height: 240px;
  }

  :where(
    .fitco-knowledge-home,
    .fitco-testing-home,
    .fitco-standards-home,
    .fud-v1,
    .fitco-articles-home,
    .fitco-article-page
  ) .section-header {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  :where(
    .fitco-knowledge-home,
    .fitco-testing-home,
    .fitco-standards-home,
    .fud-v1,
    .fitco-articles-home,
    .fitco-article-page
  ) .bento-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  :where(
    .fitco-knowledge-home,
    .fitco-testing-home,
    .fitco-standards-home,
    .fud-v1,
    .fitco-articles-home,
    .fitco-article-page
  ) :where(.col-span-4, .md\:col-span-4, .col-span-6, .col-span-8, .md\:col-span-8, .col-span-12) {
    grid-column: 1;
  }

  :where(
    .fitco-knowledge-home,
    .fitco-testing-home,
    .fitco-standards-home,
    .fud-v1,
    .fitco-articles-home,
    .fitco-article-page
  ) .bento-card {
    min-height: 0;
  }

  :where(
    .fitco-knowledge-home,
    .fitco-testing-home,
    .fitco-standards-home,
    .fud-v1,
    .fitco-articles-home,
    .fitco-article-page
  ) :where(.standard-item, .standard-item-row) {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
  }

  :where(
    .fitco-knowledge-home,
    .fitco-testing-home,
    .fitco-standards-home,
    .fud-v1,
    .fitco-articles-home,
    .fitco-article-page
  ) .item-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

  :where(
    .fitco-knowledge-home,
    .fitco-testing-home,
    .fitco-standards-home,
    .fud-v1,
    .fitco-articles-home,
    .fitco-article-page
  ) .item-action {
    white-space: normal;
  }

  .fud-v1 .standard-layout {
    padding-block: 3rem;
  }

  .fud-v1 .standard-content > section {
    padding-bottom: 2.6rem;
    margin-bottom: 2.6rem;
  }

  .fud-v1 .span-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-study-main .key-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-study-main :where(.challenge-grid, .utm-systems, .enhancement-grid, .results-grid, .compliance-grid, .standards-grid) {
    grid-template-columns: minmax(0, 1fr);
  }

  body.fitco-polymer-rheology-case .case-study-main .technical-capabilities .challenge-grid,
  body.fitco-polymer-rheology-case .case-study-main .measurement-capabilities .standards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-study-main .client-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-study-main .conclusion-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  :where(
    .fitco-knowledge-home,
    .fitco-testing-home,
    .fitco-standards-home,
    .fud-v1,
    .fitco-articles-home,
    .fitco-article-page,
    .case-study-main
  ) :where(.hero-actions, .standards-home-actions, .cta-actions, .cta-buttons) {
    align-items: stretch;
  }
}

@media (max-width: 460px) {
  :where(
    .fitco-knowledge-home,
    .fitco-testing-home,
    .fitco-standards-home,
    .fud-v1,
    .fitco-articles-home,
    .fitco-article-page,
    .case-study-main
  ) :where(.hero-actions, .standards-home-actions, .cta-actions, .cta-buttons) > * {
    width: 100%;
  }

  .case-study-main .metric {
    padding-inline: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(
    .fitco-knowledge-home,
    .fitco-testing-home,
    .fitco-standards-home,
    .fud-v1,
    .fitco-articles-home,
    .fitco-article-page,
    .case-study-main
  ) *,
  :where(
    .fitco-knowledge-home,
    .fitco-testing-home,
    .fitco-standards-home,
    .fud-v1,
    .fitco-articles-home,
    .fitco-article-page,
    .case-study-main
  ) *::before,
  :where(
    .fitco-knowledge-home,
    .fitco-testing-home,
    .fitco-standards-home,
    .fud-v1,
    .fitco-articles-home,
    .fitco-article-page,
    .case-study-main
  ) *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fitco-kc-reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .fud-v1 .reading-progress,
  .fud-v1 .standard-toc,
  :where(.fitco-knowledge-home, .fitco-testing-home, .fitco-standards-home, .fud-v1, .fitco-articles-home) .cta-section {
    display: none !important;
  }

  :where(.fitco-knowledge-home, .fitco-testing-home, .fitco-standards-home, .fud-v1, .fitco-articles-home, .case-study-main) {
    background: #fff !important;
    color: #000 !important;
  }

  .fud-v1 .standard-layout {
    display: block;
  }
}

/* ========================================================================== 
   CLEAN FRAGMENT COMPATIBILITY
   Theme-owned replacements for CSS formerly pasted into stored HTML.
   ========================================================================== */

/* Compact ASTM / ISO / FDA method documents. */
.fitco-standard-legacy .fitco-std {
  width: min(1080px, calc(100% - 3rem));
  margin-inline: auto;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--ks-ink-2);
  font-family: var(--ks-body);
  line-height: 1.7;
}

.fitco-standard-legacy .fitco-std .eyebrow {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--ks-line-strong);
  border-radius: 999px;
  background: var(--ks-accent-soft);
  color: var(--ks-accent-deep);
  font-family: var(--ks-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fitco-standard-legacy .fitco-std h1 {
  max-width: 24ch;
  margin: 0.8rem 0 0.75rem;
  color: var(--ks-ink);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.fitco-standard-legacy .fitco-std .dek { max-width: 70ch; color: var(--ks-ink-2); font-size: 1.06rem; }
.fitco-standard-legacy .fitco-std .metaline,
.fitco-standard-legacy .fitco-std .src { color: var(--ks-muted); font-family: var(--ks-mono); font-size: 0.76rem; }
.fitco-standard-legacy .fitco-std h2 { margin: 2.5rem 0 0.8rem; padding-top: 1.5rem; border-top: 1px solid var(--ks-line); font-size: clamp(1.5rem, 2.2vw, 1.95rem); }
.fitco-standard-legacy .fitco-std h3 { margin: 1.25rem 0 0.45rem; font-size: 1.12rem; }
.fitco-standard-legacy .fitco-std a { color: var(--ks-accent-deep); }

.fitco-standard-legacy .fitco-std :where(.toc, .card, .tip, details, .rel a) {
  border: 1px solid var(--ks-line);
  border-radius: var(--ks-radius);
  background: var(--ks-paper);
}

.fitco-standard-legacy .fitco-std .toc { margin: 1.5rem 0; padding: 1.25rem; background: var(--ks-paper-2); }
.fitco-standard-legacy .fitco-std .toc strong { display: block; margin-bottom: 0.6rem; color: var(--ks-ink); }
.fitco-standard-legacy .fitco-std .toc ul { columns: 2; margin: 0; padding-left: 1.2rem; }
.fitco-standard-legacy .fitco-std :where(.grid, .rel) { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-block: 1rem; }
.fitco-standard-legacy .fitco-std .card { padding: 1.15rem; box-shadow: var(--ks-shadow-sm); }
.fitco-standard-legacy .fitco-std .tip { margin-block: 1rem; padding: 1rem 1.15rem; border-left: 4px solid var(--ks-accent); background: var(--ks-accent-soft); }
.fitco-standard-legacy .fitco-std details { margin-block: 0.65rem; padding-inline: 1.1rem; }
.fitco-standard-legacy .fitco-std summary { padding-block: 0.9rem; cursor: pointer; color: var(--ks-ink); font-weight: 700; }
.fitco-standard-legacy .fitco-std .rel a { display: block; padding: 1rem; color: inherit; text-decoration: none; }
.fitco-standard-legacy .fitco-std .rel .k { color: var(--ks-accent); font-family: var(--ks-mono); font-size: 0.68rem; text-transform: uppercase; }
.fitco-standard-legacy .fitco-std .rel .t { display: block; margin-block: 0.3rem; color: var(--ks-ink); font-weight: 800; }
.fitco-standard-legacy .fitco-std table { width: 100%; margin-block: 1.25rem; border-collapse: collapse; font-size: 0.9rem; }
.fitco-standard-legacy .fitco-std :where(th, td) { padding: 0.75rem; border: 1px solid var(--ks-line); text-align: left; vertical-align: top; }
.fitco-standard-legacy .fitco-std th { background: var(--ks-navy); color: #fff; }
.fitco-standard-legacy .fitco-std tr:nth-child(even) td { background: var(--ks-paper-2); }
.fitco-standard-legacy .fitco-std .cta { margin-block: 2rem 1rem; padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: var(--ks-radius-lg); background: linear-gradient(145deg, var(--ks-navy), var(--ks-accent-deep)); color: #fff; text-align: center; }
.fitco-standard-legacy .fitco-std .cta :where(h3, p) { color: #fff; }
.fitco-standard-legacy .fitco-std .btn { display: inline-flex; margin: 0.4rem; padding: 0.75rem 1.25rem; border-radius: 8px; background: #fff; color: var(--ks-navy); font-weight: 800; text-decoration: none; }
.fitco-standard-legacy .fitco-std .btn.alt { border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; }

/* Legacy case-study directory, now rendered by the Knowledge System. */
.fitco-case-hub-clean { padding-bottom: clamp(3rem, 6vw, 5rem); }
.fitco-case-hub-clean > .case-hub-content { width: min(var(--ks-container), calc(100% - 3rem)); margin-inline: auto; }
.fitco-case-hub-clean .hero { padding: clamp(3rem, 6vw, 5rem) 0 2.5rem; text-align: center; }
.fitco-case-hub-clean .hero h1 { max-width: 22ch; margin: 0 auto 1rem; font-size: clamp(2.15rem, 3.5vw, 3rem); line-height: 1.08; }
.fitco-case-hub-clean .hero .lead { max-width: 66ch; margin-inline: auto; color: var(--ks-muted); font-size: 1.05rem; }
.fitco-case-hub-clean :where(.actions, .cta-actions) { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.25rem; }
.fitco-case-hub-clean .btn { display: inline-flex; padding: 0.75rem 1.15rem; border: 1px solid var(--ks-line-strong); border-radius: 8px; background: #fff; color: var(--ks-accent-deep); font-weight: 800; text-decoration: none; }
.fitco-case-hub-clean .btn.primary { border-color: var(--ks-accent); background: var(--ks-accent); color: #fff; }
.fitco-case-hub-clean .section { padding-block: 1.5rem; }
.fitco-case-hub-clean .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 680px; margin-inline: auto; }
.fitco-case-hub-clean .stat-card { padding: 1.5rem; border: 1px solid var(--ks-line); border-radius: var(--ks-radius); background: #fff; text-align: center; }
.fitco-case-hub-clean .stat-number { display: block; color: var(--ks-accent-deep); font: 800 clamp(1.75rem, 3vw, 2.25rem)/1 var(--ks-display); }
.fitco-case-hub-clean .stat-label { margin-top: 0.5rem; color: var(--ks-muted); font-size: 0.86rem; }
.fitco-case-hub-clean .grid-section > h2 { margin-bottom: 1.5rem; font-size: clamp(1.7rem, 2.5vw, 2.2rem); }
.fitco-case-hub-clean .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fitco-case-hub-clean .card { padding: 1.5rem; border: 1px solid var(--ks-line); border-radius: var(--ks-radius); background: #fff; box-shadow: var(--ks-shadow-sm); }
.fitco-case-hub-clean .card h3 { margin-block: 0.8rem; font-size: 1.2rem; }
.fitco-case-hub-clean .card p { color: var(--ks-muted); font-size: 0.92rem; }
.fitco-case-hub-clean .meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fitco-case-hub-clean .tag { padding: 0.25rem 0.55rem; border-radius: 999px; background: var(--ks-accent-soft); color: var(--ks-accent-deep); font: 700 0.68rem/1.3 var(--ks-mono); }
.fitco-case-hub-clean .card > a { color: var(--ks-accent-deep); font-weight: 800; }
.fitco-case-hub-clean .cta-block { padding: clamp(1.5rem, 4vw, 2.25rem); border: 1px solid var(--ks-line); border-radius: var(--ks-radius-lg); background: var(--ks-paper-2); text-align: center; }

/* Universal testing machine guide migrated from a 12KB inline stylesheet. */
.fitco-utm-guide { padding-bottom: 3rem; background: var(--ks-paper-2); }
.fitco-utm-guide .container { width: min(var(--ks-container), calc(100% - 3rem)); margin-inline: auto; }
.fitco-utm-guide .hero { padding: clamp(3rem, 5vw, 4.5rem) 0; border-bottom: 1px solid var(--ks-line); background: linear-gradient(180deg, #fff, var(--ks-paper-2)); }
.fitco-utm-guide .hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.fitco-utm-guide .eyebrow { display: inline-flex; color: var(--ks-accent-deep); font: 700 0.72rem/1.3 var(--ks-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.fitco-utm-guide .hero h1 { max-width: 18ch; margin-block: 0.8rem 1rem; font-size: clamp(2.15rem, 3.5vw, 3rem); line-height: 1.07; }
.fitco-utm-guide .accent { color: var(--ks-accent); }
.fitco-utm-guide .lead { max-width: 62ch; color: var(--ks-ink-2); font-size: 1.05rem; }
.fitco-utm-guide .hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.25rem; }
.fitco-utm-guide .btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.1rem; border: 1px solid var(--ks-line-strong); border-radius: 8px; background: #fff; color: var(--ks-accent-deep); font-weight: 800; text-decoration: none; }
.fitco-utm-guide .btn-primary { border-color: var(--ks-accent); background: var(--ks-accent); color: #fff; }
.fitco-utm-guide .hero-summary { margin-top: 1.25rem; color: var(--ks-muted); font-size: 0.9rem; }
.fitco-utm-guide .hero-image-panel { position: relative; overflow: hidden; min-height: 380px; border: 1px solid var(--ks-line); border-radius: var(--ks-radius-lg); background: #fff; }
.fitco-utm-guide .hero-image-panel img { width: 100%; height: 100%; max-height: 480px; object-fit: contain; padding: 1rem; }
.fitco-utm-guide .hero-stats-overlay { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ks-line); }
.fitco-utm-guide .hero-stat { padding: 0.8rem 0.5rem; text-align: center; }
.fitco-utm-guide .hero-stat + .hero-stat { border-left: 1px solid var(--ks-line); }
.fitco-utm-guide .hero-stat strong { display: block; color: var(--ks-accent-deep); font-family: var(--ks-display); }
.fitco-utm-guide .hero-stat span { color: var(--ks-muted); font-size: 0.68rem; }
.fitco-utm-guide .content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1.25rem; align-items: start; padding-block: 2rem; }
.fitco-utm-guide .article { display: grid; gap: 1rem; }
.fitco-utm-guide :where(.section-card, .tip-box, .cta, .toc) { padding: clamp(1.35rem, 3vw, 2rem); border: 1px solid var(--ks-line); border-radius: var(--ks-radius); background: #fff; }
.fitco-utm-guide .section-card h2,
.fitco-utm-guide :where(.tip-box, .cta) h2 { margin-bottom: 0.8rem; font-size: clamp(1.55rem, 2.3vw, 2rem); }
.fitco-utm-guide .section-card h3 { margin: 1.2rem 0 0.45rem; font-size: 1.08rem; }
.fitco-utm-guide .section-card :where(p, li),
.fitco-utm-guide :where(.tip-box, .cta) :where(p, li) { color: var(--ks-muted); font-size: 0.94rem; }
.fitco-utm-guide .check-list { display: grid; gap: 0.7rem; padding: 0; list-style: none; }
.fitco-utm-guide .check-list li { position: relative; padding-left: 1.5rem; }
.fitco-utm-guide .check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ks-accent); font-weight: 900; }
.fitco-utm-guide :where(.callout-grid, .model-grid, .faq-grid) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.fitco-utm-guide :where(.callout, .model-card, .faq-item) { padding: 1rem; border: 1px solid var(--ks-line); border-radius: 8px; background: var(--ks-paper-2); }
.fitco-utm-guide .spec-table-wrap { overflow-x: auto; }
.fitco-utm-guide table { width: 100%; border-collapse: collapse; background: #fff; }
.fitco-utm-guide :where(th, td) { padding: 0.8rem; border-bottom: 1px solid var(--ks-line); text-align: left; vertical-align: top; font-size: 0.84rem; }
.fitco-utm-guide th { background: var(--ks-accent-soft); color: var(--ks-accent-deep); }
.fitco-utm-guide .toc { position: sticky; top: calc(var(--p-header-offset, 80px) + 1rem); }
.fitco-utm-guide .toc h3 { margin-bottom: 0.8rem; font-size: 1rem; }
.fitco-utm-guide .toc ol { display: grid; gap: 0.55rem; margin: 0; padding-left: 1.1rem; }
.fitco-utm-guide .toc a { color: var(--ks-muted); font-size: 0.78rem; text-decoration: none; }
.fitco-utm-guide .tip-box { background: var(--ks-accent-soft); }
.fitco-utm-guide .cta { background: linear-gradient(145deg, var(--ks-navy), var(--ks-accent-deep)); }
.fitco-utm-guide .cta :where(h2, p, li) { color: #fff; }
.fitco-utm-guide > footer { color: var(--ks-muted); font-family: var(--ks-mono); font-size: 0.7rem; text-align: center; }

@media (max-width: 820px) {
  .fitco-case-hub-clean .grid,
  .fitco-utm-guide .hero-inner,
  .fitco-utm-guide .content-grid { grid-template-columns: 1fr; }
  .fitco-utm-guide .toc { position: static; order: -1; }
}

@media (max-width: 640px) {
  .fitco-standard-legacy .fitco-std,
  .fitco-case-hub-clean > .case-hub-content,
  .fitco-utm-guide .container { width: calc(100% - 2rem); }
  .fitco-standard-legacy .fitco-std .toc ul { columns: 1; }
  .fitco-case-hub-clean .stats,
  .fitco-case-hub-clean .grid,
  .fitco-utm-guide :where(.callout-grid, .model-grid, .faq-grid) { grid-template-columns: 1fr; }
  .fitco-utm-guide .hero-stats-overlay { grid-template-columns: 1fr; }
  .fitco-utm-guide .hero-stat + .hero-stat { border-left: 0; border-top: 1px solid var(--ks-line); }
}
