/* ==========================================================================
   Adapt Practice -- AI Visibility & Representation Audit stylesheet

   Page-specific components for ai-visibility-audit.html only.
   This file must be loaded after adapt-practice.css.
   Reusable patterns modelled on services.css / ai-at-work.css are redefined
   here rather than shared, since neither of those files is scoped for
   cross-page use.
   ========================================================================== */

/* =========================================================================
   Wider text containers (this page only)
   ========================================================================= */
.ai-visibility-page .section__header {
  max-width: 820px;
}
.ai-visibility-page .section__intro {
  max-width: 820px;
}

/* Sub-nav on this page is short (6 links) and fits without scrolling at
   the widths where it renders as a row. Keep the shared overflow-x: auto
   safety net (adapt-practice.css) rather than switching to `visible` --
   that would risk real horizontal page overflow if a link list is ever
   too wide for a given viewport -- but hide the scrollbar cosmetically so
   it doesn't show up on the rare occasions it isn't needed. Scoped to
   this page so ai-at-work.html's longer sub-nav keeps its visible
   scrollbar affordance where it may still be needed. */
.ai-visibility-page .page-subnav__links {
  scrollbar-width: none;
}
.ai-visibility-page .page-subnav__links::-webkit-scrollbar {
  display: none;
}

/* =========================================================================
   Hero visual and metadata row
   ========================================================================= */
.audit-diagram {
  display: block;
  width: 100%;
  height: auto;
  max-width: 480px;
}

.audit-hero__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.audit-hero__meta li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.audit-hero__meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.audit-hero__meta-price {
  font-weight: 800;
  color: var(--white);
}

/* =========================================================================
   Shared hedge styling -- illustrative tag and footnotes
   ========================================================================= */
.illustrative-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px dashed var(--grey-mid);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.7rem;
  margin-bottom: 1.25rem;
  background: var(--white);
}

.section__footnote {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  border-left: 3px solid var(--teal);
  padding-left: 1.25rem;
  margin-top: 2rem;
  max-width: 780px;
}
.section--navy .section__footnote,
.section--navy .contrast-statement {
  color: rgba(255, 255, 255, 0.65);
}

.section__footnote a {
  color: var(--gold-deep);
  font-style: normal;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.section__footnote a:hover { color: var(--gold-deep-hover); }
.section--navy .section__footnote a { color: var(--gold); }
.section--navy .section__footnote a:hover { color: var(--gold-hover); }

/* =========================================================================
   Why It Matters -- risk cards
   Restored to the .card-grid / .content-card treatment: each risk item is
   short, and reads better as a compact, separated grid than as long
   editorial rows.
   ========================================================================= */
.card-grid { margin-top: 1rem; }

/* =========================================================================
   Your Baseline -- "mirror moment" panel
   Restrained bordered-only containment (box-shadow removed) -- a
   deliberate callout, not an ordinary content card.
   ========================================================================= */
.baseline-panel {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.baseline-panel__intro p {
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.baseline-panel__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.baseline-panel__prompts-label,
.baseline-panel__aside-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.baseline-prompts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.baseline-prompts li {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--navy);
  background: var(--grey);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  line-height: 1.5;
}

.baseline-panel__aside-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.baseline-panel__aside-list li {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.55;
  padding-left: 1rem;
  position: relative;
}
.baseline-panel__aside-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* =========================================================================
   What You Receive -- deliverable cards
   ========================================================================= */
.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.deliverable-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
}

.deliverable-card__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.85rem;
}

.deliverable-card h3 { margin-bottom: 0.85rem; }

.deliverable-card > p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.deliverable-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
}
.deliverable-card__list li {
  font-size: 0.88rem;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.deliverable-card__list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

/* =========================================================================
   What We Assess -- seven numbered areas
   Restored to the original filled navy/gold numbered-marker treatment.
   ========================================================================= */
.assess-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

.assess-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.assess-item:last-child { border-bottom: none; padding-bottom: 0; }
.assess-item:first-child { padding-top: 0; }

.assess-item__num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: var(--radius-sm);
}

.assess-item__body { flex: 1; min-width: 0; }
.assess-item__body h3 { margin-bottom: 0.6rem; }
.assess-item__body > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.assess-item__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.assess-item__points li {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}
.assess-item__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}
.assess-item__body code {
  font-family: monospace;
  font-size: 0.85em;
  background: var(--grey);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

/* =========================================================================
   Scored gap analysis -- accessible scorecard table
   ========================================================================= */
.scorecard {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.scorecard__scroll {
  overflow-x: auto;
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-md);
}
.scorecard__scroll:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.scorecard__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
.scorecard__table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 2px solid var(--navy);
  background: var(--grey);
}
.scorecard__table tbody th[scope="row"] {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
}
.scorecard__table td,
.scorecard__table tbody th {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  vertical-align: top;
}
.scorecard__table tbody tr:last-child td,
.scorecard__table tbody tr:last-child th { border-bottom: none; }

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid;
  white-space: nowrap;
}
.score-pill__glyph {
  font-size: 0.75rem;
  line-height: 1;
}
.score-pill--strong {
  color: var(--teal-text);
  border-color: var(--teal);
  background: rgba(15, 127, 131, 0.08);
}
.score-pill--developing {
  color: var(--gold-deep);
  border-color: var(--gold);
  background: rgba(200, 148, 58, 0.1);
}
.score-pill--gap {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--grey);
}
.score-pill--none {
  color: var(--text-muted);
  border: 1px dashed var(--grey-mid);
  background: transparent;
}

.scorecard__legend {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.scorecard__legend-item {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* =========================================================================
   Prioritised roadmap -- phases and effort/impact matrix
   ========================================================================= */
.roadmap-phases {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.roadmap-phase {
  background: var(--grey);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
}
.roadmap-phase__horizon {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.roadmap-phase ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.roadmap-phase li {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.55;
  padding-left: 1rem;
  position: relative;
}
.roadmap-phase li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.impact-matrix {
  margin-top: 3rem;
}

.impact-matrix__frame {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2rem;
}

.impact-matrix__axis {
  position: absolute;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.impact-matrix__axis--impact {
  left: 0;
  top: 50%;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}
.impact-matrix__axis--effort {
  left: 2.5rem;
  right: 0;
  bottom: 0;
  text-align: center;
}

.impact-matrix__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(190px, auto));
  gap: 1px;
  background: var(--grey-mid);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.impact-quadrant {
  background: var(--white);
  padding: 1.5rem 1.75rem;
  position: relative;
}
.impact-quadrant::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.impact-quadrant--first { grid-area: 1 / 1; }
.impact-quadrant--plan  { grid-area: 1 / 2; }
.impact-quadrant--fill  { grid-area: 2 / 1; }
.impact-quadrant--defer { grid-area: 2 / 2; }

.impact-quadrant--first::before { background: var(--gold); }
.impact-quadrant--plan::before  { background: var(--teal); }
.impact-quadrant--fill::before  { background: var(--grey-mid); }
.impact-quadrant--defer::before {
  background-image: repeating-linear-gradient(90deg, var(--grey-mid) 0 6px, transparent 6px 12px);
}

.impact-quadrant__meta {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.impact-quadrant h3 { margin-bottom: 0.75rem; }
.impact-quadrant__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.impact-quadrant__list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =========================================================================
   What can and cannot be influenced -- contrast panels
   ========================================================================= */
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contrast-col {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
}
.contrast-col--can { border-top: 4px solid var(--teal); }
.contrast-col--cannot { border-top: 4px solid var(--gold); }

.contrast-col h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.contrast-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contrast-list li {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.contrast-col--can .contrast-list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}
.contrast-col--cannot .contrast-list li::before {
  content: '✕';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.contrast-statement {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 600;
}

/* =========================================================================
   Delivery process
   Migrated to the shared .connected-process component (see
   .connected-process--four in adapt-practice.css); no page-local rules
   needed here.
   ========================================================================= */

/* =========================================================================
   Engagement options
   ========================================================================= */
.engagement-options {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}

.engagement-option {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
}
.engagement-option:last-child { border-right: none; }
.engagement-option:nth-child(2) { background: var(--grey); }
.engagement-option:nth-child(3) { background: rgba(200, 148, 58, 0.06); }

.engagement-option__level {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}
.engagement-option h3 { margin-bottom: 0.75rem; }
.engagement-option p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.engagement-cta {
  margin-top: 2rem;
  text-align: center;
}

/* =========================================================================
   Supporting note panel (reused shape from services.css)
   ========================================================================= */
.services-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.services-note + .services-note { margin-top: 0.75rem; }

/* =========================================================================
   Investment -- consultancy-style pricing panel
   ========================================================================= */
.investment-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

.investment-panel__summary {
  border-left: 3px solid var(--gold);
  padding-left: 2rem;
}

.investment-panel__price {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.investment-panel__scope p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.investment-panel__summary .btn {
  margin-top: 0.5rem;
}

.investment-panel__note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

.investment-panel__included {
  background: var(--grey);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
}

.investment-panel__included-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
}

.investment-panel__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.investment-panel__list li {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.investment-panel__list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

/* =========================================================================
   Currency selector -- matches assets/css/ai-at-work.css so both pages
   share one accessible GBP/EUR pattern (driven by assets/js/currency-selector.js)
   ========================================================================= */
.currency-selector {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.currency-selector label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.currency-selector select {
  width: auto;
  min-width: 140px;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.currency-selector select:hover {
  border-color: var(--teal);
}

/* =========================================================================
   Who this is for -- audience qualification
   ========================================================================= */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.audience-col {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
}
.audience-col--for { border-top: 3px solid var(--teal); }
.audience-col--not-for { border-top: 3px solid var(--grey-mid); }

.audience-col h3 {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.audience-col--for h3 { color: var(--gold-deep); }
.audience-col--not-for h3 { color: var(--text-muted); }

.audience-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.audience-list li {
  font-size: 0.95rem;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.55;
}
.audience-col--for .audience-list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}
.audience-col--not-for .audience-list li::before {
  content: '✕';
  color: var(--text-muted);
  font-weight: 700;
  flex-shrink: 0;
}

.audience-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--grey);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
}

/* =========================================================================
   FAQs -- native details/summary, no JS required
   ========================================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--teal);
  font-weight: 700;
}
.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (min-width: 900px) {
  .ai-visibility-page .faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.5rem;
    align-items: start;
  }
}

/* =========================================================================
   Final CTA
   Migrated to the shared .final-cta component (adapt-practice.css); no
   page-local rules needed here.
   ========================================================================= */

/* =========================================================================
   Responsive rules
   ========================================================================= */
@media (max-width: 900px) {
  .baseline-panel__body { grid-template-columns: 1fr; gap: 2rem; }
  .deliverable-grid { grid-template-columns: 1fr; }
  .roadmap-phases { grid-template-columns: 1fr; }
  .contrast-grid { grid-template-columns: 1fr; }
  .connected-process--four { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .connected-process--four .connected-process__step:nth-child(2)::after { display: none; }
  .engagement-options { grid-template-columns: 1fr; }
  .engagement-option { border-right: none; border-bottom: 1px solid var(--border); }
  .engagement-option:last-child { border-bottom: none; }
  .audience-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .investment-panel {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.25rem;
  }
  .investment-panel__summary {
    border-left: none;
    border-top: 3px solid var(--gold);
    padding-left: 0;
    padding-top: 1.5rem;
  }

  /* D1 fix: axis labels are repositioned as a static inline legend above
     the stacked quadrants rather than removed -- the 2x2 relationship
     they describe still needs to be readable on mobile. */
  .impact-matrix__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .impact-quadrant { grid-area: auto; }
  .impact-matrix__frame {
    padding-left: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  .impact-matrix__axis {
    position: static;
    writing-mode: horizontal-tb;
    transform: none;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .baseline-panel { padding: 1.75rem 1.5rem; }
  .scorecard { padding: 1.5rem 1.25rem; }
  .connected-process--four { grid-template-columns: 1fr; }
  .assess-item { flex-direction: column; gap: 1rem; }

  .investment-panel { padding: 1.75rem 1.5rem; }
  .investment-panel__summary .btn { width: 100%; text-align: center; }

  .currency-selector select { flex: 1; min-width: 0; }
}
