/**
 * AMIScore institutional portal skin (handoff v1.2)
 * Loaded after app.css — flattens legacy SaaS styling sitewide without removing DOM.
 */

/* —— Typography —— */
body.site {
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
}

body.site h1,
body.site h2,
body.site h3,
body.site .page-title,
body.site .section-title {
  font-family: var(--serif);
  color: var(--ink);
}

body.site .kicker {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: block;
  width: auto;
  max-width: none;
}

body.site .report-section > h2,
body.site .report-section .card > h2,
body.site .panel h2 {
  font-family: var(--serif);
  color: var(--ink);
}

/* —— Buttons —— */
body.site .btn {
  border-radius: 0;
  font-weight: 700;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  letter-spacing: 0.01em;
}

body.site .btn.primary,
body.site .btn.dark {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

body.site .btn.primary:hover,
body.site .btn.dark:hover {
  background: #002b54;
}

body.site .btn.secondary {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: none;
}

body.site .button,
body.site .secondary-button,
body.site .ghost-button {
  font-family: inherit;
}

/* —— Cards, panels, shells —— */
body.site .card,
body.site .panel,
body.site .upload-card,
body.site .account-shell,
body.site .auth-shell,
body.site .alert-card,
body.site .history-row,
body.site .report-head,
body.site .dashboard,
body.site .faq details,
body.site .measure,
body.site .product,
body.site .auth-point {
  border-radius: 0;
  border-color: var(--rule);
  box-shadow: none;
}

body.site .account-shell,
body.site .auth-shell {
  border: 1px solid var(--ink);
}

body.site .section.alt {
  background: var(--soft);
  border-color: var(--rule);
}

body.site .report-shell {
  background: #fff;
}

body.site .report-section,
body.site .report-hero,
body.site .side-panel,
body.site .kpi {
  border-radius: 0;
  border-color: var(--rule);
  box-shadow: none;
}

body.site .report-hero.navy-panel {
  background: var(--navy);
  border-color: var(--navy);
}

body.site .report-hero.navy-panel h1,
body.site .report-hero.navy-panel .kicker {
  color: #fff;
}

body.site .report-hero.navy-panel p {
  color: #dcebf7;
}

/* —— Tags & badges —— */
body.site .tag,
body.site .badge,
body.site .score-mode-badge,
body.site .intake-progress-pill,
body.site .chip {
  border-radius: 0;
  letter-spacing: 0.08em;
}

body.site .tag {
  background: #fafbfc;
  border: 1px solid var(--rule);
  color: var(--navy);
}

body.site .tag.green,
body.site .badge.strong {
  color: var(--green);
  border-color: #9acbb9;
  background: #f2fbf7;
}

body.site .tag.amber,
body.site .badge.stretch {
  color: var(--amber);
  border-color: #d8c292;
  background: #fff9ea;
}

body.site .badge.mod {
  color: var(--navy);
  border-color: #9bb8d6;
  background: #eef4fa;
}

body.site .tag.red,
body.site .badge.risk {
  color: var(--red);
  border-color: #e4b3b3;
  background: #fff5f5;
}

/* —— Form inputs sitewide —— */
body.site input:not([type="checkbox"]):not([type="radio"]),
body.site select,
body.site textarea {
  border-radius: 0;
  border-color: #aeb7c4;
}

body.site input:focus,
body.site select:focus,
body.site textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
}

body.site .account-form input,
body.site .auth-form input {
  border-radius: 0;
  margin-top: 6px;
}

body.site .auth-form label,
body.site .account-form label,
body.site .field-label,
body.site .form-grid label,
body.site .intake-field-label label,
body.site .intake-question-body label.wide > span,
body.site .field label {
  color: #333;
}

body.site .auth-form label,
body.site .account-form label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* —— Review / intake hero —— */
body.site .review-hero-v2,
body.site .intake-review-hero,
body.site .preview-hero,
body.site .score-guide-hero {
  background: #fff !important;
  border: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}

body.site .review-hero-v2::before,
body.site .review-hero-v2::after,
body.site .preview-hero::before,
body.site .preview-hero::after {
  display: none !important;
}

body.site .review-hero-v2 .kicker,
body.site .preview-hero .kicker,
body.site .score-guide-hero .kicker {
  color: var(--navy);
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 14px;
}

body.site .review-hero-v2 h1,
body.site .preview-hero h1,
body.site .score-guide-hero h1 {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 40px;
  line-height: 1.08;
  margin: 0 0 16px;
}

body.site .review-summary-line,
body.site .preview-summary-line {
  color: #333 !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
  max-width: none;
}

/* —— Progress steps —— */
body.site .review-progress-steps {
  gap: 0;
  border: 1px solid var(--ink);
  max-width: none;
}

body.site .review-progress-step {
  border: 0;
  border-right: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  padding: 18px;
  min-height: 120px;
}

body.site .review-progress-step:last-child {
  border-right: 0;
}

body.site .review-progress-step.is-active {
  background: var(--soft);
  border-color: var(--rule);
  box-shadow: none;
}

body.site .review-progress-dot {
  border-radius: 0;
  width: auto;
  height: auto;
  min-width: 28px;
  padding: 4px 8px;
  font-family: var(--serif);
  font-size: 20px;
  background: transparent;
  color: var(--navy);
}

body.site .review-progress-step.is-active .review-progress-dot,
body.site .review-progress-step.is-complete .review-progress-dot {
  background: var(--navy);
  color: #fff;
}

body.site .review-progress-step.is-complete .review-progress-dot {
  background: var(--green);
}

body.site .review-progress-step b {
  color: var(--ink);
  font-size: 16px;
}

body.site .intake-review-hero {
  align-items: center;
}

/* —— Review hero side card —— */
body.site .review-hero-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  padding: 24px 22px;
  align-self: center;
  width: 100%;
  min-height: 0;
}

body.site .review-hero-card .tag {
  align-self: flex-start;
  margin: 0;
}

body.site .review-hero-card > b {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

body.site .review-hero-stats {
  display: grid;
  gap: 10px;
  margin: 0;
}

body.site .review-hero-stats > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 0;
  border-color: var(--rule);
  background: var(--soft);
}

body.site .review-hero-stats span {
  display: block;
  margin: 0;
  line-height: 1.2;
}

body.site .review-hero-stats strong {
  display: block;
  margin: 0;
  line-height: 1.25;
  color: var(--ink);
  font-size: 17px;
}

/* —— Intake detected profile (profile-box style) —— */
body.site .intake-detected-table {
  border: 1px solid var(--ink);
  padding: 8px 20px;
  background: #fff;
  gap: 0;
  margin-top: 18px;
}

body.site .intake-field-row {
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 14px 0;
}

body.site .intake-field-row:last-child {
  border-bottom: 0;
}

body.site .intake-field-label label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #333;
}

body.site .intake-field-input input,
body.site .intake-field-input select,
body.site .intake-field-input textarea,
body.site .intake-question-body textarea,
body.site .intake-question-body input[type="text"],
body.site .intake-question-body .intake-answer-select,
body.site .intake-question-body .intake-answer-multiselect,
body.site .intake-optional-text input,
body.site .intake-review-form .autocomplete-field > input,
body.site .practice-picker-search input {
  border-radius: 0;
  border-color: #aeb7c4;
  padding: 12px;
}

body.site .intake-field-input input:focus,
body.site .intake-field-input select:focus,
body.site .intake-field-input textarea:focus,
body.site .intake-question-body .intake-answer-select:focus,
body.site .intake-question-body .intake-answer-multiselect:focus,
body.site .practice-picker-search input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
}

body.site .intake-field-row.is-invalid {
  background: #fff7f7;
  border-bottom-color: #e4b3b3;
}

/* —— Intake questions —— */
body.site .intake-question-card {
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
  padding: 22px;
  background: #fff;
}

body.site .intake-question-head strong {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 22px;
}

body.site .intake-option {
  border-radius: 0;
  border-color: var(--rule);
  background: #fff;
}

body.site .intake-ambiguity-card {
  border-radius: 0;
  border-left: 4px solid var(--amber);
}

body.site .intake-ambiguity-card.severity-high {
  border-left-color: var(--red);
}

body.site .practice-picker-list,
body.site .practice-picker-suggestions,
body.site .practice-picker-suggestion-card {
  border-radius: 0;
}

body.site .practice-picker-option {
  border-radius: 0;
}

body.site .practice-picker-option-badge {
  border-radius: 0;
}

body.site .review-clarifications-panel {
  background: #fff;
  border-color: var(--rule);
}

/* —— Side / preview nav —— */
body.site .side-panel,
body.site .preview-nav-panel,
body.site .review-nav-panel {
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

body.site .side-panel > .tag,
body.site .report-section > .tag {
  border-radius: 0;
  background: transparent;
  border-left: 3px solid var(--navy);
  color: var(--navy);
  padding: 0 0 0 9px;
}

body.site .preview-nav-link,
body.site .side-panel a {
  border-radius: 0;
}

body.site .preview-step-num {
  border-radius: 0;
  background: var(--soft);
  color: var(--navy);
}

body.site .preview-nav-link.is-active .preview-step-num {
  background: var(--navy);
  color: #fff;
}

/* —— Free preview report (institutional) —— */
body.site .preview-hero {
  grid-template-columns: minmax(0, 1fr) 220px;
  padding: 34px 38px;
}

body.site .preview-hero .score-mode-badge {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  background: var(--soft);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.site .preview-hero .score-mode-confirmed,
body.site .preview-hero .score-mode-enhanced {
  color: var(--green);
  border-color: #9acbb9;
  background: #f2fbf7;
}

body.site .preview-hero .score-mode-resume_only_provisional,
body.site .preview-hero .score-mode-core_intake_provisional {
  color: var(--amber);
  border-color: #d8c292;
  background: #fff9ea;
}

body.site .preview-classification-pill {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 0 0 0 9px;
  border: 0;
  border-left: 3px solid var(--navy);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
}

body.site .compact-kpis .kpi {
  border: 1px solid var(--rule);
  background: #fff;
}

body.site .compact-kpis .kpi:nth-child(1),
body.site .compact-kpis .kpi:nth-child(2),
body.site .compact-kpis .kpi:nth-child(3) {
  border-top: 1px solid var(--rule);
}

body.site .compact-kpis .kpi span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.site .compact-kpis .kpi small {
  color: var(--muted);
  font-size: 14px;
}

body.site .confidence-kpi-green {
  color: var(--green) !important;
}

body.site .confidence-kpi-amber {
  color: var(--amber) !important;
}

body.site .confidence-kpi-red {
  color: var(--red) !important;
}

body.site .preview-hero .score-gauge-lg,
body.site .score-guide-hero .score-gauge-lg {
  width: 200px;
  height: 200px;
  border: 2px solid var(--navy);
  border-radius: 0;
  background: #fff !important;
  box-shadow: none;
  display: grid;
  place-items: center;
}

body.site .preview-hero .score-gauge-lg::before,
body.site .score-guide-hero .score-gauge-lg::before {
  display: none;
}

body.site .preview-hero .score-gauge-lg.amber,
body.site .preview-hero .score-gauge-lg.green,
body.site .preview-hero .score-gauge-lg.red,
body.site .preview-hero .score-gauge-lg.navy,
body.site .score-guide-hero .score-gauge-lg.amber,
body.site .score-guide-hero .score-gauge-lg.green,
body.site .score-guide-hero .score-gauge-lg.red,
body.site .score-guide-hero .score-gauge-lg.navy,
body.site .full-report-gauge-wrap .score-gauge-lg.amber,
body.site .full-report-gauge-wrap .score-gauge-lg.green,
body.site .full-report-gauge-wrap .score-gauge-lg.red,
body.site .full-report-gauge-wrap .score-gauge-lg.navy {
  background: #fff !important;
}

body.site .preview-hero .score-gauge-lg span,
body.site .score-guide-hero .score-gauge-lg span {
  font-family: var(--serif);
  font-size: 52px;
  color: var(--ink);
  position: static;
  grid-column: 1;
  grid-row: 1;
}

body.site .preview-hero .score-gauge-lg small,
body.site .score-guide-hero .score-gauge-lg small {
  align-self: end;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.site .score-journey {
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--soft);
  box-shadow: none;
  padding: 18px 20px;
}

body.site .score-journey-track {
  height: 12px;
  border: 1px solid #cdd6e2;
  background: #e9eef5;
  border-radius: 0;
}

body.site .score-journey-current {
  background: var(--ami-score-highest);
  border-radius: 0;
}

body.site .score-journey-potential {
  background: rgba(119, 131, 146, 0.24);
  border-radius: 0;
}

body.site .preview-meaning-section .score-guide-band-wrap,
body.site .score-guide .score-guide-band-wrap {
  margin-top: 8px;
  padding: 22px;
  border: 1px solid var(--rule);
  background: #fff;
  box-shadow: none;
}

body.site .preview-meaning-section .score-guide-band-marker,
body.site .score-guide .score-guide-band-marker {
  top: -12px;
  padding: 5px 8px;
  border-radius: 0;
  background: var(--ami-score-highest);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

body.site .preview-meaning-section .score-guide-band-marker::after,
body.site .score-guide .score-guide-band-marker::after {
  border-top-color: var(--ami-score-highest);
}

body.site .score-guide-band-marker.red,
body.site .preview-meaning-section .score-guide-band-marker.red,
body.site .full-report-deterministic .score-guide-band-marker.red {
  background: var(--ami-score-low);
}

body.site .score-guide-band-marker.red::after,
body.site .preview-meaning-section .score-guide-band-marker.red::after,
body.site .full-report-deterministic .score-guide-band-marker.red::after {
  border-top-color: var(--ami-score-low);
}

body.site .score-guide-band-marker.amber,
body.site .preview-meaning-section .score-guide-band-marker.amber,
body.site .full-report-deterministic .score-guide-band-marker.amber {
  background: var(--ami-score-medium);
}

body.site .score-guide-band-marker.amber::after,
body.site .preview-meaning-section .score-guide-band-marker.amber::after,
body.site .full-report-deterministic .score-guide-band-marker.amber::after {
  border-top-color: var(--ami-score-medium);
}

body.site .score-guide-band-marker.green,
body.site .preview-meaning-section .score-guide-band-marker.green,
body.site .full-report-deterministic .score-guide-band-marker.green {
  background: var(--ami-score-high);
}

body.site .score-guide-band-marker.green::after,
body.site .preview-meaning-section .score-guide-band-marker.green::after,
body.site .full-report-deterministic .score-guide-band-marker.green::after {
  border-top-color: var(--ami-score-high);
}

body.site .score-guide-band-marker.navy,
body.site .preview-meaning-section .score-guide-band-marker.navy,
body.site .full-report-deterministic .score-guide-band-marker.navy {
  background: var(--ami-score-highest);
}

body.site .score-guide-band-marker.navy::after,
body.site .preview-meaning-section .score-guide-band-marker.navy::after,
body.site .full-report-deterministic .score-guide-band-marker.navy::after {
  border-top-color: var(--ami-score-highest);
}

body.site .preview-meaning-section .score-guide-table-wrap {
  border: 1px solid var(--rule);
  border-radius: 0;
}

body.site .preview-meaning-section .preview-band-table tr.is-active td {
  background: var(--soft) !important;
  color: var(--ink);
}

body.site .preview-meaning-section .preview-band-table tr.is-active td:nth-child(2) {
  color: var(--navy);
  font-weight: 800;
}

body.site .preview-objective-card {
  margin-bottom: 22px;
  border: 1px solid var(--rule);
  background: var(--soft);
  border-radius: 0;
  box-shadow: none;
}

body.site .preview-objective-head strong {
  font-family: var(--serif);
  color: var(--ink);
}

body.site .preview-confidence-section {
  display: grid;
  gap: 18px;
}

body.site .preview-confidence-card,
body.site .preview-missing-card {
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

body.site .preview-confidence-badge {
  min-width: 96px;
  padding: 14px 16px;
  border-radius: 0;
  border: 2px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

body.site .preview-confidence-badge.green {
  border-color: var(--green);
  color: var(--green);
}

body.site .preview-confidence-badge.amber {
  border-color: var(--amber);
  color: var(--amber);
}

body.site .preview-confidence-badge.red {
  border-color: var(--red);
  color: var(--red);
}

body.site .preview-confidence-badge small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  opacity: 1;
}

body.site .preview-missing-check {
  border-radius: 0;
  border-color: #aeb7c4;
}

body.site .preview-missing-list .severity-high .preview-missing-check {
  border-color: var(--red);
  background: #fff5f5;
}

body.site .preview-insight-panel {
  background: #fff !important;
  border-color: var(--rule);
}

body.site .preview-insight-panel::before {
  display: none;
}

body.site .preview-insight-headline {
  margin: 0;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 4px solid var(--navy);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink) !important;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

body.site .preview-insight-headline::before {
  display: none;
}

body.site .preview-insight-body {
  display: grid;
  gap: 18px;
  margin-top: 10px;
}

body.site .preview-insight-body > .note:first-of-type {
  margin: 0;
  padding: 0;
  color: #333;
  font-size: 16px;
  line-height: 1.55;
}

body.site .preview-insight-body .summary-list {
  margin: 0;
  padding: 0;
}

body.site .preview-insight-body .summary-list::before {
  display: none;
}

body.site .preview-insight-body .summary-list h3,
body.site .preview-confidence-card .confidence-notes-list h3,
body.site #preview-actions .summary-list > h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
}

body.site .preview-insight-body .summary-list .list li::before {
  display: none;
}

body.site .preview-insight-body .insight-lever {
  margin: 0;
  padding: 18px 20px 18px 24px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--soft);
  box-shadow: none;
}

body.site .preview-insight-body .insight-lever::before {
  width: 4px;
  background: var(--navy);
}

body.site .preview-insight-body .insight-lever strong {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 18px;
}

body.site .preview-insight-teaser {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--soft);
  color: #333 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

body.site .drivers-bullet-list li::marker,
body.site .friction-panel .drivers-bullet-list li::marker {
  color: var(--navy);
}

body.site .friction-panel .drivers-bullet-list li::marker {
  color: var(--amber);
}

body.site .action-bullet-list li::marker,
body.site .clarification-bullet-list li::marker {
  color: var(--navy);
}

body.site .preview-locked-panel {
  min-height: 280px;
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
}

body.site .preview-locked-overlay {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: none;
}

body.site .preview-simulator-row {
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--soft);
}

body.site .preview-locked-section .score-guide-peer-axis .line {
  height: 6px;
  border-radius: 0;
  background: #e9eef5;
  border: 1px solid #cdd6e2;
}

body.site .preview-locked-section .score-guide-peer-point::before {
  width: 10px;
  height: 10px;
  border-radius: 0;
  border: 2px solid var(--navy);
  background: #fff;
  box-shadow: none;
}

body.site .preview-locked-section .score-guide-peer-point.you::before {
  background: var(--navy);
}

body.site .preview-disclaimer-card {
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

body.site .preview-enhanced-intake-card {
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--soft);
  box-shadow: none;
}

body.site .score-journey-track,
body.site .track,
body.site .bar,
body.site .llm-progress-track {
  border-radius: 0;
}

body.site .report-section .bar-row {
  margin: 18px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

body.site .report-section .bar-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body.site .report-section .bar-row .bar-head span:first-child {
  font-family: var(--serif);
  color: var(--ink);
}

body.site .report-section .bar-row .bar-head span:last-child {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}

body.site .report-section .bar-row .track {
  max-width: 360px;
}

body.site .report-section .bar-row .score-note {
  margin: 10px 0 0;
  max-width: 78ch;
}

body.site .confidence-notes-list .list,
body.site ul.confidence-notes-list {
  display: grid;
  gap: 8px;
  list-style: disc;
  margin: 12px 0 0;
  padding: 0 0 0 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.site .confidence-notes-list .list li,
body.site ul.confidence-notes-list li {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

body.site .confidence-notes-list .list li::marker,
body.site ul.confidence-notes-list li::marker {
  color: var(--navy);
}

body.site .preview-score-change-section ul.confidence-notes-list {
  margin-top: 14px;
}

body.site .preview-insight-body .insight-lever .tag {
  border-radius: 0;
  background: #fff;
  border: 1px solid var(--rule);
  color: var(--navy);
}

body.site #preview-setting .confidence-notes-list strong {
  font-family: var(--serif);
  color: var(--ink);
}

body.site .preview-nav-link.is-active {
  color: var(--navy);
  background: var(--soft);
  border-color: var(--rule);
}

body.site .preview-meaning-lead {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.55;
  color: #333;
}

body.site .score-journey-current,
body.site .fill,
body.site .llm-progress-fill {
  border-radius: 0;
  background: var(--navy);
}

body.site .fill.good {
  background: var(--green);
}

body.site .fill.warn {
  background: var(--amber);
}

body.site .fill.risk,
body.site .fill.red {
  background: var(--red);
}

body.site .preview-hero .score-journey-current,
body.site .preview-layout .track > .fill,
body.site .full-report-deterministic .track > .fill {
  background: var(--ami-score-highest);
}

body.site .preview-layout .track > .fill.good,
body.site .full-report-deterministic .track > .fill.good {
  background: var(--ami-score-high);
}

body.site .preview-layout .track > .fill.warn,
body.site .full-report-deterministic .track > .fill.warn {
  background: var(--ami-score-medium);
}

body.site .preview-layout .track > .fill.risk,
body.site .preview-layout .track > .fill.red,
body.site .full-report-deterministic .track > .fill.risk,
body.site .full-report-deterministic .track > .fill.red {
  background: var(--ami-score-low);
}

body.site .preview-score-change-section .list,
body.site .score-change-card {
  border-radius: 0;
  box-shadow: none;
}

/* —— Preview report spacing and indentation rhythm —— */
body.site .preview-layout .report-content {
  gap: 24px;
}

body.site .preview-layout .report-section {
  padding: 30px 32px;
}

body.site .preview-layout .report-section > .tag {
  display: inline-block;
  margin: 0 0 12px;
}

body.site .preview-layout .report-section > h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}

body.site .preview-layout .report-section > .tag + h2 {
  margin-top: 0;
}

body.site .preview-layout .report-section > h2 + .note {
  margin: 0 0 20px;
  max-width: 78ch;
}

body.site .preview-layout .report-section h3,
body.site .preview-layout .summary-list > h3 {
  line-height: 1.35;
}

body.site .preview-layout .preview-confidence-section > h2 {
  margin-bottom: 0;
}

body.site .preview-layout .preview-confidence-card,
body.site .preview-layout .preview-missing-card,
body.site .preview-layout .preview-objective-card,
body.site .preview-layout .preview-enhanced-intake-card,
body.site .preview-layout .preview-disclaimer-card {
  padding: 22px;
}

body.site .preview-layout .preview-confidence-head .tag,
body.site .preview-layout .preview-missing-card > .tag,
body.site .preview-layout .preview-objective-card > .tag,
body.site .preview-layout .preview-enhanced-intake-card > .tag,
body.site .preview-layout .preview-disclaimer-card > .tag,
body.site .preview-layout .insight-lever > .tag {
  display: inline-block;
  margin: 0 0 10px;
}

body.site .preview-layout .preview-confidence-head .note {
  margin: 0;
}

body.site .preview-layout .preview-confidence-head .preview-confidence-tier-copy {
  margin-top: 8px;
}

body.site .preview-layout .preview-confidence-card .summary-list {
  margin-top: 20px;
}

body.site .preview-layout .preview-objective-head {
  margin: 0 0 8px;
}

body.site .preview-layout .preview-objective-card > .note,
body.site .preview-layout .preview-disclaimer-card > .note {
  margin: 0;
}

body.site .preview-layout .preview-missing-list {
  margin: 0;
}

body.site .preview-layout .preview-missing-list + .note {
  margin: 16px 0 0;
}

body.site .preview-layout .drivers-grid {
  gap: 32px;
}

body.site .preview-layout .drivers-list-panel > h2 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.3;
}

body.site .preview-layout .drivers-bullet-list,
body.site .preview-layout .action-bullet-list,
body.site .preview-layout .clarification-bullet-list,
body.site .preview-layout ul.confidence-notes-list,
body.site .preview-layout .confidence-notes-list .list {
  gap: 10px;
  margin-left: 0;
  padding-left: 22px;
}

body.site .preview-layout .drivers-bullet-list li,
body.site .preview-layout .action-bullet-list li,
body.site .preview-layout .clarification-bullet-list li,
body.site .preview-layout ul.confidence-notes-list li,
body.site .preview-layout .confidence-notes-list .list li {
  line-height: 1.55;
}

body.site .preview-layout #preview-actions > .summary-list {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

body.site .preview-layout #preview-actions > .summary-list > h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

body.site .preview-layout .preview-score-change-list + .note {
  margin: 18px 0 0;
}

body.site .preview-layout .preview-locked-grid,
body.site .preview-layout .preview-percentile-grid,
body.site .preview-layout .preview-disclaimers-grid {
  margin-top: 18px;
}

body.site .preview-layout .preview-locked-cta,
body.site .preview-layout #preview-upgrade > .button-row {
  margin-top: 20px;
}

body.site .preview-layout .preview-enhanced-intake-card {
  margin-top: 20px;
}

body.site .preview-layout .preview-enhanced-intake-card > .btn {
  margin-top: 16px;
}

@media (max-width: 640px) {
  body.site .preview-layout .report-content {
    gap: 18px;
  }

  body.site .preview-layout .report-section {
    padding: 22px 20px;
  }

  body.site .preview-layout .report-section > h2 {
    font-size: 20px;
  }

  body.site .preview-layout .drivers-grid {
    gap: 24px;
  }

  body.site .preview-layout .drivers-bullet-list,
  body.site .preview-layout .action-bullet-list,
  body.site .preview-layout .clarification-bullet-list,
  body.site .preview-layout ul.confidence-notes-list,
  body.site .preview-layout .confidence-notes-list .list {
    padding-left: 20px;
  }
}

/* —— Auth pages —— */
body.site .auth-page {
  background: #fff;
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}

body.site .auth-story h1 {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--ink);
}

body.site .auth-story .lead {
  font-family: var(--serif);
  color: #333;
}

body.site .auth-story .badge {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body.site .auth-story .badge .dot {
  display: none;
}

body.site .auth-tabs {
  border-radius: 0;
  background: var(--soft);
  border: 1px solid var(--rule);
  padding: 4px;
}

body.site .auth-tab {
  border-radius: 0;
}

body.site .auth-tab.is-active {
  background: #fff;
  color: var(--navy);
  box-shadow: none;
  border: 1px solid var(--rule);
}

body.site .auth-form-head h2 {
  font-family: var(--serif);
}

body.site .auth-alert {
  border-radius: 0;
}

body.site .auth-point span {
  border-radius: 0;
}

body.site .report-version-footer {
  border-top-color: var(--rule);
  color: var(--muted);
}

/* —— History & compare —— */
body.site .history-row {
  border: 1px solid var(--rule);
}

body.site .history-compare-toolbar {
  border-radius: 0;
  border-color: var(--rule);
}

/* —— Lists & matrices —— */
body.site .list li,
body.site .plan-list li,
body.site .matrix .cell,
body.site .report-line,
body.site .action-item,
body.site .module-row,
body.site .summary-matrix .cell,
body.site .signal-matrix .cell {
  border-radius: 0;
  border-color: var(--rule);
  box-shadow: none;
}

body.site table {
  border-radius: 0;
}

body.site .summary-matrix h3,
body.site .signal-value {
  border-radius: 0;
  background: transparent;
}

body.site .summary-matrix .tag,
body.site .signal-matrix .tag {
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

/* —— Notice / callout —— */
body.site .notice,
body.site .auth-inline-banner,
body.site .upload-continue-banner {
  border-radius: 0;
}

body.site .notice {
  border-left: 4px solid var(--navy);
  background: var(--soft);
}

body.site .callout {
  border: 1px solid var(--navy);
  background: #fafcff;
}

body.site #callout.section {
  padding-top: 48px;
  padding-bottom: 56px;
}

body.site #callout .callout {
  padding: 38px 32px;
}

body.site #callout .callout .section-title {
  margin-bottom: 16px;
}

body.site #callout .callout .hero-actions {
  margin-top: 28px;
}

body.site .cta-band {
  border-radius: 0;
  background: var(--navy);
  border: 1px solid var(--navy);
  padding: 28px 32px;
  align-items: center;
}

body.site .cta-band h2 {
  color: #fff;
  font-family: var(--serif);
  margin: 0 0 8px;
}

body.site .cta-band p {
  color: #dcebf7;
  margin: 0;
}

body.site .cta-band .btn {
  flex-shrink: 0;
  min-height: 44px;
  padding: 12px 22px;
}

body.site .cta-band .btn.primary,
body.site .cta-band .btn.dark {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
  box-shadow: none;
}

body.site .cta-band .btn.primary:hover,
body.site .cta-band .btn.dark:hover {
  background: var(--soft);
  border-color: var(--soft);
  color: var(--navy);
}

body.site .cta-band .btn.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  box-shadow: none;
}

body.site .cta-band .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* —— How scoring works —— */
body.site .score-guide-jump {
  background: #fff;
  border-color: var(--rule);
  backdrop-filter: none;
}

body.site .score-guide-hero {
  border-radius: 0;
}

body.site .score-guide-point,
body.site .score-guide-card {
  border-radius: 0;
  box-shadow: none;
}

/* —— PDF web report blocks —— */
body.site .pdf-web-report-section {
  background: #fff;
  padding-top: 34px;
  border-bottom: 1px solid var(--rule);
}

body.site .pdf-web-report {
  max-width: var(--max);
}

body.site .pdf-cover,
body.site .pdf-toc,
body.site .pdf-section-block {
  border-radius: 0;
  border: 1px solid var(--rule);
  box-shadow: none;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
}

body.site .pdf-cover h1,
body.site .pdf-cover h2,
body.site .pdf-toc h2,
body.site .pdf-section-block h2 {
  font-family: var(--serif);
  color: var(--ink);
}

body.site .pdf-cover-super {
  color: var(--navy);
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 800;
}

body.site .pdf-cover-brand {
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
}

body.site .pdf-cover-sub,
body.site .pdf-toc p,
body.site .pdf-toc h3,
body.site .pdf-toc li,
body.site .pdf-toc a,
body.site .pdf-section-text h3 {
  color: var(--navy);
}

body.site .pdf-cover-rule,
body.site .pdf-section-rule {
  background: var(--navy);
}

body.site .pdf-cover-meta {
  color: #333;
}

body.site .pdf-score-grid,
body.site .pdf-objective-table,
body.site .pdf-scorecard-table,
body.site .pdf-web-report-section .score-guide-table {
  border: 1px solid var(--rule);
  border-radius: 0;
}

body.site .pdf-score-grid th,
body.site .pdf-scorecard-table th,
body.site .pdf-web-report-section .score-guide-table th {
  background: var(--navy);
  border-color: var(--rule);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}

body.site .pdf-score-grid td {
  border-color: var(--rule);
  color: var(--navy);
  font-weight: 700;
}

body.site .pdf-score-grid tr:nth-child(4) td,
body.site .pdf-scorecard-table tbody tr:nth-child(even) td {
  background: var(--soft);
}

body.site .pdf-objective-table th {
  background: var(--soft);
  color: #333;
  border-color: var(--rule);
}

body.site .pdf-objective-table td,
body.site .pdf-scorecard-table td,
body.site .pdf-section-text p,
body.site .pdf-body-list li {
  color: #333;
}

body.site .pdf-scorecard-table td:nth-child(2) {
  color: var(--navy);
  font-weight: 700;
}

body.site .pdf-disclaimer {
  color: var(--muted);
}

body.site .pdf-section-text strong {
  color: var(--ink);
}

body.site .pdf-body-list {
  list-style: disc;
  padding-left: 22px;
}

body.site .pdf-body-list li::marker {
  color: var(--navy);
}

body.site .pdf-section-block > .tag {
  border-radius: 0;
  background: transparent;
  border: 0;
  border-left: 3px solid var(--navy);
  padding: 0 0 0 9px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* —— Full report deterministic block —— */
body.site .full-report-deterministic {
  margin-top: 0;
}

body.site .full-report-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

body.site .full-report-gauge-wrap .score-gauge-lg {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border: 2px solid var(--navy);
  border-radius: 0;
  background: #fff !important;
  box-shadow: none;
  display: grid;
  place-items: center;
}

body.site .full-report-gauge-wrap .score-gauge-lg::before {
  display: none;
}

body.site .full-report-gauge-wrap .score-gauge-lg.amber,
body.site .full-report-gauge-wrap .score-gauge-lg.green,
body.site .full-report-gauge-wrap .score-gauge-lg.red,
body.site .full-report-gauge-wrap .score-gauge-lg.navy {
  background: #fff !important;
}

body.site .full-report-gauge-wrap .score-gauge-lg span {
  font-family: var(--serif);
  font-size: 52px;
  color: var(--ink);
  position: static;
  grid-column: 1;
  grid-row: 1;
}

body.site .full-report-gauge-wrap .score-gauge-lg small {
  align-self: end;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.site .full-report-deterministic .preview-classification-pill {
  display: inline-block;
  margin: 0 0 12px;
  padding: 0 0 0 9px;
  border: 0;
  border-left: 3px solid var(--navy);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
}

body.site .full-report-deterministic .score-guide-band-wrap,
body.site .preview-meaning-section .score-guide-band-wrap,
body.site .score-guide .score-guide-band-wrap {
  margin-top: 8px;
  padding: 22px;
  border: 1px solid var(--rule);
  background: #fff;
  box-shadow: none;
}

body.site .score-guide-scale-labels-aligned {
  position: relative;
  height: 16px;
  margin: 0 0 8px;
}

body.site .score-guide-scale-labels-aligned span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

body.site .score-guide-scale-labels-aligned .at-0 {
  left: 0;
  transform: none;
}

body.site .score-guide-scale-labels-aligned .at-50 {
  left: 50%;
}

body.site .score-guide-scale-labels-aligned .at-70 {
  left: 70%;
}

body.site .score-guide-scale-labels-aligned .at-90 {
  left: 90%;
}

body.site .score-guide-scale-labels-aligned .at-100 {
  left: 100%;
  transform: translateX(-100%);
}

body.site .full-report-deterministic .score-guide-band-scale,
body.site .preview-meaning-section .score-guide-band-scale,
body.site .score-guide .score-guide-band-scale {
  height: 28px;
  margin: 0 0 12px;
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
  background: var(--ami-score-band-gradient);
}

body.site .score-guide-band-scale-segmented {
  display: flex;
  align-items: stretch;
  position: relative;
  background: transparent !important;
  overflow: visible;
}

body.site .score-guide-band-seg {
  display: block;
  height: 100%;
  flex: 0 0 auto;
}

body.site .score-guide-band-seg.red {
  width: 50%;
  background: var(--ami-score-low);
}

body.site .score-guide-band-seg.amber {
  width: 20%;
  background: var(--ami-score-medium);
}

body.site .score-guide-band-seg.green {
  width: 20%;
  background: var(--ami-score-high);
}

body.site .score-guide-band-seg.navy {
  width: 10%;
  background: var(--ami-score-highest);
}

body.site .full-report-deterministic .score-guide-band-marker,
body.site .preview-meaning-section .score-guide-band-marker,
body.site .score-guide .score-guide-band-marker {
  top: -12px;
  padding: 5px 8px;
  border-radius: 0;
  background: var(--ami-score-highest);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

body.site .full-report-deterministic .score-guide-band-marker::after,
body.site .preview-meaning-section .score-guide-band-marker::after,
body.site .score-guide .score-guide-band-marker::after {
  border-top-color: var(--ami-score-highest);
}

body.site .full-report-deterministic .bar-row,
body.site .pdf-section-block .bar-row {
  margin: 18px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

body.site .full-report-deterministic .bar-row:last-child,
body.site .pdf-section-block .bar-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body.site .full-report-deterministic .bar-row .bar-head span:first-child,
body.site .pdf-section-block .bar-row .bar-head span:first-child {
  font-family: var(--serif);
  color: var(--ink);
}

body.site .full-report-deterministic .bar-row .bar-head span:last-child,
body.site .pdf-section-block .bar-row .bar-head span:last-child {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}

body.site .full-report-deterministic .bar-row .track,
body.site .pdf-section-block .bar-row .track {
  max-width: 360px;
}

body.site .full-report-deterministic h3,
body.site .full-report-deterministic h4 {
  font-family: var(--serif);
  color: var(--ink);
}

body.site .full-report-deterministic h3.full-report-section-head {
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}

body.site .full-report-drivers {
  margin-bottom: 8px;
}

body.site .full-report-improvements-stack {
  display: grid;
  gap: 24px;
  margin-top: 14px;
}

body.site .full-report-improvements-stack .drivers-list-panel {
  margin: 0;
}

body.site .full-report-improvements-stack h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

body.site .full-report-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

body.site .full-report-channel-card {
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

body.site .full-report-channel-card .track {
  max-width: 100%;
}

body.site .full-report-deterministic .score-guide-matrix {
  position: relative;
  height: 300px;
  margin: 18px 0;
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(var(--rule), var(--rule)) center / 1px 100% no-repeat,
    linear-gradient(var(--rule), var(--rule)) center / 100% 1px no-repeat,
    #fff;
  overflow: hidden;
}

body.site .full-report-deterministic .score-guide-matrix::before,
body.site .full-report-deterministic .score-guide-matrix::after {
  display: none;
}

body.site .full-report-deterministic .score-guide-matrix .q {
  color: #333;
  font-size: 14px;
}

body.site .full-report-deterministic .score-guide-matrix .q2,
body.site .full-report-deterministic .score-guide-matrix .q4 {
  padding-left: 48px;
}

body.site .full-report-deterministic .score-guide-matrix .q strong {
  color: var(--ink);
  font-family: var(--serif);
}

body.site .full-report-deterministic .score-guide-matrix .dot {
  width: 14px;
  height: 14px;
  border-radius: 0;
  border: 2px solid #fff;
  background: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
}

body.site .full-report-deterministic .score-guide-matrix .dot-label {
  border-radius: 0;
  background: var(--navy);
  font-size: 11px;
  font-weight: 800;
}

body.site .full-report-percentile-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

body.site .peer-pct-card {
  min-height: 132px;
  padding: 18px 16px;
  text-align: center;
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

body.site .peer-pct-value {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: normal;
}

body.site .peer-pct-card h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
}

body.site .full-report-heatmap-wrap {
  margin-top: 18px;
}

body.site .score-change-card .confidence-notes-list {
  margin-top: 16px;
}

body.site .score-change-card .tag {
  border-radius: 0;
  background: transparent;
  border: 0;
  border-left: 3px solid var(--navy);
  padding: 0 0 0 9px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.site .score-change-card h2 {
  font-family: var(--serif);
  color: var(--ink);
}

body.site .score-change-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* —— Full report extras —— */
body.site .full-report-hero-grid .card,
body.site .peer-comparison-unavailable {
  border-radius: 0;
  border-color: var(--rule);
  box-shadow: none;
}

body.site .peer-comparison-unavailable {
  border-style: solid;
  background: var(--soft);
}
body.site .autocomplete-results {
  border-radius: 0;
  border-color: var(--rule);
}

body.site .autocomplete-results button {
  border-radius: 0;
}

/* —— LLM progress —— */
body.site .llm-progress-panel {
  border-radius: 0;
  border-color: var(--rule);
  background: var(--soft);
}

/* —— Responsive: progress steps stack like workflow —— */
@media (max-width: 900px) {
  body.site .review-progress-steps {
    grid-template-columns: 1fr;
    border: 1px solid var(--ink);
  }

  body.site .review-progress-step {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    min-height: 0;
  }

  body.site .review-progress-step:last-child {
    border-bottom: 0;
  }

  body.site .review-hero-v2,
  body.site .preview-hero,
  body.site .score-guide-hero {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  body.site .preview-hero .score-gauge-lg,
  body.site .score-guide-hero .score-gauge-lg {
    width: 190px;
    height: 190px;
    justify-self: start;
  }

  body.site .full-report-hero-grid {
    grid-template-columns: 1fr;
  }

  body.site .full-report-gauge-wrap .score-gauge-lg {
    width: 190px;
    height: 190px;
    justify-self: start;
  }

  body.site .full-report-percentile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.site .full-report-channel-grid {
    grid-template-columns: 1fr;
  }

  body.site .preview-hero .score-gauge-lg span,
  body.site .score-guide-hero .score-gauge-lg span {
    font-size: 48px;
  }

  body.site .preview-confidence-head {
    flex-direction: column;
    align-items: flex-start;
  }

  body.site .compact-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.site .review-hero-v2 h1,
  body.site .preview-hero h1 {
    font-size: 32px;
  }

  body.site .intake-field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.site .review-hero-v2 h1,
  body.site .preview-hero h1 {
    font-size: 28px;
  }

  body.site .compact-kpis {
    grid-template-columns: 1fr;
  }

  body.site .full-report-percentile-grid {
    grid-template-columns: 1fr;
  }

  body.site .preview-objective-head strong {
    font-size: 28px;
  }
}

/* —— Header / nav chrome —— */
body.site .topbar {
  background: #fff;
  border-bottom: 1px solid var(--rule);
  backdrop-filter: none;
}

body.site .nav-toggle,
body.site .nav-settings {
  border-radius: 0;
  box-shadow: none;
}

body.site .nav-settings-select:focus-visible {
  outline: 2px solid var(--navy);
  border-radius: 0;
}

body.site .nav-login {
  color: var(--ink);
  font-weight: 700;
}

body.site .nav-login:hover {
  color: var(--navy);
}

body.site .masthead .navlinks a:hover {
  color: var(--navy);
}

/* —— Account & error pages —— */
body.site .account-page {
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}

body.site .account-shell h1,
body.site .alert-card h1 {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--ink);
}

body.site .account-meta {
  border-radius: 0;
  border-color: var(--rule);
  background: var(--soft);
}

body.site .alert-card {
  border: 1px solid var(--ink);
  padding: 34px 38px;
  background: #fff;
}

body.site .alert-card .lead,
body.site .alert-card p {
  color: #333;
  font-size: 18px;
  line-height: 1.5;
}

body.site .alert-card .note {
  color: var(--muted);
}

/* —— Report pages (preview / full) —— */
body.site .report-head h1 {
  font-family: var(--serif);
  color: var(--ink);
}

body.site .history-row b {
  font-family: var(--serif);
  color: var(--ink);
}

body.site .report-section > h2 {
  font-family: var(--serif);
  color: var(--ink);
}

body.site .kpi b {
  font-family: var(--serif);
  color: var(--ink);
}

body.site .compact-kpis .kpi {
  border-radius: 0;
  box-shadow: none;
}

body.site .preview-insight-loading .llm-progress-head strong {
  color: var(--navy);
}

body.site .score-change-card {
  border: 1px solid var(--rule);
  background: #fff;
}

body.site .score-change-value {
  font-family: var(--serif);
  color: var(--ink);
}

/* —— Intake extras —— */
body.site .intake-option {
  background: #fff;
}

body.site .intake-progress-pill {
  border-radius: 0;
  background: var(--soft);
  border-color: var(--rule);
  color: var(--navy);
}

body.site .review-clarifications-panel {
  background: #fff !important;
  border-color: var(--rule) !important;
}

body.site .intake-field-label label {
  font-size: 12px;
}

body.site .intake-field-help,
body.site .intake-question-field .note {
  color: var(--muted);
}

body.site .intake-questions-stack {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}

body.site .intake-questions-panels {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  margin-top: 18px;
}

body.site .intake-questions-panel.panel {
  border: 1px solid var(--ink);
  padding: 26px;
  background: #fff;
}

body.site .intake-location-field .chip-list {
  margin-top: 8px;
}

body.site .intake-multiselect-field {
  display: grid;
  gap: 10px;
}

body.site .intake-multiselect-field .chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
  min-height: 0;
}

body.site .intake-multiselect-field .chip-list:not(:empty) {
  margin-top: 4px;
}

body.site .intake-multiselect-field .chip {
  border-radius: 0;
  border-color: #aeb7c4;
  background: #fafbfc;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

body.site .intake-multiselect-field .chip button {
  border-radius: 0;
  background: var(--navy);
}

body.site .intake-questions-panel-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}

body.site .intake-questions-panel-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--navy);
  border: 1px solid var(--navy);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

body.site .intake-questions-panel-index {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.site .intake-questions-panel-kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

body.site .intake-questions-panel h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.02em;
}

body.site .intake-questions-list {
  display: grid;
  gap: 0;
}

body.site .intake-question-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px 24px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

body.site .intake-question-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body.site .intake-question-index {
  text-align: center;
  padding-top: 4px;
}

body.site .intake-question-num {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  color: var(--navy);
  font-weight: 700;
}

body.site .intake-question-index-label {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

body.site .intake-question-head {
  margin-bottom: 0;
}

body.site .intake-question-prompt {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.32;
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

body.site .intake-question-head .intake-field-help {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.45;
}

body.site .intake-question-body {
  display: grid;
  gap: 10px;
}

body.site .intake-question-field .intake-answer-select,
body.site .intake-question-field .intake-answer-multiselect,
body.site .intake-question-field textarea,
body.site .intake-question-field input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #aeb7c4;
  font-size: 15px;
  line-height: 1.4;
  background: #fff;
  color: var(--ink);
}

body.site .intake-question-field .intake-answer-select {
  padding: 12px 40px 12px 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23003A70' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: #fff;
}

body.site .intake-question-field .intake-answer-select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
}

body.site .intake-answer-multiselect {
  min-height: 132px;
  padding: 8px;
  background: #fff;
}

body.site .intake-multiselect-hint {
  margin: 0;
  font-size: 12px;
}

body.site .intake-location-field input {
  width: 100%;
}

body.site .intake-optional-text {
  font-size: 12px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.site .intake-submit-band {
  margin-top: 22px;
}

@media (max-width: 640px) {
  body.site .intake-questions-panel-head {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }

  body.site .intake-questions-panel-badge {
    width: 48px;
    height: 48px;
  }

  body.site .intake-questions-panel-index {
    font-size: 22px;
  }

  body.site .intake-questions-panel h3 {
    font-size: 22px;
  }

  body.site .intake-question-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 0;
  }

  body.site .intake-question-index {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-align: left;
    padding-top: 0;
  }

  body.site .intake-question-num {
    font-size: 24px;
  }

  body.site .intake-question-index-label {
    margin-top: 0;
  }

  body.site .intake-question-prompt {
    font-size: 18px;
  }
}

/* —— Score guide page —— */
body.site .score-guide-jump {
  background: #fff;
  border-color: var(--rule);
  backdrop-filter: none;
}

body.site .score-guide-jump a {
  color: #333;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.site .score-guide-jump a:hover {
  color: var(--navy);
}

body.site .score-guide-hero {
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

body.site .score-guide-hero p {
  color: #333;
}

body.site .score-guide-hero .lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}

body.site .score-guide-hero .btn.secondary {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
}

body.site .score-guide-sample {
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

body.site .score-guide-sample h3 {
  font-family: var(--serif);
  color: var(--ink);
}

body.site .score-guide .section-head h2 {
  font-family: var(--serif);
  color: var(--ink);
}

body.site .score-guide .container.section-head,
body.site .score-guide .grid-2 > .section-head {
  display: block;
  grid-template-columns: none;
  gap: 0;
}

body.site .score-guide .container.section-head {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
  text-align: center;
}

body.site .score-guide .grid-2 > .section-head {
  max-width: none;
  margin: 0;
  text-align: left;
}

body.site .score-guide .grid-2.score-guide-split {
  align-items: start;
  margin-top: 22px;
}

body.site .score-guide .section-head .kicker {
  margin-bottom: 14px;
}

body.site .score-guide .container.section-head h2,
body.site .score-guide .grid-2 > .section-head h2 {
  margin: 0 0 16px;
}

body.site .score-guide .container.section-head p,
body.site .score-guide .grid-2 > .section-head p {
  margin: 0;
}

body.site .score-guide .icon-card .mark {
  border-radius: 0;
  background: var(--navy);
  color: #fff;
  font-family: var(--serif);
}

body.site .score-guide .icon-card h3 {
  font-family: var(--serif);
  color: var(--ink);
}

body.site .score-guide-note {
  background: var(--soft);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy);
  color: #333;
}

body.site .score-guide-note strong {
  color: var(--ink);
}

body.site .score-guide-table-wrap {
  border: 1px solid var(--rule);
}

body.site .score-guide-table th {
  background: var(--navy);
  font-weight: 800;
  letter-spacing: 0.04em;
}

body.site .score-guide-table td {
  color: #333;
}

body.site .score-guide-table td:first-child {
  color: var(--ink);
  font-weight: 700;
}

body.site .score-guide-bar-row .bar {
  height: 10px;
  border: 1px solid #cdd6e2;
  border-radius: 0;
  background: #e9eef5;
}

body.site .score-guide-bar-row .bar i {
  border-radius: 0;
  background: var(--navy);
}

body.site .score-guide-bar-row .bar i.fill.good {
  background: var(--green);
}

body.site .score-guide-bar-row .bar i.fill.warn {
  background: var(--amber);
}

body.site .score-guide-bar-row .bar i.fill.red {
  background: var(--red);
}

body.site .score-guide-bar-row span {
  color: var(--ink);
  font-weight: 700;
}

body.site .score-guide-bar-row b {
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

body.site .score-guide-pct {
  font-family: var(--serif);
  color: var(--navy);
}

body.site .score-guide-mini-scale {
  border-radius: 0;
  background: #e9eef5;
  border: 1px solid #cdd6e2;
}

body.site .score-guide-mini-scale i {
  border-radius: 0;
  background: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
}

body.site .score-guide-peer-axis .line {
  border-radius: 0;
  background: #e9eef5;
  border: 1px solid #cdd6e2;
}

body.site .score-guide-peer-point::before {
  border-radius: 0;
  background: #8a9aab;
}

body.site .score-guide-peer-point.you {
  color: var(--navy);
}

body.site .score-guide-peer-point.you::before {
  background: var(--navy);
}

body.site .score-guide-matrix {
  position: relative;
  height: 300px;
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(var(--rule), var(--rule)) center / 1px 100% no-repeat,
    linear-gradient(var(--rule), var(--rule)) center / 100% 1px no-repeat,
    #fff;
  overflow: hidden;
}

body.site .score-guide-matrix::before,
body.site .score-guide-matrix::after {
  display: none;
}

body.site .score-guide-matrix .q {
  color: #333;
  font-size: 14px;
}

body.site .score-guide-matrix .q strong {
  color: var(--ink);
  font-family: var(--serif);
}

body.site .score-guide-matrix .dot {
  width: 14px;
  height: 14px;
  border-radius: 0;
  border: 2px solid #fff;
  background: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
}

body.site .score-guide-matrix .dot-label {
  border-radius: 0;
  background: var(--navy);
  font-size: 11px;
  font-weight: 800;
}

body.site .score-guide-timeline {
  border: 1px solid var(--rule);
  background: #fff;
}

body.site .score-guide-timeline .card {
  border-color: var(--rule);
}

body.site .score-guide-methodology {
  border-radius: 0;
  background: var(--navy);
  border: 1px solid var(--navy);
  padding: 34px;
}

body.site .score-guide-methodology .kicker {
  color: rgba(255, 255, 255, 0.82);
}

body.site .score-guide-methodology h2,
body.site .score-guide-methodology h3 {
  font-family: var(--serif);
  color: #fff;
}

body.site .score-guide-methodology > p {
  color: rgba(255, 255, 255, 0.88);
}

body.site .score-guide-method-card {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

body.site .score-guide-method-card ul {
  color: rgba(255, 255, 255, 0.88);
}

body.site .score-guide-method-note {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
}

body.site .score-guide-method-note strong {
  color: #fff;
}

body.site .score-guide-note,
body.site .score-guide-band-wrap,
body.site .score-guide-table-wrap,
body.site .score-guide-method-card,
body.site .score-guide-method-note,
body.site .score-guide-timeline,
body.site .score-guide-pct-card {
  border-radius: 0;
  box-shadow: none;
}

body.site .score-guide-band-marker {
  top: -12px;
  padding: 5px 8px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
}

body.site .score-guide-band-marker::after {
  border-left-width: 6px;
  border-right-width: 6px;
  border-top-width: 8px;
}

body.site .score-guide-pills {
  justify-content: flex-start;
}

body.site .score-guide .faq summary {
  font-family: var(--serif);
  color: var(--ink);
}

@media (max-width: 900px) {
  body.site .score-guide-hero {
    grid-template-columns: 1fr;
  }

  body.site .score-guide-matrix .dot-label {
    display: none;
  }
}

/* —— History compare —— */
body.site .history-compare-toolbar {
  background: var(--soft);
  border-color: var(--rule);
}

body.site .history-select span {
  color: #333;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.site .compare-run-card h2 {
  font-family: var(--serif);
  color: var(--ink);
}

body.site .compare-score-block strong,
body.site .compare-score-delta {
  font-family: var(--serif);
  color: var(--ink);
}

body.site .compare-table-wrap {
  border-radius: 0;
}

/* —— LLM progress —— */
body.site .llm-progress-fill {
  background: var(--navy);
}

/* —— Footer alignment (inherits ami-base; reinforce) —— */
body.site .footer {
  border-top: 1px solid var(--rule);
}

/* —— Info / legal pages —— */
body.site .info-page .panel {
  margin-top: 22px;
  border: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: none;
  padding: 26px;
}

body.site .info-page .panel h2 {
  font-family: var(--serif);
  font-size: 30px;
  margin: 0 0 10px;
  color: var(--ink);
}

body.site .info-page .panel p {
  margin: 0;
  color: #333;
}

body.site .info-page .page-title {
  font-family: var(--serif);
  font-size: 60px;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 20px;
  color: var(--ink);
}

body.site .info-page .lead {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.35;
  margin: 0 0 22px;
  color: #242424;
}

body.site .info-page .info-page-head {
  margin-bottom: 28px;
}

body.site .info-page .info-page-head .page-title {
  margin-bottom: 0;
}

body.site .info-page .card h3 {
  font-family: var(--serif);
  color: var(--ink);
}

body.site .info-page .hero-actions {
  margin-top: 22px;
}

@media (max-width: 900px) {
  body.site .info-page .page-title {
    font-size: 42px;
  }
}

/* —— Dashboard (reference_static_preview parity) —— */
body.site .dashboard-page .page-title {
  font-family: var(--serif);
  font-size: 60px;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 20px;
}

body.site .dashboard-page .lead {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.35;
  margin: 0 0 28px;
  color: #242424;
}

body.site .dashboard-page .dashboard {
  border: 1px solid var(--ink);
  background: #fff;
  padding: 0;
  max-width: 100%;
  overflow-x: clip;
}

body.site .dashboard-page .dash-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 420px;
  min-width: 0;
}

body.site .dashboard-page .dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
  padding: 18px 20px;
}

body.site .dashboard-page .dash-head-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  flex: 1 1 280px;
}

body.site .dashboard-page .dash-head-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

body.site .dashboard-page .dash-head strong {
  font-family: var(--serif);
  font-size: 22px;
}

body.site .dashboard-page .dash-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

body.site .dashboard-page .dash-slot-meters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.site .dashboard-page .dash-slot-meter {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  background: #f7f8fa;
  min-width: 0;
}

body.site .dashboard-page .dash-slot-label {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted, #5b6570);
  white-space: nowrap;
}

body.site .dashboard-page .dash-slot-value {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink, #111);
  line-height: 1;
}

body.site .dashboard-page .dash-slot-hint {
  font-size: 12px;
  color: var(--muted, #5b6570);
}

body.site .dashboard-page .sidebar {
  border-right: 1px solid var(--rule);
  padding: 20px;
  background: #fafbfc;
}

body.site .dashboard-page .sidebar a {
  display: block;
  padding: 9px 0;
  color: #222;
  border-bottom: 1px solid #e5e9ef;
  text-decoration: none;
}

body.site .dashboard-page .sidebar a:hover {
  color: var(--navy);
  text-decoration: underline;
}

body.site .dashboard-page .dash-main {
  padding: 22px;
  min-width: 0;
}

body.site .dashboard-page .dashboard-matched-jobs-root,
body.site .dashboard-page .dashboard-matched-jobs-content {
  min-width: 0;
  max-width: 100%;
}

body.site .dashboard-page .dashboard-empty {
  margin-bottom: 24px;
}

body.site .dashboard-page .dashboard-empty-actions,
body.site .dashboard-page .dashboard-quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

body.site .dashboard-page .dashboard-profile-note {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

body.site .dashboard-page .dashboard-locked-panel {
  border: 1px solid var(--ink);
  margin-top: 4px;
}

body.site .dashboard-page .dashboard-locked-actions {
  margin-top: 18px;
}

body.site .dashboard-page .dashboard-tier-note {
  margin-top: 18px;
}

body.site .dashboard-page .dashboard-trajectory-empty {
  margin: 0;
}

body.site .dashboard-page .dashboard-trajectory-empty p {
  margin: 0;
}

body.site .dashboard-page .chart-card {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 20px;
  margin-bottom: 16px;
  --chart-ami-color: #0057b8;
  --chart-potential-color: #b45309;
}

body.site .dashboard-page .chart-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 8px;
}

body.site .dashboard-page .chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: #fafbfc;
}

body.site .dashboard-page .chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

body.site .dashboard-page .chart-legend-swatch {
  display: inline-block;
  width: 32px;
  height: 5px;
  flex-shrink: 0;
}

body.site .dashboard-page .chart-legend-swatch-ami {
  background: var(--chart-ami-color);
}

body.site .dashboard-page .chart-legend-swatch-potential {
  height: 0;
  border-top: 5px dashed var(--chart-potential-color);
  background: transparent;
}

body.site .dashboard-page .chart-svg .chart-line-ami {
  stroke: var(--chart-ami-color);
}

body.site .dashboard-page .chart-svg .chart-line-potential {
  stroke: var(--chart-potential-color);
  stroke-dasharray: 8 5;
}

body.site .dashboard-page .chart-svg .chart-dot-ami {
  fill: var(--chart-ami-color);
}

body.site .dashboard-page .chart-svg .chart-dot-potential {
  fill: var(--chart-potential-color);
}

body.site .dashboard-page .chart-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

body.site .dashboard-page .chart-svg {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #eef1f5;
  background: #fff;
}

body.site .dashboard-page .chart-svg .chart-axis-label {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  fill: var(--ink);
}

body.site .dashboard-page .chart-svg .chart-axis-label-y {
  font-size: 15px;
}

body.site .dashboard-page .chart-svg .chart-axis-label-x {
  font-size: 16px;
}

body.site .dashboard-page .bar-h {
  display: grid;
  grid-template-columns: 160px 1fr 54px;
  gap: 12px;
  align-items: center;
  margin: 10px 0;
}

body.site .dashboard-page .bar-h .track {
  height: 13px;
  background: #eaf0f6;
  border: 1px solid #d8e0ea;
}

body.site .dashboard-page .bar-h .fill {
  height: 100%;
  background: var(--navy);
}

body.site .dashboard-page .bar-h .fill.green {
  background: var(--green);
}

body.site .dashboard-page .bar-h .fill.amber {
  background: var(--amber);
}

body.site .dashboard-page .delta-card {
  border-left: 4px solid var(--navy);
  background: #fafbfc;
  padding: 14px 16px;
}

body.site .dashboard-page .delta-card strong {
  display: block;
  margin-bottom: 6px;
}

body.site .dashboard-page .dashboard-section-head {
  margin-top: 24px;
}

body.site .dashboard-page .dashboard-section-head .section-title {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.08;
  margin: 0 0 12px;
}

body.site .dashboard-page .job-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

body.site .dashboard-page .dashboard-matched-jobs-root {
  margin-bottom: 8px;
}

body.site .dashboard-page .dashboard-matched-jobs-loading,
body.site .dashboard-page .dashboard-matched-jobs-empty {
  padding: 18px 20px;
  border: 1px solid #d7e0ea;
  background: #f8fafc;
  color: #334155;
}

body.site .dashboard-page .dashboard-matched-jobs-empty p {
  margin: 0 0 10px;
}

body.site .dashboard-page .dashboard-matched-jobs-empty p:last-child {
  margin-bottom: 0;
}

body.site .dashboard-page .dashboard-matched-jobs-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border: 1px solid #d7e0ea;
  background: #fff;
}

body.site .dashboard-page .dashboard-matched-jobs-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

body.site .dashboard-page .dashboard-matched-jobs-table th,
body.site .dashboard-page .dashboard-matched-jobs-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e8edf3;
  text-align: left;
  vertical-align: top;
}

body.site .dashboard-page .dashboard-matched-jobs-table thead th {
  background: #f5f7fa;
  color: #123d7a;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.site .dashboard-page .dashboard-matched-jobs-table tbody th {
  font-weight: 600;
  color: #10243f;
}

body.site .dashboard-page .dashboard-matched-jobs-table tbody tr:last-child th,
body.site .dashboard-page .dashboard-matched-jobs-table tbody tr:last-child td {
  border-bottom: 0;
}

body.site .dashboard-page .dashboard-matched-jobs-table a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

body.site .dashboard-page .dashboard-matched-jobs-table a:hover {
  text-decoration: underline;
}

body.site .dashboard-page .dashboard-matched-jobs-status {
  margin-top: 8px;
  color: #b42318;
}

body.site .saved-jobs-page .saved-jobs-head {
  margin-bottom: 12px;
}

body.site .saved-jobs-count {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}

body.site .saved-jobs-load-more-wrap {
  padding: 18px 16px 8px;
  text-align: center;
  border: 1px solid #d7e0ea;
  border-top: 0;
  background: #f8fafc;
}

body.site .saved-jobs-load-more-btn {
  width: 100%;
  max-width: 320px;
  min-height: 46px;
  justify-content: center;
}

body.site .saved-jobs-table .saved-jobs-actions-cell {
  white-space: nowrap;
}

body.site .saved-jobs-remove-btn {
  min-height: 36px;
  padding: 6px 12px;
}

body.site .jobs-list-item-wrap {
  position: relative;
  border-bottom: 1px solid var(--rule);
  background: #fff;
}

body.site .jobs-list-item-wrap .jobs-list-item {
  border-bottom: 0;
  padding-right: 52px;
}

body.site .jobs-save-btn {
  border: 1px solid #c9d6e2;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  font: inherit;
}

body.site .jobs-save-btn:hover,
body.site .jobs-save-btn:focus-visible {
  border-color: var(--navy);
  outline: none;
}

body.site .jobs-save-btn.is-saved {
  border-color: var(--green);
  color: var(--green);
  background: #f2fbf7;
}

body.site .jobs-save-btn--compact {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
}

body.site .jobs-save-btn--compact .jobs-save-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.site .jobs-save-btn--inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

body.site .jobs-save-btn--inline .jobs-save-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.site .jobs-detail-preview-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.site .jobs-detail-preview-head-row .jobs-detail-title--embedded {
  flex: 1;
  min-width: 0;
  margin: 0;
}

@media (max-width: 900px) {
  body.site .dashboard-page .page-title {
    font-size: 42px;
  }

  body.site .dashboard-page .lead {
    font-size: 20px;
  }

  body.site .dashboard-page .dash-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.site .dashboard-page .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 14px 16px;
  }

  body.site .dashboard-page .sidebar a {
    display: inline-block;
    border-bottom: 0;
    padding: 6px 0;
    font-size: 14px;
  }

  body.site .dashboard-page .dash-main {
    padding: 18px 16px 22px;
  }

  body.site .dashboard-page .dashboard-section-head .section-title {
    font-size: 32px;
  }

  body.site .dashboard-page .bar-h {
    grid-template-columns: minmax(92px, 1fr) minmax(0, 2fr) 44px;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  body.site .dashboard-page .page-title {
    font-size: 34px;
  }

  body.site .dashboard-page .lead {
    font-size: 18px;
    line-height: 1.45;
  }

  body.site .dashboard-page .dash-head {
    padding: 14px 16px;
  }

  body.site .dashboard-page .dash-head strong {
    font-size: 18px;
  }

  body.site .dashboard-page .dash-slot-meters {
    width: 100%;
  }

  body.site .dashboard-page .dash-slot-meter {
    flex: 1 1 calc(50% - 5px);
    padding: 9px 12px;
  }

  body.site .dashboard-page .dash-slot-value {
    font-size: 18px;
  }

  body.site .dashboard-page .score-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.site .dashboard-page .dashboard-section-head .section-title {
    font-size: 28px;
  }

  body.site .dashboard-page .dashboard-matched-jobs-table-wrap {
    overflow-x: visible;
    border: 0;
    background: transparent;
  }

  body.site .dashboard-page .dashboard-matched-jobs-table {
    min-width: 0;
    display: block;
    border: 1px solid #d7e0ea;
    background: #fff;
  }

  body.site .dashboard-page .dashboard-matched-jobs-table thead {
    display: none;
  }

  body.site .dashboard-page .dashboard-matched-jobs-table tbody {
    display: block;
  }

  body.site .dashboard-page .dashboard-matched-jobs-table tbody tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #e8edf3;
  }

  body.site .dashboard-page .dashboard-matched-jobs-table tbody tr:last-child {
    border-bottom: 0;
  }

  body.site .dashboard-page .dashboard-matched-jobs-table tbody th,
  body.site .dashboard-page .dashboard-matched-jobs-table tbody td {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 8px 12px;
    align-items: start;
    padding: 5px 14px;
    border-bottom: 0;
    word-break: break-word;
  }

  body.site .dashboard-page .dashboard-matched-jobs-table tbody th {
    display: block;
    grid-template-columns: none;
    padding: 0 14px 10px;
    font-size: 17px;
    line-height: 1.35;
  }

  body.site .dashboard-page .dashboard-matched-jobs-table tbody td::before {
    content: attr(data-label);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    line-height: 1.3;
  }

  body.site .saved-jobs-page .saved-jobs-table tbody td::before,
  body.site .saved-jobs-page .saved-jobs-table tbody th::before {
    content: attr(data-label);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    line-height: 1.3;
  }
}

/* —— Jobs search (Phase 1) —— */
body.site .jobs-search-page .jobs-search-hero {
  margin-bottom: 20px;
}

body.site .jobs-search-page .page-title {
  margin-bottom: 8px;
}

body.site .jobs-search-page .lead {
  margin-bottom: 0;
}

body.site .jobs-guest-banner {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #b8cee4;
  background: #f4f8fc;
}

body.site .jobs-guest-banner p {
  margin: 0 0 12px;
  color: #123d7a;
  font-size: 14px;
  line-height: 1.45;
}

body.site .jobs-guest-banner .hero-actions {
  margin-top: 0;
}

body.site .jobs-hidden-name {
  color: var(--muted);
  font-style: italic;
  font-weight: 700;
}

body.site .jobs-unlock-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.site .jobs-unlock-link:hover {
  color: var(--navy);
}

body.site .jobs-guest-unlock {
  display: grid;
  gap: 10px;
  align-content: start;
}

body.site .jobs-guest-unlock p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

body.site .jobs-guest-unlock .hero-actions {
  margin-top: 0;
}

body.site .jobs-search-form {
  margin-bottom: 20px;
}

body.site .jobs-profile-notice {
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid #b8cee4;
  background: #f4f8fc;
  color: #123d7a;
  font-size: 14px;
  line-height: 1.4;
}

body.site .jobs-profile-notice p {
  margin: 0;
}

body.site .jobs-profile-practice-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
}

body.site .jobs-profile-practice-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  flex: 1;
  margin: 0;
  color: #17324d;
  font-size: 14px;
  line-height: 1.45;
}

body.site .jobs-profile-practice-clear {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 1px solid #9bb8d6;
  border-radius: 50%;
  background: #fff;
  color: #123d7a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

body.site .jobs-profile-practice-clear:hover,
body.site .jobs-profile-practice-clear:focus {
  background: #e8f1fa;
  border-color: #123d7a;
  outline: none;
}

body.site .jobs-profile-practice-row[hidden] {
  display: none !important;
}

body.site .jobs-profile-practice-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

body.site .jobs-profile-practice-dot {
  color: #123d7a;
  font-weight: 700;
}

body.site .jobs-profile-notice[hidden] {
  display: none !important;
}

body.site .jobs-facets-shell {
  margin-bottom: 16px;
  overflow: visible;
}

body.site .jobs-facets-loading {
  display: none !important;
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 8px;
}

body.site .jobs-facets-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
body.site .jobs-facets-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid #e2e8f0;
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: jobs-facets-spin 0.6s linear infinite;
  flex-shrink: 0;
}
body.site .jobs-facets-spinner.is-active { display: inline-block; }
@keyframes jobs-facets-spin { to { transform: rotate(360deg); } }

body.site .jobs-facet-dropdown {
  position: relative;
}

body.site .jobs-facet-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  border: 1px solid #c9d6e2;
  background: #fff;
  color: #123;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
}

body.site .jobs-facet-dropdown-toggle:hover {
  border-color: var(--navy);
}

body.site .jobs-facet-dropdown-toggle.is-active {
  border-color: var(--navy);
  background: #f4f8fc;
  color: var(--navy);
  font-weight: 700;
}

body.site .jobs-facet-dropdown-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

body.site .jobs-facet-dropdown-caret {
  flex-shrink: 0;
  font-size: 12px;
  color: #4b5563;
}

body.site .jobs-facet-dropdown.is-open .jobs-facet-dropdown-caret {
  transform: rotate(180deg);
}

body.site .jobs-facet-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  min-width: 240px;
  max-width: min(360px, 92vw);
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #c9d6e2;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

body.site .jobs-facet-dropdown-option {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eef2f6;
  background: #fff;
  color: #123;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
}

body.site .jobs-facet-dropdown-option:last-child {
  border-bottom: 0;
}

body.site .jobs-facet-dropdown-option:hover {
  background: #f4f8fc;
}

body.site .jobs-facet-dropdown-option.is-selected {
  background: #eef4fa;
  color: var(--navy);
  font-weight: 700;
}

body.site .jobs-facet-dropdown-option.is-disabled,
body.site .jobs-facet-dropdown-option:disabled {
  color: #8a97a6;
  cursor: not-allowed;
  background: #f8fafc;
}

body.site .jobs-facet-dropdown-option.is-disabled:hover,
body.site .jobs-facet-dropdown-option:disabled:hover {
  background: #f8fafc;
}

body.site .jobs-search-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: stretch;
  border: 2px solid var(--navy);
  background: #fff;
  overflow: visible;
}

body.site .jobs-search-field {
  padding: 14px 16px 12px;
  min-width: 0;
  overflow: visible;
}

body.site .jobs-search-field-where {
  position: relative;
  z-index: 20;
}

body.site .jobs-search-field + .jobs-search-field {
  border-left: 1px solid var(--rule);
}

body.site .jobs-search-field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

body.site .jobs-search-field input[type="search"] {
  width: 100%;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 16px;
  background: transparent;
  outline: none;
}

body.site .jobs-search-field input[type="search"]::placeholder {
  color: #6b7280;
}

body.site .jobs-location-picker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-height: 28px;
}

body.site .jobs-location-input-row {
  position: relative;
  width: 100%;
}

body.site .jobs-location-input-row > input[type="search"] {
  width: 100%;
  min-width: 0;
}

body.site .jobs-location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

body.site .jobs-location-chips:empty {
  display: none;
}

body.site .jobs-location-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 1px solid #b8cee4;
  background: #f4f8fc;
  color: #123;
  font-size: 13px;
  line-height: 1.2;
  padding: 4px 6px 4px 8px;
}

body.site .jobs-location-chip.is-text {
  border-color: #d6dce5;
  background: #f5f7fa;
}

body.site .jobs-location-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.site .jobs-location-chip-remove {
  border: 0;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}

body.site .jobs-location-results {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--rule);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body.site .jobs-location-results.is-open {
  display: block;
}

body.site .jobs-location-results .jobs-location-suggestion {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  text-align: left;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
}

body.site .jobs-location-results .jobs-location-suggestion:last-child {
  border-bottom: 0;
}

body.site .jobs-location-results .jobs-location-suggestion:hover,
body.site .jobs-location-results .jobs-location-suggestion.is-active {
  background: var(--soft);
}

body.site .jobs-search-submit {
  align-self: stretch;
  min-width: 148px;
  border-radius: 0;
  border: 0;
  border-left: 1px solid var(--navy);
  padding: 0 22px;
  font-size: 15px;
}

body.site .jobs-search-filters {
  margin-top: 10px;
}

body.site .jobs-remote-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

body.site .jobs-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

body.site .jobs-results-count {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}

body.site .jobs-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Desktop: scroll pagination — hide Prev/Next buttons, keep page label */
body.site .jobs-pagination #jobs_prev_page,
body.site .jobs-pagination #jobs_next_page {
  display: none !important;
}

body.site .jobs-page-label {
  font-size: 14px;
  color: var(--muted);
}

body.site .jobs-split {
  display: grid;
  grid-template-columns: minmax(280px, 34%) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  min-height: 620px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
}

body.site .jobs-list-panel {
  border-right: 1px solid var(--rule);
  max-height: calc(100vh - 280px);
  min-height: 620px;
  overflow: auto;
  background: #f8fafc;
}

body.site .jobs-list-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: #fff;
  padding: 14px 16px 14px 18px;
  cursor: pointer;
  transition: background 0.15s ease;
}

body.site .jobs-list-item:hover {
  background: #f4f8fc;
}

body.site .jobs-list-item.is-selected {
  background: #eef4fb;
  box-shadow: inset 4px 0 0 var(--navy);
}

body.site .jobs-list-item h3 {
  margin: 0 0 5px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

body.site .jobs-list-firm {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
body.site .jobs-list-firm .jobs-prestige-chip {
  font-size: 9px;
  padding: 2px 7px;
}

body.site .jobs-list-meta {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.4;
}

body.site .jobs-list-posted {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

body.site .jobs-list-empty {
  padding: 28px 20px;
  color: var(--muted);
  text-align: center;
}

body.site .jobs-list-load-more {
  padding: 14px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: #f8fafc;
  border-top: 1px solid var(--rule);
}

body.site .jobs-list-load-more[hidden] {
  display: none !important;
}

body.site .jobs-preview-panel {
  position: relative;
  max-height: calc(100vh - 280px);
  min-height: 620px;
  overflow: auto;
  background: #fff;
}

body.site .jobs-preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 32px 24px;
  color: var(--muted);
  text-align: center;
}

body.site .jobs-preview-empty[hidden],
body.site .jobs-preview-card[hidden],
body.site .jobs-pagination[hidden] {
  display: none !important;
}

body.site .jobs-preview-card {
  padding: 0;
}

body.site .jobs-detail-layout--embedded {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 24px 28px;
}

body.site .jobs-detail-preview-head {
  margin: 0;
}

body.site .jobs-detail-fit-aside--embedded {
  position: static;
  top: auto;
  width: 100%;
  margin: 0;
}

body.site .jobs-detail-fit-aside--embedded .jobs-detail-fit-panel {
  width: 100%;
}

body.site .jobs-detail-fit-aside--embedded .jobs-detail-fit-card--loaded,
body.site .jobs-detail-fit-aside--embedded .jobs-detail-fit-card--loading,
body.site .jobs-detail-fit-aside--embedded .jobs-detail-fit-message {
  display: flex;
  flex-direction: column;
}

body.site .jobs-detail-fit-aside--embedded .jobs-detail-fit-metrics {
  border-right: 0;
  border-bottom: 0;
}

body.site .jobs-detail-fit-aside--embedded .jobs-detail-fit-insight {
  margin: 0 20px 16px;
  border-left: 3px solid var(--navy);
  background: #f8fafc;
  min-height: auto;
}

body.site .jobs-detail-fit-aside--embedded .jobs-detail-fit-card--loaded.is-strong .jobs-detail-fit-insight {
  border-left-color: var(--green);
}

body.site .jobs-detail-fit-aside--embedded .jobs-detail-fit-card--loaded.is-stretch .jobs-detail-fit-insight {
  border-left-color: var(--amber);
}

body.site .jobs-detail-fit-aside--embedded .jobs-detail-fit-actions {
  margin-top: 0;
  padding: 16px 20px 20px;
  border-top: 1px solid #eef2f6;
}

body.site .jobs-detail-fit-aside--embedded .jobs-detail-fit-actions .ghost-button {
  width: 100%;
  display: inline-flex;
  justify-content: center;
}

body.site .jobs-detail-fit-card--embedded {
  position: relative;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

body.site .jobs-detail-fit-summary--inline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 44px 10px 14px;
  min-height: 48px;
}

body.site .jobs-detail-fit-card--embedded .jobs-detail-fit-eyebrow {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  flex-shrink: 0;
}

body.site .jobs-detail-fit-badge--inline {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

body.site .jobs-detail-fit-summary--inline .jobs-detail-fit-score-inline {
  margin-left: auto;
  min-width: 34px;
  height: 34px;
  font-size: 15px;
  border-width: 1.5px;
}

body.site .jobs-detail-fit-card--embedded .jobs-detail-fit-info-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
}

body.site .jobs-detail-fit-card--embedded .jobs-detail-fit-info-btn svg {
  width: 16px;
  height: 16px;
}

body.site .jobs-detail-fit-card--embedded .jobs-detail-fit-details .jobs-detail-fit-hero .jobs-detail-fit-eyebrow {
  display: none;
}

body.site .jobs-detail-fit-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #c9d6e2;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.site .jobs-detail-fit-info-btn:hover,
body.site .jobs-detail-fit-info-btn:focus-visible {
  background: #f8fafc;
  border-color: var(--navy);
  outline: none;
}

body.site .jobs-detail-fit-card--embedded.is-expanded .jobs-detail-fit-info-btn {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

body.site .jobs-detail-fit-details {
  display: block;
}

body.site .jobs-detail-fit-details[hidden] {
  display: none !important;
}

body.site .jobs-detail-fit-summary[hidden] {
  display: none !important;
}

body.site .jobs-detail-fit-score-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid #c9d6e2;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

body.site .jobs-detail-fit-summary.is-strong .jobs-detail-fit-score-inline,
body.site .jobs-detail-fit-summary--inline.is-strong .jobs-detail-fit-score-inline {
  border-color: var(--green);
  color: var(--green);
}

body.site .jobs-detail-fit-summary.is-moderate .jobs-detail-fit-score-inline,
body.site .jobs-detail-fit-summary--inline.is-moderate .jobs-detail-fit-score-inline {
  border-color: #5b8def;
  color: #2f5fbf;
}

body.site .jobs-detail-fit-summary.is-stretch .jobs-detail-fit-score-inline,
body.site .jobs-detail-fit-summary--inline.is-stretch .jobs-detail-fit-score-inline {
  border-color: var(--amber);
  color: #b45309;
}

body.site .jobs-detail-fit-card--embedded.jobs-detail-fit-card--loading {
  padding: 0;
}

body.site .jobs-detail-fit-card--embedded.jobs-detail-fit-card--loading .jobs-detail-fit-summary--inline {
  padding-right: 14px;
}

body.site .jobs-detail-fit-skeleton-score {
  width: 34px;
  height: 34px;
  margin-left: auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2f6 0%, #f8fafc 50%, #eef2f6 100%);
  background-size: 200% 100%;
  animation: jobs-detail-fit-shimmer 1.2s ease-in-out infinite;
}

body.site .jobs-detail-fit-card--embedded.is-expanded .jobs-detail-fit-details {
  padding-top: 4px;
}

body.site .is-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.site .jobs-detail-fit-summary--inline.is-loading .jobs-detail-fit-skeleton-badge {
  width: 72px;
  height: 22px;
  flex-shrink: 0;
}

body.site .jobs-detail-article--embedded {
  margin-top: 4px;
}

body.site .jobs-detail-article--embedded .jobs-detail-rule {
  margin-top: 0;
}

body.site .jobs-detail-title--embedded {
  font-size: 32px;
  margin: 0 0 12px;
}

body.site .jobs-preview-panel .jobs-detail-layout--embedded .jobs-preview-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

body.site .jobs-preview-head {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

body.site .jobs-preview-head h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.15;
}

body.site .jobs-preview-firm {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

body.site .jobs-preview-meta {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.45;
}

body.site .jobs-preview-body {
  font-size: 15px;
  line-height: 1.6;
  color: #222;
}

body.site .jobs-preview-body h2,
body.site .jobs-preview-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 18px 0 10px;
}

body.site .jobs-preview-body ul {
  padding-left: 20px;
  margin: 8px 0 14px;
}

body.site .jobs-preview-body p {
  margin: 0 0 12px;
}

body.site .jobs-preview-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

body.site .jobs-status {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

body.site .jobs-status.is-error {
  color: var(--red);
}

/* ——— Stand-alone job detail page (SEO) ——— */
body.site .jobs-detail-page {
  padding-top: 34px;
  padding-bottom: 44px;
}

body.site .jobs-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 32px;
  align-items: start;
}

body.site .jobs-detail-article {
  background: transparent;
  border: 0;
  padding: 0;
  min-width: 0;
}

body.site .jobs-detail-fit-aside {
  position: sticky;
  top: 88px;
}

/* Jobs search preview: fit card scrolls with content (no sticky overlap). */
body.site .jobs-preview-panel .jobs-detail-fit-aside,
body.site .jobs-detail-fit-aside--embedded {
  position: static;
  top: auto;
}

body.site .jobs-preview-panel .jobs-detail-fit-card {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

body.site .jobs-detail-fit-card {
  border: 1px solid #c9d6e2;
  background: #fff;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

body.site .jobs-detail-fit-card--loading {
  padding: 18px 20px 20px;
}

body.site .jobs-detail-fit-eyebrow {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.site .jobs-detail-fit-hero {
  padding: 18px 20px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fbfe 0%, #fff 100%);
}

body.site .jobs-detail-fit-hero.is-strong {
  background: linear-gradient(180deg, #f2fbf7 0%, #fff 100%);
}

body.site .jobs-detail-fit-hero.is-moderate {
  background: linear-gradient(180deg, #f4f8fc 0%, #fff 100%);
}

body.site .jobs-detail-fit-hero.is-stretch {
  background: linear-gradient(180deg, #fff9ea 0%, #fff 100%);
}

body.site .jobs-detail-fit-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

body.site .jobs-detail-fit-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

body.site .jobs-detail-fit-score-ring {
  width: 58px;
  height: 58px;
  border: 2px solid #c9d6e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
}

body.site .jobs-detail-fit-hero.is-strong .jobs-detail-fit-score-ring {
  border-color: #9acbb9;
  color: var(--green);
}

body.site .jobs-detail-fit-hero.is-moderate .jobs-detail-fit-score-ring {
  border-color: #9bb8d6;
  color: var(--navy);
}

body.site .jobs-detail-fit-hero.is-stretch .jobs-detail-fit-score-ring {
  border-color: #d8c292;
  color: var(--amber);
}

body.site .jobs-detail-fit-score-value {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

body.site .jobs-detail-fit-score-track {
  height: 6px;
  background: #e8edf3;
  overflow: hidden;
}

body.site .jobs-detail-fit-score-fill {
  height: 100%;
  background: var(--navy);
  transition: width 0.35s ease;
}

body.site .jobs-detail-fit-hero.is-strong .jobs-detail-fit-score-fill {
  background: var(--green);
}

body.site .jobs-detail-fit-hero.is-moderate .jobs-detail-fit-score-fill {
  background: var(--navy);
}

body.site .jobs-detail-fit-hero.is-stretch .jobs-detail-fit-score-fill {
  background: var(--amber);
}

body.site .jobs-detail-fit-score-caption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

body.site .jobs-detail-fit-metrics {
  margin: 0;
  padding: 16px 20px;
  display: grid;
  gap: 12px;
}

body.site .jobs-detail-fit-metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f6;
}

body.site .jobs-detail-fit-metric:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body.site .jobs-detail-fit-metric dt {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.site .jobs-detail-fit-metric dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

body.site .jobs-detail-fit-pill {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #d7e0ea;
  background: #f8fafc;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.site .jobs-detail-fit-pill.is-high {
  color: #9a3412;
  border-color: #f0c9a6;
  background: #fff7ed;
}

body.site .jobs-detail-fit-pill.is-moderate {
  color: var(--navy);
  border-color: #c9d6e2;
  background: #f4f8fc;
}

body.site .jobs-detail-fit-insight {
  margin: 0 20px 18px;
  padding: 14px 14px 14px 16px;
  border-left: 3px solid var(--navy);
  background: #f8fafc;
}

body.site .jobs-detail-fit-card--loaded.is-strong .jobs-detail-fit-insight {
  border-left-color: var(--green);
}

body.site .jobs-detail-fit-card--loaded.is-stretch .jobs-detail-fit-insight {
  border-left-color: var(--amber);
}

body.site .jobs-detail-fit-insight-label {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.site .jobs-detail-fit-insight-copy {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}

body.site .jobs-detail-fit-actions {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

body.site .jobs-detail-fit-actions .button,
body.site .jobs-detail-fit-actions .secondary-button,
body.site .jobs-detail-fit-actions .ghost-button {
  width: 100%;
  justify-content: center;
  text-align: center;
}

body.site .jobs-detail-fit-actions .jobs-detail-save-btn {
  align-self: center;
  justify-content: center;
}

body.site .jobs-detail-fit-message {
  padding: 20px;
}

body.site .jobs-detail-fit-message .jobs-detail-fit-actions {
  margin-top: 18px;
  padding: 0;
}

body.site .jobs-detail-fit-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.12;
  color: var(--ink);
}

body.site .jobs-detail-fit-copy,
body.site .jobs-detail-fit-loading-copy {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

body.site .jobs-detail-fit-loading-copy {
  margin-top: 14px;
}

body.site .jobs-detail-fit-skeleton-badge,
body.site .jobs-detail-fit-skeleton-line {
  display: block;
  background: linear-gradient(90deg, #eef2f6 0%, #f8fafc 50%, #eef2f6 100%);
  background-size: 200% 100%;
  animation: jobs-detail-fit-shimmer 1.2s ease-in-out infinite;
}

body.site .jobs-detail-fit-skeleton-badge {
  width: 42%;
  height: 34px;
  margin-bottom: 14px;
}

body.site .jobs-detail-fit-skeleton-line {
  width: 100%;
  height: 8px;
  margin-bottom: 10px;
}

body.site .jobs-detail-fit-skeleton-line.is-short {
  width: 72%;
}

@keyframes jobs-detail-fit-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

body.site .jobs-detail-title {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.03;
  margin: 10px 0 16px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

body.site .jobs-detail-employer {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.site .jobs-detail-employer.jobs-employer-locked {
  font-weight: 700;
}

body.site .jobs-list-firm .jobs-hidden-name {
  font-size: 14px;
}

body.site .jobs-preview-foot .jobs-guest-unlock .button {
  width: fit-content;
}

/* ——— Firm prestige chip ——— */
body.site .jobs-prestige-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: middle;
}
body.site .jobs-prestige-chip--5 { background: #003A70; color: #fff; }
body.site .jobs-prestige-chip--4 { background: #1a5e9a; color: #fff; }
body.site .jobs-prestige-chip--3 { background: #2d7fc0; color: #fff; }
body.site .jobs-prestige-chip--2 { background: #e2e8f0; color: #334155; }
body.site .jobs-prestige-chip--1 { background: #f1f5f9; color: #64748b; }

body.site .jobs-detail-location {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 18px;
  word-break: break-word;
}

body.site .jobs-detail-rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 22px 0 20px;
}

body.site .jobs-detail-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
}

body.site .jobs-detail-body p {
  margin: 0 0 16px;
}

body.site .jobs-detail-body h2,
body.site .jobs-detail-body h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
  margin: 22px 0 12px;
}

@media (max-width: 900px) {
  body.site .jobs-detail-grid {
    grid-template-columns: 1fr;
  }

  body.site .jobs-detail-fit-aside {
    position: static;
  }

  body.site .jobs-detail-title {
    font-size: 34px;
  }
}

@media (max-width: 900px) {
  body.site .jobs-search-bar {
    grid-template-columns: 1fr;
  }

  body.site .jobs-search-field + .jobs-search-field {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  body.site .jobs-search-submit {
    border-left: 0;
    border-top: 1px solid var(--navy);
    min-height: 48px;
  }

  body.site .jobs-split {
    grid-template-columns: 1fr;
  }

  body.site .jobs-list-panel,
  body.site .jobs-preview-panel {
    max-height: none;
    min-height: auto;
  }

  body.site .jobs-list-panel {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  body.site .jobs-results-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  body.site .jobs-pagination {
    justify-content: center;
    width: 100%;
  }

  body.site .jobs-page-label {
    text-align: center;
    font-weight: 600;
    color: var(--navy);
  }

  body.site .jobs-list-load-more {
    padding: 18px 16px 20px;
    background: #f8fafc;
    border-top: 1px solid var(--rule);
  }

  body.site .jobs-list-load-more-btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }
}

/* Profile — layout + practice tree + location picker */
body.site .profile-page .account-shell {
  max-width: 1120px;
}

body.site .profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.site .profile-form-name-row {
  width: 100%;
}

body.site .profile-form-label {
  display: block;
  color: #333;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

body.site .profile-form-label input {
  display: block;
  width: 100%;
  margin-top: 6px;
}

body.site .profile-form-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  align-items: start;
}

body.site .profile-form-panel {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 18px 16px;
  background: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.site .profile-form-panel-head {
  display: grid;
  gap: 6px;
}

body.site .profile-form-panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

body.site .profile-form-panel .note {
  margin: 0;
}

body.site .profile-page .profile-source-note {
  color: #5a6472;
  font-size: 14px;
}

body.site .profile-form-panel--practices .profile-practice-tree {
  flex: 1;
  min-height: 0;
}

body.site .profile-form-panel--practices .profile-practice-tree-list {
  max-height: min(520px, 58vh);
}

body.site .profile-form-panel--locations .profile-location-picker {
  flex: 1;
  margin-top: 0;
}

@media (max-width: 900px) {
  body.site .profile-page .account-shell {
    max-width: 100%;
  }

  body.site .profile-form-columns {
    grid-template-columns: 1fr;
  }

  body.site .profile-form-panel--practices .profile-practice-tree-list {
    max-height: 360px;
  }
}

body.site .profile-practice-tree-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

body.site .profile-practice-tree-search,
body.site .account-form .profile-practice-tree-search {
  flex: 1 1 220px;
  min-width: 0;
  width: 100%;
  margin-top: 0;
}

body.site .profile-practice-tree-count {
  font-size: 13px;
  color: #5a6472;
  white-space: nowrap;
}

body.site .profile-practice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

body.site .profile-practice-chips:empty {
  display: none;
}

body.site .profile-practice-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--rule);
  font-size: 13px;
}

body.site .profile-practice-chip-remove {
  border: 0;
  background: transparent;
  color: #5a6472;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

body.site .profile-practice-tree-list {
  max-height: 380px;
  overflow: auto;
  border: 1px solid #d7e1eb;
  border-radius: 10px;
  padding: 6px;
  background: #f8fafc;
  text-align: left;
}

body.site .profile-practice-tree-empty {
  margin: 12px 10px;
  color: #5a6472;
  font-size: 14px;
}

body.site .profile-practice-tree-group {
  margin-bottom: 6px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

body.site .profile-practice-tree-group--leaf .profile-practice-tree-group-header,
body.site .profile-practice-tree-group:not(.is-expanded) .profile-practice-tree-group-header {
  border-bottom: 0;
}

body.site .profile-practice-tree-group:last-child {
  margin-bottom: 0;
}

body.site .profile-practice-tree-group-header {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #f4f7fb;
  border-bottom: 1px solid #e8eef4;
}

body.site .profile-practice-tree-toggle,
body.site .profile-practice-tree-toggle-spacer {
  flex: 0 0 32px;
  width: 32px;
  min-height: 34px;
}

body.site .profile-practice-tree-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-right: 1px solid #e8eef4;
  background: transparent;
  color: #5a6472;
  cursor: pointer;
  padding: 0;
}

body.site .profile-practice-tree-toggle:hover,
body.site .profile-practice-tree-toggle:focus {
  background: #e8f0f8;
  color: var(--navy);
  outline: none;
}

body.site .profile-practice-tree-toggle span {
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-left: 1px;
  transition: transform 0.15s ease;
}

body.site .profile-practice-tree-toggle[aria-expanded="true"] span {
  transform: rotate(45deg);
  margin-top: -2px;
}

body.site .profile-practice-tree-branch {
  border-top: 1px solid #edf2f7;
}

body.site .profile-practice-tree-branch:first-child {
  border-top: 0;
}

body.site .profile-practice-tree-line {
  display: flex;
  align-items: stretch;
  min-height: 34px;
  padding-left: calc(var(--branch-depth, 1) * 22px);
  box-sizing: border-box;
}

body.site .profile-practice-tree-line .profile-practice-tree-toggle,
body.site .profile-practice-tree-line .profile-practice-tree-toggle-spacer {
  flex: 0 0 28px;
  width: 28px;
  min-height: 34px;
  border-right: 1px solid #edf2f7;
  margin-left: -2px;
}

body.site .profile-practice-tree-line .profile-practice-tree-toggle {
  border-right: 1px solid #edf2f7;
}

body.site .profile-practice-tree-row--nested {
  flex: 1;
  min-width: 0;
  font-weight: 400;
}

body.site .profile-practice-tree-nested {
  margin: 0;
  padding: 0;
  border-top: 1px solid #f0f4f8;
  background: #fbfdff;
  border-left: 2px solid #dbe4ee;
  margin-left: calc((var(--branch-depth, 1) * 22px) + 14px);
}

body.site .profile-practice-tree-branch.is-expanded > .profile-practice-tree-line {
  background: #f8fbfe;
}

body.site .account-form .profile-practice-tree-row,
body.site .profile-practice-tree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 0;
  cursor: pointer;
  width: 100%;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink, #17324d);
  text-align: left;
  min-height: 34px;
  box-sizing: border-box;
}

body.site .profile-practice-tree-row:hover {
  background: #f0f5fb;
}

body.site .profile-practice-tree-row.is-selected {
  background: #e8f1ff;
}

body.site .profile-practice-tree-row--parent {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}

body.site .profile-practice-tree-row--nested .profile-practice-tree-label {
  font-weight: 400;
  color: #3d4f63;
}

body.site .profile-practice-tree-branch--leaf .profile-practice-tree-line .profile-practice-tree-toggle-spacer {
  opacity: 0.35;
}

body.site .profile-practice-tree-row--match {
  align-items: flex-start;
  padding: 8px 10px;
  border-bottom: 1px solid #edf2f7;
  background: #fff;
}

body.site .profile-practice-tree-row--match:last-child {
  border-bottom: 0;
}

body.site .profile-practice-tree-matches {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e3eaf2;
}

body.site .profile-practice-tree-match-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.site .profile-practice-tree-breadcrumb {
  font-size: 12px;
  line-height: 1.3;
  color: #6b7785;
}

body.site .profile-practice-tree-match-title {
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink, #17324d);
}

body.site .profile-practice-tree-mark {
  background: #fff3bf;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

body.site .account-form .profile-practice-tree-row input[type="checkbox"],
body.site .profile-practice-tree-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  max-width: 15px;
  margin: 0 0 0 10px;
  padding: 0;
  border: 1px solid #aeb7c4;
  border-radius: 2px;
  background: #fff;
  flex: 0 0 15px;
  box-shadow: none;
}

body.site .account-form label.profile-practice-tree-label,
body.site .profile-practice-tree-label {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: inherit;
  text-transform: none;
  letter-spacing: normal;
  color: inherit;
  cursor: pointer;
}

body.site .profile-practice-tree-children {
  margin: 0;
  padding: 0;
  border-top: 1px solid #edf2f7;
  background: #fff;
}

body.site .profile-location-picker {
  margin-top: 8px;
}

body.site .profile-practice-tree-limit {
  margin: 0 0 10px;
}

/* ——— Apply to job button + contact reveal ——— */
body.site .jobs-apply-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

body.site .jobs-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

body.site .jobs-apply-btn:hover,
body.site .jobs-apply-btn:focus-visible {
  background: #1a2744;
  border-color: #1a2744;
  outline: none;
}

body.site .jobs-apply-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

body.site .jobs-apply-btn.is-applied {
  background: #f2fbf7;
  border-color: var(--green);
  color: var(--green);
  cursor: default;
}

body.site .jobs-apply-btn.is-applied:hover {
  background: #f2fbf7;
  border-color: var(--green);
}

body.site .jobs-apply-btn .jobs-apply-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.site .jobs-apply-btn--compact {
  padding: 7px 16px;
  font-size: 13px;
}

body.site .jobs-preview-foot-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ——— Apply modal overlay ——— */
body.site .jobs-apply-modal-overlay[hidden] {
  display: none !important;
}

body.site .jobs-apply-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  animation: jobs-apply-fadein 0.15s ease;
}

@keyframes jobs-apply-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body.site .jobs-apply-modal {
  position: relative;
  width: 92%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  animation: jobs-apply-modal-in 0.2s ease;
}

@keyframes jobs-apply-modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

body.site .jobs-apply-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
  border-bottom: 1px solid #e2e8f0;
}

body.site .jobs-apply-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

body.site .jobs-apply-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background 0.12s, color 0.12s;
}

body.site .jobs-apply-modal-close:hover {
  background: #f1f5f9;
  color: var(--slate);
}

body.site .jobs-apply-modal-body {
  padding: 20px 24px 24px;
}

body.site .jobs-apply-link-row {
  margin-top: 16px;
}

body.site .jobs-apply-online-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

body.site .jobs-apply-online-btn:hover,
body.site .jobs-apply-online-btn:focus-visible {
  background: #1a2744;
  border-color: #1a2744;
  color: #fff;
  text-decoration: none;
  outline: none;
}

body.site .jobs-apply-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

body.site .jobs-apply-note a {
  color: var(--navy);
  text-decoration: underline;
}

body.site .jobs-apply-contact {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fbfe;
  font-size: 14px;
  line-height: 1.55;
}

body.site .jobs-apply-contact-head {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.site .jobs-apply-contact-name {
  margin: 0 0 2px;
  font-weight: 600;
  color: var(--slate);
}

body.site .jobs-apply-contact-title {
  font-weight: 400;
  color: var(--muted);
}

body.site .jobs-apply-contact-dept {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

body.site .jobs-apply-contact-email {
  margin: 0 0 2px;
}

body.site .jobs-apply-contact-email a {
  color: var(--navy);
  text-decoration: underline;
}

body.site .jobs-apply-contact-phone {
  margin: 0 0 6px;
  color: var(--slate);
}

body.site .jobs-apply-contact-addr {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
