/*
Theme Name: Product Decision Core GP Child
Description: Reusable GeneratePress child theme for source-backed, data-driven product decision sites. Provides tested visual presets, layout roles, responsive decision components, and WordPress shell integration; keeps product data, tools, tracking, and approval logic in plugins.
Author: Product Decision SEO System
Template: generatepress
Version: 1.3.1
Text Domain: smart-shade-planner-gp-child
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
*/

/* -------------------------------------------------------------------------
   Site tokens
   Future sites should customize this section first, then reuse the shell below.
   ------------------------------------------------------------------------- */

:root {
  --pds-canvas: #f7f8f6;
  --pds-panel: #eef4f0;
  --pds-surface: #ffffff;
  --pds-surface-soft: #fbfcfb;
  --pds-text: #24313a;
  --pds-heading: #16251f;
  --pds-muted: #5f6f77;
  --pds-border: #d9e1dc;
  --pds-border-soft: #edf1ee;
  --pds-brand: #1f4d3a;
  --pds-brand-strong: #17392b;
  --pds-brand-ink: #0e241a;
  --pds-brand-rgb: 31, 77, 58;
  --pds-brand-strong-rgb: 23, 57, 43;
  --pds-accent: #b9893b;
  --pds-accent-rgb: 185, 137, 59;
  --pds-accent-soft: #fff7e8;
  --pds-accent-text: #6f4d16;
  --pds-link: #1d5f88;
  --pds-link-hover: #174866;
  --pds-focus: #0b57d0;
  --ssp-bg: #f7f8f6;
  --ssp-bg-panel: var(--pds-panel);
  --ssp-surface: var(--pds-surface);
  --ssp-surface-soft: var(--pds-surface-soft);
  --ssp-text: var(--pds-text);
  --ssp-heading: var(--pds-heading);
  --ssp-muted: var(--pds-muted);
  --ssp-border: var(--pds-border);
  --ssp-border-soft: var(--pds-border-soft);
  --ssp-primary: #1f4d3a;
  --ssp-primary-dark: #17392b;
  --ssp-primary-ink: var(--pds-brand-ink);
  --ssp-accent: #b9893b;
  --ssp-accent-soft: var(--pds-accent-soft);
  --ssp-accent-text: var(--pds-accent-text);
  --ssp-link: var(--pds-link);
  --ssp-link-hover: var(--pds-link-hover);
  --ssp-focus: var(--pds-focus);
  --ssp-shell-max: 1280px;
  --ssp-content-max: 1120px;
  --ssp-text-max: 860px;
  --ssp-tool-max: 1180px;
  --ssp-radius: 8px;
  --ssp-radius-small: 6px;
  --ssp-transition: 160ms ease;
  --ssp-shadow: 0 14px 40px rgba(var(--pds-brand-rgb), 0.07);
  --ssp-shadow-soft: 0 8px 24px rgba(var(--pds-brand-rgb), 0.05);
  --ssp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* -------------------------------------------------------------------------
   Base shell
   ------------------------------------------------------------------------- */

body.ssp-site-shell,
body.ssp-site-shell * ,
body.ssp-site-shell *::before,
body.ssp-site-shell *::after {
  box-sizing: border-box;
}

body.ssp-site-shell {
  background: var(--ssp-bg);
  color: var(--ssp-text);
  font-family: var(--ssp-font);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.ssp-site-shell a {
  color: var(--ssp-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

body.ssp-site-shell a:hover,
body.ssp-site-shell a:focus {
  color: var(--ssp-link-hover);
}

body.ssp-site-shell a:focus-visible,
body.ssp-site-shell button:focus-visible,
body.ssp-site-shell input:focus-visible,
body.ssp-site-shell select:focus-visible,
body.ssp-site-shell textarea:focus-visible {
  outline: 3px solid var(--ssp-focus);
  outline-offset: 2px;
}

body.ssp-site-shell img,
body.ssp-site-shell svg,
body.ssp-site-shell video,
body.ssp-site-shell iframe {
  max-width: 100%;
  height: auto;
}

body.ssp-site-shell #page,
body.ssp-site-shell .site,
body.ssp-site-shell .grid-container,
body.ssp-site-shell .site.grid-container,
body.ssp-site-shell .container.grid-container,
body.ssp-site-shell .site-content.grid-container {
  max-width: var(--ssp-shell-max);
}

body.ssp-site-shell #page,
body.ssp-site-shell .site,
body.ssp-site-shell .site-content,
body.ssp-site-shell .content-area,
body.ssp-site-shell .site-main,
body.ssp-site-shell article,
body.ssp-site-shell .entry-content {
  min-width: 0;
}

/* -------------------------------------------------------------------------
   Header and navigation
   ------------------------------------------------------------------------- */

body.ssp-site-shell .site-header {
  position: relative;
  z-index: 20;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95)),
    var(--ssp-surface);
  border-bottom: 1px solid var(--ssp-border);
  box-shadow: 0 10px 28px rgba(var(--pds-brand-rgb), 0.04);
}

body.ssp-site-shell .inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--ssp-shell-max);
  margin-left: auto;
  margin-right: auto;
  padding: 22px 28px;
}

body.ssp-site-shell .site-branding {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.ssp-site-shell:not(.wp-custom-logo) .site-branding {
  position: relative;
  padding-left: 46px;
}

body.ssp-site-shell:not(.wp-custom-logo) .site-branding::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ssp-primary);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(var(--pds-brand-rgb), 0.45) 48%, rgba(var(--pds-brand-rgb), 0.45) 52%, transparent 52%),
    linear-gradient(180deg, transparent 48%, rgba(var(--pds-brand-rgb), 0.45) 48%, rgba(var(--pds-brand-rgb), 0.45) 52%, transparent 52%),
    #ffffff;
  box-shadow: 0 8px 18px rgba(var(--pds-brand-rgb), 0.12);
  transform: translateY(-50%);
}

body.ssp-site-shell .site-logo {
  margin-right: 12px;
}

body.ssp-site-shell .main-title,
body.ssp-site-shell .main-title a {
  color: var(--ssp-primary-dark);
  font-size: 30px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.15;
}

body.ssp-site-shell .site-description {
  color: var(--ssp-muted);
  font-size: 15px;
}

body.ssp-site-shell .main-navigation {
  background: transparent;
  border-top: 0;
  box-shadow: none;
}

body.ssp-site-shell .main-navigation ul ul {
  background: #ffffff;
}

body.ssp-site-shell .main-navigation .inside-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: var(--ssp-shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

body.ssp-site-shell .main-navigation .main-nav > ul,
body.ssp-site-shell .main-navigation .menu-primary-container > ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.ssp-site-shell .main-navigation .main-nav ul li,
body.ssp-site-shell .main-navigation .menu-primary-container ul li {
  display: block;
  float: none;
  margin: 0;
}

body.ssp-site-shell .main-navigation .main-nav ul li a,
body.ssp-site-shell .main-navigation .menu-primary-container ul li a {
  display: block;
  min-height: 40px;
  line-height: 40px;
  padding-left: 14px;
  padding-right: 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ssp-text);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition:
    background-color var(--ssp-transition),
    border-color var(--ssp-transition),
    color var(--ssp-transition);
}

body.ssp-site-shell .main-navigation .main-nav ul li:hover > a,
body.ssp-site-shell .main-navigation .main-nav ul li:focus > a,
body.ssp-site-shell .main-navigation .main-nav ul li.sfHover > a,
body.ssp-site-shell .main-navigation .menu-primary-container ul li:hover > a,
body.ssp-site-shell .main-navigation .menu-primary-container ul li:focus > a {
  background: var(--ssp-bg-panel);
  color: var(--ssp-primary-dark);
  border-color: var(--ssp-border);
}

body.ssp-site-shell .main-navigation .main-nav ul li.current-menu-item > a,
body.ssp-site-shell .main-navigation .main-nav ul li.current-menu-ancestor > a {
  background: var(--ssp-primary-dark);
  color: #ffffff;
  border-color: var(--ssp-primary-dark);
}

body.ssp-site-shell .main-navigation .menu-bar-items,
body.ssp-site-shell .main-navigation .mobile-bar-items {
  color: var(--ssp-primary-dark);
}

body.ssp-site-shell .menu-toggle {
  min-height: 46px;
  line-height: 46px;
  padding-left: 16px;
  padding-right: 16px;
  background: var(--ssp-primary-dark);
  color: #ffffff;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 650;
}

/* GeneratePress still prints mobile navigation controls when the assigned
   wp_nav_menu() has no fallback. Hide only those empty controls; preserve
   possible search/menu-bar items and automatically restore navigation as
   soon as a real Primary Menu is assigned. */
body.ssp-site-shell.ssp-no-primary-menu #site-navigation .menu-toggle,
body.ssp-site-shell.ssp-no-primary-menu .mobile-menu-control-wrapper .menu-toggle {
  display: none !important;
}

/* Parent mobile focus/hover colors can otherwise turn an opened toggle into
   a near-white button with a white close icon. Keep every interactive state
   legible when a real Primary Menu exists. */
body.ssp-site-shell.ssp-has-primary-menu #site-navigation .menu-toggle:hover,
body.ssp-site-shell.ssp-has-primary-menu #site-navigation .menu-toggle:focus,
body.ssp-site-shell.ssp-has-primary-menu #site-navigation .menu-toggle:active,
body.ssp-site-shell.ssp-has-primary-menu .mobile-menu-control-wrapper .menu-toggle:hover,
body.ssp-site-shell.ssp-has-primary-menu .mobile-menu-control-wrapper .menu-toggle:focus,
body.ssp-site-shell.ssp-has-primary-menu .mobile-menu-control-wrapper .menu-toggle:active {
  background-color: var(--ssp-primary-dark);
  color: #ffffff;
}

body.ssp-site-shell .main-navigation ul ul {
  min-width: 220px;
  border: 1px solid var(--ssp-border);
  box-shadow: 0 16px 30px rgba(var(--pds-brand-strong-rgb), 0.16);
}

body.ssp-site-shell .main-navigation ul ul li a {
  min-height: 42px;
  line-height: 42px;
  border-radius: 0;
}

body.ssp-site-shell .main-navigation .main-nav ul li a::after,
body.ssp-site-shell .main-navigation .menu-primary-container ul li a::after {
  display: none;
}

body.ssp-site-shell .ssp-header-note {
  color: var(--ssp-muted);
  font-size: 14px;
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   GeneratePress layout normalization
   ------------------------------------------------------------------------- */

body.ssp-site-shell .site-content {
  display: block;
  padding: 42px 28px 54px;
}

body.ssp-site-shell .content-area,
body.ssp-site-shell #primary,
body.ssp-site-shell.right-sidebar .site-content .content-area,
body.ssp-site-shell.left-sidebar .site-content .content-area,
body.ssp-site-shell.both-sidebars .site-content .content-area {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}

body.ssp-site-shell.right-sidebar .site-content .site-main,
body.ssp-site-shell.left-sidebar .site-content .site-main,
body.ssp-site-shell.both-sidebars .site-content .site-main,
body.ssp-site-shell.separate-containers .site-main {
  margin-left: auto !important;
  margin-right: auto !important;
}

body.ssp-site-shell.single-post #right-sidebar,
body.ssp-site-shell.single-post #left-sidebar,
body.ssp-site-shell.single-post .is-right-sidebar,
body.ssp-site-shell.single-post .is-left-sidebar,
body.ssp-site-shell.single-post .site-content .widget-area,
body.ssp-site-shell.ssp-tool-page-shell #right-sidebar,
body.ssp-site-shell.ssp-tool-page-shell #left-sidebar,
body.ssp-site-shell.ssp-tool-page-shell .site-content .widget-area,
body.ssp-site-shell.ssp-has-smart-shade-tool #right-sidebar,
body.ssp-site-shell.ssp-has-smart-shade-tool #left-sidebar,
body.ssp-site-shell.ssp-has-smart-shade-tool .site-content .widget-area {
  display: none !important;
  width: 0 !important;
  flex: 0 0 0 !important;
}

body.ssp-site-shell .inside-article,
body.ssp-site-shell .page-header,
body.ssp-site-shell .comments-area {
  width: min(var(--ssp-content-max), calc(100% - 48px));
  max-width: var(--ssp-content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 54px 68px;
  border: 1px solid var(--ssp-border-soft);
  background: var(--ssp-surface);
  box-shadow: var(--ssp-shadow);
}

body.ssp-site-shell.blog .inside-article,
body.ssp-site-shell.archive .inside-article,
body.ssp-site-shell.search .inside-article {
  margin-bottom: 24px;
  padding: 34px 40px;
}

body.ssp-site-shell.blog .entry-title,
body.ssp-site-shell.archive .entry-title,
body.ssp-site-shell.search .entry-title {
  font-size: 28px;
}

body.ssp-site-shell.blog .entry-summary,
body.ssp-site-shell.archive .entry-summary,
body.ssp-site-shell.search .entry-summary {
  max-width: var(--ssp-text-max);
}

body.ssp-site-shell.blog .entry-meta,
body.ssp-site-shell.archive .entry-meta,
body.ssp-site-shell.search .entry-meta {
  display: none;
}

body.ssp-site-shell.ssp-tool-page-shell .inside-article,
body.ssp-site-shell.ssp-has-smart-shade-tool .inside-article {
  width: min(var(--ssp-tool-max), calc(100% - 48px));
  max-width: var(--ssp-tool-max);
}

body.ssp-site-shell .entry-content > p,
body.ssp-site-shell .entry-content > ul,
body.ssp-site-shell .entry-content > ol,
body.ssp-site-shell .entry-content > blockquote,
body.ssp-site-shell .entry-content > figure:not(.alignwide):not(.alignfull) {
  max-width: var(--ssp-text-max);
}

body.ssp-site-shell .entry-content > .alignwide {
  width: 100%;
  max-width: 100%;
}

body.ssp-site-shell .entry-content > .alignfull {
  width: calc(100% + 136px);
  max-width: calc(100% + 136px);
  margin-left: -68px;
  margin-right: -68px;
}

/* -------------------------------------------------------------------------
   Front page shell
   Gives a new/empty site a finished-looking public entry instead of the
   default WordPress "Nothing Found" state.
   ------------------------------------------------------------------------- */

body.ssp-site-shell .ssp-front-page {
  padding: 42px 28px 58px;
}

body.ssp-site-shell.ssp-front-page-active .site-content {
  padding: 0;
}

body.ssp-site-shell .ssp-front-shell {
  width: min(var(--ssp-content-max), calc(100% - 48px));
  max-width: var(--ssp-content-max);
  margin: 0 auto;
}

body.ssp-site-shell .ssp-front-shell > .ssp-front-static .inside-article {
  width: 100%;
  max-width: none;
}

body.ssp-site-shell .ssp-front-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 34px;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--ssp-border);
  border-radius: var(--ssp-radius);
  background:
    linear-gradient(135deg, rgba(var(--pds-brand-rgb), 0.08), rgba(var(--pds-accent-rgb), 0.11)),
    var(--ssp-surface);
  box-shadow: var(--ssp-shadow);
}

body.ssp-site-shell .ssp-front-hero h1 {
  margin: 0 0 18px;
  color: var(--ssp-heading);
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: 0;
}

body.ssp-site-shell .ssp-front-hero p {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: 18px;
}

body.ssp-site-shell .ssp-front-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

body.ssp-site-shell .ssp-front-meta li {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--ssp-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ssp-primary-ink);
  font-size: 14px;
  font-weight: 700;
}

body.ssp-site-shell .ssp-hero-visual {
  padding: 22px;
  border: 1px solid var(--ssp-border);
  border-radius: var(--ssp-radius);
  background: var(--ssp-surface);
  box-shadow: var(--ssp-shadow-soft);
}

body.ssp-site-shell .ssp-front-section {
  margin-top: 34px;
}

body.ssp-site-shell .ssp-front-section h2 {
  color: var(--ssp-primary-dark);
  font-size: 28px;
  line-height: 1.2;
}

body.ssp-site-shell .ssp-front-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

body.ssp-site-shell .ssp-front-card {
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--ssp-border);
  border-radius: var(--ssp-radius);
  background: var(--ssp-surface);
  box-shadow: var(--ssp-shadow-soft);
}

body.ssp-site-shell .ssp-front-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--ssp-primary-dark);
  font-size: 20px;
}

body.ssp-site-shell .ssp-front-card p {
  margin-bottom: 0;
  color: var(--ssp-text);
  font-size: 16px;
}

body.ssp-site-shell .ssp-card-thumb {
  overflow: hidden;
  margin: 0 0 14px;
  border: 1px solid var(--ssp-border);
  border-radius: var(--ssp-radius-small);
  background: var(--ssp-bg-panel);
  aspect-ratio: 16 / 9;
}

body.ssp-site-shell .ssp-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.ssp-site-shell .ssp-front-note {
  margin-top: 30px;
  padding: 16px 18px;
  border: 1px solid var(--ssp-border);
  border-left: 4px solid var(--ssp-accent);
  border-radius: var(--ssp-radius);
  background: var(--ssp-accent-soft);
  color: var(--ssp-primary-ink);
}

body.ssp-site-shell .ssp-featured-grid,
body.ssp-site-shell .ssp-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

body.ssp-site-shell .ssp-featured-card,
body.ssp-site-shell .ssp-latest-card {
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--ssp-border);
  border-radius: var(--ssp-radius);
  background: var(--ssp-surface);
  box-shadow: var(--ssp-shadow-soft);
}

body.ssp-site-shell .ssp-featured-card h3,
body.ssp-site-shell .ssp-latest-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--ssp-primary-dark);
  font-size: 20px;
  line-height: 1.25;
}

body.ssp-site-shell .ssp-featured-card h3 a,
body.ssp-site-shell .ssp-latest-card h3 a {
  color: inherit;
  text-decoration: none;
}

body.ssp-site-shell .ssp-featured-card h3 a:hover,
body.ssp-site-shell .ssp-featured-card h3 a:focus,
body.ssp-site-shell .ssp-latest-card h3 a:hover,
body.ssp-site-shell .ssp-latest-card h3 a:focus {
  color: var(--ssp-link-hover);
  text-decoration: underline;
}

body.ssp-site-shell .ssp-featured-card p,
body.ssp-site-shell .ssp-latest-card p {
  margin-bottom: 0;
  color: var(--ssp-text);
  font-size: 15px;
}

body.ssp-site-shell .ssp-decision-grid,
body.ssp-site-shell .ssp-category-grid,
body.ssp-site-shell .ssp-tool-grid,
body.ssp-site-shell .ssp-category-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

body.ssp-site-shell .ssp-category-grid,
body.ssp-site-shell .ssp-tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.ssp-site-shell .ssp-decision-card,
body.ssp-site-shell .ssp-category-card,
body.ssp-site-shell .ssp-tool-card,
body.ssp-site-shell .ssp-category-post-card {
  position: relative;
  display: block;
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--ssp-border);
  border-radius: var(--ssp-radius);
  background: var(--ssp-surface);
  color: var(--ssp-text);
  text-decoration: none;
  box-shadow: var(--ssp-shadow-soft);
  transition:
    transform var(--ssp-transition),
    border-color var(--ssp-transition),
    box-shadow var(--ssp-transition);
}

body.ssp-site-shell a.ssp-decision-card:hover,
body.ssp-site-shell a.ssp-decision-card:focus,
body.ssp-site-shell a.ssp-category-card:hover,
body.ssp-site-shell a.ssp-category-card:focus,
body.ssp-site-shell a.ssp-tool-card:hover,
body.ssp-site-shell a.ssp-tool-card:focus,
body.ssp-site-shell .ssp-featured-card:hover,
body.ssp-site-shell .ssp-featured-card:focus-within,
body.ssp-site-shell .ssp-category-post-card:hover,
body.ssp-site-shell .ssp-category-post-card:focus-within {
  border-color: rgba(var(--pds-brand-rgb), 0.34);
  box-shadow: 0 14px 34px rgba(var(--pds-brand-rgb), 0.09);
  transform: translateY(-1px);
}

body.ssp-site-shell .ssp-decision-card.is-disabled,
body.ssp-site-shell .ssp-category-card.is-disabled,
body.ssp-site-shell .ssp-tool-card.is-disabled {
  background: linear-gradient(180deg, #ffffff, #fbfcfb);
  color: var(--ssp-text);
  opacity: 0.92;
}

body.ssp-site-shell .ssp-decision-card h3,
body.ssp-site-shell .ssp-category-card h3,
body.ssp-site-shell .ssp-tool-card h3,
body.ssp-site-shell .ssp-category-post-card h4 {
  margin: 0 0 8px;
  color: var(--ssp-primary-dark);
  font-size: 20px;
  line-height: 1.25;
}

body.ssp-site-shell .ssp-category-post-card h4 {
  font-size: 18px;
}

body.ssp-site-shell .ssp-category-post-card h4 a {
  color: inherit;
  text-decoration: none;
}

body.ssp-site-shell .ssp-category-post-card h4 a:hover,
body.ssp-site-shell .ssp-category-post-card h4 a:focus {
  color: var(--ssp-link-hover);
  text-decoration: underline;
}

body.ssp-site-shell .ssp-decision-card p,
body.ssp-site-shell .ssp-category-card p,
body.ssp-site-shell .ssp-tool-card p,
body.ssp-site-shell .ssp-category-post-card p {
  margin: 0;
  color: var(--ssp-text);
  font-size: 15px;
  line-height: 1.55;
}

body.ssp-site-shell .ssp-card-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 12px;
  padding: 3px 8px;
  border: 1px solid var(--ssp-border);
  border-radius: 999px;
  background: var(--ssp-bg-panel);
  color: var(--ssp-primary-dark);
  font-size: 12px;
  font-weight: 750;
}

body.ssp-site-shell .ssp-tool-card.is-disabled .ssp-card-status,
body.ssp-site-shell .ssp-category-card.is-disabled .ssp-card-status {
  background: var(--ssp-surface-soft);
  color: var(--ssp-muted);
}

body.ssp-site-shell .ssp-category-module {
  margin-top: 22px;
}

body.ssp-site-shell .ssp-category-module > h3 {
  margin: 0 0 14px;
  color: var(--ssp-primary-dark);
  font-size: 22px;
}

/* -------------------------------------------------------------------------
   Breadcrumbs
   ------------------------------------------------------------------------- */

body.ssp-site-shell .ssp-breadcrumbs {
  width: min(var(--ssp-content-max), calc(100% - 48px));
  max-width: var(--ssp-content-max);
  margin: 0 auto 18px;
  color: var(--ssp-muted);
  font-size: 13px;
}

body.ssp-site-shell .ssp-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.ssp-site-shell .ssp-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

body.ssp-site-shell .ssp-breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--ssp-muted);
}

body.ssp-site-shell .ssp-breadcrumbs a {
  color: var(--ssp-muted);
  text-decoration: none;
}

body.ssp-site-shell .ssp-breadcrumbs a:hover,
body.ssp-site-shell .ssp-breadcrumbs a:focus {
  color: var(--ssp-link-hover);
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */

body.ssp-site-shell .entry-title,
body.ssp-site-shell .page-title {
  color: var(--ssp-heading);
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: 20px;
}

body.ssp-site-shell .entry-content h2 {
  color: var(--ssp-primary-dark);
  font-size: 30px;
  line-height: 1.2;
  margin-top: 46px;
  margin-bottom: 14px;
}

body.ssp-site-shell .entry-content h3 {
  color: var(--ssp-primary-dark);
  font-size: 23px;
  line-height: 1.25;
  margin-top: 34px;
  margin-bottom: 10px;
}

body.ssp-site-shell .entry-content h4 {
  color: var(--ssp-primary-ink);
  font-size: 19px;
  line-height: 1.3;
  margin-top: 28px;
}

body.ssp-site-shell .entry-content p,
body.ssp-site-shell .entry-content li {
  font-size: 18px;
}

body.ssp-site-shell .entry-content ul,
body.ssp-site-shell .entry-content ol {
  margin-left: 1.35em;
}

body.ssp-site-shell .entry-content li + li {
  margin-top: 0.22em;
}

body.ssp-site-shell .entry-content strong {
  color: var(--ssp-primary-ink);
}

body.ssp-site-shell .screen-reader-text:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  border-radius: var(--ssp-radius-small);
  background: var(--ssp-primary-dark);
  color: #ffffff;
  font-weight: 700;
}

body.ssp-site-shell blockquote {
  margin: 26px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--ssp-accent);
  background: var(--ssp-accent-soft);
  color: var(--ssp-primary-ink);
}

body.ssp-site-shell code,
body.ssp-site-shell pre {
  border-radius: var(--ssp-radius-small);
  background: var(--ssp-bg-panel);
}

body.ssp-site-shell pre {
  padding: 16px;
  overflow-x: auto;
}

body.ssp-site-shell figure {
  margin: 28px 0;
}

body.ssp-site-shell figcaption,
body.ssp-site-shell .wp-element-caption {
  margin-top: 8px;
  color: var(--ssp-muted);
  font-size: 14px;
  line-height: 1.45;
}

body.ssp-site-shell hr,
body.ssp-site-shell .wp-block-separator {
  border: 0;
  border-top: 1px solid var(--ssp-border);
  margin: 34px 0;
}

/* Hide low-value article furniture for first-batch data pages. */
body.ssp-site-shell.ssp-hide-post-meta.single .entry-header .entry-meta,
body.ssp-site-shell.ssp-hide-post-meta.single .entry-footer,
body.ssp-site-shell.ssp-hide-post-meta.single .cat-links,
body.ssp-site-shell.ssp-hide-post-meta.single .tags-links,
body.ssp-site-shell.ssp-hide-post-meta.single .comments-link {
  display: none;
}

body.ssp-site-shell.ssp-data-post-shell .inside-article {
  position: relative;
}

body.ssp-site-shell.ssp-data-post-shell .inside-article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ssp-primary), var(--ssp-accent));
}

body.ssp-site-shell.ssp-data-post-shell .entry-content h2,
body.ssp-site-shell.ssp-page-shell .entry-content h2 {
  padding-top: 8px;
}

body.ssp-site-shell.ssp-data-post-shell .entry-content h2::after,
body.ssp-site-shell.ssp-page-shell .entry-content h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--ssp-accent);
}

body.ssp-site-shell .entry-content ul li::marker,
body.ssp-site-shell .entry-content ol li::marker {
  color: var(--ssp-primary);
  font-weight: 800;
}

body.ssp-site-shell .ssp-archive-header .archive-description {
  max-width: var(--ssp-text-max);
  color: var(--ssp-text);
  font-size: 18px;
}

/* -------------------------------------------------------------------------
   Reusable page components
   These classes are safe for GenerateBlocks, Custom HTML blocks, and drafts.
   ------------------------------------------------------------------------- */

body.ssp-site-shell .ssp-page-intro,
body.ssp-site-shell .ssp-lede {
  max-width: var(--ssp-text-max);
  color: var(--ssp-text);
  font-size: 20px;
  line-height: 1.55;
}

body.ssp-site-shell .ssp-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--ssp-accent-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.ssp-site-shell .ssp-auto-toc {
  max-width: var(--ssp-text-max);
  margin: 24px 0 34px;
  padding: 18px 20px;
  border: 1px solid var(--ssp-border);
  border-left: 4px solid var(--ssp-primary);
  border-radius: var(--ssp-radius);
  background: linear-gradient(135deg, rgba(var(--pds-brand-rgb), 0.06), rgba(var(--pds-accent-rgb), 0.05)), var(--ssp-surface);
  box-shadow: var(--ssp-shadow-soft);
}

body.ssp-site-shell .ssp-auto-toc h2 {
  margin: 0 0 10px;
  padding: 0;
  color: var(--ssp-primary-dark);
  font-size: 18px;
  line-height: 1.25;
}

body.ssp-site-shell .ssp-auto-toc h2::after {
  display: none;
}

body.ssp-site-shell .ssp-auto-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.ssp-site-shell .ssp-auto-toc li {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

body.ssp-site-shell .ssp-auto-toc li.ssp-toc-level-3 {
  padding-left: 14px;
}

body.ssp-site-shell .ssp-auto-toc a {
  color: var(--ssp-primary-ink);
  text-decoration: none;
}

body.ssp-site-shell .ssp-auto-toc a:hover,
body.ssp-site-shell .ssp-auto-toc a:focus {
  color: var(--ssp-link-hover);
  text-decoration: underline;
}

body.ssp-site-shell .ssp-decision-box,
body.ssp-site-shell .ssp-facts-box {
  max-width: var(--ssp-text-max);
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--ssp-border);
  border-radius: var(--ssp-radius);
  background: #ffffff;
  box-shadow: var(--ssp-shadow-soft);
}

body.ssp-site-shell .ssp-decision-box {
  border-left: 5px solid var(--ssp-primary);
}

body.ssp-site-shell .ssp-decision-box-caveat,
body.ssp-site-shell .ssp-decision-box-warning {
  border-left-color: var(--ssp-accent);
  background: var(--ssp-accent-soft);
}

body.ssp-site-shell .ssp-decision-label {
  margin: 0 0 8px;
  color: var(--ssp-accent-text);
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.ssp-site-shell .ssp-decision-box h2,
body.ssp-site-shell .ssp-facts-box h2 {
  margin: 0 0 10px;
  padding: 0;
  color: var(--ssp-primary-dark);
  font-size: 22px;
}

body.ssp-site-shell .ssp-decision-box h2::after,
body.ssp-site-shell .ssp-facts-box h2::after {
  display: none;
}

body.ssp-site-shell .ssp-decision-box p {
  margin: 0 0 12px;
}

body.ssp-site-shell .ssp-decision-box ul {
  margin: 10px 0 0 1.2em;
}

body.ssp-site-shell .ssp-facts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

body.ssp-site-shell .ssp-fact-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(var(--pds-brand-rgb), 0.18);
  border-radius: 999px;
  background: var(--ssp-bg-panel);
  color: var(--ssp-primary-ink);
  font-size: 14px;
  font-weight: 700;
}

body.ssp-site-shell .ssp-product-checkpoint {
  max-width: var(--ssp-content-max);
  margin: 34px 0;
  padding: 22px;
  border: 1px solid var(--ssp-border);
  border-radius: var(--ssp-radius);
  background:
    linear-gradient(135deg, rgba(var(--pds-brand-rgb), 0.04), rgba(var(--pds-accent-rgb), 0.06)),
    #ffffff;
  box-shadow: var(--ssp-shadow-soft);
}

body.ssp-site-shell .ssp-product-checkpoint.has-media {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

body.ssp-site-shell .ssp-product-checkpoint-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ssp-border);
  border-radius: calc(var(--ssp-radius) - 2px);
  background: #ffffff;
}

body.ssp-site-shell .ssp-product-checkpoint-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.ssp-site-shell .ssp-product-checkpoint-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 10px;
  padding: 4px 10px;
  border: 1px solid rgba(185, 137, 59, 0.35);
  border-radius: 999px;
  background: var(--ssp-accent-soft);
  color: var(--ssp-accent-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.ssp-site-shell .ssp-product-checkpoint h2 {
  margin: 0 0 10px;
  padding: 0;
  color: var(--ssp-primary-dark);
  font-size: 24px;
}

body.ssp-site-shell .ssp-product-checkpoint h2::after {
  display: none;
}

body.ssp-site-shell .ssp-product-checkpoint p {
  margin: 0 0 12px;
}

body.ssp-site-shell .ssp-product-checkpoint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

body.ssp-site-shell .ssp-product-checkpoint-grid > div {
  padding: 14px;
  border: 1px solid var(--ssp-border);
  border-radius: calc(var(--ssp-radius) - 3px);
  background: rgba(255, 255, 255, 0.78);
}

body.ssp-site-shell .ssp-product-checkpoint-grid h3 {
  margin: 0 0 8px;
  color: var(--ssp-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.ssp-site-shell .ssp-product-checkpoint-grid ul {
  margin: 0 0 0 1.15em;
}

body.ssp-site-shell .ssp-product-checkpoint-action {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

body.ssp-site-shell .ssp-product-checkpoint-note {
  margin: 0;
  color: var(--ssp-muted);
  font-size: 14px;
}

body.ssp-site-shell .ssp-card-grid,
body.ssp-site-shell .ssp-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

body.ssp-site-shell .ssp-home-hero,
body.ssp-site-shell .ssp-start-hero {
  margin: -6px 0 34px;
  padding: 34px 28px;
  border: 1px solid var(--ssp-border);
  border-radius: var(--ssp-radius);
  background:
    linear-gradient(135deg, rgba(var(--pds-brand-rgb), 0.08), rgba(var(--pds-accent-rgb), 0.10)),
    var(--ssp-surface-soft);
}

body.ssp-site-shell .ssp-home-hero h1,
body.ssp-site-shell .ssp-start-hero h1 {
  max-width: 900px;
  margin-top: 0;
  color: var(--ssp-heading);
  font-size: 40px;
  line-height: 1.15;
}

body.ssp-site-shell .ssp-home-hero p,
body.ssp-site-shell .ssp-start-hero p {
  max-width: var(--ssp-text-max);
  font-size: 18px;
}

body.ssp-site-shell .ssp-home-section,
body.ssp-site-shell .ssp-content-section {
  margin-top: 36px;
}

body.ssp-site-shell .ssp-card,
body.ssp-site-shell .ssp-path-card {
  padding: 18px;
  border: 1px solid var(--ssp-border);
  border-radius: var(--ssp-radius);
  background: var(--ssp-surface-soft);
  box-shadow: var(--ssp-shadow-soft);
}

body.ssp-site-shell .ssp-card h2,
body.ssp-site-shell .ssp-card h3,
body.ssp-site-shell .ssp-path-card h2,
body.ssp-site-shell .ssp-path-card h3 {
  margin-top: 0;
}

body.ssp-site-shell .ssp-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

body.ssp-site-shell .ssp-pill-list li,
body.ssp-site-shell .ssp-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--ssp-border);
  border-radius: 999px;
  background: var(--ssp-surface-soft);
  color: var(--ssp-primary-ink);
  font-size: 14px;
  font-weight: 650;
}

body.ssp-site-shell .ssp-button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: var(--ssp-radius-small);
  background: var(--ssp-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

body.ssp-site-shell .ssp-button-link:hover,
body.ssp-site-shell .ssp-button-link:focus {
  background: var(--ssp-primary-dark);
  color: #ffffff;
}

body.ssp-site-shell .ssp-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

body.ssp-site-shell .ssp-notice,
body.ssp-site-shell .ssp-caveat,
body.ssp-site-shell .ssp-source-note,
body.ssp-site-shell .ssp-disclosure {
  max-width: var(--ssp-text-max);
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--ssp-border);
  border-left: 4px solid var(--ssp-accent);
  border-radius: var(--ssp-radius);
  background: var(--ssp-accent-soft);
}

body.ssp-site-shell .ssp-source-note,
body.ssp-site-shell .ssp-disclosure {
  border-left-color: var(--ssp-primary);
  background: var(--ssp-bg-panel);
}

body.ssp-site-shell .ssp-affiliate-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: var(--ssp-text-max);
  margin: 30px 0;
  padding: 20px;
  border: 1px solid #e3d0a5;
  border-left: 4px solid var(--ssp-accent);
  border-radius: var(--ssp-radius);
  background:
    linear-gradient(135deg, rgba(var(--pds-accent-rgb), 0.13), rgba(var(--pds-brand-rgb), 0.07)),
    #fffdf8;
  box-shadow: var(--ssp-shadow-soft);
}

body.ssp-site-shell .ssp-affiliate-slot.has-media {
  align-items: stretch;
}

body.ssp-site-shell .ssp-front-shell > .ssp-featured-offer,
body.ssp-site-shell .ssp-front-page .ssp-featured-offer {
  max-width: none;
  margin: 24px 0 0;
}

body.ssp-site-shell .ssp-affiliate-media {
  overflow: hidden;
  flex: 0 0 210px;
  align-self: stretch;
  min-height: 134px;
  margin: 0;
  border: 1px solid rgba(var(--pds-brand-rgb), 0.16);
  border-radius: var(--ssp-radius-small);
  background: var(--ssp-surface-soft);
}

body.ssp-site-shell .ssp-affiliate-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 134px;
  object-fit: cover;
}

body.ssp-site-shell .ssp-affiliate-slot h2 {
  margin: 0 0 8px;
  padding: 0;
  color: var(--ssp-primary-dark);
  font-size: 22px;
}

body.ssp-site-shell .ssp-affiliate-slot h2::after {
  display: none;
}

body.ssp-site-shell .ssp-affiliate-slot p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

body.ssp-site-shell .ssp-affiliate-slot .ssp-affiliate-disclosure {
  margin-top: 8px;
  color: var(--ssp-muted);
  font-size: 13px;
}

body.ssp-site-shell .ssp-affiliate-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--ssp-radius-small);
  background: var(--ssp-primary-dark);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(var(--pds-brand-strong-rgb), 0.16);
}

body.ssp-site-shell .ssp-affiliate-button:hover,
body.ssp-site-shell .ssp-affiliate-button:focus {
  background: var(--ssp-primary);
  color: #ffffff;
}

body.ssp-site-shell .ssp-related-posts {
  width: min(var(--ssp-content-max), calc(100% - 48px));
  max-width: var(--ssp-content-max);
  margin: 26px auto 0;
  padding: 32px 0 0;
}

body.ssp-site-shell .ssp-related-posts h2 {
  margin-top: 0;
  color: var(--ssp-primary-dark);
  font-size: 26px;
}

body.ssp-site-shell .ssp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.ssp-site-shell .ssp-related-card {
  padding: 18px;
  border: 1px solid var(--ssp-border);
  border-radius: var(--ssp-radius);
  background: var(--ssp-surface);
  box-shadow: var(--ssp-shadow-soft);
}

body.ssp-site-shell .ssp-related-card h3 {
  margin: 0 0 8px;
  color: var(--ssp-primary-dark);
  font-size: 18px;
  line-height: 1.3;
}

body.ssp-site-shell .ssp-related-card h3 a {
  color: inherit;
  text-decoration: none;
}

body.ssp-site-shell .ssp-related-card h3 a:hover,
body.ssp-site-shell .ssp-related-card h3 a:focus {
  color: var(--ssp-link-hover);
  text-decoration: underline;
}

body.ssp-site-shell .ssp-related-card p {
  margin: 0;
  color: var(--ssp-text);
  font-size: 15px;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------
   Data tables and source matrices
   ------------------------------------------------------------------------- */

body.ssp-site-shell .wp-block-table,
body.ssp-site-shell .ssp-table-scroll {
  max-width: 100%;
  margin: 24px 0 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.ssp-site-shell .entry-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 24px 0 30px;
  font-size: 14px;
}

body.ssp-site-shell .wp-block-table table,
body.ssp-site-shell .ssp-table-scroll table {
  margin-top: 0;
  margin-bottom: 0;
}

body.ssp-site-shell .entry-content caption {
  caption-side: top;
  color: var(--ssp-muted);
  font-size: 15px;
  padding-bottom: 10px;
  text-align: left;
}

body.ssp-site-shell .entry-content th,
body.ssp-site-shell .entry-content td {
  border: 1px solid var(--ssp-border);
  padding: 12px;
  vertical-align: top;
  word-break: normal;
}

body.ssp-site-shell .entry-content td {
  overflow-wrap: anywhere;
}

body.ssp-site-shell .entry-content th {
  background: var(--ssp-bg-panel);
  color: var(--ssp-primary-dark);
  font-weight: 750;
  overflow-wrap: normal;
  hyphens: none;
}

body.ssp-site-shell .entry-content tr:nth-child(even) td {
  background: var(--ssp-surface-soft);
}

body.ssp-site-shell .entry-content table.ssp-matrix-table {
  table-layout: auto;
  font-size: 13.5px;
}

body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table,
body.ssp-site-shell .entry-content table.ssp-matrix-table.ssp-matrix-7 {
  table-layout: fixed;
}

body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table th:nth-child(1),
body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table td:nth-child(1),
body.ssp-site-shell .entry-content table.ssp-matrix-table.ssp-matrix-7 th:nth-child(1),
body.ssp-site-shell .entry-content table.ssp-matrix-table.ssp-matrix-7 td:nth-child(1) {
  width: 21%;
}

body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table th:nth-child(2),
body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table td:nth-child(2),
body.ssp-site-shell .entry-content table.ssp-matrix-table.ssp-matrix-7 th:nth-child(2),
body.ssp-site-shell .entry-content table.ssp-matrix-table.ssp-matrix-7 td:nth-child(2) {
  width: 11%;
}

body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table th:nth-child(3),
body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table td:nth-child(3),
body.ssp-site-shell .entry-content table.ssp-matrix-table.ssp-matrix-7 th:nth-child(3),
body.ssp-site-shell .entry-content table.ssp-matrix-table.ssp-matrix-7 td:nth-child(3) {
  width: 12%;
}

body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table th:nth-child(4),
body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table td:nth-child(4),
body.ssp-site-shell .entry-content table.ssp-matrix-table.ssp-matrix-7 th:nth-child(4),
body.ssp-site-shell .entry-content table.ssp-matrix-table.ssp-matrix-7 td:nth-child(4) {
  width: 17%;
}

body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table th:nth-child(5),
body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table td:nth-child(5),
body.ssp-site-shell .entry-content table.ssp-matrix-table.ssp-matrix-7 th:nth-child(5),
body.ssp-site-shell .entry-content table.ssp-matrix-table.ssp-matrix-7 td:nth-child(5) {
  width: 8%;
}

body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table th:nth-child(6),
body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table td:nth-child(6),
body.ssp-site-shell .entry-content table.ssp-matrix-table.ssp-matrix-7 th:nth-child(6),
body.ssp-site-shell .entry-content table.ssp-matrix-table.ssp-matrix-7 td:nth-child(6) {
  width: 15%;
}

body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table th:nth-child(7),
body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table td:nth-child(7),
body.ssp-site-shell .entry-content table.ssp-matrix-table.ssp-matrix-7 th:nth-child(7),
body.ssp-site-shell .entry-content table.ssp-matrix-table.ssp-matrix-7 td:nth-child(7) {
  width: 16%;
}

/* -------------------------------------------------------------------------
   Forms, search, pagination, and empty states
   ------------------------------------------------------------------------- */

body.ssp-site-shell input[type="text"],
body.ssp-site-shell input[type="email"],
body.ssp-site-shell input[type="url"],
body.ssp-site-shell input[type="search"],
body.ssp-site-shell input[type="number"],
body.ssp-site-shell input[type="password"],
body.ssp-site-shell select,
body.ssp-site-shell textarea {
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  border: 1px solid var(--ssp-border);
  border-radius: var(--ssp-radius-small);
  background: #ffffff;
  color: var(--ssp-text);
  font: inherit;
}

body.ssp-site-shell textarea {
  min-height: 140px;
}

body.ssp-site-shell button,
body.ssp-site-shell input[type="button"],
body.ssp-site-shell input[type="reset"],
body.ssp-site-shell input[type="submit"],
body.ssp-site-shell .button,
body.ssp-site-shell .wp-block-button__link {
  min-height: 42px;
  border: 0;
  border-radius: var(--ssp-radius-small);
  background: var(--ssp-primary);
  color: #ffffff;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

body.ssp-site-shell button:hover,
body.ssp-site-shell input[type="button"]:hover,
body.ssp-site-shell input[type="reset"]:hover,
body.ssp-site-shell input[type="submit"]:hover,
body.ssp-site-shell .button:hover,
body.ssp-site-shell .wp-block-button__link:hover {
  background: var(--ssp-primary-dark);
  color: #ffffff;
}

body.ssp-site-shell .search-form {
  display: flex;
  gap: 8px;
  max-width: 620px;
}

body.ssp-site-shell .search-form label {
  flex: 1 1 auto;
}

body.ssp-site-shell .search-form .search-submit {
  flex: 0 0 auto;
}

body.ssp-site-shell .paging-navigation,
body.ssp-site-shell .post-navigation,
body.ssp-site-shell .posts-navigation,
body.ssp-site-shell .nav-links {
  width: min(var(--ssp-content-max), calc(100% - 48px));
  max-width: var(--ssp-content-max);
  margin: 24px auto;
}

body.ssp-site-shell .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

body.ssp-site-shell .nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--ssp-border);
  border-radius: var(--ssp-radius-small);
  background: var(--ssp-surface);
  text-decoration: none;
}

body.ssp-site-shell .no-results,
body.ssp-site-shell .not-found,
body.ssp-site-shell.error404 .inside-article {
  text-align: left;
}

body.ssp-site-shell .no-results .page-content,
body.ssp-site-shell .not-found .page-content {
  max-width: var(--ssp-text-max);
}

/* -------------------------------------------------------------------------
   Tool page containment
   ------------------------------------------------------------------------- */

body.ssp-site-shell.ssp-tool-page-shell .entry-content,
body.ssp-site-shell.ssp-has-smart-shade-tool .entry-content {
  max-width: none;
}

body.ssp-site-shell.ssp-tool-page-shell .entry-content > p,
body.ssp-site-shell.ssp-has-smart-shade-tool .entry-content > p {
  max-width: var(--ssp-text-max);
}

body.ssp-site-shell.ssp-has-smart-shade-tool .inside-article {
  padding-left: 32px;
  padding-right: 32px;
}

/* -------------------------------------------------------------------------
   Comments and footer
   ------------------------------------------------------------------------- */

body.ssp-site-shell.ssp-comments-disabled .comments-area,
body.ssp-site-shell.ssp-comments-disabled .comment-respond,
body.ssp-site-shell.ssp-comments-disabled #comments {
  display: none;
}

body.ssp-site-shell .site-footer,
body.ssp-site-shell .site-info {
  background: var(--ssp-surface);
  color: var(--ssp-muted);
  border-top: 1px solid var(--ssp-border);
}

body.ssp-site-shell .site-info {
  padding: 18px 24px;
  font-size: 14px;
}

body.ssp-site-shell .ssp-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: var(--ssp-shell-max);
  margin: 0 auto;
}

body.ssp-site-shell .ssp-footer-navigation,
body.ssp-site-shell .ssp-footer-menu {
  width: 100%;
}

body.ssp-site-shell .ssp-footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.ssp-site-shell .ssp-footer-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ssp-link);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.ssp-site-shell .ssp-footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  text-align: center;
}

body.ssp-site-shell .ssp-footer-note {
  color: var(--ssp-muted);
}

body.ssp-site-shell .site-footer a,
body.ssp-site-shell .site-info a {
  color: var(--ssp-link);
}

/* -------------------------------------------------------------------------
   Tablet and mobile shell
   ------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  body.ssp-site-shell .site-content {
    padding: 34px 20px 44px;
  }

  body.ssp-site-shell .inside-article,
  body.ssp-site-shell .page-header,
  body.ssp-site-shell .comments-area {
    width: min(var(--ssp-content-max), calc(100% - 32px));
    padding: 42px 42px;
  }

  body.ssp-site-shell .entry-title,
  body.ssp-site-shell .page-title {
    font-size: 36px;
  }

	body.ssp-site-shell .ssp-card-grid,
	body.ssp-site-shell .ssp-path-grid,
	body.ssp-site-shell .ssp-featured-grid,
	body.ssp-site-shell .ssp-decision-grid,
  body.ssp-site-shell .ssp-category-grid,
  body.ssp-site-shell .ssp-tool-grid,
  body.ssp-site-shell .ssp-category-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  html,
  body.ssp-site-shell {
    width: 100%;
    max-width: 100%;
  }

  body.ssp-site-shell #page,
  body.ssp-site-shell .site,
  body.ssp-site-shell .grid-container,
  body.ssp-site-shell .site.grid-container,
  body.ssp-site-shell .container.grid-container,
  body.ssp-site-shell .site-content.grid-container,
  body.ssp-site-shell .content-area,
  body.ssp-site-shell #primary,
  body.ssp-site-shell .site-main,
  body.ssp-site-shell article,
  body.ssp-site-shell .inside-article,
  body.ssp-site-shell .page-header {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.ssp-site-shell .site-content {
    display: block !important;
    padding: 0 0 32px !important;
  }

  body.ssp-site-shell .inside-header {
    padding: 16px 18px;
  }

  body.ssp-site-shell .inside-header {
    align-items: flex-start;
    gap: 12px;
  }

  body.ssp-site-shell .main-title,
  body.ssp-site-shell .main-title a {
    font-size: 19px;
    line-height: 1.2;
  }

  body.ssp-site-shell .site-description {
    font-size: 13px;
  }

  body.ssp-site-shell:not(.wp-custom-logo) .site-branding {
    padding-left: 38px;
  }

  body.ssp-site-shell:not(.wp-custom-logo) .site-branding::before {
    width: 28px;
    height: 28px;
  }

  body.ssp-site-shell .main-navigation .main-nav ul li a,
  body.ssp-site-shell .main-navigation .menu-primary-container ul li a {
    min-height: 42px;
    line-height: 42px;
    padding-left: 18px;
    padding-right: 18px;
  }

  body.ssp-site-shell .main-navigation .inside-navigation {
    display: flex;
    justify-content: flex-end;
    padding-left: 0;
    padding-right: 0;
  }

  body.ssp-site-shell .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-height: 46px;
    border-radius: 0;
  }

  body.ssp-site-shell .main-navigation .main-nav > ul,
  body.ssp-site-shell .main-navigation .menu-primary-container > ul {
    display: none;
  }

  body.ssp-site-shell .main-navigation.toggled .main-nav > ul,
  body.ssp-site-shell .main-navigation.toggled .menu-primary-container > ul {
    display: block;
    width: min(340px, calc(100vw - 32px));
    margin-top: 10px;
    margin-left: auto;
    background: #ffffff;
    border: 1px solid var(--ssp-border);
    border-radius: var(--ssp-radius-small);
    box-shadow: var(--ssp-shadow-soft);
    overflow: hidden;
  }

  body.ssp-site-shell .main-navigation .main-nav ul li a,
  body.ssp-site-shell .main-navigation .menu-primary-container ul li a {
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid var(--ssp-border);
    border-radius: 0;
    color: var(--ssp-text);
  }

  body.ssp-site-shell .main-navigation .main-nav ul li:last-child > a,
  body.ssp-site-shell .main-navigation .menu-primary-container ul li:last-child > a {
    border-bottom: 0;
  }

  body.ssp-site-shell .inside-article,
  body.ssp-site-shell .page-header {
    padding: 30px 18px;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  body.ssp-site-shell.ssp-has-smart-shade-tool .inside-article {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.ssp-site-shell .entry-content > .alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  body.ssp-site-shell .entry-title,
  body.ssp-site-shell .page-title {
    font-size: 25px;
  }

  body.ssp-site-shell .entry-content h2 {
    font-size: 22px;
    margin-top: 36px;
  }

  body.ssp-site-shell .entry-content h3 {
    font-size: 19px;
  }

  body.ssp-site-shell .entry-content p,
  body.ssp-site-shell .entry-content li {
    font-size: 16px;
    line-height: 1.62;
  }

  body.ssp-site-shell .entry-content > p,
  body.ssp-site-shell .entry-content > ul,
  body.ssp-site-shell .entry-content > ol,
  body.ssp-site-shell .ssp-notice,
  body.ssp-site-shell .ssp-caveat,
  body.ssp-site-shell .ssp-source-note,
  body.ssp-site-shell .ssp-disclosure {
    max-width: none;
  }

  body.ssp-site-shell .ssp-auto-toc,
  body.ssp-site-shell .ssp-decision-box,
  body.ssp-site-shell .ssp-facts-box {
    max-width: none;
    margin: 22px 0;
    padding: 16px;
  }

  body.ssp-site-shell .ssp-auto-toc ol {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  body.ssp-site-shell .ssp-auto-toc li.ssp-toc-level-3 {
    padding-left: 10px;
  }

  body.ssp-site-shell .ssp-facts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.ssp-site-shell .ssp-fact-pill {
    justify-content: flex-start;
    width: 100%;
  }

  body.ssp-site-shell .ssp-product-checkpoint,
  body.ssp-site-shell .ssp-product-checkpoint.has-media {
    display: block;
    max-width: none;
    margin: 24px 0;
    padding: 16px;
  }

  body.ssp-site-shell .ssp-product-checkpoint-media {
    margin-bottom: 16px;
  }

  body.ssp-site-shell .ssp-product-checkpoint h2 {
    font-size: 21px;
  }

  body.ssp-site-shell .ssp-product-checkpoint-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.ssp-site-shell .ssp-product-checkpoint-action {
    align-items: stretch;
  }

  body.ssp-site-shell .ssp-product-checkpoint-action .ssp-affiliate-button {
    justify-content: center;
    width: 100%;
  }

	body.ssp-site-shell .ssp-card-grid,
	body.ssp-site-shell .ssp-path-grid,
	body.ssp-site-shell .ssp-featured-grid,
	body.ssp-site-shell .ssp-decision-grid,
  body.ssp-site-shell .ssp-category-grid,
  body.ssp-site-shell .ssp-tool-grid,
  body.ssp-site-shell .ssp-category-post-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.ssp-site-shell .ssp-affiliate-slot {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    max-width: none;
    margin: 24px 0;
    padding: 16px;
  }

  body.ssp-site-shell .ssp-affiliate-media {
    flex-basis: auto;
    width: 100%;
    min-height: 170px;
  }

  body.ssp-site-shell .ssp-affiliate-media img {
    min-height: 170px;
  }

  body.ssp-site-shell .ssp-affiliate-button {
    width: 100%;
  }

  body.ssp-site-shell .ssp-related-posts {
    width: 100%;
    max-width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  body.ssp-site-shell .ssp-related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.ssp-site-shell .ssp-front-page {
    padding: 0 0 34px;
  }

  body.ssp-site-shell .ssp-front-shell {
    width: 100%;
    max-width: 100%;
  }

  body.ssp-site-shell .ssp-front-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 18px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.ssp-site-shell .ssp-front-hero h1 {
    font-size: 30px;
  }

  body.ssp-site-shell .ssp-front-hero p {
    font-size: 16px;
  }

  body.ssp-site-shell .ssp-hero-visual {
    padding: 14px;
  }

  body.ssp-site-shell .ssp-front-section,
  body.ssp-site-shell .ssp-front-note {
    margin-left: 16px;
    margin-right: 16px;
  }

  body.ssp-site-shell .ssp-front-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.ssp-site-shell .ssp-latest-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.ssp-site-shell .ssp-breadcrumbs {
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px;
    padding: 0 18px;
  }

  body.ssp-site-shell .ssp-home-hero,
  body.ssp-site-shell .ssp-start-hero {
    margin: 0 0 24px;
    padding: 22px 16px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  body.ssp-site-shell .ssp-home-hero h1,
  body.ssp-site-shell .ssp-start-hero h1 {
    font-size: 25px;
  }

  body.ssp-site-shell .entry-content table {
    width: 100%;
    max-width: 100%;
    table-layout: auto;
    font-size: 14px;
  }

  body.ssp-site-shell .wp-block-table,
  body.ssp-site-shell .ssp-table-scroll {
    overflow-x: auto;
    margin: 20px 0 28px;
    -webkit-overflow-scrolling: touch;
  }

  body.ssp-site-shell .entry-content table.ssp-matrix-table.is-mobile-scroll,
  body.ssp-site-shell .entry-content .is-style-decision-matrix-scroll table {
    min-width: 680px;
  }

  body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table,
  body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table caption,
  body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table tbody,
  body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table tr,
  body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table td,
  body.ssp-site-shell .entry-content table.ssp-matrix-table.is-mobile-cards,
  body.ssp-site-shell .entry-content table.ssp-matrix-table.is-mobile-cards caption,
  body.ssp-site-shell .entry-content table.ssp-matrix-table.is-mobile-cards tbody,
  body.ssp-site-shell .entry-content table.ssp-matrix-table.is-mobile-cards tr,
  body.ssp-site-shell .entry-content table.ssp-matrix-table.is-mobile-cards td,
  body.ssp-site-shell .entry-content .is-style-decision-matrix-cards table,
  body.ssp-site-shell .entry-content .is-style-decision-matrix-cards table caption,
  body.ssp-site-shell .entry-content .is-style-decision-matrix-cards table tbody,
  body.ssp-site-shell .entry-content .is-style-decision-matrix-cards table tr,
  body.ssp-site-shell .entry-content .is-style-decision-matrix-cards table td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table,
  body.ssp-site-shell .entry-content table.ssp-matrix-table.is-mobile-cards,
  body.ssp-site-shell .entry-content .is-style-decision-matrix-cards table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    font-size: 14px;
  }

  body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table caption,
  body.ssp-site-shell .entry-content table.ssp-matrix-table.is-mobile-cards caption,
  body.ssp-site-shell .entry-content .is-style-decision-matrix-cards table caption {
    color: var(--ssp-muted);
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 10px;
    padding-bottom: 0;
  }

  body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table thead,
  body.ssp-site-shell .entry-content table.ssp-matrix-table.is-mobile-cards thead,
  body.ssp-site-shell .entry-content .is-style-decision-matrix-cards table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table tr,
  body.ssp-site-shell .entry-content table.ssp-matrix-table.is-mobile-cards tr,
  body.ssp-site-shell .entry-content .is-style-decision-matrix-cards table tr {
    overflow: hidden;
    margin: 0 0 14px;
    border: 1px solid var(--ssp-border);
    border-radius: var(--ssp-radius);
    background: var(--ssp-surface);
  }

  body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table td,
  body.ssp-site-shell .entry-content table.ssp-matrix-table.is-mobile-cards td,
  body.ssp-site-shell .entry-content .is-style-decision-matrix-cards table td {
    border: 0;
    border-bottom: 1px solid var(--ssp-border-soft);
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: break-word;
  }

  body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table td:last-child,
  body.ssp-site-shell .entry-content table.ssp-matrix-table.is-mobile-cards td:last-child,
  body.ssp-site-shell .entry-content .is-style-decision-matrix-cards table td:last-child {
    border-bottom: 0;
  }

  body.ssp-site-shell.ssp-profile-smart-shade .entry-content table.ssp-matrix-table td::before,
  body.ssp-site-shell .entry-content table.ssp-matrix-table.is-mobile-cards td::before,
  body.ssp-site-shell .entry-content .is-style-decision-matrix-cards table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--ssp-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

@media (max-width: 480px) {
  body.ssp-site-shell .inside-header {
    padding: 14px 14px;
  }

  body.ssp-site-shell .inside-article,
  body.ssp-site-shell .page-header {
    padding: 24px 16px;
  }

  body.ssp-site-shell .entry-title,
  body.ssp-site-shell .page-title {
    font-size: 22px;
  }

  body.ssp-site-shell .entry-content h2 {
    font-size: 20px;
  }

  body.ssp-site-shell .entry-content p,
  body.ssp-site-shell .entry-content li {
    font-size: 16px;
  }

  body.ssp-site-shell .site-info {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* -------------------------------------------------------------------------
   v1.3 reusable platform layer
   Semantic roles and curated presets override the legacy-safe base above.
   ------------------------------------------------------------------------- */

body.ssp-site-shell .entry-content h2,
body.ssp-site-shell .entry-content h3,
body.ssp-site-shell .entry-content h4 {
  scroll-margin-top: 24px;
}

body.ssp-site-shell .ssp-decision-map {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

body.ssp-site-shell .ssp-decision-map li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--ssp-border);
  border-radius: var(--ssp-radius-small);
  background: var(--ssp-surface-soft);
  color: var(--ssp-primary-ink);
  font-size: 15px;
  font-weight: 720;
}

body.ssp-site-shell .ssp-decision-map li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ssp-primary-dark);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

body.ssp-site-shell .ssp-loop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  width: min(var(--ssp-content-max), calc(100% - 48px));
  max-width: var(--ssp-content-max);
  margin: 0 auto;
}

body.ssp-site-shell.ssp-archive-grid-2 .ssp-loop-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.ssp-site-shell.ssp-archive-grid-3 .ssp-loop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.ssp-site-shell .ssp-loop-grid .ssp-loop-card,
body.ssp-site-shell .ssp-loop-grid .inside-article {
  width: 100%;
  max-width: none;
  min-height: 100%;
  margin: 0;
}

body.ssp-site-shell .ssp-loop-grid .inside-article {
  padding: 28px;
}

body.ssp-site-shell.ssp-archive-grid-3 .ssp-loop-grid .entry-title {
  font-size: 23px;
}

body.ssp-site-shell .ssp-card-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

body.ssp-site-shell .ssp-not-found-surface .ssp-path-card {
  display: block;
  color: var(--ssp-text);
  text-decoration: none;
}

body.ssp-site-shell .ssp-not-found-surface .ssp-path-card:hover,
body.ssp-site-shell .ssp-not-found-surface .ssp-path-card:focus-visible {
  border-color: var(--ssp-primary);
}

body.ssp-site-shell .is-style-decision-card,
.editor-styles-wrapper .is-style-decision-card {
  padding: 20px;
  border: 1px solid var(--ssp-border);
  border-radius: var(--ssp-radius);
  background: var(--ssp-surface);
  box-shadow: var(--ssp-shadow-soft);
}

body.ssp-site-shell .is-style-evidence-note,
.editor-styles-wrapper .is-style-evidence-note {
  padding: 20px;
  border: 1px solid var(--ssp-border);
  border-inline-start: 5px solid var(--ssp-primary);
  border-radius: var(--ssp-radius);
  background: var(--ssp-bg-panel);
}

body.ssp-site-shell .is-style-decision-secondary .wp-block-button__link,
.editor-styles-wrapper .is-style-decision-secondary .wp-block-button__link {
  border: 2px solid var(--ssp-primary);
  background: transparent;
  color: var(--ssp-primary-dark);
}

body.ssp-site-shell .is-style-decision-secondary .wp-block-button__link:hover,
body.ssp-site-shell .is-style-decision-secondary .wp-block-button__link:focus-visible {
  background: var(--ssp-primary-dark);
  color: #ffffff;
}

/* Role widths are explicit editor choices, not shortcode-name guesses. */
body.ssp-site-shell.ssp-role-trust .inside-article,
body.ssp-site-shell.ssp-width-reading .inside-article {
  width: min(var(--ssp-text-max), calc(100% - 48px));
  max-width: var(--ssp-text-max);
}

body.ssp-site-shell.ssp-role-data .inside-article,
body.ssp-site-shell.ssp-role-comparison .inside-article,
body.ssp-site-shell.ssp-role-tool .inside-article,
body.ssp-site-shell.ssp-width-data .inside-article {
  width: min(var(--ssp-tool-max), calc(100% - 48px));
  max-width: var(--ssp-tool-max);
}

body.ssp-site-shell.ssp-role-hub .inside-article,
body.ssp-site-shell.ssp-width-content .inside-article {
  width: min(var(--ssp-content-max), calc(100% - 48px));
  max-width: var(--ssp-content-max);
}

body.ssp-site-shell.ssp-role-trust .ssp-affiliate-slot,
body.ssp-site-shell.ssp-role-trust .ssp-product-checkpoint-action {
  display: none !important;
}

/* Card treatment is independent of palette and layout family. */
body.ssp-site-shell.ssp-cards-bordered .ssp-latest-card,
body.ssp-site-shell.ssp-cards-bordered .ssp-featured-card,
body.ssp-site-shell.ssp-cards-bordered .ssp-decision-card,
body.ssp-site-shell.ssp-cards-bordered .ssp-category-card,
body.ssp-site-shell.ssp-cards-bordered .ssp-tool-card,
body.ssp-site-shell.ssp-cards-bordered .ssp-category-post-card,
body.ssp-site-shell.ssp-cards-bordered .ssp-related-card,
body.ssp-site-shell.ssp-cards-bordered .ssp-loop-grid .inside-article {
  box-shadow: none;
}

body.ssp-site-shell.ssp-cards-flat .ssp-latest-card,
body.ssp-site-shell.ssp-cards-flat .ssp-featured-card,
body.ssp-site-shell.ssp-cards-flat .ssp-decision-card,
body.ssp-site-shell.ssp-cards-flat .ssp-category-card,
body.ssp-site-shell.ssp-cards-flat .ssp-tool-card,
body.ssp-site-shell.ssp-cards-flat .ssp-category-post-card,
body.ssp-site-shell.ssp-cards-flat .ssp-related-card,
body.ssp-site-shell.ssp-cards-flat .ssp-loop-grid .inside-article {
  border-color: transparent;
  background: var(--ssp-surface-soft);
  box-shadow: none;
}

/* Density changes rhythm without changing content or information hierarchy. */
body.ssp-site-shell.ssp-density-compact .inside-article {
  padding: 38px 46px;
}

body.ssp-site-shell.ssp-density-compact .ssp-front-section {
  margin-top: 26px;
}

body.ssp-site-shell.ssp-density-compact .entry-content h2 {
  margin-top: 36px;
}

body.ssp-site-shell.ssp-density-airy .inside-article {
  padding: 64px 76px;
}

body.ssp-site-shell.ssp-density-airy .ssp-front-section {
  margin-top: 48px;
}

body.ssp-site-shell.ssp-density-airy .entry-content h2 {
  margin-top: 56px;
}

/* Typography characters use local system stacks only. */
body.ssp-site-shell.ssp-type-editorial .main-title,
body.ssp-site-shell.ssp-type-editorial .main-title a,
body.ssp-site-shell.ssp-type-editorial h1,
body.ssp-site-shell.ssp-type-editorial h2,
body.ssp-site-shell.ssp-type-editorial h3,
body.ssp-site-shell.ssp-type-editorial h4,
.editor-styles-wrapper.ssp-type-editorial h1,
.editor-styles-wrapper.ssp-type-editorial h2,
.editor-styles-wrapper.ssp-type-editorial h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.015em;
}

body.ssp-site-shell.ssp-type-technical .ssp-kicker,
body.ssp-site-shell.ssp-type-technical .ssp-card-status,
body.ssp-site-shell.ssp-type-technical .ssp-product-checkpoint-badge,
body.ssp-site-shell.ssp-type-technical .ssp-decision-map li span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

/* Guided: calm split hero, pill navigation, and visible decision sequence. */
body.ssp-site-shell.ssp-layout-guided {
  --ssp-radius: 9px;
  --ssp-radius-small: 6px;
}

/* Editorial: text-first, restrained surfaces, serif-compatible hierarchy. */
body.ssp-site-shell.ssp-layout-editorial {
  --ssp-radius: 2px;
  --ssp-radius-small: 2px;
  --ssp-shadow: none;
  --ssp-shadow-soft: none;
}

body.ssp-site-shell.ssp-layout-editorial:not(.wp-custom-logo) .site-branding::before {
  display: none;
}

body.ssp-site-shell.ssp-layout-editorial:not(.wp-custom-logo) .site-branding {
  padding-inline-start: 0;
}

body.ssp-site-shell.ssp-layout-editorial .site-header {
  box-shadow: none;
}

body.ssp-site-shell.ssp-layout-editorial .main-navigation .main-nav ul li a,
body.ssp-site-shell.ssp-layout-editorial .main-navigation .menu-primary-container ul li a {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
}

body.ssp-site-shell.ssp-layout-editorial .main-navigation .main-nav ul li.current-menu-item > a,
body.ssp-site-shell.ssp-layout-editorial .main-navigation .main-nav ul li.current-menu-ancestor > a {
  border-bottom-color: var(--ssp-primary-dark);
  background: transparent;
  color: var(--ssp-primary-dark);
}

body.ssp-site-shell.ssp-layout-editorial .ssp-front-hero {
  display: block;
  border-inline-start: 6px solid var(--ssp-primary);
  background: var(--ssp-surface);
}

body.ssp-site-shell.ssp-layout-editorial .ssp-hero-visual {
  margin-top: 28px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

body.ssp-site-shell.ssp-layout-editorial .ssp-decision-map {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.ssp-site-shell.ssp-layout-editorial .ssp-decision-map li {
  display: block;
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
}

body.ssp-site-shell.ssp-layout-editorial .ssp-decision-map li span {
  margin-bottom: 10px;
  border-radius: 0;
  background: transparent;
  color: var(--ssp-accent-text);
  justify-content: flex-start;
}

/* Catalog: visual tiles, centered brand block, and a stronger navigation band. */
body.ssp-site-shell.ssp-layout-catalog {
  --ssp-radius: 16px;
  --ssp-radius-small: 11px;
}

body.ssp-site-shell.ssp-layout-catalog .inside-header {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

body.ssp-site-shell.ssp-layout-catalog .main-navigation {
  background: var(--ssp-primary-dark);
}

body.ssp-site-shell.ssp-layout-catalog .main-navigation .inside-navigation,
body.ssp-site-shell.ssp-layout-catalog .main-navigation .main-nav > ul {
  justify-content: center;
}

body.ssp-site-shell.ssp-layout-catalog .main-navigation .main-nav ul li a,
body.ssp-site-shell.ssp-layout-catalog .main-navigation .menu-primary-container ul li a {
  color: #ffffff;
}

body.ssp-site-shell.ssp-layout-catalog .main-navigation .main-nav ul li:hover > a,
body.ssp-site-shell.ssp-layout-catalog .main-navigation .main-nav ul li:focus > a,
body.ssp-site-shell.ssp-layout-catalog .main-navigation .main-nav ul li.current-menu-item > a {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body.ssp-site-shell.ssp-layout-catalog .ssp-front-hero {
  grid-template-columns: 1fr;
  text-align: center;
}

body.ssp-site-shell.ssp-layout-catalog .ssp-front-hero p,
body.ssp-site-shell.ssp-layout-catalog .ssp-front-meta {
  justify-content: center;
  margin-inline: auto;
}

body.ssp-site-shell.ssp-layout-catalog .ssp-decision-map {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.ssp-site-shell.ssp-layout-catalog .ssp-decision-map li {
  display: flex;
  flex-direction: column;
  min-height: 132px;
  justify-content: center;
  text-align: center;
}

body.ssp-site-shell.ssp-layout-catalog .ssp-card-thumb {
  aspect-ratio: 4 / 3;
}

/* Utility: compact chrome and maximum working width for tools/data. */
body.ssp-site-shell.ssp-layout-utility {
  --ssp-radius: 5px;
  --ssp-radius-small: 4px;
  --ssp-shadow: none;
  --ssp-shadow-soft: none;
}

body.ssp-site-shell.ssp-layout-utility .inside-header {
  padding-top: 14px;
  padding-bottom: 14px;
}

body.ssp-site-shell.ssp-layout-utility .main-title,
body.ssp-site-shell.ssp-layout-utility .main-title a {
  font-size: 24px;
}

body.ssp-site-shell.ssp-layout-utility .main-navigation .main-nav ul li a,
body.ssp-site-shell.ssp-layout-utility .main-navigation .menu-primary-container ul li a {
  border-radius: var(--ssp-radius-small);
}

body.ssp-site-shell.ssp-layout-utility .ssp-front-hero {
  grid-template-columns: minmax(0, 0.8fr) minmax(380px, 1.2fr);
  background: var(--ssp-bg-panel);
  box-shadow: none;
}

body.ssp-site-shell.ssp-layout-utility .ssp-decision-map li {
  min-height: 48px;
  padding: 7px 10px;
}

body.ssp-site-shell.ssp-layout-utility .ssp-tool-card,
body.ssp-site-shell.ssp-layout-utility .ssp-category-post-card,
body.ssp-site-shell.ssp-layout-utility .ssp-loop-grid .inside-article {
  box-shadow: none;
}

/* Minimal: reference-manual feel with almost no decorative chrome. */
body.ssp-site-shell.ssp-layout-minimal {
  --ssp-radius: 0;
  --ssp-radius-small: 0;
  --ssp-shadow: none;
  --ssp-shadow-soft: none;
  background: var(--ssp-surface);
}

body.ssp-site-shell.ssp-layout-minimal .site-header {
  border-bottom: 2px solid var(--ssp-heading);
  box-shadow: none;
}

body.ssp-site-shell.ssp-layout-minimal:not(.wp-custom-logo) .site-branding::before,
body.ssp-site-shell.ssp-layout-minimal .ssp-hero-visual {
  display: none;
}

body.ssp-site-shell.ssp-layout-minimal:not(.wp-custom-logo) .site-branding {
  padding-inline-start: 0;
}

body.ssp-site-shell.ssp-layout-minimal .main-navigation .main-nav ul li a,
body.ssp-site-shell.ssp-layout-minimal .main-navigation .menu-primary-container ul li a {
  padding-inline: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.ssp-site-shell.ssp-layout-minimal .ssp-front-hero {
  display: block;
  padding-inline: 0;
  border: 0;
  border-bottom: 1px solid var(--ssp-border);
  background: transparent;
}

body.ssp-site-shell.ssp-layout-minimal .inside-article,
body.ssp-site-shell.ssp-layout-minimal .page-header,
body.ssp-site-shell.ssp-layout-minimal .ssp-latest-card,
body.ssp-site-shell.ssp-layout-minimal .ssp-featured-card,
body.ssp-site-shell.ssp-layout-minimal .ssp-decision-card,
body.ssp-site-shell.ssp-layout-minimal .ssp-category-card,
body.ssp-site-shell.ssp-layout-minimal .ssp-tool-card,
body.ssp-site-shell.ssp-layout-minimal .ssp-related-card {
  border-width: 0 0 1px;
  box-shadow: none;
}

/* Logical-direction repairs for components that predate semantic tokens. */
[dir="rtl"] body.ssp-site-shell:not(.wp-custom-logo) .site-branding {
  padding-right: 46px;
  padding-left: 0;
}

[dir="rtl"] body.ssp-site-shell:not(.wp-custom-logo) .site-branding::before {
  right: 0;
  left: auto;
}

[dir="rtl"] body.ssp-site-shell .ssp-notice,
[dir="rtl"] body.ssp-site-shell .ssp-caveat,
[dir="rtl"] body.ssp-site-shell .ssp-source-note,
[dir="rtl"] body.ssp-site-shell .ssp-disclosure,
[dir="rtl"] body.ssp-site-shell .ssp-auto-toc,
[dir="rtl"] body.ssp-site-shell .ssp-decision-box,
[dir="rtl"] body.ssp-site-shell .ssp-affiliate-slot {
  border-right-width: 4px;
  border-left-width: 1px;
}

@media (max-width: 1024px) {
  body.ssp-site-shell.ssp-archive-grid-3 .ssp-loop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.ssp-site-shell.ssp-layout-editorial .ssp-decision-map,
  body.ssp-site-shell.ssp-layout-catalog .ssp-decision-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.ssp-site-shell .ssp-loop-grid,
  body.ssp-site-shell.ssp-archive-grid-2 .ssp-loop-grid,
  body.ssp-site-shell.ssp-archive-grid-3 .ssp-loop-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    gap: 12px;
    padding: 0 16px;
  }

  body.ssp-site-shell .ssp-loop-grid .inside-article,
  body.ssp-site-shell.ssp-density-compact .inside-article,
  body.ssp-site-shell.ssp-density-airy .inside-article,
  body.ssp-site-shell.ssp-role-trust .inside-article,
  body.ssp-site-shell.ssp-role-data .inside-article,
  body.ssp-site-shell.ssp-role-comparison .inside-article,
  body.ssp-site-shell.ssp-role-tool .inside-article,
  body.ssp-site-shell.ssp-role-hub .inside-article,
  body.ssp-site-shell.ssp-width-reading .inside-article,
  body.ssp-site-shell.ssp-width-content .inside-article,
  body.ssp-site-shell.ssp-width-data .inside-article {
    width: 100%;
    max-width: 100%;
    padding: 28px 18px;
  }

  body.ssp-site-shell.ssp-layout-editorial .ssp-decision-map,
  body.ssp-site-shell.ssp-layout-catalog .ssp-decision-map {
    grid-template-columns: 1fr;
  }

  body.ssp-site-shell.ssp-layout-utility .ssp-front-hero {
    grid-template-columns: 1fr;
  }

  body.ssp-site-shell.ssp-layout-catalog .main-navigation .main-nav ul li a,
  body.ssp-site-shell.ssp-layout-catalog .main-navigation .menu-primary-container ul li a {
    color: var(--ssp-text);
  }

  body.ssp-site-shell .ssp-footer-menu,
  body.ssp-site-shell .ssp-footer-meta {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ssp-site-shell *,
  body.ssp-site-shell *::before,
  body.ssp-site-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  body.ssp-site-shell a:focus-visible,
  body.ssp-site-shell button:focus-visible,
  body.ssp-site-shell input:focus-visible,
  body.ssp-site-shell select:focus-visible,
  body.ssp-site-shell textarea:focus-visible {
    outline: 3px solid Highlight;
  }

  body.ssp-site-shell .ssp-decision-card,
  body.ssp-site-shell .ssp-category-card,
  body.ssp-site-shell .ssp-tool-card,
  body.ssp-site-shell .ssp-loop-grid .inside-article {
    border: 1px solid CanvasText;
  }
}

@media print {
  body.ssp-site-shell {
    background: #ffffff !important;
    color: #000000 !important;
  }

  body.ssp-site-shell .site-header,
  body.ssp-site-shell .main-navigation,
  body.ssp-site-shell .site-footer,
  body.ssp-site-shell .ssp-breadcrumbs,
  body.ssp-site-shell .ssp-affiliate-slot,
  body.ssp-site-shell .ssp-button-row,
  body.ssp-site-shell .search-form {
    display: none !important;
  }

  body.ssp-site-shell .inside-article,
  body.ssp-site-shell .page-header {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.ssp-site-shell .entry-content table {
    font-size: 10pt;
  }

  body.ssp-site-shell .entry-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    overflow-wrap: anywhere;
    font-size: 9pt;
  }
}
