/*
Theme Name: Leweb Safe
Author: Leweb rebuild
Description: Clean local rebuild theme for safe content verification.
Version: 0.2.0
*/

:root {
  --paper: #fbfbf7;
  --paper-card: #f2f4ef;
  --surface: #ffffff;
  --ink: #111312;
  --muted: #565a57;
  --muted-light: #8b908c;
  --brand: #092e1e;
  --brand-bright: #124d34;
  --brand-soft: #e7eee9;
  --gold: #b38243;
  --gold-soft: #f5edd2;
  --blue: #1f4d6b;
  --border: #e2dbc8;
  --border-light: #ebe6d5;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-sm: 0 4px 20px rgba(17, 19, 18, 0.03);
  --shadow-lg: 0 24px 68px rgba(17, 19, 18, 0.08);
  --radius-card: 8px;
  --radius-soft: 8px;
  --max-width: 1400px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* AI Visibility Audit result interface */
.tool-audit-layout {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1120px);
}

.audit-results {
  width: 100%;
}

.audit-flow {
  --audit-red: #c84630;
  --audit-orange: #d9822b;
  --audit-yellow: #c9a227;
  --audit-light-green: #6a994e;
  --audit-green: #2f6f4e;
  display: grid;
  gap: 34px;
  max-width: 1120px;
  color: #171713;
}

.audit-tone--red { --audit-tone: var(--audit-red); --audit-tone-bg: #fff5f2; }
.audit-tone--orange { --audit-tone: var(--audit-orange); --audit-tone-bg: #fff8ef; }
.audit-tone--yellow { --audit-tone: var(--audit-yellow); --audit-tone-bg: #fffbea; }
.audit-tone--light-green { --audit-tone: var(--audit-light-green); --audit-tone-bg: #f3f8ef; }
.audit-tone--green { --audit-tone: var(--audit-green); --audit-tone-bg: #eff7f2; }

.audit-flow .audit-summary-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 34px;
  border: 1px solid #ddd5c4;
  border-top: 5px solid var(--audit-tone);
  border-radius: var(--radius-card);
  background: #fffdf8;
  box-shadow: 0 18px 52px rgba(23, 23, 19, .06);
}

.audit-flow .audit-score-ring {
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  border: 11px solid var(--audit-tone);
  border-radius: 50%;
  background: #ffffff;
}

.audit-flow .audit-score-ring span {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
}

.audit-flow .audit-score-ring small {
  margin-top: -30px;
  color: #6b675e;
  font-size: 12px;
  font-weight: 900;
}

.audit-summary-body h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1.08;
}

.audit-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.audit-status-line strong {
  color: var(--audit-tone);
  font-size: 20px;
}

.audit-status-line span {
  color: #6b675e;
  font-size: 13px;
  font-weight: 800;
}

.audit-summary-body p {
  max-width: 760px;
  margin: 0 0 14px;
  color: #6b675e;
  font-size: 16px;
  line-height: 1.65;
}

.audit-summary-body a {
  color: #062e1b;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.audit-flow .audit-section {
  display: grid;
  gap: 16px;
}

.audit-section-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.12;
}

.audit-main-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.audit-main-score-card,
.audit-priority-card,
.audit-quick-win-card,
.audit-detail-group,
.audit-authority-unavailable,
.audit-copy-fixes {
  border: 1px solid #ddd5c4;
  border-radius: var(--radius-card);
  background: #fffdf8;
  box-shadow: 0 8px 28px rgba(23, 23, 19, .035);
}

.audit-main-score-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 300px;
  padding: 22px;
  border-top: 4px solid var(--audit-tone);
}

.audit-main-score-card__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.audit-main-score-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.audit-main-score-card__top strong {
  color: var(--audit-tone);
  font-family: var(--font-serif);
  font-size: 27px;
  line-height: 1;
  white-space: nowrap;
}

.audit-score-pill,
.audit-priority-badge,
.audit-quick-win-card .audit-signal-pill {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--audit-tone-bg, #f7f5ef);
  color: var(--audit-tone, #062e1b);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.audit-main-score-card p,
.audit-quick-win-card p,
.audit-muted-note {
  margin: 0;
  color: #6b675e;
  font-size: 14px;
  line-height: 1.55;
}

.audit-card-issues {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #e7dfce;
}

.audit-card-issues span {
  display: block;
  margin-bottom: 8px;
  color: #6b675e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.audit-card-issues ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #171713;
  font-size: 14px;
  font-weight: 800;
}

.audit-text-button {
  justify-self: start;
  color: #062e1b;
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.audit-priority-list {
  display: grid;
  gap: 14px;
}

.audit-priority-card {
  padding: 24px;
}

.audit-priority-card h3,
.audit-quick-win-card h3,
.audit-authority-unavailable h3 {
  margin: 12px 0 12px;
  font-size: 21px;
  line-height: 1.22;
}

.audit-priority-card dl,
.audit-flow .audit-check dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.audit-priority-card dt,
.audit-flow .audit-check dt {
  margin-bottom: 3px;
  color: #062e1b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.audit-priority-card dd,
.audit-flow .audit-check dd {
  margin: 0;
  color: #6b675e;
  font-size: 14px;
  line-height: 1.55;
}

.audit-example-label {
  margin: 16px 0 8px;
  color: #6b675e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.audit-code-wrap {
  position: relative;
  margin-top: 14px;
}

.audit-code-wrap pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  border-radius: var(--radius-card);
  background: #111312;
  color: #c8ddca;
  font-size: 12px;
  line-height: 1.55;
}

.audit-code-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.audit-quick-win-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.audit-quick-win-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px;
}

.audit-quick-win-card h3 {
  margin: 0;
  font-size: 18px;
}

.audit-flow .audit-details {
  display: grid;
  gap: 12px;
}

.audit-flow .audit-detail-group {
  overflow: hidden;
  border-left: 4px solid var(--audit-tone);
}

.audit-flow .audit-detail-group summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.audit-flow .audit-detail-group summary::-webkit-details-marker {
  display: none;
}

.audit-flow .audit-detail-group summary span {
  display: grid;
  gap: 4px;
}

.audit-flow .audit-detail-group summary strong {
  color: #171713;
  font-size: 16px;
}

.audit-flow .audit-detail-group summary small {
  color: #6b675e;
  font-size: 12px;
  font-weight: 800;
}

.audit-flow .audit-detail-group summary b {
  color: var(--audit-tone);
  font-family: var(--font-serif);
  font-size: 24px;
  white-space: nowrap;
}

.audit-check-list {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.audit-flow .audit-check {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 16px;
  border: 1px solid #e7dfce;
  border-radius: var(--radius-card);
  background: #ffffff;
}

.audit-flow .audit-check-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f7f5ef;
  color: #6b675e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.audit-flow .audit-check--passed .audit-check-icon {
  background: #eff7f2;
  color: #2f6f4e;
}

.audit-flow .audit-check--failed .audit-check-icon {
  background: #fff5f2;
  color: #c84630;
}

.audit-flow .audit-check--warning .audit-check-icon {
  background: #fff8ef;
  color: #d9822b;
}

.audit-flow .audit-check--blocked_by_dependency {
  background: #f8f7f2;
  color: #6f6b61;
}

.audit-flow .audit-check--blocked_by_dependency .audit-check-icon {
  background: #ece7dc;
  color: #6f6b61;
}

.audit-flow .audit-check header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.audit-flow .audit-check header strong {
  color: #171713;
  font-size: 15px;
}

.audit-flow .audit-check header em {
  color: #6b675e;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.audit-flow .audit-check p {
  margin: 0 0 12px;
  color: #6b675e;
  font-size: 14px;
}

.audit-flow .audit-authority-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.audit-flow .audit-authority-box div {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid #ddd5c4;
  border-radius: var(--radius-card);
  background: #fffdf8;
}

.audit-flow .audit-authority-box span {
  color: #6b675e;
  font-size: 13px;
}

.audit-flow .audit-authority-box strong {
  color: #171713;
  font-family: var(--font-serif);
  font-size: 31px;
  line-height: 1;
}

.audit-authority-unavailable {
  padding: 22px;
}

.audit-authority-unavailable h3,
.audit-authority-unavailable p {
  margin: 0;
}

.audit-authority-unavailable p {
  margin-top: 8px;
  color: #6b675e;
}

.audit-copy-fixes {
  padding: 24px;
}

.audit-fix-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.audit-fix-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #ddd5c4;
  border-radius: 999px;
  background: #ffffff;
  color: #6b675e;
  font-size: 13px;
  font-weight: 900;
}

.audit-fix-tab.is-active {
  border-color: #062e1b;
  background: #062e1b;
  color: #ffffff;
}

.audit-fix-panel {
  display: none;
}

.audit-fix-panel.is-active {
  display: block;
}

@media (max-width: 1100px) {
  .tool-audit-layout {
    grid-template-columns: 1fr;
  }

  .audit-flow .audit-authority-box,
  .audit-quick-win-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .audit-flow {
    gap: 26px;
  }

  .audit-flow .audit-summary-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .audit-summary-score {
    justify-self: start;
  }

  .audit-summary-body h2,
  .audit-section-heading h2 {
    font-size: 27px;
  }

  .audit-main-score-card {
    min-height: 0;
  }

  .audit-flow .audit-detail-group summary,
  .audit-flow .audit-check header {
    align-items: flex-start;
    flex-direction: column;
  }

  .audit-flow .audit-check {
    grid-template-columns: 1fr;
  }

  .audit-code-copy {
    position: static;
    margin-bottom: 8px;
    background: #062e1b;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 126px;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

/* Header */
.top-ticker {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.top-ticker-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ticker-signal {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticker-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-badge {
  flex: 0 0 auto;
  background: var(--brand);
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 900;
}

.ticker-desk {
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 247, 0.92);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
}

.nav-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  flex: 0 0 auto;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 39.2727px;
  flex: 0 0 auto;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}

.brand-logo rect {
  shape-rendering: crispEdges;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.desktop-mega-nav {
  position: relative;
}

.desktop-mega-nav summary {
  list-style: none;
}

.desktop-mega-nav summary::-webkit-details-marker {
  display: none;
}

.mega-summary {
  cursor: pointer;
}

.mega-summary::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.desktop-mega-nav[open] .mega-summary {
  color: var(--brand);
}

.mega-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  z-index: 140;
  width: min(840px, calc(100vw - 48px));
  padding-top: 12px;
  transform: translateX(-50%);
}

.mega-panel::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-left: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
  transform: translateX(-50%) rotate(45deg);
}

.mega-panel-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(24, 31, 29, 0.16);
}

.mega-card {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ink);
}

.mega-card:hover,
.mega-card:focus-visible,
.mega-card.active {
  border-color: rgba(9, 46, 30, 0.18);
  background: var(--brand-soft);
  color: var(--brand);
}

.mega-card-title {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.mega-card-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 14px rgba(9, 46, 30, 0.15);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--brand-bright);
  color: white;
  transform: translateY(-1px);
}

.mobile-nav {
  position: relative;
  display: none;
}

.mobile-nav summary {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  background: #ffffff;
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-icon,
.mobile-nav-icon::before,
.mobile-nav-icon::after {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: var(--ink);
}

.mobile-nav-icon {
  position: relative;
}

.mobile-nav-icon::before,
.mobile-nav-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.mobile-nav-icon::before {
  top: -6px;
}

.mobile-nav-icon::after {
  top: 6px;
}

.mobile-nav-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 150;
  width: min(360px, calc(100vw - 28px));
  padding: 8px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(24, 31, 29, 0.17);
}

.mobile-nav-link {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 7px;
  color: var(--ink);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible,
.mobile-nav-link.active {
  background: var(--brand-soft);
  color: var(--brand);
}

.mobile-nav-link strong {
  font-size: 15px;
  line-height: 1.2;
}

.mobile-nav-link span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

/* Front page */
.home .site-main {
  padding: 0;
}

.search-hub {
  padding: 44px 0 32px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  border-bottom: 1px solid var(--border-light);
}

.search-meta-box {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.search-meta-box h1 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 500;
  line-height: 1.1;
}

.search-meta-box p {
  margin: 0 auto;
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 14px;
  margin: 24px auto 0;
  max-width: 100%;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-category-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid #dfe0dd;
  border-radius: 999px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  transition: color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}

.hero-category-links a:first-child,
.hero-category-links a:hover {
  color: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 12px 28px rgba(46, 111, 64, .11);
}

.hero-category-links a:hover {
  transform: translateY(-1px);
}

.hero-category-links a:focus-visible {
  outline: 3px solid rgba(46, 111, 64, .18);
  outline-offset: 3px;
}

.hero-category-links__label--mobile {
  display: none;
}

.search-bar-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.search-bar-field svg {
  flex: 0 0 auto;
  margin-right: 18px;
  color: var(--muted-light);
}

.search-input {
  width: 100%;
  padding: 8px 0;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-size: 20px;
}

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

.quick-tags {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.tag-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--paper-card);
  color: var(--ink);
  font-weight: 700;
}

.tag-trigger:hover {
  background: var(--brand-soft);
  border-color: #d2e1d8;
  color: var(--brand);
}

.featured-on-strip {
  margin: 0 0 54px;
  padding: 0;
  border: 0;
}

.resource-overview {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 820px);
  gap: 44px;
  align-items: start;
  margin: 0 0 48px;
  padding: 38px 0 42px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.resource-overview--home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin: 0 0 46px;
  padding: 0 0 38px;
  border-top: 0;
  border-bottom: 0;
  text-align: left;
}

.resource-overview__block {
  min-width: 0;
}

.resource-overview__title {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.3;
}

.resource-overview__text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.resource-overview__link {
  display: inline;
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.resource-overview__link:hover {
  color: var(--brand-bright);
  border-bottom-color: currentColor;
}

.resource-overview__label span {
  display: block;
  margin-bottom: 14px;
  color: var(--brand-bright);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.resource-overview__label h2 {
  margin: 0;
  max-width: 260px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.12;
}

.resource-overview__copy {
  display: grid;
  gap: 16px;
  color: #303432;
  font-size: 17px;
  line-height: 1.72;
}

.resource-overview__copy p {
  margin: 0;
}

.resource-overview__copy a {
  color: var(--brand);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(9, 46, 30, .28);
  text-underline-offset: 4px;
}

.resource-overview__copy a:hover {
  color: var(--brand-bright);
  text-decoration-color: currentColor;
}

.featured-on-strip p {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.featured-on-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 34px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.featured-on-logos::-webkit-scrollbar {
  display: none;
}

.featured-on-logos img {
  display: block;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .9;
}

.featured-on-logos img:nth-child(1) {
  height: 20px;
  max-width: 170px;
}

.featured-on-logos img:nth-child(2) {
  height: 36px;
  max-width: 160px;
}

.featured-on-logos img:nth-child(3) {
  height: 40px;
  max-width: 160px;
}

.featured-on-logos img:nth-child(4) {
  height: 38px;
  max-width: 160px;
}

.featured-on-logos img:nth-child(5) {
  height: 40px;
  max-width: 92px;
}

.featured-on-logos img:nth-child(6) {
  height: 20px;
  max-width: 190px;
}

.rail-wrap {
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  background: var(--paper);
}

.category-rail {
  max-width: min(calc(100vw - 28px), var(--max-width));
  padding: 12px 0;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  white-space: nowrap;
}

.rail-btn {
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.rail-btn:hover,
.rail-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.magazine-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(320px, 1fr);
  gap: 48px;
  padding: 24px 0 82px;
}

.articles-stream,
.magazine-sidebar,
.trending-column {
  display: flex;
  flex-direction: column;
}

.articles-stream {
  gap: 56px;
}

.home-feature-section,
.latest-articles-section {
  display: grid;
  gap: 32px;
}

.home-feature-section {
  gap: 36px;
}

.latest-articles-section h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}

.cover-story,
.magazine-card,
.sidebar-block,
.lab-showcase-card {
  border-radius: var(--radius-card);
}

.cover-story,
.magazine-card {
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.cover-story {
  display: grid;
  grid-template-columns: minmax(260px, .88fr) minmax(0, 1.12fr);
}

.cover-story:hover,
.magazine-card:hover {
  box-shadow: var(--shadow-lg);
}

.magazine-card:hover {
  transform: translateY(-2px);
}

.cover-image-container,
.card-img-box {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-card);
}

.cover-image-container {
  height: 100%;
  min-height: 300px;
}

.card-img-box {
  height: 220px;
  min-height: 220px;
  flex: 0 0 220px;
}

.cover-image-container img,
.card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.cover-story:hover .cover-image-container img,
.magazine-card:hover .card-img-box img {
  transform: scale(1.03);
}

.image-placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}

.image-placeholder span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}

.cover-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  border-radius: 4px;
  background: var(--gold);
  color: white;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cover-body {
  padding: 26px;
}

.post-meta-data,
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.post-meta-data {
  margin-bottom: 16px;
}

.meta-cat {
  color: var(--brand);
  font-weight: 900;
}

.cover-body h2,
.card-body h3,
.sidebar-block h4,
.lab-head h2,
.footer-brand h3,
.entry-title,
.archive-title,
.post-card h2 {
  font-family: var(--font-serif);
  letter-spacing: 0;
}

.cover-body h2 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
}

.cover-body h2 a:hover,
.card-body h3 a:hover,
.trending-text h5 a:hover,
.post-card h2 a:hover {
  color: var(--brand-bright);
}

.cover-body p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.sub-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.magazine-card {
  display: flex;
  flex-direction: column;
  border-color: var(--border-light);
}

.magazine-card:hover {
  border-color: var(--border);
}

.card-body {
  padding: 26px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.card-body h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
}

.card-body p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.author-wrapper {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar,
.avatar-fallback {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
}

.avatar {
  object-fit: cover;
  background: #d9ded8;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
}

.author-meta-info {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.author-meta-info span {
  color: var(--muted-light);
  font-weight: 500;
}

.magazine-sidebar {
  gap: 44px;
}

.sidebar-block {
  padding: 32px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.sidebar-block h4 {
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand);
  font-size: 22px;
  line-height: 1.2;
}

.trending-column {
  gap: 24px;
}

.top-tools-list {
  display: grid;
  gap: 24px;
}

.top-tool-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 20px;
  align-items: start;
  color: inherit;
  text-decoration: none;
}

.top-tool-index {
  color: var(--border);
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.top-tool-text {
  display: grid;
  gap: 7px;
}

.top-tool-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.top-tool-desc {
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.45;
  text-transform: uppercase;
}

a.top-tool-row:hover .top-tool-title {
  color: var(--brand-bright);
}

.top-tool-row--inactive {
  cursor: default;
}

.trending-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.trending-index {
  min-width: 42px;
  color: var(--border);
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.trending-text h5 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.trending-tag-info {
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.premium-newsletter-block {
  border: 0;
  background: var(--brand);
  color: white;
}

.premium-newsletter-block h4 {
  color: white;
  border-bottom-color: var(--gold);
}

.premium-newsletter-block p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.6;
}

.news-input-element {
  width: 100%;
  margin-bottom: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  outline: none;
  font-size: 14px;
}

.news-input-element::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.news-input-element:focus {
  border-color: rgba(255, 255, 255, 0.48);
}

.news-submit-btn {
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius-soft);
  background: var(--gold);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  font-weight: 800;
}

.news-submit-btn:hover {
  background: #c99452;
}

.empty-card {
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  background: #ffffff;
  color: var(--muted);
}

.content-empty-state {
  padding: 34px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  background: #ffffff;
  color: var(--muted);
}

.content-empty-state h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.2;
}

.content-empty-state p {
  margin: 0;
}

.native-lab-area {
  padding: 70px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--paper-card);
}

.lab-head {
  margin: 0 0 40px;
}

.lab-head h2 {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.18;
}

.lab-head p {
  margin: 0;
  color: var(--muted);
}

.lab-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  min-width: 0;
}

.lab-showcase-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.code-snippet {
  max-width: 100%;
  margin: 0 0 20px;
  padding: 16px;
  overflow-x: auto;
  border-radius: var(--radius-soft);
  background: #111312;
  color: #9cb69f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.lab-showcase-card h4 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.25;
}

.lab-showcase-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.action-toast {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 1000;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(120px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.action-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tools */
.tools-index-hero,
.tool-audit-shell {
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.tools-index-hero__inner {
  max-width: 860px;
}

.tools-eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tools-index-hero h1,
.tool-audit-intro h1 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: 0;
}

.tools-index-hero p,
.tool-audit-intro > p:not(.tools-eyebrow):not(.tool-disclaimer) {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.tools-grid-section {
  padding: 42px 0 86px;
}

.tool-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  max-width: 980px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.tool-list-card:hover,
.tool-list-card:focus-visible {
  border-color: rgba(9, 46, 30, 0.22);
  box-shadow: 0 18px 44px rgba(17, 19, 18, 0.08);
  transform: translateY(-2px);
}

.tool-list-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tool-list-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.12;
}

.tool-list-card p {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--muted);
}

.tool-signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-signal-list li {
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: var(--paper-card);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tool-card-action,
.audit-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.tool-card-action:hover,
.audit-form button:hover {
  background: var(--brand-bright);
  color: #ffffff;
  transform: translateY(-1px);
}

.tool-audit-shell {
  padding-bottom: 82px;
}

.tool-audit-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.tool-audit-intro {
  position: sticky;
  top: 112px;
}

.tool-language-switch {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tool-language-switch a[aria-current="true"] {
  color: var(--brand);
}

.audit-form {
  display: grid;
  gap: 12px;
  margin: 28px 0 18px;
}

.audit-form input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #ffffff;
  color: var(--ink);
  outline: none;
  box-shadow: var(--shadow-sm);
}

.audit-form input:focus {
  border-color: var(--brand);
}

.tool-disclaimer {
  margin: 16px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tool-copy-clean {
  color: var(--brand);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.audit-results {
  min-width: 0;
}

.audit-empty-state,
.audit-loading,
.audit-error {
  min-height: 300px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, .74);
  color: var(--muted);
  font-weight: 800;
}

.audit-empty-state span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 900;
}

.audit-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
  border-color: #e2b7ad;
  background: #fff7f5;
  color: #9d3324;
}

.audit-error strong {
  color: #7c2419;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.audit-error span {
  max-width: 620px;
  color: #9d3324;
  font-size: 15px;
  line-height: 1.5;
}

.audit-loading {
  padding: 28px;
  border: 1px solid rgba(9, 46, 30, .12);
  background:
    linear-gradient(145deg, rgba(9, 46, 30, .98), rgba(6, 28, 19, .98));
  color: #eef8f1;
  box-shadow: 0 24px 70px rgba(9, 46, 30, .14);
}

.audit-loading-card {
  width: min(100%, 680px);
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 22px 24px;
  align-items: center;
}

.audit-loading-spinner {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.audit-loading-spinner span {
  width: 48px;
  height: 48px;
  display: block;
  border: 4px solid rgba(255, 255, 255, .14);
  border-top-color: #22c58b;
  border-right-color: #e0c990;
  border-radius: 50%;
  animation: audit-loading-spin .9s linear infinite;
}

.audit-loading-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.audit-loading-copy span {
  color: rgba(238, 248, 241, .64);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.audit-loading-copy strong {
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.audit-loading-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(238, 248, 241, .72);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.audit-loading-steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.audit-loading-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .045);
  color: rgba(238, 248, 241, .58);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease), color .22s var(--ease), opacity .22s var(--ease);
}

.audit-loading-steps li i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 2px solid rgba(238, 248, 241, .28);
  border-radius: 50%;
}

.audit-loading-steps li.is-active {
  border-color: rgba(34, 197, 139, .45);
  background: rgba(34, 197, 139, .13);
  color: #ffffff;
  transform: translateY(-1px);
}

.audit-loading-steps li.is-active i {
  border-color: #22c58b;
  background: #22c58b;
  box-shadow: 0 0 0 6px rgba(34, 197, 139, .12);
  animation: audit-loading-pulse 1.1s ease-in-out infinite;
}

.audit-loading-steps li.is-complete {
  color: rgba(238, 248, 241, .76);
}

.audit-loading-steps li.is-complete i {
  border-color: #a8e6c2;
  background: #a8e6c2;
}

.audit-loading-progress {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.audit-loading-progress span {
  width: 42%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c58b, #e0c990, #36a7e8);
  animation: audit-loading-progress 1.35s ease-in-out infinite;
}

@keyframes audit-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes audit-loading-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(34, 197, 139, .10);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(34, 197, 139, .03);
  }
}

@keyframes audit-loading-progress {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(240%);
  }
}

@media (max-width: 760px) {
  .audit-loading {
    padding: 22px;
  }

  .audit-loading-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .audit-loading-spinner {
    width: 62px;
    height: 62px;
  }

  .audit-loading-spinner span {
    width: 40px;
    height: 40px;
  }

  .audit-loading-steps {
    grid-template-columns: 1fr;
  }
}

.audit-result-card,
.audit-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.audit-result-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 30px;
}

.audit-score-ring {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border: 10px solid var(--brand);
  border-radius: 50%;
  background: #ffffff;
}

.audit-result-card--red .audit-score-ring { border-color: #c84630; }
.audit-result-card--orange .audit-score-ring { border-color: #d9822b; }
.audit-result-card--yellow .audit-score-ring { border-color: #c9a227; }
.audit-result-card--light-green .audit-score-ring { border-color: #6a994e; }
.audit-result-card--green .audit-score-ring { border-color: #2f6f4e; }

.audit-score-ring span {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.audit-score-ring small {
  margin-top: -28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.audit-result-card h2,
.audit-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  letter-spacing: 0;
}

.audit-result-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.audit-result-card a {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.audit-panel {
  margin-top: 22px;
  padding: 26px;
}

.audit-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.audit-section-card {
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: #ffffff;
}

.audit-section-card div,
.audit-authority-box div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.audit-section-card strong {
  color: var(--ink);
}

.audit-section-card meter {
  width: 100%;
  height: 10px;
  margin-top: 12px;
}

.audit-recommendations {
  display: grid;
  gap: 14px;
}

.audit-recommendations article,
.audit-check {
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: #ffffff;
}

.audit-recommendations span,
.audit-check span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.audit-recommendations h3 {
  margin: 8px 0;
  font-size: 18px;
}

.audit-recommendations p,
.audit-check p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.audit-recommendations pre {
  margin: 14px 0 0;
  padding: 14px;
  overflow-x: auto;
  border-radius: var(--radius-card);
  background: #111312;
  color: #c8ddca;
  font-size: 12px;
}

.audit-authority-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.audit-authority-box div {
  display: grid;
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: #ffffff;
}

.audit-authority-box strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: 24px;
}

.audit-details {
  display: grid;
  gap: 12px;
}

.audit-details details {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: #ffffff;
}

.audit-details summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  cursor: pointer;
  font-weight: 900;
}

.audit-check {
  margin: 0 16px 12px;
}

.audit-check--passed {
  border-color: #cfe0d5;
}

.audit-check--failed {
  border-color: #e2b7ad;
}

.audit-check--warning {
  border-color: #ead7a4;
}

.audit-check--blocked_by_dependency {
  border-color: #dfd8ca;
}

.audit-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* Footer */
.magazine-footer {
  padding: 80px 0 40px;
  border-top: 5px solid var(--gold);
  background: var(--brand);
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin-bottom: 30px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  margin: 0 0 14px;
  color: white;
  font-size: 26px;
}

.footer-brand p {
  margin: 0;
  max-width: 460px;
}

.footer-col-title {
  margin: 0 0 20px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-columns a {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.64);
}

.footer-columns a:hover {
  color: white;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

/* Archive and article pages */
.page:not(.home) .site-main,
.archive .site-main,
.search .site-main,
.blog .site-main {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.single .site-main {
  width: min(calc(100% - 40px), 1400px);
  margin: 0 auto;
  padding: 56px 0 72px;
}

.article-progress {
  position: fixed;
  top: var(--article-progress-top, 84px);
  left: 0;
  right: 0;
  z-index: 260;
  height: 3px;
  background: rgba(111, 143, 55, 0.16);
  pointer-events: none;
}

.article-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: #6f8f37;
  transform: scaleX(0);
  transform-origin: left center;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1068px);
  align-items: start;
  justify-content: center;
  gap: 48px;
}

.article-layout--plain {
  grid-template-columns: minmax(0, 1128px);
}

.article-layout--no-author {
  grid-template-columns: minmax(190px, 240px) minmax(0, 800px);
}

.article-layout--plain.article-layout--no-author {
  grid-template-columns: minmax(0, 860px);
}

.entry-header {
  margin: 0 0 28px;
}

.archive-title,
.entry-title {
  margin: 0 0 14px;
  max-width: 18ch;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 1.85rem + 1.55vw, 3.45rem);
  font-weight: 700;
  line-height: 1.06;
}

.archive-intro {
  max-width: 680px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 17px;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.post-card {
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.post-card__body {
  padding: 18px;
}

.post-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.22;
}

.post-card h2 a {
  color: var(--ink);
}

.post-meta {
  margin: 0 0 12px;
  letter-spacing: .06em;
}

.entry {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 800px) minmax(180px, 220px);
  align-items: start;
  column-gap: 48px;
}

.article-layout--plain .entry {
  grid-template-columns: minmax(0, 860px) minmax(180px, 220px);
}

.article-layout--no-author .entry {
  grid-template-columns: minmax(0, 800px);
}

.article-layout--plain.article-layout--no-author .entry {
  grid-template-columns: minmax(0, 860px);
}

.entry-header,
.entry-main {
  grid-column: 1;
}

.entry__image {
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.entry__image img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}

.article-sidebar {
  min-width: 0;
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 132px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #6f8f37 rgba(111, 143, 55, 0.12);
}

.article-sidebar::-webkit-scrollbar {
  width: 4px;
}

.article-sidebar::-webkit-scrollbar-track {
  background: rgba(111, 143, 55, 0.08);
}

.article-sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #6f8f37;
}

.article-sidebar--toc {
  padding-right: 0;
  border-right: 1px solid var(--border-light);
}

.article-sidebar--author {
  grid-column: 2;
  grid-row: 2;
  overflow: visible;
}

.article-toc {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.article-toc--desktop {
  padding: 0;
}

body.admin-bar .article-sidebar {
  top: 144px;
  max-height: calc(100vh - 164px);
}

.article-toc--mobile {
  display: none;
  margin: 0 0 28px;
}

.article-toc__title,
.article-toc summary {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.article-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 20px;
  cursor: pointer;
  list-style: none;
}

.article-toc summary::-webkit-details-marker {
  display: none;
}

.article-toc summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s var(--ease);
}

.article-toc[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.article-toc__list {
  display: block;
  margin: 28px 0 0;
  padding: 0;
  border-top: 0;
  list-style: none;
}

.article-toc--mobile .article-toc__list {
  margin: 0;
  padding: 0 20px 20px;
  border-top: 0;
}

.article-toc__item {
  margin: 0;
}

.article-toc__item--child {
  margin: 0;
}

.article-toc__item a {
  position: relative;
  display: block;
  padding: 18px 10px;
  border-top: 1px solid var(--border-light);
  border-radius: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.28;
}

.article-toc__item a::before {
  content: none;
}

.article-toc__item--child a {
  padding-left: 22px;
  font-size: 13px;
  font-weight: 650;
}

.article-toc__item--child a::before {
  content: "";
  width: 8px;
  height: 1px;
  margin-top: .68em;
  background: var(--gold);
}

.article-toc__item a:hover,
.article-toc__item a:focus-visible,
.article-toc__item.is-active a {
  color: var(--brand);
}

.article-toc__item a:hover,
.article-toc__item a:focus-visible {
  background: rgba(231, 238, 233, 0.72);
}

.article-toc__item.is-active a {
  background: #d8e4c3;
  color: var(--ink);
  font-weight: 900;
}

.article-toc__item.is-active a::before {
  color: inherit;
}

.article-author-placeholder {
  display: grid;
  gap: 12px;
  max-width: 170px;
}

.article-author-placeholder span {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e3e6e2, #f3f4f0);
}

.article-author-placeholder strong,
.article-author-placeholder small {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #e5e8e2;
}

.article-author-placeholder strong {
  width: 130px;
  margin-top: 10px;
}

.article-author-placeholder small:nth-of-type(1) {
  width: 92px;
}

.article-author-placeholder small:nth-of-type(2) {
  width: 150px;
}

.entry-content {
  max-width: 72ch;
  overflow-wrap: anywhere;
  color: #232625;
  font-size: clamp(1.0625rem, 1rem + 0.18vw, 1.1875rem);
  line-height: 1.72;
}

.entry-content a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 1.8em 0 .7em;
  color: var(--ink);
  font-family: var(--font-serif);
  line-height: 1.18;
}

.entry-content h2[id],
.entry-content h3[id] {
  scroll-margin-top: 132px;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content figure,
.entry-content blockquote {
  margin: 0 0 1.15em;
}

.entry-content img {
  border-radius: var(--radius-card);
}

.entry-content blockquote {
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  background: #ffffff;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .nav-menu {
    gap: 18px;
  }

  .mega-panel {
    width: min(680px, calc(100vw - 36px));
  }

  .mega-panel-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .magazine-layout {
    grid-template-columns: 1fr;
  }

  .article-layout,
  .article-layout--plain {
    display: block;
  }

  .entry {
    display: block;
  }

  .article-sidebar--author {
    margin-top: 28px;
  }

  .tool-audit-layout,
  .tool-list-card {
    grid-template-columns: 1fr;
  }

  .tool-audit-intro {
    position: static;
  }

  .audit-breakdown-grid,
  .audit-authority-box {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    display: none;
  }

  .article-toc--mobile {
    display: block;
  }

  .magazine-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .lab-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 118px;
  }

  body.admin-bar .site-header {
    top: 46px;
  }

  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    position: static;
    top: auto;
  }

  body.admin-bar .site-header {
    top: auto;
  }

  .article-progress {
    display: none;
  }

  .ticker-desk {
    display: none;
  }

  .nav-inner {
    min-height: 76px;
    gap: 12px;
  }

  .brand-logo {
    height: 39.2727px;
  }

  .nav-menu {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }

  .search-hub {
    padding: 42px 0 34px;
  }

  .search-meta-box h1 {
    font-size: 34px;
  }

  .tools-index-hero h1,
  .tool-audit-intro h1 {
    font-size: 36px;
  }

  .tools-index-hero,
  .tool-audit-shell {
    padding-top: 44px;
  }

  .search-meta-box p {
    font-size: 16px;
  }

  .search-bar-field {
    min-height: 64px;
    padding: 10px 16px;
  }

  .search-bar-field svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
  }

  .search-input {
    font-size: 16px;
  }

  .magazine-layout {
    gap: 34px;
    padding: 36px 0 64px;
  }

  .sub-feed-grid,
  .magazine-sidebar,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .cover-story {
    grid-template-columns: 1fr;
  }

  .cover-image-container {
    height: 340px;
    min-height: 0;
  }

  .cover-body {
    padding: 24px;
  }

  .cover-body h2 {
    font-size: 28px;
  }

  .card-body {
    padding: 22px;
  }

  .native-lab-area {
    padding: 52px 0;
  }

  .lab-head h2 {
    font-size: 30px;
  }

  .footer-base {
    flex-direction: column;
  }

  .single .site-main,
  .page:not(.home) .site-main,
  .archive .site-main,
  .search .site-main,
  .blog .site-main {
    width: min(calc(100% - 28px), 920px);
    padding: 40px 0 56px;
  }

  .archive-title,
  .entry-title {
    max-width: none;
    font-size: clamp(2rem, 1.7rem + 1.25vw, 2.35rem);
    line-height: 1.08;
  }

  .entry-content {
    font-size: 17px;
    line-height: 1.7;
  }

  .article-toc__item a {
    font-size: 14px;
  }

  .article-toc__item--child a {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .top-ticker {
    font-size: 10px;
    letter-spacing: .08em;
  }

  .brand-logo {
    height: 39.2727px;
  }

  .brand-logo rect {
    shape-rendering: crispEdges;
  }

  .nav-cta {
    display: none;
  }

  .mobile-nav-panel {
    width: calc(100vw - 28px);
  }

  .search-meta-box h1 {
    font-size: 30px;
  }

  .hero-category-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 6px;
    max-width: 100%;
    overflow-x: visible;
    font-size: 9px;
    letter-spacing: .03em;
  }

  .hero-category-links a {
    flex: 0 0 auto;
    min-width: 0;
    height: 30px;
    min-height: 30px;
    padding: 0 14px;
    text-align: center;
    white-space: nowrap;
    overflow-wrap: normal;
    line-height: 1.12;
  }

  .hero-category-links__label--desktop {
    display: none;
  }

  .hero-category-links__label--mobile {
    display: inline;
  }

  .cover-body h2 {
    font-size: 24px;
  }

  .audit-result-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .tool-list-card,
  .audit-panel {
    padding: 22px;
  }

  .tool-card-action,
  .audit-form button {
    width: 100%;
  }

  .cover-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .quick-tags {
    justify-content: flex-start;
  }

  .featured-on-strip {
    overflow: hidden;
    margin-bottom: 34px;
  }

  .resource-overview {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 36px;
    padding: 30px 0 34px;
  }

  .resource-overview--home {
    gap: 28px;
    margin-bottom: 34px;
    padding: 0 0 30px;
  }

  .resource-overview__title {
    margin-bottom: 12px;
    font-size: 17px;
  }

  .resource-overview__text {
    font-size: 15px;
    line-height: 1.62;
  }

  .resource-overview__label h2 {
    max-width: none;
    font-size: 25px;
  }

  .resource-overview__copy {
    font-size: 16px;
    line-height: 1.68;
  }

  .featured-on-logos {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 14px 20px;
  }

  .featured-on-logos img:nth-child(n) {
    height: 30px;
    max-width: 138px;
  }

  .featured-on-logos img:nth-child(1),
  .featured-on-logos img:nth-child(6) {
    height: 18px;
  }

  .featured-on-logos img:nth-child(5) {
    height: 34px;
  }

  .category-rail {
    margin-right: 0;
    padding-right: 0;
  }

  .cover-image-container {
    height: 210px;
    min-height: 0;
  }

  .card-img-box {
    height: 200px;
    min-height: 200px;
    flex-basis: 200px;
  }

  .sidebar-block {
    padding: 24px;
  }

  .magazine-footer {
    padding: 56px 0 32px;
  }

  .action-toast {
    right: 14px;
    bottom: 14px;
    padding: 12px 18px;
  }
}

@media (min-width: 1101px) {
  .tool-audit-layout {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1120px);
  }
}

/* Audit layout refinements after analysis */
.tool-audit-intro-toggle {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fffdf8;
  box-shadow: var(--shadow-sm);
}

.tool-audit-intro-toggle > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 0 18px;
  cursor: pointer;
  list-style: none;
  color: var(--brand);
  font-weight: 900;
}

.tool-audit-intro-toggle > summary::-webkit-details-marker {
  display: none;
}

.tool-audit-intro-toggle > summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tool-audit-intro-panel {
  padding: 0 18px 22px;
}

.tool-audit-shell.has-results .tool-audit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1120px);
  justify-content: center;
}

.tool-audit-shell.has-results .tool-audit-intro {
  position: static;
  top: auto;
}

.tool-audit-shell.has-results .tool-audit-intro-toggle {
  margin-bottom: 8px;
}

.tool-audit-shell.has-results .audit-results {
  width: 100%;
}

.tool-audit-shell.has-results .audit-empty-state {
  display: none;
}

.audit-flow {
  width: 100%;
}

.audit-flow .audit-summary-card {
  grid-template-columns: 180px minmax(0, 1fr);
  width: 100%;
}

.audit-summary-body h2 {
  max-width: 100%;
  font-size: clamp(32px, 4vw, 52px);
  overflow-wrap: normal;
}

.audit-score-model {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.audit-score-model div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #e6decf;
  border-radius: var(--radius-card);
  background: #ffffff;
}

.audit-score-model span,
.audit-url-meta span {
  color: #6b675e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.audit-score-model strong {
  color: #171713;
  font-size: 18px;
}

.audit-url-meta {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.audit-fairness-note {
  max-width: 760px;
  margin-top: 12px !important;
  font-size: 13px !important;
}

.audit-main-score-card {
  min-height: 220px;
}

.audit-main-score-card .audit-muted-note {
  font-size: 12px;
}

.audit-detail-cluster {
  display: grid;
  gap: 12px;
}

.audit-detail-cluster + .audit-detail-cluster {
  margin-top: 18px;
}

.audit-detail-cluster > h3 {
  margin: 0;
  color: #6b675e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .audit-flow .audit-summary-card,
  .tool-audit-shell.has-results .tool-audit-layout {
    grid-template-columns: 1fr;
  }

  .audit-score-model {
    grid-template-columns: 1fr;
  }
}

/* AI audit modern dashboard skin */
.tool-audit-shell {
  --audit-bg-main: #f8faf9;
  --audit-bg-surface: #ffffff;
  --audit-bg-card: #fdfdfc;
  --audit-border: #e4ece8;
  --audit-text: #141b18;
  --audit-muted: #5c6862;
  --audit-light: #90a097;
  --audit-brand: #052e16;
  --audit-bright: #10b981;
  --audit-soft: #edfcf5;
  --audit-gold: #b45309;
  --audit-gold-soft: #fef3c7;
  --audit-red: #ef4444;
  --audit-red-bg: #fef2f2;
  --audit-orange: #f97316;
  --audit-orange-bg: #fff7ed;
  --audit-yellow: #eab308;
  --audit-yellow-bg: #fefce8;
  --audit-light-green: #84cc16;
  --audit-light-green-bg: #f7fee7;
  --audit-green: #10b981;
  --audit-green-bg: #ecfdf5;
  --audit-radius: 8px;
  --audit-shadow-sm: 0 2px 8px rgba(5, 46, 22, .035);
  --audit-shadow-md: 0 12px 34px rgba(5, 46, 22, .06);
  padding: 60px 0 86px;
  background: var(--audit-bg-main);
  border-bottom: 1px solid var(--audit-border);
}

.tool-audit-shell .container {
  width: min(calc(100% - 40px), 1320px);
}

.tool-audit-layout {
  display: grid;
  grid-template-columns: minmax(0, 980px);
  gap: 0;
  align-items: start;
  justify-content: center;
}

.tool-audit-intro {
  position: static;
}

.tool-audit-shell.has-results .tool-audit-intro {
  position: sticky;
  top: 104px;
}

.tool-audit-intro-toggle {
  overflow: hidden;
  border: 1px solid var(--audit-border);
  border-radius: var(--audit-radius);
  background: var(--audit-bg-surface);
  box-shadow: var(--audit-shadow-sm);
}

.tool-audit-intro-toggle > summary {
  min-height: 54px;
  padding: 0 20px;
  color: var(--audit-brand);
  font-size: 13px;
  font-weight: 900;
}

.tool-audit-intro-toggle > summary small {
  color: var(--audit-light);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tool-audit-intro-panel {
  padding: 0 22px 24px;
}

.tool-language-switch {
  justify-content: flex-start;
  gap: 8px;
  margin: 16px 0;
  color: var(--audit-light);
  font-size: 12px;
  font-weight: 800;
}

.tool-language-switch a[aria-current="true"] {
  color: var(--audit-bright);
}

.tools-eyebrow {
  color: var(--audit-bright);
  font-size: 12px;
  letter-spacing: .08em;
}

.tool-audit-intro h1 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.13;
}

.tool-audit-intro-panel > p:not(.tools-eyebrow):not(.tool-disclaimer):not(.export-static-note) {
  margin: 0 0 22px;
  color: var(--audit-muted);
  font-size: 14px;
}

.audit-form {
  gap: 12px;
  margin: 24px 0 16px;
}

.audit-form input {
  min-height: 50px;
  border-color: var(--audit-border);
  border-radius: var(--audit-radius);
  background: var(--audit-bg-main);
  color: var(--audit-text);
  box-shadow: none;
}

.audit-form input:focus {
  border-color: var(--audit-bright);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--audit-soft);
}

.audit-inline-error {
  width: min(100%, 860px);
  margin: -4px auto 18px;
  padding: 12px 16px;
  border: 1px solid #e2b7ad;
  border-radius: var(--audit-radius);
  background: #fff7f5;
  color: #9d3324;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-align: left;
}

.audit-inline-error[hidden] {
  display: none;
}

.tool-audit-shell:not(.has-results) {
  min-height: calc(100vh - 126px);
  display: flex;
  align-items: flex-start;
  padding-top: 42px;
}

.tool-audit-shell:not(.has-results) .tool-audit-intro-toggle {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tool-audit-shell:not(.has-results) .tool-audit-intro-toggle > summary {
  display: none;
}

.tool-audit-shell:not(.has-results) .tool-audit-intro-panel {
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.tool-audit-shell:not(.has-results) .tools-eyebrow {
  margin-bottom: 14px;
}

.tool-audit-shell:not(.has-results) .tool-audit-intro h1 {
  max-width: 840px;
  margin: 0 auto 18px;
  font-size: clamp(46px, 8vw, 88px);
  line-height: .98;
}

.tool-audit-shell:not(.has-results) .tool-audit-intro-panel > p:not(.tools-eyebrow):not(.tool-disclaimer):not(.export-static-note) {
  max-width: 760px;
  margin: 0 auto 34px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}

.tool-audit-shell:not(.has-results) .audit-form {
  position: relative;
  width: min(100%, 860px);
  margin: 0 auto 22px;
}

.tool-audit-shell:not(.has-results) .audit-form input {
  min-height: 72px;
  padding: 0 220px 0 30px;
  border-radius: 999px;
  background: #ffffff;
  font-size: 20px;
  box-shadow: 0 24px 70px rgba(5, 46, 22, .08);
}

.tool-audit-shell:not(.has-results) .audit-form button {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
}

.tool-audit-shell:not(.has-results) .tool-disclaimer {
  max-width: 760px;
  margin: 0 auto 18px;
  color: var(--audit-muted);
  font-size: 13px;
}

.tool-audit-shell:not(.has-results) .tool-copy-clean {
  margin: 0 auto;
}

.tool-audit-shell:not(.has-results) .audit-results {
  display: none;
}

.tool-card-action,
.audit-form button {
  min-height: 46px;
  border: 0;
  border-radius: var(--audit-radius);
  background: var(--audit-brand);
  color: #ffffff;
  box-shadow: none;
}

.tool-card-action:hover,
.audit-form button:hover {
  background: var(--audit-bright);
  transform: translateY(-1px);
}

.tool-copy-clean {
  color: var(--audit-brand);
  font-size: 13px;
}

.tool-disclaimer {
  color: var(--audit-light);
  font-size: 12px;
}

.audit-results,
.tool-audit-shell.has-results .audit-results {
  width: 100%;
  min-width: 0;
}

.audit-flow {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: none;
  color: var(--audit-text);
}

.audit-tone--red { --audit-tone: var(--audit-red); --audit-tone-bg: var(--audit-red-bg); }
.audit-tone--orange { --audit-tone: var(--audit-orange); --audit-tone-bg: var(--audit-orange-bg); }
.audit-tone--yellow { --audit-tone: var(--audit-yellow); --audit-tone-bg: var(--audit-yellow-bg); }
.audit-tone--light-green { --audit-tone: var(--audit-light-green); --audit-tone-bg: var(--audit-light-green-bg); }
.audit-tone--green { --audit-tone: var(--audit-green); --audit-tone-bg: var(--audit-green-bg); }

.audit-flow .audit-summary-card {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 40px;
  border: 0;
  border-radius: var(--audit-radius);
  background: linear-gradient(135deg, var(--audit-brand) 0%, #031f0e 100%);
  color: #ffffff;
  box-shadow: var(--audit-shadow-md);
}

.audit-summary-score {
  display: grid;
  justify-items: center;
  gap: 16px;
  flex: 0 0 230px;
}

.audit-flow .audit-score-ring {
  width: 154px;
  height: 154px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--audit-score-gradient,
    conic-gradient(
      var(--audit-bright) 0deg var(--audit-score-universal-deg, 0deg),
      var(--audit-gold) var(--audit-score-universal-deg, 0deg) var(--audit-score-readiness-deg, 0deg),
      rgba(255, 255, 255, .18) var(--audit-score-readiness-deg, 0deg) 360deg
    ));
  color: var(--audit-brand);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .16);
  transition: transform .25s var(--ease), filter .25s var(--ease);
}

.audit-flow .audit-summary-card:hover .audit-score-ring {
  filter: saturate(1.08);
  transform: scale(1.035);
}

.audit-score-ring__inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
  background: #ffffff;
}

.audit-flow .audit-score-ring span {
  font-family: var(--font-sans);
  font-size: 42px;
  font-weight: 900;
}

.audit-flow .audit-score-ring small {
  margin-top: 2px;
  color: var(--audit-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.audit-score-composition {
  width: 100%;
  display: grid;
  gap: 8px;
}

.audit-score-composition__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--audit-radius);
  background: rgba(255, 255, 255, .08);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.audit-score-composition__item:hover {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .13);
  transform: translateY(-1px);
}

.audit-score-composition__item span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.audit-score-composition__item span i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--audit-area-color, var(--audit-bright));
}

.audit-score-composition__item.is-readiness span i {
  background: var(--audit-gold);
}

.audit-score-composition__item strong {
  color: #ffffff;
  font-size: 13px;
  white-space: nowrap;
}

.audit-summary-body h2 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: clamp(30px, 3.8vw, 48px);
}

.audit-status-line {
  gap: 12px;
  margin-bottom: 12px;
}

.audit-status-line strong {
  width: fit-content;
  padding: 3px 10px;
  border-radius: var(--audit-radius);
  background: rgba(16, 185, 129, .16);
  color: var(--audit-bright);
  font-size: 18px;
}

.audit-status-line span,
.audit-summary-body p,
.audit-summary-body .audit-fairness-note {
  color: rgba(255, 255, 255, .78);
}

.audit-summary-body p {
  font-size: 15px;
}

.audit-summary-body a {
  color: var(--audit-bright);
}

.audit-score-model {
  gap: 10px;
}

.audit-score-model div {
  border-color: rgba(255, 255, 255, .12);
  border-radius: var(--audit-radius);
  background: rgba(255, 255, 255, .08);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.audit-score-model div:hover {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .13);
  transform: translateY(-1px);
}

.audit-score-model span,
.audit-url-meta span {
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
}

.audit-score-model strong {
  color: #ffffff;
}

.audit-url-meta {
  margin-top: 12px;
}

.audit-fairness-note {
  color: rgba(255, 255, 255, .64) !important;
}

.audit-flow .audit-section,
.audit-copy-fixes {
  display: grid;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--audit-border);
  border-radius: var(--audit-radius);
  background: var(--audit-bg-surface);
  box-shadow: var(--audit-shadow-sm);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}

.audit-flow .audit-section:hover,
.audit-copy-fixes:hover {
  border-color: #d7e3dd;
  box-shadow: var(--audit-shadow-md);
}

.audit-section-heading {
  margin-bottom: 0;
}

.audit-section-heading h2 {
  font-size: 25px;
}

.audit-flow .audit-authority-box {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.audit-flow .audit-authority-box div {
  padding: 22px;
  border: 1px solid var(--audit-border);
  border-radius: var(--audit-radius);
  background: var(--audit-bg-main);
  text-align: center;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}

.audit-flow .audit-authority-box div:hover {
  border-color: var(--audit-bright);
  box-shadow: var(--audit-shadow-md);
  transform: translateY(-2px);
}

.audit-flow .audit-authority-box span {
  color: var(--audit-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.audit-flow .audit-authority-box strong {
  color: var(--audit-brand);
  font-size: 34px;
}

.audit-main-score-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.audit-main-score-card {
  min-height: 0;
  padding: 24px;
  border: 1px solid var(--audit-border);
  border-top: 4px solid var(--audit-tone);
  border-radius: var(--audit-radius);
  background: var(--audit-bg-card);
  box-shadow: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.audit-main-score-card:hover {
  border-color: #d7e3dd;
  box-shadow: var(--audit-shadow-md);
  transform: translateY(-2px);
}

.audit-main-score-card h3 {
  font-size: 16px;
}

.audit-main-score-card__top strong {
  color: var(--audit-tone);
  font-family: var(--font-sans);
  font-size: 19px;
}

.audit-score-pill,
.audit-priority-badge,
.audit-quick-win-card .audit-signal-pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--audit-tone-bg, var(--audit-gold-soft));
  color: var(--audit-tone, var(--audit-gold));
  font-size: 11px;
  letter-spacing: .05em;
}

.audit-card-issues {
  border-top-color: var(--audit-border);
}

.audit-card-issues span {
  color: var(--audit-muted);
}

.audit-card-issues ul {
  list-style: none;
  padding-left: 0;
  font-size: 13px;
}

.audit-card-issues li {
  position: relative;
  padding-left: 14px;
}

.audit-card-issues li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--audit-tone);
}

.audit-text-button {
  color: var(--audit-brand);
  font-size: 13px;
}

.audit-text-button:hover {
  color: var(--audit-bright);
}

.audit-priority-list {
  gap: 20px;
}

.audit-priority-card,
.audit-quick-win-card {
  padding: 24px;
  border: 1px solid var(--audit-border);
  border-radius: var(--audit-radius);
  background: var(--audit-bg-card);
  box-shadow: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}

.audit-priority-card:hover,
.audit-quick-win-card:hover {
  border-color: #d7e3dd;
  box-shadow: var(--audit-shadow-md);
  transform: translateY(-2px);
}

.audit-priority-badge {
  margin-bottom: 12px;
  background: var(--audit-gold-soft);
  color: var(--audit-gold);
}

.audit-priority-card h3 {
  font-size: 20px;
}

.audit-priority-card dt,
.audit-flow .audit-check dt {
  color: var(--audit-light);
}

.audit-priority-card dd,
.audit-flow .audit-check dd,
.audit-quick-win-card p,
.audit-muted-note {
  color: var(--audit-muted);
}

.audit-code-wrap {
  overflow: hidden;
  border-radius: var(--audit-radius);
}

.audit-code-wrap pre {
  background: #0f172a;
  color: #38bdf8;
}

.audit-code-copy {
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.audit-code-copy:hover {
  background: var(--audit-bright);
}

.audit-quick-win-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.audit-flow .audit-details,
.audit-detail-cluster {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audit-detail-cluster > h3 {
  color: var(--audit-light);
}

.audit-flow .audit-detail-group {
  overflow: hidden;
  border: 1px solid var(--audit-border);
  border-left: 4px solid var(--audit-tone);
  border-radius: var(--audit-radius);
  background: var(--audit-bg-surface);
  box-shadow: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}

.audit-flow .audit-detail-group:hover {
  border-color: #d7e3dd;
  box-shadow: var(--audit-shadow-sm);
  transform: translateY(-1px);
}

.audit-flow .audit-detail-group summary {
  padding: 20px;
  transition: background .25s var(--ease);
}

.audit-flow .audit-detail-group summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-left: 4px;
  border-right: 2px solid var(--audit-tone);
  border-bottom: 2px solid var(--audit-tone);
  transform: rotate(45deg);
  transition: transform .22s var(--ease), opacity .22s var(--ease);
  opacity: .85;
}

.audit-flow .audit-detail-group[open] summary::after {
  transform: rotate(225deg);
}

.audit-flow .audit-detail-group summary:hover {
  background: var(--audit-bg-main);
}

.audit-flow .audit-detail-group summary strong {
  color: var(--audit-text);
}

.audit-flow .audit-detail-group summary small {
  color: var(--audit-muted);
}

.audit-flow .audit-detail-group summary b {
  color: var(--audit-tone);
}

.audit-check-list {
  gap: 12px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--audit-border);
  background: var(--audit-bg-main);
}

.audit-flow .audit-check {
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 16px;
  border: 1px solid var(--audit-border);
  border-radius: var(--audit-radius);
  background: var(--audit-bg-surface);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}

.audit-flow .audit-check:hover {
  border-color: #d7e3dd;
  box-shadow: var(--audit-shadow-sm);
  transform: translateX(3px);
}

.audit-flow .audit-check-icon {
  width: 30px;
  height: 30px;
  background: var(--audit-bg-main);
  color: var(--audit-muted);
}

.audit-flow .audit-check--passed .audit-check-icon {
  background: var(--audit-green-bg);
  color: var(--audit-green);
}

.audit-flow .audit-check--warning .audit-check-icon {
  background: var(--audit-yellow-bg);
  color: var(--audit-yellow);
}

.audit-flow .audit-check--failed .audit-check-icon {
  background: var(--audit-red-bg);
  color: var(--audit-red);
}

.audit-flow .audit-check header {
  align-items: center;
}

.audit-flow .audit-check header strong {
  color: var(--audit-text);
}

.audit-flow .audit-check header em {
  padding: 3px 8px;
  border-radius: var(--audit-radius);
  background: var(--audit-bg-main);
  color: var(--audit-muted);
}

.audit-flow .audit-check--passed header em {
  background: var(--audit-green-bg);
  color: var(--audit-green);
}

.audit-flow .audit-check--warning header em {
  background: var(--audit-yellow-bg);
  color: var(--audit-yellow);
}

.audit-flow .audit-check--failed header em {
  background: var(--audit-red-bg);
  color: var(--audit-red);
}

.audit-flow .audit-check p {
  color: var(--audit-muted);
}

.audit-copy-fixes {
  gap: 20px;
}

.audit-fix-tabs {
  gap: 10px;
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--audit-border);
}

.audit-fix-tab {
  min-height: 36px;
  border: 0;
  border-radius: var(--audit-radius);
  background: transparent;
  color: var(--audit-muted);
}

.audit-fix-tab:hover {
  background: var(--audit-bg-main);
  color: var(--audit-brand);
}

.audit-fix-tab.is-active {
  background: var(--audit-brand);
  color: #ffffff;
}

@media (max-width: 1100px) {
  .tool-audit-layout,
  .tool-audit-shell.has-results .tool-audit-layout {
    grid-template-columns: 1fr;
  }

  .tool-audit-intro,
  .tool-audit-shell.has-results .tool-audit-intro {
    position: static;
  }

  .audit-flow .audit-authority-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tool-audit-shell {
    padding: 42px 0 64px;
  }

  .tool-audit-shell:not(.has-results) {
    min-height: calc(100vh - 90px);
    align-items: flex-start;
    padding-top: 30px;
  }

  .tool-audit-shell:not(.has-results) .tool-audit-intro h1 {
    font-size: clamp(40px, 15vw, 58px);
  }

  .tool-audit-shell:not(.has-results) .audit-form {
    display: grid;
    gap: 12px;
  }

  .tool-audit-shell:not(.has-results) .audit-form input {
    min-height: 60px;
    padding: 0 20px;
    font-size: 16px;
  }

  .tool-audit-shell:not(.has-results) .audit-form button {
    position: static;
    width: 100%;
    min-height: 54px;
  }

  .audit-flow .audit-summary-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
  }

  .audit-summary-score {
    width: 100%;
    flex: 0 0 auto;
  }

  .audit-score-model {
    grid-template-columns: 1fr;
  }

  .audit-flow .audit-section,
  .audit-copy-fixes,
  .audit-main-score-card,
  .audit-priority-card,
  .audit-quick-win-card {
    padding: 20px;
  }

  .audit-flow .audit-check,
  .audit-flow .audit-check header {
    grid-template-columns: 1fr;
  }

  .audit-flow .audit-check header em {
    width: fit-content;
  }
}

/* Keep analyzed results wide and centered */
.tool-audit-shell.has-results {
  padding-top: 32px;
}

.tool-audit-shell.has-results .container {
  width: min(calc(100% - 40px), 1240px);
}

.tool-audit-shell.has-results .tool-audit-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.tool-audit-shell.has-results .tool-audit-intro {
  display: none;
}

.tool-audit-shell.has-results .tool-audit-intro-toggle {
  width: 100%;
  margin: 0 0 22px;
  border-color: #dce7e2;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 30px rgba(5, 46, 22, .06);
  backdrop-filter: blur(14px);
}

.tool-audit-shell.has-results .tool-audit-intro-toggle > summary {
  min-height: 56px;
  padding: 0 22px;
}

.tool-audit-shell.has-results .tool-audit-intro-toggle > summary span {
  color: var(--audit-brand);
}

.tool-audit-shell.has-results .tool-audit-intro-panel {
  padding: 0 22px 22px;
}

.tool-audit-shell.has-results .audit-results,
.tool-audit-shell.has-results .audit-flow {
  width: 100%;
  max-width: none;
}

.tool-audit-shell.has-results .audit-flow .audit-summary-card {
  min-height: 360px;
}

@media (min-width: 1180px) {
  .tool-audit-shell.has-results .audit-flow .audit-summary-card {
    align-items: center;
  }
}

@media (max-width: 760px) {
  .tool-audit-shell.has-results .container {
    width: min(calc(100% - 28px), 1240px);
  }

  .tool-audit-shell.has-results .tool-audit-intro-toggle {
    margin-bottom: 16px;
  }

  .tool-audit-shell.has-results .audit-flow .audit-summary-card {
    min-height: 0;
  }
}

/* AI Visibility Audit: result-mode polish */
.audit-flow .audit-score-ring {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
}

.audit-score-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.audit-score-ring-base {
  fill: none;
  stroke: rgba(255, 255, 255, .2);
  stroke-width: 10;
}

.audit-score-segment {
  fill: none;
  pointer-events: stroke;
  stroke-linecap: butt;
  transition: opacity .2s var(--ease), stroke-width .2s var(--ease), filter .2s var(--ease);
}

.audit-score-segment.is-earned {
  cursor: pointer;
  opacity: .95;
  stroke-width: 10;
}

.audit-score-segment.is-hovered {
  opacity: 1;
  stroke-width: 13;
  filter: drop-shadow(0 8px 14px rgba(16, 185, 129, .28));
}

.audit-score-segment.is-earned:hover,
.audit-score-segment.is-earned:focus,
.audit-score-segment.is-earned:focus-visible {
  opacity: 1;
  stroke-width: 13;
  filter: drop-shadow(0 8px 14px rgba(16, 185, 129, .28));
  outline: none;
}

.audit-score-segment.is-dimmed {
  opacity: .18;
}

.audit-score-ring__inner {
  position: absolute;
  inset: 22px;
  width: auto;
  height: auto;
}

.audit-score-composition__item {
  cursor: pointer;
}

.audit-score-composition__item:hover,
.audit-score-composition__item.is-hovered {
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .15);
  transform: translateY(-1px);
}

.audit-score-composition__item.is-dimmed {
  opacity: .52;
}

.audit-signal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.audit-signal-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1.1;
  text-transform: uppercase;
}

.audit-signal-pill.is-impact {
  border-color: rgba(180, 83, 9, .18);
  background: var(--audit-gold-soft);
  color: var(--audit-gold);
}

.audit-signal-pill.is-effort {
  border-color: rgba(3, 62, 34, .14);
  background: #e9f5ef;
  color: var(--audit-brand);
}

.audit-priority-section {
  display: block;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.audit-priority-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  min-height: 92px;
  padding: 28px 32px;
  cursor: pointer;
  list-style: none;
}

.audit-priority-disclosure > summary::-webkit-details-marker {
  display: none;
}

.audit-priority-disclosure > summary::after {
  content: "";
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--audit-brand);
  border-bottom: 2px solid var(--audit-brand);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .22s var(--ease);
}

.audit-priority-disclosure[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.audit-priority-summary h2 {
  margin: 0;
}

.audit-disclosure-meta {
  padding: 5px 10px;
  border: 1px solid var(--audit-border);
  border-radius: 999px;
  background: var(--audit-bg-main);
  color: var(--audit-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.audit-priority-disclosure .audit-priority-list {
  padding: 0 32px 32px;
}

.audit-quick-win-card {
  display: flex;
  flex-direction: column;
}

.audit-quick-win-card .audit-copy-fix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  border: 1px solid var(--audit-brand);
  border-radius: var(--audit-radius);
  background: var(--audit-brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.audit-quick-win-card .audit-copy-fix:hover {
  border-color: var(--audit-bright);
  background: var(--audit-bright);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(3, 62, 34, .16);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .audit-priority-disclosure > summary {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 78px;
    padding: 22px;
  }

  .audit-disclosure-meta {
    display: none;
  }

  .audit-priority-disclosure .audit-priority-list {
    padding: 0 22px 22px;
  }
}

/* AI Visibility Audit: cleaner summary header */
.audit-flow .audit-summary-card {
  position: relative;
  align-items: stretch;
}

.audit-summary-body {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.audit-summary-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
  padding-right: 210px;
}

.audit-summary-topline .tools-eyebrow {
  margin: 0;
}

.audit-checked-date {
  position: absolute;
  top: 28px;
  right: 28px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.audit-summary-body h2 {
  margin: 0;
}

.audit-summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.audit-status-badge,
.audit-page-type-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  line-height: 1;
}

.audit-status-badge {
  padding: 8px 12px;
  border: 1px solid rgba(16, 185, 129, .26);
  background: rgba(16, 185, 129, .14);
  color: #24e3a0;
  font-size: 15px;
  font-weight: 900;
}

.audit-page-type-badge {
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .76);
}

.audit-page-type-badge span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.audit-page-type-badge strong {
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.audit-target-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.audit-target-chip {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--audit-radius);
  background: rgba(255, 255, 255, .075);
  color: #ffffff;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.audit-target-chip:hover {
  border-color: rgba(36, 227, 160, .32);
  background: rgba(255, 255, 255, .11);
  color: #ffffff;
  transform: translateY(-1px);
}

.audit-target-chip span {
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.audit-target-chip strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.audit-target-chip.is-url strong {
  color: #24e3a0;
}

.audit-result-actions {
  margin-top: 2px;
}

@media (max-width: 900px) {
  .audit-summary-topline {
    flex-direction: column;
    gap: 10px;
    padding-right: 0;
  }

  .audit-target-meta {
    grid-template-columns: 1fr;
  }

  .audit-checked-date {
    position: static;
  }
}

/* AI Visibility Audit: compact score report header */
.tool-audit-shell.has-results .audit-flow .audit-summary-card {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  min-height: 0;
  padding: 34px 40px;
}

.tool-audit-shell.has-results .audit-summary-score {
  width: 100%;
  flex: none;
  align-self: center;
  justify-items: center;
  gap: 18px;
}

.tool-audit-shell.has-results .audit-score-composition {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tool-audit-shell.has-results .audit-score-composition__item {
  min-height: 42px;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-content: center;
  padding: 8px 10px;
  border-radius: 10px;
}

.tool-audit-shell.has-results .audit-score-composition__item span {
  gap: 6px;
  font-size: 10px;
  letter-spacing: .06em;
  line-height: 1;
}

.tool-audit-shell.has-results .audit-score-composition__item span i {
  width: 7px;
  height: 7px;
}

.tool-audit-shell.has-results .audit-score-composition__item strong {
  padding-left: 13px;
  font-size: 12px;
  line-height: 1;
}

.tool-audit-shell.has-results .audit-summary-body {
  justify-content: center;
  gap: 14px;
  padding-top: 24px;
}

.tool-audit-shell.has-results .audit-summary-topline {
  min-height: 0;
  padding-right: 210px;
}

.audit-summary-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.audit-summary-kicker span,
.audit-summary-kicker strong {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}

.audit-summary-kicker span {
  padding: 0;
  color: rgba(255, 255, 255, .64);
}

.audit-summary-kicker strong {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .78);
}

.tool-audit-shell.has-results .audit-summary-body h2 {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: .98;
}

.tool-audit-shell.has-results .audit-summary-badges {
  gap: 8px;
}

.tool-audit-shell.has-results .audit-status-badge {
  padding: 8px 12px;
  font-size: 14px;
}

.tool-audit-shell.has-results .audit-page-type-badge {
  padding: 7px 10px;
}

.tool-audit-shell.has-results .audit-page-type-badge span {
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-audit-shell.has-results .audit-target-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.tool-audit-shell.has-results .audit-target-chip {
  padding: 13px 14px;
}

.tool-audit-shell.has-results .audit-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-audit-shell.has-results .audit-result-actions .tool-card-action {
  min-height: 46px;
  margin: 0;
}

@media (max-width: 900px) {
  .tool-audit-shell.has-results .audit-flow .audit-summary-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .tool-audit-shell.has-results .audit-summary-body {
    padding-top: 0;
  }

  .tool-audit-shell.has-results .audit-summary-topline {
    padding-right: 0;
  }

  .tool-audit-shell.has-results .audit-target-meta {
    grid-template-columns: 1fr;
  }
}

/* AI Visibility Audit: premium authority analytics card */
.audit-flow .audit-authority-section {
  display: block;
  padding: 38px;
  border-color: #e6eae6;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(17, 30, 21, .025);
}

.audit-flow .audit-authority-section:hover {
  border-color: #dce6dc;
  box-shadow: 0 16px 42px rgba(17, 30, 21, .05);
  transform: none;
}

.audit-authority-header {
  margin-bottom: 28px;
}

.audit-authority-header h2 {
  margin: 0 0 6px;
  color: #111e15;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.audit-authority-header p {
  margin: 0;
  color: #6a736d;
  font-size: 14px;
  line-height: 1.5;
}

.audit-authority-analytics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.audit-authority-score-panel,
.audit-authority-detail-panel {
  min-height: 240px;
  border: 1px solid #e6eae6;
  border-radius: 12px;
  background: #f7f9f7;
}

.audit-authority-score-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px;
}

.audit-authority-detail-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 24px 30px;
}

.audit-authority-label {
  display: block;
  color: #6a736d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.audit-authority-donut {
  position: relative;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
}

.audit-authority-donut-svg {
  width: 100%;
  height: 100%;
}

.audit-authority-donut strong {
  position: absolute;
  color: #111e15;
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.audit-authority-submetric {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.audit-authority-submetric strong {
  color: #111e15;
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.audit-authority-divider {
  width: 42%;
  height: 1px;
  margin: 8px auto;
  background: #e6eae6;
}

.audit-authority-footnote {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e6eae6;
  color: #6a736d;
  font-size: 12px;
  line-height: 1.65;
}

.audit-authority-unavailable {
  border: 1px solid #e6eae6;
  border-radius: 12px;
  background: #f7f9f7;
}

@media (max-width: 760px) {
  .audit-flow .audit-authority-section {
    padding: 24px;
  }

  .audit-authority-analytics {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .audit-authority-score-panel,
  .audit-authority-detail-panel {
    min-height: auto;
    padding: 28px 22px;
  }

  .audit-authority-divider {
    margin: 14px auto;
  }
}

/* AI Visibility Audit: bundled command center */
.tool-audit-shell.has-results .audit-flow .audit-command-card {
  display: block;
  min-height: 0;
  padding: 24px;
  border: 1px solid rgba(148, 163, 143, .16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 82% 12%, rgba(26, 92, 61, .18), transparent 36%),
    linear-gradient(145deg, #08110f 0%, #05100b 100%);
  box-shadow: 0 22px 70px rgba(3, 16, 10, .2);
}

.audit-command-object {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
  padding: 22px 26px;
  border: 1px solid rgba(148, 163, 143, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
}

.audit-command-object span,
.audit-command-eyebrow,
.audit-command-authority-score span,
.audit-command-authority-metric span {
  display: block;
  color: rgba(222, 231, 221, .55);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.audit-command-object strong {
  display: block;
  margin-top: 7px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.audit-command-object time {
  flex: 0 0 auto;
  color: #ffffff;
  text-align: right;
}

.audit-command-object time strong {
  font-size: 16px;
}

.audit-command-main {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.audit-command-score-card,
.audit-command-area-grid,
.audit-command-authority {
  border: 1px solid rgba(148, 163, 143, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
}

.audit-command-score-card {
  display: grid;
  min-height: 274px;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 28px;
}

.audit-command-score-card .audit-score-ring {
  width: 168px;
  height: 168px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, .18);
}

.audit-command-score-card .audit-score-ring-base {
  stroke: rgba(148, 163, 143, .18);
  stroke-width: 9;
}

.audit-command-score-card .audit-score-segment.is-earned {
  stroke-width: 9;
}

.audit-command-score-card .audit-score-ring__inner {
  inset: 31px;
  border: 0;
  background: #0e1915;
}

.audit-command-score-card .audit-score-ring span {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 52px;
  font-weight: 950;
}

.audit-command-score-card .audit-score-ring small {
  color: rgba(188, 207, 194, .62);
  font-size: 10px;
  letter-spacing: .12em;
}

.audit-command-score-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(159, 226, 187, .13);
  color: #a8f0c7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}

.audit-command-area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
}

.audit-command-area-card {
  display: grid;
  gap: 7px;
  min-height: 66px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  transition: background .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
  cursor: pointer;
}

.audit-command-area-card:hover,
.audit-command-area-card.is-hovered {
  background: rgba(255, 255, 255, .065);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  transform: translateY(-1px);
}

.audit-command-area-card.is-dimmed {
  opacity: .45;
}

.audit-command-area-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.audit-command-area-card span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.audit-command-area-card span i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--audit-area-color);
}

.audit-command-area-card strong {
  color: color-mix(in srgb, var(--audit-area-color) 70%, #ffffff);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.audit-command-area-card p {
  margin: 0 0 2px 16px;
  color: rgba(222, 231, 221, .44);
  font-size: 11px;
  line-height: 1.2;
}

.audit-command-area-card b {
  position: relative;
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 143, .1);
}

.audit-command-area-card b::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--audit-area-progress, 0%);
  border-radius: inherit;
  background: var(--audit-area-color);
}

.audit-command-authority {
  display: grid;
  grid-template-columns: 240px minmax(120px, .8fr) minmax(150px, .9fr) minmax(220px, 1.2fr);
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 16px 26px;
}

.audit-command-authority-score {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}

.audit-command-mini-donut {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
}

.audit-command-mini-donut svg {
  width: 100%;
  height: 100%;
}

.audit-command-mini-donut circle {
  fill: none;
  stroke: rgba(217, 198, 156, .16);
  stroke-width: 7;
}

.audit-command-mini-donut circle:last-child {
  stroke: #d9c69c;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.audit-command-mini-donut strong {
  position: absolute;
  color: #e7d7ae;
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 950;
}

.audit-command-authority-score > div:last-child strong {
  display: block;
  margin-top: 5px;
  color: rgba(222, 231, 221, .75);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}

.audit-command-authority-metric {
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(148, 163, 143, .12);
}

.audit-command-authority-metric strong,
.audit-command-authority-metric a {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 950;
  line-height: 1.15;
}

.audit-command-authority-metric a {
  color: #9fc7e4;
  overflow-wrap: anywhere;
}

.audit-command-authority-metric.is-path a {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: #9fc7e4;
  font-size: clamp(12px, 1.08vw, 15px);
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.audit-command-authority-metric:nth-child(3) strong {
  color: #e7d7ae;
}

.audit-command-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.audit-command-actions .tool-card-action {
  width: 100%;
  min-height: 46px;
  margin: 0;
  border-radius: 10px;
  font-weight: 900;
}

.audit-command-actions .audit-copy-summary {
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .06);
  color: rgba(222, 231, 221, .72);
}

.audit-command-actions .audit-copy-summary:hover {
  background: rgba(255, 255, 255, .1);
  color: #ffffff;
}

@media (max-width: 980px) {
  .audit-command-main,
  .audit-command-authority,
  .audit-command-actions {
    grid-template-columns: 1fr;
  }

  .audit-command-area-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tool-audit-shell.has-results .audit-flow .audit-command-card {
    padding: 16px;
    border-radius: 20px;
  }

  .audit-command-object {
    flex-direction: column;
    align-items: flex-start;
  }

  .audit-command-object time {
    text-align: left;
  }
}

/* AI Visibility Audit: priority sorting + collapsed recommendation polish */
.audit-priority-section {
  overflow: visible;
}

.audit-priority-disclosure:not([open]) .audit-priority-list {
  display: none;
}

.audit-priority-disclosure > summary {
  overflow: hidden;
  border-radius: inherit;
}

.audit-priority-disclosure > summary h2 {
  min-width: 0;
}

.audit-disclosure-meta {
  white-space: nowrap;
}

.audit-priority-disclosure[open] > summary {
  border-bottom: 1px solid var(--audit-border);
}

.audit-priority-card {
  min-width: 0;
  overflow: hidden;
}

.audit-priority-card .audit-code-wrap {
  display: grid;
  gap: 8px;
  max-width: 100%;
  overflow: hidden;
}

.audit-priority-card .audit-code-copy {
  position: static;
  justify-self: end;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #213047;
  color: #ffffff;
}

.audit-priority-card .audit-code-wrap pre {
  max-width: 100%;
  overflow-x: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.audit-main-score-card {
  min-height: 0;
}

.audit-detail-cluster {
  min-width: 0;
}

@media (max-width: 760px) {
  .audit-priority-disclosure > summary {
    gap: 10px;
  }

  .audit-priority-disclosure > summary::after {
    justify-self: end;
  }
}

/* AI Visibility Audit: compact priority recommendation cards */
.audit-priority-disclosure[open] .audit-priority-list {
  display: grid;
  gap: 12px;
  padding: 18px 24px 24px;
}

.audit-priority-card {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 12px;
}

.audit-priority-card__head {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.audit-priority-card .audit-signal-pills {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin-bottom: 0;
  white-space: nowrap;
}

.audit-priority-card h3 {
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  font-size: 18px;
  line-height: 1.22;
}

.audit-priority-compact-copy {
  display: grid;
  gap: 7px;
}

.audit-priority-compact-copy p {
  margin: 0;
  color: var(--audit-muted);
  font-size: 14px;
  line-height: 1.48;
}

.audit-priority-compact-copy strong {
  color: var(--audit-brand);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.audit-priority-card .audit-example-label {
  margin: 4px 0 0;
  color: var(--audit-light);
  font-size: 11px;
}

.audit-priority-examples {
  display: grid;
  gap: 12px;
}

.audit-priority-example {
  display: grid;
  gap: 7px;
}

.audit-priority-example-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--audit-light);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
}

.audit-priority-example-separator::before,
.audit-priority-example-separator::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: var(--audit-border);
}

.audit-priority-card .audit-code-wrap {
  margin-top: 0;
}

.audit-priority-card .audit-code-wrap pre {
  max-height: 170px;
  padding: 14px;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .audit-priority-disclosure[open] .audit-priority-list {
    padding: 14px 16px 18px;
  }

  .audit-priority-card {
    padding: 16px;
  }

  .audit-priority-card__head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .audit-priority-card .audit-signal-pills {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

/* AI Visibility Audit: score cards inspired by the compact reference layout */
.audit-main-score-section .audit-main-score-grid {
  gap: 24px;
}

.audit-main-score-section .audit-main-score-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 15px;
  min-height: 292px;
  padding: 24px;
  border-color: #dbe4ec;
  border-top: 4px solid var(--audit-tone);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.audit-main-score-section .audit-main-score-card:hover {
  border-color: color-mix(in srgb, var(--audit-tone) 34%, #dbe4ec);
  box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}

.audit-main-score-section .audit-main-score-card__top {
  align-items: flex-start;
  gap: 16px;
}

.audit-main-score-section .audit-main-score-card h3 {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.18;
}

.audit-main-score-section .audit-main-score-card__top strong {
  color: var(--audit-tone);
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 950;
  line-height: 1;
}

.audit-main-score-section .audit-score-pill {
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--audit-tone-bg, #f8fafc);
  color: var(--audit-tone, #334155);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .07em;
}

.audit-main-score-section .audit-card-issues {
  margin-top: 8px;
  padding-top: 13px;
  border-top: 1px solid #e5edf3;
}

.audit-main-score-section .audit-card-issues span {
  margin-bottom: 10px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
}

.audit-main-score-section .audit-card-issues ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  list-style: none;
}

.audit-main-score-section .audit-card-issues li {
  position: relative;
  padding-left: 16px;
}

.audit-main-score-section .audit-card-issues li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--audit-tone);
}

.audit-main-score-section .audit-text-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  align-self: end;
  min-height: 36px;
  margin-top: 12px;
  padding: 0 15px;
  border: 1px solid #dbe5ef;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}

.audit-main-score-section .audit-text-button::after {
  content: "→";
  font-size: 15px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .2s var(--ease);
}

.audit-main-score-section .audit-text-button.is-fix-action {
  border-color: #fecaca;
  background: #fff7f5;
  color: #ef4444;
}

.audit-main-score-section .audit-text-button.is-detail-action {
  border-color: #dbe5ef;
  background: #f8fafc;
  color: #475569;
}

.audit-main-score-section .audit-text-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}

.audit-main-score-section .audit-text-button:hover::after {
  transform: translate(3px, -1px);
}

.audit-main-score-section .audit-text-button.is-fix-action:hover {
  border-color: #fca5a5;
  background: #fff1f0;
  color: #dc2626;
}

.audit-main-score-section .audit-text-button.is-detail-action:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #334155;
}

@media (max-width: 760px) {
  .audit-main-score-section .audit-main-score-grid {
    gap: 16px;
  }

  .audit-main-score-section .audit-main-score-card {
    min-height: 0;
    padding: 20px;
  }
}

/* AI Visibility Audit: refined light report cards */
.tool-audit-shell.has-results .audit-main-score-section,
.tool-audit-shell.has-results .audit-priority-section {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tool-audit-shell.has-results .audit-main-score-section:hover,
.tool-audit-shell.has-results .audit-priority-section:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.tool-audit-shell.has-results .audit-section-heading {
  margin-bottom: 4px;
}

.tool-audit-shell.has-results .audit-section-heading h2 {
  color: #0f172a;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.tool-audit-shell.has-results .audit-main-score-section .audit-main-score-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tool-audit-shell.has-results .audit-main-score-section .audit-main-score-card {
  display: grid;
  grid-template-rows: auto auto minmax(72px, 1fr) auto;
  gap: 22px;
  min-height: 258px;
  padding: 30px 32px;
  border: 1px solid #dbe4ef;
  border-top: 5px solid var(--audit-tone);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.tool-audit-shell.has-results .audit-main-score-section .audit-main-score-card:hover {
  border-color: #cbd8e6;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
  transform: translateY(-2px);
}

.tool-audit-shell.has-results .audit-main-score-section .audit-main-score-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.tool-audit-shell.has-results .audit-main-score-section .audit-main-score-card h3 {
  max-width: 76%;
  color: #111827;
  font-size: clamp(20px, 1.55vw, 25px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
}

.tool-audit-shell.has-results .audit-main-score-value {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  color: #0f172a;
  font-family: var(--font-sans);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.tool-audit-shell.has-results .audit-main-score-value span {
  font-size: clamp(30px, 2.5vw, 38px);
}

.tool-audit-shell.has-results .audit-main-score-value small {
  color: #64748b;
  font-size: clamp(18px, 1.45vw, 24px);
  font-weight: 750;
}

.tool-audit-shell.has-results .audit-main-score-value.is-text {
  max-width: 150px;
  color: #c2410c;
  font-size: 15px;
  line-height: 1.2;
  text-align: right;
  white-space: normal;
}

.tool-audit-shell.has-results .audit-main-score-section .audit-score-pill,
.tool-audit-shell.has-results .audit-signal-pill {
  width: fit-content;
  border: 0;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-weight: 950;
  letter-spacing: .07em;
  line-height: 1;
  text-transform: uppercase;
}

.tool-audit-shell.has-results .audit-main-score-section .audit-score-pill {
  padding: 9px 12px;
  background: var(--audit-tone-bg, #f1f5f9);
  color: var(--audit-tone, #334155);
  font-size: 14px;
}

.tool-audit-shell.has-results .audit-card-issues {
  margin: 0;
  padding: 0;
  border: 0;
}

.tool-audit-shell.has-results .audit-card-issues > span {
  display: none;
}

.tool-audit-shell.has-results .audit-card-issues ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: #1f2937;
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 500;
  line-height: 1.38;
  list-style: none;
}

.tool-audit-shell.has-results .audit-card-issues li {
  position: relative;
  padding-left: 22px;
}

.tool-audit-shell.has-results .audit-card-issues li::before {
  content: "";
  position: absolute;
  top: .63em;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #1f2937;
}

.tool-audit-shell.has-results .audit-card-issues li.is-clean {
  color: #64748b;
}

.tool-audit-shell.has-results .audit-card-issues li.is-clean::before {
  content: "✓";
  top: .04em;
  left: 0;
  width: auto;
  height: auto;
  background: transparent;
  color: #64748b;
  font-size: 19px;
  font-weight: 900;
}

.tool-audit-shell.has-results .audit-main-score-section .audit-text-button {
  width: 100%;
  justify-content: center;
  align-self: end;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 18px;
  border-radius: 8px;
  background: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

.tool-audit-shell.has-results .audit-main-score-section .audit-text-button.is-fix-action {
  border-color: #fecaca;
  background: #fff7f7;
  color: #ef4444;
}

.tool-audit-shell.has-results .audit-main-score-section .audit-text-button.is-fix-action:hover {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #dc2626;
}

.tool-audit-shell.has-results .audit-main-score-section .audit-text-button.is-detail-action {
  border-color: #10b981;
  background: #ffffff;
  color: #10b981;
}

.tool-audit-shell.has-results .audit-main-score-section .audit-text-button.is-detail-action:hover {
  border-color: #059669;
  background: #ecfdf5;
  color: #059669;
}

.tool-audit-shell.has-results .audit-disclosure-meta {
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
}

.tool-audit-shell.has-results .audit-priority-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 0;
}

.tool-audit-shell.has-results .audit-priority-list {
  display: grid;
  gap: 20px;
  padding: 24px 0 0;
}

.tool-audit-shell.has-results .audit-priority-card {
  display: grid;
  gap: 0;
  padding: 0;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
}

.tool-audit-shell.has-results .audit-priority-card:hover {
  border-color: #cbd8e6;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
  transform: translateY(-1px);
}

.tool-audit-shell.has-results .audit-priority-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 32px;
  cursor: pointer;
  list-style: none;
}

.tool-audit-shell.has-results .audit-priority-card__head::-webkit-details-marker {
  display: none;
}

.tool-audit-shell.has-results .audit-priority-card h3 {
  max-width: 820px;
  color: #111827;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.14;
}

.tool-audit-shell.has-results .audit-priority-summary-meta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.tool-audit-shell.has-results .audit-priority-card .audit-signal-pills {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
  margin: 0;
  white-space: nowrap;
}

.tool-audit-shell.has-results .audit-priority-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  background: #ffffff;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}

.tool-audit-shell.has-results .audit-priority-toggle::before,
.tool-audit-shell.has-results .audit-priority-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: #334155;
  transform: translate(-50%, -50%);
  transition: transform .2s var(--ease), background .2s var(--ease);
}

.tool-audit-shell.has-results .audit-priority-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.tool-audit-shell.has-results .audit-priority-card:hover .audit-priority-toggle {
  border-color: #cbd8e6;
  background: #f8fafc;
}

.tool-audit-shell.has-results .audit-priority-card[open] .audit-priority-toggle {
  border-color: #10b981;
  background: #ecfdf5;
}

.tool-audit-shell.has-results .audit-priority-card[open] .audit-priority-toggle::before,
.tool-audit-shell.has-results .audit-priority-card[open] .audit-priority-toggle::after {
  background: #059669;
}

.tool-audit-shell.has-results .audit-priority-card[open] .audit-priority-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.tool-audit-shell.has-results .audit-priority-card__body {
  display: grid;
  gap: 22px;
  padding: 0 32px 32px;
}

.tool-audit-shell.has-results .audit-signal-pill {
  padding: 9px 12px;
  font-size: 14px;
}

.tool-audit-shell.has-results .audit-signal-pill.is-impact {
  background: #ffedd5;
  color: #c2410c;
}

.tool-audit-shell.has-results .audit-signal-pill.is-effort {
  background: #f1f5f9;
  color: #334155;
}

.tool-audit-shell.has-results .audit-priority-compact-copy {
  display: grid;
  gap: 18px;
}

.tool-audit-shell.has-results .audit-priority-compact-copy p {
  margin: 0;
  color: #1f2937;
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 500;
  line-height: 1.5;
}

.tool-audit-shell.has-results .audit-priority-compact-copy strong,
.tool-audit-shell.has-results .audit-priority-card .audit-example-label {
  display: block;
  margin: 0 0 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .07em;
  line-height: 1;
  text-transform: uppercase;
}

.tool-audit-shell.has-results .audit-priority-examples,
.tool-audit-shell.has-results .audit-priority-example {
  display: grid;
  gap: 12px;
}

.tool-audit-shell.has-results .audit-code-wrap {
  position: relative;
  display: block;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.tool-audit-shell.has-results .audit-code-wrap pre,
.tool-audit-shell.has-results .audit-priority-card .audit-code-wrap pre {
  max-width: 100%;
  max-height: none;
  margin: 0;
  padding: 20px 120px 20px 20px;
  border-radius: 8px;
  background: #101a2e;
  color: #38bdf8;
  font-size: 14px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tool-audit-shell.has-results .audit-code-copy,
.tool-audit-shell.has-results .audit-priority-card .audit-code-copy {
  position: absolute;
  top: 50%;
  right: 16px;
  z-index: 2;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 7px;
  background: #273449;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  transform: translateY(-50%);
}

.tool-audit-shell.has-results .audit-code-copy:hover,
.tool-audit-shell.has-results .audit-priority-card .audit-code-copy:hover {
  background: #334155;
  color: #ffffff;
}

@media (max-width: 760px) {
  .tool-audit-shell.has-results .audit-main-score-section .audit-main-score-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tool-audit-shell.has-results .audit-main-score-section .audit-main-score-card,
  .tool-audit-shell.has-results .audit-priority-card {
    padding: 0;
  }

  .tool-audit-shell.has-results .audit-main-score-section .audit-main-score-card h3 {
    max-width: none;
  }

  .tool-audit-shell.has-results .audit-priority-card__head {
    flex-wrap: wrap;
    padding: 22px;
  }

  .tool-audit-shell.has-results .audit-priority-card .audit-signal-pills {
    justify-content: flex-start;
  }

  .tool-audit-shell.has-results .audit-priority-summary-meta {
    width: 100%;
    justify-content: space-between;
  }

  .tool-audit-shell.has-results .audit-priority-card__body {
    padding: 0 22px 22px;
  }

  .tool-audit-shell.has-results .audit-code-wrap pre,
  .tool-audit-shell.has-results .audit-priority-card .audit-code-wrap pre {
    padding: 54px 16px 16px;
  }

  .tool-audit-shell.has-results .audit-code-copy,
  .tool-audit-shell.has-results .audit-priority-card .audit-code-copy {
    top: 12px;
    right: 12px;
    transform: none;
  }
}

/* AI Visibility Audit: match Quick Fix and score cards to detailed-audit scale */
.tool-audit-shell.has-results .audit-main-score-section .audit-main-score-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-audit-shell.has-results .audit-main-score-section .audit-main-score-card {
  grid-template-rows: auto auto minmax(58px, 1fr) auto;
  gap: 13px;
  min-height: 214px;
  padding: 20px 22px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .045);
}

.tool-audit-shell.has-results .audit-main-score-section .audit-main-score-card h3 {
  max-width: 78%;
  font-size: 16px;
  line-height: 1.18;
}

.tool-audit-shell.has-results .audit-main-score-value span {
  font-size: 24px;
}

.tool-audit-shell.has-results .audit-main-score-value small {
  font-size: 16px;
}

.tool-audit-shell.has-results .audit-main-score-value.is-text {
  max-width: 120px;
  font-size: 12px;
}

.tool-audit-shell.has-results .audit-main-score-section .audit-score-pill {
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: .06em;
}

.tool-audit-shell.has-results .audit-card-issues ul {
  gap: 8px;
  font-size: 13px;
  line-height: 1.38;
}

.tool-audit-shell.has-results .audit-card-issues li {
  padding-left: 15px;
}

.tool-audit-shell.has-results .audit-card-issues li::before {
  top: .67em;
  left: 1px;
  width: 4px;
  height: 4px;
}

.tool-audit-shell.has-results .audit-card-issues li.is-clean::before {
  top: .02em;
  font-size: 15px;
}

.tool-audit-shell.has-results .audit-main-score-section .audit-text-button {
  min-height: 38px;
  margin-top: 6px;
  border-radius: 6px;
  font-size: 13px;
}

.tool-audit-shell.has-results .audit-priority-list {
  gap: 12px;
  padding-top: 16px;
}

.tool-audit-shell.has-results .audit-priority-card {
  border-radius: 8px;
}

.tool-audit-shell.has-results .audit-priority-card__head {
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 18px 22px;
}

.tool-audit-shell.has-results .audit-priority-card h3 {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.2;
}

.tool-audit-shell.has-results .audit-priority-summary-meta {
  gap: 10px;
}

.tool-audit-shell.has-results .audit-priority-card .audit-signal-pills {
  gap: 6px;
}

.tool-audit-shell.has-results .audit-signal-pill {
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: .08em;
}

.tool-audit-shell.has-results .audit-priority-toggle {
  width: 34px;
  height: 34px;
}

.tool-audit-shell.has-results .audit-priority-toggle::before,
.tool-audit-shell.has-results .audit-priority-toggle::after {
  width: 12px;
}

.tool-audit-shell.has-results .audit-priority-card__body {
  gap: 14px;
  padding: 0 22px 20px;
}

.tool-audit-shell.has-results .audit-priority-compact-copy {
  gap: 10px;
}

.tool-audit-shell.has-results .audit-priority-compact-copy p {
  font-size: 14px;
  line-height: 1.5;
}

.tool-audit-shell.has-results .audit-priority-compact-copy strong,
.tool-audit-shell.has-results .audit-priority-card .audit-example-label {
  margin-bottom: 5px;
  font-size: 11px;
  letter-spacing: .08em;
}

.tool-audit-shell.has-results .audit-code-wrap pre,
.tool-audit-shell.has-results .audit-priority-card .audit-code-wrap pre {
  padding: 15px 104px 15px 16px;
  font-size: 12px;
  line-height: 1.5;
}

.tool-audit-shell.has-results .audit-code-copy,
.tool-audit-shell.has-results .audit-priority-card .audit-code-copy {
  min-height: 30px;
  padding: 0 11px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .tool-audit-shell.has-results .audit-main-score-section .audit-main-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tool-audit-shell.has-results .audit-main-score-section .audit-main-score-grid {
    grid-template-columns: 1fr;
  }

  .tool-audit-shell.has-results .audit-main-score-section .audit-main-score-card {
    padding: 18px;
  }

  .tool-audit-shell.has-results .audit-priority-card__head {
    min-height: 0;
    padding: 18px;
  }

  .tool-audit-shell.has-results .audit-priority-card h3 {
    max-width: none;
  }

  .tool-audit-shell.has-results .audit-priority-card__body {
    padding: 0 18px 18px;
  }

  .tool-audit-shell.has-results .audit-code-wrap pre,
  .tool-audit-shell.has-results .audit-priority-card .audit-code-wrap pre {
    padding: 50px 14px 14px;
  }
}

/* AI Visibility Audit: flatter detailed audit layout */
.tool-audit-shell.has-results .audit-detailed-section {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tool-audit-shell.has-results .audit-detailed-section:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.tool-audit-shell.has-results .audit-detailed-section .audit-details,
.tool-audit-shell.has-results .audit-detailed-section .audit-detail-cluster {
  gap: 12px;
}

.tool-audit-shell.has-results .audit-detailed-section .audit-detail-group {
  background: #ffffff;
}

.tool-audit-shell.has-results .audit-detailed-section .audit-detail-group[open] {
  background: #ffffff;
}

.tool-audit-shell.has-results .audit-detailed-section .audit-check-list {
  gap: 0;
  padding: 0 20px 20px;
  border-top: 1px solid #e5edf3;
  background: #ffffff;
}

.tool-audit-shell.has-results .audit-detailed-section .audit-check {
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 18px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tool-audit-shell.has-results .audit-detailed-section .audit-check + .audit-check {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5edf3;
}

.tool-audit-shell.has-results .audit-detailed-section .audit-check:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.tool-audit-shell.has-results .audit-detailed-section .audit-check-icon {
  width: 28px;
  height: 28px;
}

.tool-audit-shell.has-results .audit-detailed-section .audit-check-compact-copy {
  margin-top: 10px;
}

.tool-audit-shell.has-results .audit-detailed-section .audit-priority-examples {
  margin-top: 14px;
}
