/* ==========================================================================
   SWISS MINIMAL SYSTEM PASS — CAPGEMINI ALTERNATIVES (2026)
   Strict Grid · Flat Surfaces · Functional Color · Zero Superfluous Ornament
   ========================================================================== */

/* --- Document Baseline & Precision Resets --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  text-rendering: optimizeLegibility;
}

body {
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: var(--font-sans);
  line-height: 1.55;
  letter-spacing: -0.011em;
}

/* Subtle single entrance motion conforming to reduced motion rules */
@media (prefers-reduced-motion: no-preference) {
  .f4c8-stage-core {
    animation: f4c8-swiss-entry 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes f4c8-swiss-entry {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* --- Refined Header Navigation --- */
.f4c8-nav-strip {
  border-bottom: 1px solid var(--color-border);
  padding: 0.85rem 1.75rem;
}

.f4c8-brand-lockup {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  color: var(--color-text);
  text-transform: uppercase;
}

.f4c8-brand-lockup svg {
  border-radius: var(--radius-ctl);
}

.f4c8-route-set a {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-ctl);
}

.f4c8-route-set a:hover {
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.06);
}

/* --- Hero Treatment: Light, Architectural, Clear --- */
.f4c8-title-stage {
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
}

.f4c8-title-stage::before {
  opacity: 0.04;
}

.f4c8-stage-core {
  padding: 4.8rem 1.5rem 4.2rem;
  max-width: 820px;
}

.f4c8-stage-core::before {
  content: "";
  display: block;
  width: 32px;
  height: 4px;
  background: var(--color-primary);
  margin-bottom: 1.4rem;
  border-radius: 0;
}

.f4c8-review-date {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.f4c8-title-stage h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--color-text);
  margin: 0 0 1.1rem;
}

.f4c8-title-stage p:not(.f4c8-review-date) {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 0 2rem;
}

.f4c8-lead-action {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color-primary);
  color: #ffffff;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-btn);
  box-shadow: none;
  border: 1px solid var(--color-primary);
}

.f4c8-lead-action:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

/* --- Content Hub Architecture --- */
.f4c8-content-hub {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

/* Structural isolation of nested containers inside longform body */
.f4c8-content-hub .container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.f4c8-content-hub header {
  display: none; /* Suppress duplicate nested doc header */
}

/* Headings in Long-Form Article */
.f4c8-content-hub h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin: 2.8rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.f4c8-content-hub h2::before {
  content: "—";
  color: var(--color-primary);
  font-weight: 800;
}

.f4c8-content-hub h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin: 1.8rem 0 0.5rem;
}

.f4c8-content-hub h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 1.4rem 0 0.5rem;
}

/* Body Text & Compact Rhythms */
.f4c8-content-hub p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0 0 0.9rem;
}

.f4c8-content-hub p strong {
  font-weight: 700;
  color: var(--color-text);
}

.f4c8-content-hub a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.f4c8-content-hub a:hover {
  color: var(--color-primary-dark);
}

/* Structured Article Sections */
.intro-section,
.capgemini-section,
.methodology {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.8rem;
  margin: 1.8rem 0;
  box-shadow: none;
}

.intro-section {
  border-left: 3px solid var(--color-primary);
}

.capgemini-section {
  border-left: 3px solid var(--color-accent);
}

.methodology {
  border-left: 3px solid var(--color-text-muted);
}

.intro-section h2,
.capgemini-section h2,
.methodology h2 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.intro-section h2::before,
.capgemini-section h2::before,
.methodology h2::before {
  content: none;
}

/* Informational Callouts / Swiss Highlight Box */
.f4c8-content-hub .highlight,
.f4c8-content-hub blockquote {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-card);
  padding: 1.1rem 1.4rem;
  margin: 1.6rem 0;
  font-size: 0.94rem;
  color: var(--color-text);
}

.f4c8-content-hub blockquote p {
  margin: 0;
  color: var(--color-text);
  font-style: normal;
}

/* Clean Editorial Lists */
.f4c8-content-hub ul,
.f4c8-content-hub ol {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
}

.f4c8-content-hub li {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

/* In-Article Editorial Tables (Swiss Matrix Layout) */
.f4c8-content-hub table:not(.f4c8-sw-grid) {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0 2.2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-bg);
  font-size: 0.88rem;
  overflow: hidden;
}

.f4c8-content-hub table:not(.f4c8-sw-grid) th {
  background: var(--color-bg-card);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.f4c8-content-hub table:not(.f4c8-sw-grid) td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: top;
  line-height: 1.45;
}

.f4c8-content-hub table:not(.f4c8-sw-grid) tr:last-child td {
  border-bottom: none;
}

.f4c8-content-hub table:not(.f4c8-sw-grid) tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

html.dark .f4c8-content-hub table:not(.f4c8-sw-grid) tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Secondary Editorial Ranking Blocks (Articles listicle items) */
.ranking-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  margin-bottom: 1.8rem;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  border-color: rgba(var(--color-primary-rgb), 0.35);
  box-shadow: var(--shadow-card-hover);
}

.ranking-item.featured {
  border: 2px solid var(--color-primary);
  background: var(--color-bg);
  position: relative;
}

.ranking-item.featured::after {
  content: "BEST IN CLASS";
  position: absolute;
  top: -11px;
  right: 18px;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 2px 10px;
  border-radius: var(--radius-ctl);
}

.ranking-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.85rem;
}

.ranking-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-text-muted);
  background: transparent;
  width: auto;
  height: auto;
  border-radius: 0;
  margin-right: 0;
  letter-spacing: -0.04em;
}

.ranking-item.featured .ranking-number {
  color: var(--color-primary);
  background: transparent;
}

.ranking-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.2;
}

.ranking-subtitle {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  font-style: normal;
  margin: 0.2rem 0 0;
}

/* Editorial Pros & Cons Modules */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.2rem 0;
}

.pros, .cons {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-card);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.pros {
  border-top: 3px solid var(--color-success);
}

.cons {
  border-top: 3px solid var(--color-danger);
}

.pros h4, .cons h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.pros h4 { color: var(--color-success); }
.cons h4 { color: var(--color-danger); }

.pros ul, .cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros li, .cons li {
  font-size: 0.86rem;
  line-height: 1.45;
  margin-bottom: 0.4rem;
  padding-left: 1.2rem;
  position: relative;
}

.pros li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-success);
  font-weight: 800;
}

.cons li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-danger);
  font-weight: 800;
}

/* In-Article CTA Buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  background: var(--color-primary);
  color: #ffffff;
  border: 1px solid var(--color-primary);
  margin-top: 0.8rem;
  margin-right: 0.5rem;
  transition: all 0.2s ease;
}

.cta-button:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

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

.cta-button.secondary:hover {
  border-color: var(--color-text);
  background: rgba(0, 0, 0, 0.03);
}

/* FAQ Swiss Accordion Styling */
.faq-section {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  margin-top: 2rem;
  box-shadow: none;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.2rem 0;
  margin-bottom: 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
  color: var(--color-text);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.faq-item h3::before {
  content: "Q";
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-ctl);
  padding: 1px 5px;
  line-height: 1.2;
}

.faq-answer {
  border-left: 2px solid var(--color-border);
  padding-left: 1rem;
  margin-top: 0.4rem;
}

.faq-answer p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* --- Section Rhythm: Editorial & Contact Blocks --- */
#f4c8-byline-note,
#f4c8-message-desk {
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  box-shadow: none;
  margin: 3.5rem auto;
  border-radius: var(--radius-card);
}

#f4c8-byline-note:hover,
#f4c8-message-desk:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(var(--color-primary-rgb), 0.35);
}

.f4c8-bio-panel img {
  border-radius: var(--radius-card);
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  border: 1px solid var(--color-border);
}

#f4c8-byline-note:hover img {
  filter: grayscale(0%);
}

.f4c8-msg-heading {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Form refinement */
#f4c8-inquiry-form input,
#f4c8-inquiry-form textarea {
  border-radius: var(--radius-ctl);
  font-size: 0.9rem;
}

/* --- Clean Swiss Finished Footer --- */
.f4c8-end-strip {
  background: var(--footer-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4.5rem 1.5rem 2rem;
  margin-top: 4rem;
}

.f4c8-end-strip .f4c8-brand-lockup {
  color: #ffffff;
}

.f4c8-end-strip p {
  max-width: 520px;
  margin: 0.75rem auto 1.8rem;
  color: var(--footer-text);
  font-size: 0.86rem;
  line-height: 1.55;
  opacity: 0.8;
}

.f4c8-end-nav {
  gap: 0.5rem 1.4rem;
  margin-bottom: 1rem;
}

.f4c8-end-nav a {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-text);
  opacity: 0.7;
}

.f4c8-end-nav a:hover {
  opacity: 1;
  color: var(--color-primary);
}

.f4c8-base-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.8rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* --- Responsive Cleanups (480px, 768px, 1024px) --- */
@media (max-width: 1024px) {
  .f4c8-content-hub {
    padding: 2.8rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .f4c8-stage-core {
    padding: 3.2rem 1.2rem;
  }

  .f4c8-title-stage h1 {
    font-size: 1.95rem;
  }

  .f4c8-content-hub h2 {
    font-size: 1.35rem;
  }

  .pros-cons {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .f4c8-person-row {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .f4c8-content-hub table:not(.f4c8-sw-grid) {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .f4c8-content-hub table:not(.f4c8-sw-grid) th,
  .f4c8-content-hub table:not(.f4c8-sw-grid) td {
    padding: 0.6rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .f4c8-nav-strip {
    padding: 0.75rem 1rem;
  }

  .f4c8-brand-lockup {
    font-size: 0.92rem;
  }

  .ranking-header {
    flex-direction: column;
    gap: 0.35rem;
  }

  .cta-button {
    width: 100%;
    margin-right: 0;
  }
}

/* === CSS CONTENT === */

/* ==========================================================================
   Capgemini Alternatives 2026 — Swiss Minimalist Data Components
   Aesthetic: Strict grid, flat surfaces, functional color, zero decoration.
   Targeting: #f4c8-rank-table (Matrix) & #f4c8-best-choices (Listings Cards)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SHARED DESIGN SYSTEM UNIFICATION & TYPOGRAPHY
   -------------------------------------------------------------------------- */
#f4c8-rank-table,
#f4c8-best-choices {
  font-family: var(--font-sans);
  color: var(--color-text);
  box-sizing: border-box;
  width: 100%;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

#f4c8-rank-table *,
#f4c8-best-choices * {
  box-sizing: border-box;
}

/* Section Intros */
.f4c8-sw-intro,
.f4c8-section-lead {
  border-left: 3px solid var(--color-primary);
  padding: 0.25rem 0 0.25rem 1rem;
  margin-bottom: 1.5rem;
}

.f4c8-sw-kicker,
.f4c8-lead-kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.f4c8-sw-heading,
.f4c8-lead-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.f4c8-sw-sub,
.f4c8-lead-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 680px;
}

/* --------------------------------------------------------------------------
   2. COMPARISON TABLE: #f4c8-rank-table
   -------------------------------------------------------------------------- */
#f4c8-rank-table {
  margin-top: 2.2rem;
  margin-bottom: 2.5rem;
  overflow: visible !important;
}

.f4c8-sw-grid {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-bg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* Header Row */
.f4c8-sw-grid thead th {
  background: var(--color-bg-card);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}

.f4c8-sw-grid thead th:last-child {
  border-right: none;
}

/* Table Body Rows */
.f4c8-sw-grid tbody tr {
  transition: background-color 0.15s ease;
  background: var(--color-bg);
}

.f4c8-sw-grid tbody tr:hover {
  background-color: rgba(var(--color-primary-rgb), 0.025);
}

.f4c8-sw-grid td {
  padding: 0.9rem 0.8rem;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  vertical-align: middle;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--color-text);
}

.f4c8-sw-grid td:last-child {
  border-right: none;
}

.f4c8-sw-grid tbody tr:last-child td {
  border-bottom: none;
}

/* Rank Numerals (Swiss Baseline Precision) */
.f4c8-sw-col-rank {
  width: 56px;
  text-align: center;
}

.f4c8-sw-rank-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

/* Item Column & Swiss Winner Stamp */
.f4c8-sw-col-item {
  width: 32%;
}

.f4c8-sw-name-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.f4c8-sw-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.25;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.f4c8-sw-best-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--color-primary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-ctl);
  line-height: 1;
}

/* Spec Column */
.f4c8-sw-col-spec {
  width: 26%;
}

.f4c8-sw-spec-line {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.f4c8-sw-spec-val {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.35;
}

.f4c8-sw-spec-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Benchmark Score with Thin Data-Bar */
.f4c8-sw-col-score {
  width: 18%;
}

.f4c8-sw-score-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.f4c8-sw-score-meta {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  line-height: 1;
}

.f4c8-sw-score-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.f4c8-sw-score-max {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.f4c8-sw-bar-track {
  width: 100%;
  height: 3px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}

.f4c8-sw-bar-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 999px;
}

/* Table Button */
.f4c8-sw-col-act {
  width: 15%;
  text-align: right;
}

.f4c8-sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-btn);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.f4c8-sw-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.06);
  transform: translateY(-1px);
}

/* #1 Winner Row Emphasis */
.f4c8-sw-row-winner {
  background: rgba(var(--color-primary-rgb), 0.035);
}

.f4c8-sw-row-winner .f4c8-sw-rank-num {
  color: var(--color-primary);
}

.f4c8-sw-row-winner .f4c8-sw-name {
  color: var(--color-text);
  font-weight: 800;
}

.f4c8-sw-row-winner .f4c8-sw-bar-fill {
  background: var(--color-primary);
}

.f4c8-sw-row-winner .f4c8-sw-btn {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.2);
}

.f4c8-sw-row-winner .f4c8-sw-btn:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   3. LISTINGS CARDS: #f4c8-best-choices
   -------------------------------------------------------------------------- */
#f4c8-best-choices {
  margin-top: 3.2rem;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.f4c8-eval-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.85rem 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.f4c8-eval-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(var(--color-primary-rgb), 0.4);
  transform: translateY(-2px);
}

/* Winner Card Hierarchy: Svitla Systems */
.f4c8-eval-card.f4c8-award-lead {
  border: 2px solid var(--color-primary);
  background: var(--color-bg);
}

/* Swiss Modernist Stamp Label */
.f4c8-badge-stamp {
  position: absolute;
  top: -11px;
  right: 20px;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-ctl);
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.28);
}

/* Card Header Cluster */
.f4c8-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.15rem;
}

/* Oversized Rank Numeral */
.f4c8-rank-index {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 0.85;
  color: var(--color-text-muted);
  opacity: 0.45;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.f4c8-award-lead .f4c8-rank-index {
  color: var(--color-primary);
  opacity: 1;
}

.f4c8-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.f4c8-eyebrow-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.f4c8-award-lead .f4c8-eyebrow-tag {
  color: var(--color-primary);
}

.f4c8-entity-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.f4c8-entity-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.f4c8-entity-name a:hover {
  color: var(--color-primary);
}

/* Metric / Rating Score Display */
.f4c8-score-unit {
  text-align: right;
  min-width: 105px;
}

.f4c8-score-flex {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.2rem;
  margin-bottom: 0.35rem;
  line-height: 1;
}

.f4c8-score-val {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.f4c8-score-out {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.f4c8-meter-track {
  width: 100%;
  height: 3px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}

.f4c8-meter-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 999px;
}

.f4c8-award-lead .f4c8-meter-fill {
  background: var(--color-primary);
}

/* Summary Block */
.f4c8-card-summary {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
}

.f4c8-card-summary strong {
  color: var(--color-text);
  font-weight: 650;
}

/* Monospaced Metadata Ledger with Dotted Leaders */
.f4c8-spec-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.75rem;
  padding: 0.85rem 0;
  border-top: 1px dashed var(--color-border);
  border-bottom: 1px dashed var(--color-border);
  margin-bottom: 1.35rem;
  font-size: 0.82rem;
}

.f4c8-ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  overflow: hidden;
}

.f4c8-ledger-term {
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.f4c8-leader-dot {
  flex-grow: 1;
  border-bottom: 1px dotted var(--color-border);
  margin: 0 0.45rem;
  transform: translateY(-3px);
}

.f4c8-ledger-val {
  color: var(--color-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Verdict / Pros & Cons Grid */
.f4c8-verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}

.f4c8-verdict-col h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0 0 0.6rem;
  color: var(--color-text-muted);
}

.f4c8-pro-list,
.f4c8-con-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.f4c8-pro-list li,
.f4c8-con-list li {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--color-text);
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 7px;
}

.f4c8-pro-list li:last-child,
.f4c8-con-list li:last-child {
  margin-bottom: 0;
}

.f4c8-pro-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-success);
  font-weight: 800;
  font-size: 0.85rem;
}

.f4c8-con-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-danger);
  font-weight: 800;
  font-size: 0.85rem;
}

/* Card Action Footer */
.f4c8-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.f4c8-meta-footnote {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.f4c8-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-btn);
  font-size: 0.86rem;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.f4c8-action-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.05);
  transform: translateY(-1px);
}

.f4c8-award-lead .f4c8-action-link {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(var(--color-primary-rgb), 0.24);
}

.f4c8-award-lead .f4c8-action-link:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #ffffff;
  box-shadow: 0 5px 16px rgba(var(--color-primary-rgb), 0.32);
}

/* --------------------------------------------------------------------------
   4. RESPONSIVE BEHAVIOR & CELL-BY-CELL REFLOW (BELOW 768px)
   Guarantees zero horizontal scrolling on all mobile viewports.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Override table layout to full stacked block model */
  #f4c8-rank-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible !important;
  }

  .f4c8-sw-grid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
  }

  .f4c8-sw-grid thead {
    display: none !important;
  }

  .f4c8-sw-grid tbody {
    display: block !important;
    width: 100% !important;
  }

  .f4c8-sw-grid tbody tr {
    display: block !important;
    width: 100% !important;
    position: relative;
    padding: 1.1rem 1rem 1rem !important;
    border-bottom: 2px solid var(--color-border);
  }

  .f4c8-sw-grid tbody tr:last-child {
    border-bottom: none;
  }

  .f4c8-sw-grid td {
    display: block !important;
    width: 100% !important;
    padding: 0.35rem 0 !important;
    border-right: none !important;
    border-bottom: none !important;
    text-align: left;
  }

  /* Rank placed in top right corner of stacked card row */
  .f4c8-sw-col-rank {
    position: absolute !important;
    top: 1rem;
    right: 1rem;
    width: auto !important;
    padding: 0 !important;
    text-align: right !important;
  }

  .f4c8-sw-rank-num {
    font-size: 1.5rem;
    line-height: 1;
  }

  .f4c8-sw-col-item {
    padding-right: 3.5rem !important;
    margin-bottom: 0.45rem;
  }

  /* Data Rows with Dotted Dividers & Automatic Captions */
  .f4c8-sw-col-spec,
  .f4c8-sw-col-score {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px dotted var(--color-border) !important;
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
    gap: 0.75rem;
  }

  .f4c8-sw-grid td::before {
    content: attr(data-label);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    flex-shrink: 0;
  }

  .f4c8-sw-col-rank::before,
  .f4c8-sw-col-item::before,
  .f4c8-sw-col-act::before {
    content: none !important;
  }

  .f4c8-sw-spec-line {
    align-items: flex-end;
    text-align: right;
  }

  .f4c8-sw-score-box {
    width: 130px;
    align-items: flex-end;
  }

  .f4c8-sw-col-act {
    margin-top: 0.65rem;
    padding-top: 0.45rem !important;
  }

  .f4c8-sw-btn {
    width: 100%;
    padding: 0.65rem 1rem;
  }

  /* Listings Cards Mobile Reflow */
  .f4c8-eval-card {
    padding: 1.5rem 1.15rem;
  }

  .f4c8-card-head {
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
  }

  .f4c8-score-unit {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 0.2rem;
  }

  .f4c8-score-flex {
    margin-bottom: 0;
  }

  .f4c8-meter-track {
    max-width: 140px;
  }

  .f4c8-spec-ledger {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
  }

  .f4c8-verdict-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.15rem;
  }

  .f4c8-card-foot {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.85rem;
  }

  .f4c8-action-link {
    width: 100%;
    padding: 0.75rem 1.2rem;
  }

  .f4c8-badge-stamp {
    right: 14px;
    top: -10px;
    font-size: 0.6rem;
    padding: 3px 8px;
  }
}

/* --------------------------------------------------------------------------
   5. DARK MODE FIDELITY
   -------------------------------------------------------------------------- */
html.dark .f4c8-sw-grid {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}

html.dark .f4c8-sw-grid thead th {
  background: rgba(0, 0, 0, 0.2);
  border-color: var(--color-border);
}

html.dark .f4c8-sw-grid td {
  border-color: var(--color-border);
}

html.dark .f4c8-sw-grid tbody tr {
  background: var(--color-bg-card);
}

html.dark .f4c8-sw-grid tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

html.dark .f4c8-sw-row-winner {
  background: rgba(var(--color-primary-rgb), 0.08);
}

html.dark .f4c8-eval-card {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}

html.dark .f4c8-eval-card.f4c8-award-lead {
  background: rgba(var(--color-primary-rgb), 0.04);
  border-color: var(--color-primary);
}

html.dark .f4c8-sw-btn,
html.dark .f4c8-action-link {
  color: var(--color-text);
  border-color: var(--color-border);
}

html.dark .f4c8-sw-btn:hover,
html.dark .f4c8-action-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.12);
}