/* ==========================================================================
   Design Tokens & CSS Variables
   ========================================================================== */
:root {
  --primary: #37a44d;
  --primary-hover: #2e8b40;
  --primary-light: #eaf6ed;
  --primary-glow: rgba(55, 164, 77, 0.2);

  --bg-primary: #fbfcfa;
  --bg-secondary: #f3f7f4;
  --bg-card: #ffffff;
  --bg-card-elevated: #ffffff;
  --bg-input: #ffffff;

  --text-primary: #152217;
  --text-secondary: #48584b;
  --text-muted: #6f8272;
  --text-inverse: #ffffff;
  --text-primary-accent: #37a44d;

  --border-color: #dce5dd;
  --border-light: #e8efe9;
  --border-focus: #37a44d;

  --shadow-sm: 0 1px 3px rgba(21, 34, 23, 0.05);
  --shadow-md: 0 4px 16px rgba(21, 34, 23, 0.08);
  --shadow-lg: 0 10px 28px rgba(21, 34, 23, 0.12);

  --font-family-base: "Georgia", serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
  --font-family-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --transition-speed: 0.2s;
  --transition-fn: ease-in-out;
}

html.dark {
  --primary: #37a44d;
  --primary-hover: #43be5c;
  --primary-light: #162c1b;
  --primary-glow: rgba(55, 164, 77, 0.35);

  --bg-primary: #0e1510;
  --bg-secondary: #141e16;
  --bg-card: #19251c;
  --bg-card-elevated: #1f2d22;
  --bg-input: #121b13;

  --text-primary: #edf5ee;
  --text-secondary: #b0c2b2;
  --text-muted: #798f7c;
  --text-inverse: #0e1510;
  --text-primary-accent: #52c469;

  --border-color: #27382a;
  --border-light: #1e2d21;
  --border-focus: #52c469;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   Base & Viewport Resets
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family-base);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Global Typography
   ========================================================================== */
p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

ul, ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.375rem;
  color: var(--text-secondary);
}

h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  line-height: 1.25;
  margin-top: 1.75rem;
  margin-bottom: 0.625rem;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.35rem);
  line-height: 1.3;
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

a {
  color: var(--text-primary-accent);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-fn);
}

a:hover, a:focus-visible {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.tech-directory-canvas {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.primary-directory-wrapper {
  max-width: 1140px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem;
  overflow-x: hidden;
}

/* ==========================================================================
   Masthead Navigation Bar
   ========================================================================== */
.masthead-navigation-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.masthead-inner-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-identity-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-family-ui);
  font-weight: 700;
  font-size: 1.05rem;
  min-height: 44px;
}

.brand-identity-anchor:hover, .brand-identity-anchor:focus-visible {
  text-decoration: none;
  color: var(--primary);
}

.brand-logo-emblem {
  display: block;
  flex-shrink: 0;
}

.brand-logotype-text {
  letter-spacing: -0.02em;
}

.nav-search-dock {
  flex: 1 1 200px;
  max-width: 320px;
  display: flex;
  align-items: center;
}

.search-input-field {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-family: var(--font-family-ui);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-speed) var(--transition-fn),
              box-shadow var(--transition-speed) var(--transition-fn);
}

.search-input-field:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-input-field::placeholder {
  color: var(--text-muted);
}

.nav-directory-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-family-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-fn),
              background-color var(--transition-speed) var(--transition-fn);
}

.nav-section-link:hover, .nav-section-link:focus-visible {
  color: var(--primary);
  background-color: var(--primary-light);
  text-decoration: none;
}

.theme-switch-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-speed) var(--transition-fn),
              border-color var(--transition-speed) var(--transition-fn),
              background-color var(--transition-speed) var(--transition-fn);
}

.theme-switch-trigger:hover, .theme-switch-trigger:focus-visible {
  color: var(--primary);
  border-color: var(--border-focus);
}

.theme-mode-symbol {
  display: block;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.directory-hero-banner {
  width: 100%;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 3rem 1.25rem 2.5rem;
  text-align: center;
}

.hero-content-frame {
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge-pill {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-family-ui);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  margin-bottom: 0.75rem;
}

.hero-primary-headline {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.hero-exploratory-lede {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ==========================================================================
   Editorial Author Bio Card
   ========================================================================== */
.editorial-author-card {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-sm);
}

.author-portrait-wrapper {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-light);
}

.curator-profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-narrative-block {
  flex: 1 1 auto;
}

.author-display-name {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 1.35rem;
}

.author-title-badge {
  font-family: var(--font-family-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.625rem;
}

.author-biography-copy {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.author-social-links {
  display: flex;
  align-items: center;
}

.author-network-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-family-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  min-height: 44px;
  text-decoration: none;
}

.author-network-anchor:hover, .author-network-anchor:focus-visible {
  color: var(--primary);
  border-color: var(--border-focus);
  background-color: var(--primary-light);
  text-decoration: none;
}

.network-svg-icon {
  flex-shrink: 0;
}

/* ==========================================================================
   Contact Inquiry Section & Form
   ========================================================================== */
.inquiry-card-dock {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-sm);
}

.inquiry-header-group {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1.75rem;
}

.inquiry-lead-heading {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.inquiry-subtext-note {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.inquiry-dispatch-form {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-input-element {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.field-label-text {
  font-family: var(--font-family-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.field-text-input,
.field-textarea-input {
  width: 100%;
  padding: 0.65rem 0.875rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-family-ui);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-speed) var(--transition-fn),
              box-shadow var(--transition-speed) var(--transition-fn);
}

.field-text-input {
  min-height: 44px;
}

.field-textarea-input {
  resize: vertical;
  min-height: 100px;
}

.field-text-input:focus,
.field-textarea-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.inquiry-action-button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.5rem;
  background-color: var(--primary);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-ui);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-speed) var(--transition-fn),
              box-shadow var(--transition-speed) var(--transition-fn);
}

.inquiry-action-button:hover,
.inquiry-action-button:focus-visible {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Directory Footer
   ========================================================================== */
.directory-footer-panel {
  width: 100%;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding: 3rem 1.25rem 2rem;
}

.footer-columns-quad {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
}

.footer-profile-column {
  display: flex;
  flex-direction: column;
}

.footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-logo-glyph {
  display: block;
  flex-shrink: 0;
}

.footer-brand-title {
  font-family: var(--font-family-ui);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-mission-statement {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

.footer-column-heading {
  font-family: var(--font-family-ui);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.footer-links-listing {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-listing li {
  margin-bottom: 0.25rem;
}

.footer-anchor-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-family-ui);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-fn);
}

.footer-anchor-item:hover,
.footer-anchor-item:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.footer-disclaimer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.footer-copyright-statement {
  font-family: var(--font-family-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
  .footer-columns-quad {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  .masthead-inner-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .brand-identity-anchor {
    justify-content: space-between;
  }

  .nav-search-dock {
    max-width: 100%;
    order: 3;
  }

  .nav-directory-links {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .theme-switch-trigger {
    position: absolute;
    top: 0.75rem;
    right: 1.25rem;
  }

  .editorial-author-card {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .author-social-links {
    justify-content: center;
  }

  .inquiry-action-button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .footer-columns-quad {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .inquiry-card-dock {
    padding: 1.5rem 1rem;
  }

  .editorial-author-card {
    padding: 1.5rem 1rem;
  }
}

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

/* ==========================================================================
   CSS Variables & Foundations
   ========================================================================== */
:root {
  --brand-primary: #37a44d;
  --brand-primary-hover: #2f8e42;
  --brand-primary-subtle: #f0fdf4;
  --brand-primary-border: #bbf7d0;
  --brand-accent: #277837;

  --surface-canvas: #f8fafc;
  --surface-card: #ffffff;
  --surface-card-highlight: #fcfdfd;
  --surface-row-alt: #fbfcfe;
  --surface-muted: #f1f5f9;
  --surface-border: #e2e8f0;
  --surface-border-subtle: #edf2f7;

  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-inverse: #ffffff;

  --rating-star-color: #f59e0b;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #991b1b;
  --success-text: #166534;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-focus: 0 0 0 3px rgba(55, 164, 77, 0.25);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

[data-theme="dark"],
.dark {
  --surface-canvas: #090d16;
  --surface-card: #111827;
  --surface-card-highlight: #131d2e;
  --surface-row-alt: #161f30;
  --surface-muted: #1e293b;
  --surface-border: #334155;
  --surface-border-subtle: #1e293b;

  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --brand-primary-subtle: rgba(55, 164, 77, 0.12);
  --brand-primary-border: rgba(55, 164, 77, 0.35);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 20px rgba(0, 0, 0, 0.5);

  --danger-bg: rgba(239, 68, 68, 0.1);
  --danger-border: rgba(239, 68, 68, 0.3);
  --danger-text: #fca5a5;
  --success-text: #86efac;
}

/* ==========================================================================
   Section Layouts & General Reset within Blocks
   ========================================================================== */
.benchmark-comparison-section,
.directory-showcase-section {
  padding: 3rem 0;
  width: 100%;
}

.benchmark-container-frame,
.showcase-container-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.benchmark-section-header,
.showcase-header-dock {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.benchmark-kicker-label,
.showcase-kicker-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
  background: var(--brand-primary-subtle);
  border: 1px solid var(--brand-primary-border);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.benchmark-main-title,
.showcase-primary-headline {
  color: var(--text-main);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.benchmark-subtitle-copy,
.showcase-description-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Benchmark Comparison Table Styles (Mobile-first Scroller)
   ========================================================================== */
.benchmark-table-scroller,
.agency-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.25rem;
}

.benchmark-tabular-grid,
table.agency-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
  color: var(--text-body);
}

.benchmark-head-row,
table.agency-table th {
  background-color: var(--surface-muted);
  border-bottom: 2px solid var(--surface-border);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

.benchmark-tabular-grid th,
.benchmark-tabular-grid td,
table.agency-table th,
table.agency-table td {
  padding: 1rem 1.125rem;
  vertical-align: top;
  border-bottom: 1px solid var(--surface-border-subtle);
}

.benchmark-body-row:last-child td {
  border-bottom: none;
}

.benchmark-body-row:hover,
table.agency-table tbody tr:hover {
  background-color: var(--surface-row-alt);
}

/* Featured / Promoted Row (SmartSites) */
.benchmark-row-featured {
  background-color: var(--brand-primary-subtle);
  position: relative;
}

.benchmark-row-featured td {
  border-bottom-color: var(--brand-primary-border);
}

/* Agency Identity Column */
.agency-badge-cluster {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}

.agency-rank-indicator {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--brand-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}

.agency-rank-numeral {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text-muted);
  border: 1px solid var(--surface-border);
}

.agency-display-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.125rem;
}

.agency-classification-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Rating Column */
.rating-value-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rating-score-digit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.rating-stars-visual {
  color: var(--rating-star-color);
  letter-spacing: 0.1em;
  font-size: 0.9375rem;
  line-height: 1;
}

.rating-count-reference {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Features Checklist */
.feature-checklist-group {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-checklist-group li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  font-size: 0.875rem;
}

.feature-checklist-group li:last-child {
  margin-bottom: 0;
}

.feature-checklist-group li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--brand-primary);
}

/* Pricing Column */
.pricing-structure-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pricing-entry-tier {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
}

.pricing-model-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Table CTAs & Footnote */
.benchmark-primary-cta,
.benchmark-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.benchmark-primary-cta {
  background-color: var(--brand-primary);
  color: var(--text-inverse);
  box-shadow: 0 2px 4px rgba(55, 164, 77, 0.25);
}

.benchmark-primary-cta:hover {
  background-color: var(--brand-primary-hover);
  transform: translateY(-1px);
}

.benchmark-secondary-cta {
  background-color: transparent;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}

.benchmark-secondary-cta:hover {
  background-color: var(--brand-primary-subtle);
  transform: translateY(-1px);
}

.benchmark-guarantee-note {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
  text-align: center;
}

.benchmark-footnote-wrapper {
  padding: 0 0.5rem;
}

.benchmark-footnote-copy {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   Review Listing Cards Deck
   ========================================================================== */
.agency-cards-deck {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.agency-card-item {
  background-color: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.agency-card-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--surface-border);
}

/* Featured Card Promotion (SmartSites) */
.agency-card-featured {
  border: 2px solid var(--brand-primary);
  position: relative;
  background-color: var(--surface-card-highlight);
  box-shadow: var(--shadow-md);
}

.agency-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--surface-border-subtle);
}

.agency-header-details {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.agency-card-header .agency-badge-cluster {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.agency-rank-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  background-color: var(--surface-muted);
  color: var(--text-body);
  border: 1px solid var(--surface-border);
}

.agency-rank-winner {
  background-color: var(--brand-primary);
  color: var(--text-inverse);
  border-color: var(--brand-primary);
  box-shadow: 0 2px 6px rgba(55, 164, 77, 0.3);
}

.agency-credential-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  background-color: var(--brand-primary-subtle);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary-border);
}

.agency-entity-name {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.25rem 0 0;
  line-height: 1.2;
}

.agency-score-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
}

.agency-score-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.agency-stars-meter {
  color: var(--rating-star-color);
  letter-spacing: 0.1em;
  font-size: 1rem;
  margin-top: 0.25rem;
}

.agency-review-tally {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.agency-summary-blurb {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: 1.25rem 0;
}

/* Evaluation Columns (Pros & Cons) */
.agency-evaluation-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0 1.5rem;
}

.evaluation-pros-panel,
.evaluation-cons-panel {
  border-radius: var(--radius-md);
  padding: 1.125rem 1.25rem;
}

.evaluation-pros-panel {
  background: var(--brand-primary-subtle);
  border: 1px solid var(--brand-primary-border);
}

.evaluation-cons-panel {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
}

.evaluation-column-heading {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.625rem 0;
}

.evaluation-pros-panel .evaluation-column-heading {
  color: var(--success-text);
}

.evaluation-cons-panel .evaluation-column-heading {
  color: var(--danger-text);
}

.evaluation-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.evaluation-bullet-list li {
  position: relative;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-body);
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
}

.evaluation-bullet-list li:last-child {
  margin-bottom: 0;
}

.evaluation-pros-panel .evaluation-bullet-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-primary);
  font-weight: bold;
}

.evaluation-cons-panel .evaluation-bullet-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--danger-text);
  font-weight: bold;
}

/* Card Action Dock */
.agency-action-dock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--surface-border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.agency-cta-meta {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.agency-pricing-hint {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
}

.agency-cta-guarantee {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.agency-primary-cta-link,
.agency-secondary-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.agency-primary-cta-link {
  background-color: var(--brand-primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 6px -1px rgba(55, 164, 77, 0.35);
}

.agency-primary-cta-link:hover {
  background-color: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -1px rgba(55, 164, 77, 0.45);
}

.agency-secondary-cta-link {
  background-color: transparent;
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
}

.agency-secondary-cta-link:hover {
  background-color: var(--brand-primary-subtle);
  transform: translateY(-1px);
}

/* ==========================================================================
   Editorial Content & Secondary Listing Blocks (Bottom Section)
   ========================================================================== */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.pros-box {
  background: var(--brand-primary-subtle);
  border: 1px solid var(--brand-primary-border);
  padding: 1.125rem 1.25rem;
  border-radius: var(--radius-md);
}

.cons-box {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  padding: 1.125rem 1.25rem;
  border-radius: var(--radius-md);
}

.pros-box h4 {
  color: var(--success-text);
  margin: 0 0 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.cons-box h4 {
  color: var(--danger-text);
  margin: 0 0 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

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

.pros-box ul li,
.cons-box ul li {
  position: relative;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-body);
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
}

.pros-box ul li:last-child,
.cons-box ul li:last-child {
  margin-bottom: 0;
}

.pros-box ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-primary);
  font-weight: bold;
}

.cons-box ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--danger-text);
  font-weight: bold;
}

.cta-link {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background-color: var(--brand-primary);
  color: var(--text-inverse) !important;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.cta-link:hover {
  background-color: var(--brand-primary-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Responsive Adaptations & Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
  .benchmark-tabular-grid th,
  .benchmark-tabular-grid td,
  table.agency-table th,
  table.agency-table td {
    padding: 0.875rem 0.75rem;
    font-size: 0.875rem;
  }

  .agency-card-item {
    padding: 1.25rem;
  }

  .agency-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
  }

  .agency-score-badge {
    align-items: flex-start;
    text-align: left;
  }

  .agency-evaluation-columns,
  .pros-cons-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .agency-action-dock {
    flex-direction: column;
    align-items: stretch;
  }

  .agency-primary-cta-link,
  .agency-secondary-cta-link,
  .cta-link {
    width: 100%;
    text-align: center;
  }
}