/* KAS CPA sitewide polish layer.
   Loaded last so shared brand/header/footer rules win over page-template drift. */

:root {
  --kas-header-max: 1320px;
  --kas-header-height: 80px;
  --kas-coral: #e8634a;
  --kas-gold: #d8ba55;
  --kas-gold-light: #f1dc82;
  --kas-prestige-bg: #070c18;
  --kas-prestige-panel: #071026;
}

@media (min-width: 1600px) {
  :root {
    --kas-header-max: 1440px;
  }
}

.top-bar > .container,
.header > .container {
  width: min(100%, var(--kas-header-max)) !important;
  max-width: var(--kas-header-max) !important;
  margin-inline: auto !important;
  padding-inline: clamp(24px, 3vw, 48px) !important;
}

.top-bar {
  position: relative !important;
  top: auto !important;
  z-index: 1010 !important;
}

.header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) !important;
}

html,
body {
  overflow-x: clip;
}

html {
  overflow-y: auto;
  scroll-padding-top: var(--kas-header-height);
}

body {
  overflow-y: visible;
}

html[data-kas-a11y-text="1"] {
  font-size: 106%;
}

html[data-kas-a11y-text="2"] {
  font-size: 112%;
}

html[data-kas-a11y-links="true"] a {
  text-decoration: underline !important;
  text-underline-offset: 0.18em !important;
}

html[data-kas-a11y-contrast="true"] {
  --text-primary: #ffffff;
  --text-secondary: #d9e6f7;
  --text-muted: #b8c6da;
  --glass-border: rgba(255, 255, 255, 0.34);
  --glass-hover: rgba(255, 255, 255, 0.08);
}

html[data-kas-a11y-motion="true"],
html[data-kas-a11y-motion="true"] * {
  scroll-behavior: auto !important;
}

html[data-kas-a11y-motion="true"] *,
html[data-kas-a11y-motion="true"] *::before,
html[data-kas-a11y-motion="true"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

.kas-a11y-widget {
  position: fixed;
  left: max(4px, env(safe-area-inset-left));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 18px));
  z-index: 12020;
  color: #f7fbff;
  font-family: inherit;
}

.kas-a11y-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: #07834e;
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.kas-a11y-button:hover,
.kas-a11y-button:focus-visible {
  background: #0b9a5f;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  transform: translateY(-1px);
}

.kas-a11y-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.86);
  outline-offset: 3px;
}

.kas-a11y-button svg {
  width: 26px;
  height: 26px;
}

.kas-a11y-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  width: min(330px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid rgba(216, 186, 85, 0.22);
  border-radius: 8px;
  background: rgba(9, 15, 26, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.kas-a11y-panel[hidden] {
  display: none;
}

.kas-a11y-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.kas-a11y-title {
  margin: 0;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kas-a11y-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.kas-a11y-close:hover,
.kas-a11y-close:focus-visible {
  border-color: rgba(216, 186, 85, 0.6);
  color: var(--accent-coral, var(--kas-gold));
}

.kas-a11y-text {
  margin: 0 0 14px;
  color: #becae0;
  font-size: 0.85rem;
  line-height: 1.55;
}

.kas-a11y-controls {
  display: grid;
  gap: 10px;
}

.kas-a11y-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.kas-a11y-control {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: #f7fbff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.kas-a11y-control:hover,
.kas-a11y-control:focus-visible,
.kas-a11y-control[aria-pressed="true"] {
  border-color: rgba(216, 186, 85, 0.74);
  background: rgba(216, 186, 85, 0.14);
  color: #ffffff;
}

.kas-a11y-reset {
  margin-top: 4px;
  color: #d8ba55;
}

.kas-a11y-note {
  margin: 12px 0 0;
  color: #8d9bb2;
  font-size: 0.72rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .kas-a11y-widget {
    left: max(4px, env(safe-area-inset-left));
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 14px));
  }

  .kas-a11y-panel {
    width: calc(100vw - 28px);
  }
}

@media print {
  .kas-a11y-widget {
    display: none !important;
  }
}

.header > .container {
  min-height: var(--kas-header-height) !important;
  height: var(--kas-header-height) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: clamp(18px, 2vw, 28px) !important;
}

.header .logo {
  display: inline-grid !important;
  grid-template-columns: max-content max-content !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  justify-content: start !important;
  column-gap: 14px !important;
  row-gap: 1px !important;
  flex: 0 0 auto !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
  text-decoration: none !important;
}

.header .logo-mark,
.footer .logo-mark {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
}

.header .logo-mark {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
}

.header .logo-mark svg,
.footer .logo-mark svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.header .logo-text,
.footer .logo-text {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  max-width: 390px !important;
  line-height: 1.2 !important;
}

.header .logo-text {
  display: contents !important;
  max-width: none !important;
}

.header .logo-name,
.footer .logo-name {
  display: block !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  line-height: 1.08 !important;
}

.header .logo-name {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: end !important;
}

.header .logo-sub,
.footer .logo-sub {
  display: grid !important;
  gap: 1px !important;
  max-width: 390px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  text-transform: none !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.header .logo-sub {
  grid-column: 2 !important;
  grid-row: 2 !important;
  max-width: none !important;
}

.header .logo-division,
.footer .logo-division,
.header .logo-legal,
.footer .logo-legal {
  display: block !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.header .logo-division,
.footer .logo-division {
  color: rgba(174, 184, 200, 0.82) !important;
  font-size: 0.55rem !important;
  letter-spacing: 0.015em !important;
  line-height: 1.1 !important;
  opacity: 1 !important;
  text-transform: none !important;
}

.header .logo-legal,
.footer .logo-legal {
  color: rgba(190, 202, 220, 0.86) !important;
  font-size: 0.64rem !important;
  letter-spacing: 0.015em !important;
  line-height: 1.12 !important;
  white-space: nowrap !important;
  text-transform: none !important;
}

.header .nav {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  justify-content: flex-start !important;
}

.header .nav-item {
  display: inline-flex !important;
  align-items: center !important;
  min-height: var(--kas-header-height) !important;
  padding-inline: clamp(10px, 0.95vw, 20px) !important;
  white-space: nowrap !important;
}

.header .nav-dropdown-toggle {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
}

.header .nav-dropdown-toggle:hover,
.header .nav-dropdown-toggle:focus,
.header .nav-dropdown-toggle:active {
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

.header .dropdown-dot {
  display: inline-block !important;
  color: var(--accent-coral, var(--kas-coral)) !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

.header .nav-item.has-dropdown.open > .dropdown,
.header .nav-item.has-dropdown.open > .mega-dropdown,
.header .nav-item.has-dropdown:focus-within > .dropdown,
.header .nav-item.has-dropdown:focus-within > .mega-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (min-width: 769px) {
  .header .nav-item.has-dropdown.open > .dropdown,
  .header .nav-item.has-dropdown:focus-within > .dropdown {
    display: block !important;
    left: 0 !important;
    right: auto !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .header .nav-item.has-dropdown.open > .mega-dropdown,
  .header .nav-item.has-dropdown:focus-within > .mega-dropdown {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: min(800px, calc(100vw - 64px)) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .header .mega-dropdown .mega-col {
    min-width: 0 !important;
  }
}

.header .dropdown,
.header .mega-dropdown {
  background: rgba(8, 12, 20, 0.985) !important;
  border-color: rgba(232, 99, 74, 0.18) !important;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42) !important;
  backdrop-filter: none !important;
  z-index: 1000 !important;
}

.header .dropdown a,
.header .mega-col a {
  color: rgba(215, 226, 242, 0.82) !important;
  opacity: 1 !important;
}

.header .mega-col-title,
.header .dropdown a .dropdown-label {
  color: var(--accent-coral, var(--kas-coral)) !important;
  opacity: 1 !important;
}

.header .dropdown a:hover,
.header .mega-col a:hover {
  color: #ffffff !important;
  background: rgba(232, 99, 74, 0.08) !important;
}

.header .insights-mega-dropdown {
  width: min(1080px, calc(100vw - 72px)) !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.header .insights-mega-dropdown .insights-menu-column {
  padding: clamp(24px, 2.3vw, 34px) !important;
  border-right: 1px solid rgba(232, 99, 74, 0.14) !important;
}

.header .insights-mega-dropdown .insights-menu-column:last-child {
  border-right: 0 !important;
}

.header .insights-mega-dropdown .mega-col-title {
  margin-bottom: 18px !important;
}

.header .insights-link-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px 18px !important;
}

.header .insights-menu-link {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  gap: 11px !important;
  align-items: start !important;
  min-height: 78px !important;
  padding: 10px 8px !important;
  border-radius: 6px !important;
  color: rgba(215, 226, 242, 0.82) !important;
  transition: color var(--transition, 0.25s ease), background var(--transition, 0.25s ease), transform var(--transition, 0.25s ease) !important;
}

.header .insights-menu-link:hover,
.header .insights-menu-link:focus {
  padding-left: 8px !important;
  color: #ffffff !important;
  background: rgba(232, 99, 74, 0.075) !important;
  transform: translateY(-1px) !important;
}

.header .insights-link-icon {
  position: relative !important;
  display: inline-flex !important;
  width: 22px !important;
  height: 22px !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--accent-coral, var(--kas-coral)) !important;
  opacity: 0.95 !important;
}

.header .insights-link-icon::after {
  display: none !important;
}

.header .insights-link-icon svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  overflow: visible !important;
  stroke: currentColor !important;
}

.header .insights-menu-link:hover .insights-link-icon,
.header .insights-menu-link:focus .insights-link-icon {
  color: #ffffff !important;
  opacity: 1 !important;
}

.header .insights-menu-link strong {
  display: block !important;
  margin-bottom: 3px !important;
  color: rgba(242, 246, 252, 0.96) !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

.header .insights-menu-link small {
  display: block !important;
  color: rgba(169, 181, 200, 0.82) !important;
  font-size: 0.72rem !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  white-space: normal !important;
}

.header .insights-view-all {
  background: rgba(232, 99, 74, 0.045) !important;
}

@media (min-width: 769px) {
  .header .nav-item.has-dropdown.open > .insights-mega-dropdown,
  .header .nav-item.has-dropdown:focus-within > .insights-mega-dropdown {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(1080px, calc(100vw - 72px)) !important;
  }
}

@media (max-width: 1180px) and (min-width: 769px) {
  .header .insights-mega-dropdown {
    width: min(920px, calc(100vw - 48px)) !important;
  }

  .header .insights-link-grid {
    grid-template-columns: 1fr !important;
  }

  .header .insights-menu-link {
    min-height: auto !important;
  }
}

@media (max-width: 768px) {
  .header .insights-mega-dropdown {
    padding: 0 !important;
    overflow: visible !important;
  }

  .header .insights-mega-dropdown .insights-menu-column {
    padding: 16px !important;
    border-right: 0 !important;
  }

  .header .insights-link-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  .header .insights-menu-link {
    min-height: auto !important;
    padding: 11px 8px !important;
  }
}

.header .header-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 16px !important;
  flex: 0 0 auto !important;
  min-width: max-content !important;
  margin-left: auto !important;
}

.header .theme-toggle {
  flex: 0 0 58px !important;
  width: 58px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.header .theme-toggle-knob {
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
}

.header .nav-cta {
  min-height: 64px !important;
  min-width: 136px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: left !important;
}

.footer .logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: auto !important;
  max-width: 390px !important;
}

.footer-grid {
  align-items: start !important;
  gap: clamp(32px, 5vw, 72px) !important;
}

.footer-brand,
.footer-col {
  min-width: 0 !important;
}

.footnote-strip .container {
  width: min(100%, 1200px) !important;
}

.footnote-form {
  width: min(100%, 540px) !important;
  min-width: 0 !important;
}

.footnote-form iframe {
  width: 450px !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  min-height: 86px !important;
}

@media (min-width: 901px) {
  .footnote-form {
    min-width: 500px !important;
  }
}

@media (max-width: 900px) {
  .footnote-form {
    width: 100% !important;
    min-width: 0 !important;
  }
}

html[data-theme="prestige"] .header .dropdown-dot {
  color: var(--kas-gold) !important;
}

html[data-theme="prestige"] .header .dropdown,
html[data-theme="prestige"] .header .mega-dropdown {
  background: #081226 !important;
  border-color: rgba(216, 186, 85, 0.22) !important;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.46) !important;
}

html[data-theme="prestige"] .header .dropdown a,
html[data-theme="prestige"] .header .mega-col a {
  color: rgba(212, 225, 245, 0.84) !important;
}

html[data-theme="prestige"] .header .mega-col-title,
html[data-theme="prestige"] .header .dropdown a .dropdown-label {
  color: var(--kas-gold) !important;
}

html[data-theme="prestige"] .header .dropdown a:hover,
html[data-theme="prestige"] .header .mega-col a:hover {
  color: #fff8df !important;
  background: rgba(216, 186, 85, 0.08) !important;
}

html[data-theme="prestige"] .header .insights-mega-dropdown .insights-menu-column {
  border-right-color: rgba(216, 186, 85, 0.16) !important;
}

html[data-theme="prestige"] .header .insights-menu-link:hover,
html[data-theme="prestige"] .header .insights-menu-link:focus {
  background: rgba(216, 186, 85, 0.08) !important;
}

html[data-theme="prestige"] .header .insights-link-icon {
  color: var(--kas-gold) !important;
}

html[data-theme="prestige"] .header .insights-view-all {
  background: rgba(216, 186, 85, 0.055) !important;
}

html[data-theme="prestige"] .footnote-strip {
  background: #071026 !important;
  background-image: none !important;
  border-top-color: rgba(216, 186, 85, 0.28) !important;
  border-bottom-color: rgba(216, 186, 85, 0.18) !important;
}

html[data-theme="prestige"] .footnote-strip::before {
  background: linear-gradient(90deg, transparent, var(--kas-gold) 50%, transparent) !important;
}

html[data-theme="prestige"] .footnote-form {
  background: #101b33 !important;
  background-image: none !important;
  border-color: rgba(216, 186, 85, 0.22) !important;
  box-shadow: none !important;
}

html[data-theme="prestige"] .footnote-form iframe {
  filter: hue-rotate(36deg) saturate(0.86) brightness(0.98) !important;
}

html[data-theme="prestige"] .header .theme-toggle {
  background: #0f1830 !important;
  border-color: rgba(216, 186, 85, 0.32) !important;
}

html[data-theme="prestige"] .header .theme-toggle-knob {
  background: var(--kas-gold) !important;
}

html[data-theme="prestige"] .header .nav-cta,
html[data-theme="prestige"] .btn-primary,
html[data-theme="prestige"] .cta-button,
html[data-theme="prestige"] button[type="submit"] {
  background: var(--kas-gold) !important;
  background-image: none !important;
  color: var(--kas-prestige-bg) !important;
  border-color: var(--kas-gold) !important;
}

html[data-theme="prestige"] .header .nav-cta:hover,
html[data-theme="prestige"] .btn-primary:hover,
html[data-theme="prestige"] .cta-button:hover,
html[data-theme="prestige"] button[type="submit"]:hover {
  background: var(--kas-gold-light) !important;
  border-color: var(--kas-gold-light) !important;
  color: var(--kas-prestige-bg) !important;
}

.ai-answer-section {
  padding: clamp(36px, 5vw, 64px) 0;
  background: rgba(255, 255, 255, 0.012);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ai-answer-section .container {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: clamp(24px, 3vw, 48px);
}

.ai-answer-card {
  max-width: 980px;
  border: 1px solid rgba(232, 99, 74, 0.2);
  background: rgba(13, 18, 25, 0.74);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 36px);
}

.ai-answer-eyebrow {
  margin-bottom: 12px;
  color: var(--accent-coral, #e8634a);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ai-answer-card h2 {
  margin: 0 0 14px;
  color: var(--text-primary, #f7f2e8);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  font-weight: 400;
  line-height: 1.16;
}

.ai-answer-card p {
  margin: 0;
  max-width: 820px;
  color: var(--text-secondary, #aeb8c8);
  font-size: 1rem;
  line-height: 1.75;
}

.ai-answer-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ai-answer-points li {
  min-height: 100%;
  border-left: 2px solid rgba(232, 99, 74, 0.72);
  padding-left: 12px;
  color: var(--text-secondary, #aeb8c8);
  font-size: 0.94rem;
  line-height: 1.55;
}

html[data-theme="prestige"] .ai-answer-section {
  background: #071126 !important;
  background-image: none !important;
  border-top-color: rgba(216, 186, 85, 0.18) !important;
  border-bottom-color: rgba(216, 186, 85, 0.12) !important;
}

html[data-theme="prestige"] .ai-answer-card {
  background: #0b1730 !important;
  border-color: rgba(216, 186, 85, 0.2) !important;
}

html[data-theme="prestige"] .ai-answer-eyebrow,
html[data-theme="prestige"] .ai-answer-points li {
  border-color: rgba(216, 186, 85, 0.72) !important;
}

html[data-theme="prestige"] .ai-answer-eyebrow {
  color: var(--kas-gold) !important;
}

.source-proof-section {
  padding: clamp(36px, 5vw, 64px) 0;
  background: rgba(255, 255, 255, 0.008);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.content .source-proof-section {
  margin: 48px 0;
  padding: 32px;
  background: var(--glass, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
}

.source-proof-section .container,
.answer-content-section .container {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: clamp(24px, 3vw, 48px);
}

.content .source-proof-section .container {
  width: 100%;
  padding-inline: 0;
}

.source-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.content .source-proof-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

.source-proof-eyebrow,
.answer-eyebrow {
  margin-bottom: 12px;
  color: var(--accent-coral, #e8634a);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-proof-copy h2,
.answer-main h2,
.answer-side-card h2 {
  margin: 0 0 14px;
  color: var(--text-primary, #f7f2e8);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  font-weight: 400;
  line-height: 1.18;
}

.source-proof-copy p,
.answer-main p,
.answer-side-card p {
  color: var(--text-secondary, #aeb8c8);
  font-size: 0.96rem;
  line-height: 1.75;
}

.source-proof-list {
  display: grid;
  gap: 12px;
}

.source-proof-item {
  display: block;
  border: 1px solid rgba(232, 99, 74, 0.18);
  background: rgba(13, 18, 25, 0.56);
  border-radius: 8px;
  padding: 16px 18px;
}

.source-proof-item:hover {
  border-color: rgba(232, 99, 74, 0.42);
}

.source-proof-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-coral, #e8634a);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.source-proof-item strong {
  display: block;
  color: var(--text-primary, #f7f2e8);
  font-size: 0.94rem;
  line-height: 1.55;
}

.source-proof-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 2px;
}

.source-proof-links span {
  color: var(--text-muted, #6c7788);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.source-proof-links a {
  border: 1px solid rgba(232, 99, 74, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--text-secondary, #aeb8c8);
  font-size: 0.78rem;
}

.source-proof-links a:hover {
  border-color: rgba(232, 99, 74, 0.48);
  color: var(--text-primary, #f7f2e8);
}

.answer-content-section {
  padding: clamp(56px, 7vw, 96px) 0;
}

.answer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.answer-main {
  max-width: 820px;
}

.answer-main h2:not(:first-child) {
  margin-top: 34px;
}

.answer-main ul {
  display: grid;
  gap: 11px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.answer-main li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary, #aeb8c8);
  font-size: 0.96rem;
  line-height: 1.65;
}

.answer-main li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-coral, #e8634a);
}

.answer-side-card {
  border: 1px solid rgba(232, 99, 74, 0.18);
  background: rgba(13, 18, 25, 0.62);
  border-radius: 8px;
  padding: 24px;
  position: sticky;
  top: 112px;
}

.answer-side-card a {
  display: block;
  padding: 10px 0;
  color: var(--text-secondary, #aeb8c8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.answer-side-card a:last-child {
  border-bottom: 0;
}

.answer-side-card a:hover {
  color: var(--accent-coral, #e8634a);
}

html[data-theme="prestige"] .source-proof-section {
  background: #071126 !important;
  border-bottom-color: rgba(216, 186, 85, 0.12) !important;
}

html[data-theme="prestige"] .source-proof-eyebrow,
html[data-theme="prestige"] .answer-eyebrow,
html[data-theme="prestige"] .source-proof-item span,
html[data-theme="prestige"] .answer-side-card a:hover {
  color: var(--kas-gold) !important;
}

html[data-theme="prestige"] .source-proof-item,
html[data-theme="prestige"] .answer-side-card,
html[data-theme="prestige"] .source-proof-links a {
  background: #0b1730 !important;
  border-color: rgba(216, 186, 85, 0.2) !important;
}

html[data-theme="prestige"] .source-proof-item:hover,
html[data-theme="prestige"] .source-proof-links a:hover {
  border-color: rgba(216, 186, 85, 0.48) !important;
}

html[data-theme="prestige"] .answer-main li::before {
  background: var(--kas-gold) !important;
}

.footer-social {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
}

.footer-social a {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  aspect-ratio: 1 / 1 !important;
  flex: 0 0 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
}

.footer-social a svg {
  display: block !important;
  width: 1em !important;
  height: 1em !important;
  flex: 0 0 auto !important;
}

@media (min-width: 1025px) and (max-width: 1220px) {
  .header > .container {
    gap: 12px !important;
    padding-inline: 24px !important;
  }

  .header .logo {
    column-gap: 10px !important;
    row-gap: 1px !important;
  }

  .header .logo-mark {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
  }

  .header .logo-name {
    font-size: 1.08rem !important;
  }

  .header .logo-sub {
    gap: 0 !important;
  }

  .header .logo-division {
    font-size: 0.48rem !important;
  }

  .header .logo-legal {
    font-size: 0.54rem !important;
    letter-spacing: 0.01em !important;
  }

  .header .nav-item {
    padding-inline: 6px !important;
    font-size: 0.78rem !important;
  }

  .header .header-actions {
    gap: 10px !important;
  }

  .header .nav-cta {
    min-width: 112px !important;
    padding-inline: 18px !important;
  }
}

@media (max-width: 1024px) {
  .header > .container {
    min-height: 72px !important;
    height: 72px !important;
  }

  .header .logo {
    flex: 0 1 auto !important;
    grid-template-columns: max-content max-content !important;
    column-gap: 10px !important;
    max-width: calc(100vw - 112px) !important;
  }

  .header .logo-sub {
    gap: 0 !important;
  }

  .header .logo-division {
    font-size: 0.42rem !important;
  }

  .header .logo-legal {
    font-size: 0.48rem !important;
    letter-spacing: 0.01em !important;
  }

  .header .header-actions {
    margin-left: auto !important;
  }

  .header .nav-cta {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .ai-answer-points {
    grid-template-columns: 1fr;
  }

  .source-proof-grid,
  .answer-layout {
    grid-template-columns: 1fr;
  }

  .answer-side-card {
    position: static;
  }

  .header .nav {
    justify-content: flex-start !important;
  }

  .header .nav-item {
    min-height: auto !important;
    white-space: normal !important;
  }

  .header .nav-dropdown-toggle {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .header .theme-toggle {
    width: 54px !important;
    flex-basis: 54px !important;
  }
}

@media (max-width: 480px) {
  .header > .container {
    padding-inline: 16px !important;
  }

  .header .logo {
    gap: 10px !important;
    max-width: calc(100vw - 104px) !important;
  }

  .header .logo-mark {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
  }

  .header .logo-name {
    font-size: 1.08rem !important;
  }

  .header .logo-sub {
    gap: 0 !important;
  }

  .header .logo-division {
    font-size: 0.36rem !important;
  }

  .header .logo-legal {
    font-size: 0.38rem !important;
    letter-spacing: 0 !important;
  }

  .header .theme-toggle {
    width: 50px !important;
    flex-basis: 50px !important;
  }
}

/* Prestige theme: keep content surfaces flat so old translucent navy panels do
   not render as uneven blotches on long service, industry, and blog pages. */
html[data-theme="prestige"] main,
html[data-theme="prestige"] article,
html[data-theme="prestige"] .content-section,
html[data-theme="prestige"] .services-section,
html[data-theme="prestige"] .faq-section,
html[data-theme="prestige"] .source-proof-section,
html[data-theme="prestige"] .ai-answer-section,
html[data-theme="prestige"] .cta-section {
  background-color: var(--kas-prestige-panel, #071026) !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

html[data-theme="prestige"] .sidebar-card,
html[data-theme="prestige"] .stat-box,
html[data-theme="prestige"] .service-card,
html[data-theme="prestige"] .industry-card,
html[data-theme="prestige"] .why-card,
html[data-theme="prestige"] .tier-card,
html[data-theme="prestige"] .tool-card,
html[data-theme="prestige"] .insight-card,
html[data-theme="prestige"] .credential-card,
html[data-theme="prestige"] .leader-info-bar,
html[data-theme="prestige"] .contact-card,
html[data-theme="prestige"] .form-card,
html[data-theme="prestige"] .rfp-form-card,
html[data-theme="prestige"] .related-resources,
html[data-theme="prestige"] .faq-block,
html[data-theme="prestige"] .cta-box,
html[data-theme="prestige"] .ai-answer-card,
html[data-theme="prestige"] .source-proof-item,
html[data-theme="prestige"] .answer-side-card,
html[data-theme="prestige"] .source-proof-links a {
  background-color: var(--kas-prestige-panel, #071026) !important;
  background-image: none !important;
  border-color: rgba(216, 186, 85, 0.16) !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-theme="prestige"] .feature-card > .feature-icon {
  width: 52px !important;
  height: 52px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 22px !important;
  border: 1px solid rgba(216, 186, 85, 0.26) !important;
  border-radius: 8px !important;
  background: rgba(216, 186, 85, 0.08) !important;
  color: var(--kas-gold, #d8ba55) !important;
  box-sizing: border-box !important;
}

html[data-theme="prestige"] .feature-card > .feature-icon svg {
  width: 1em !important;
  height: 1em !important;
  display: block !important;
}
