/* Hallmark · theme: locked MCPMate (docs/design.md) · genre: modern-minimal · redesign: full · copy: verbatim
 * hero: Settled (access-control, block-editor, design-system, chat, integrations, memory-and-instructions, sandbox), Stage (live-view)
 * signature: the feature's permission boundary, targeted edit, authority, review sequence, observation or memory relationship
 * nav: existing MCPMate shared header · footer: existing MCPMate shared footer · built: the project · v2.0.0 */
/* Hallmark · critique: P4 H4 E4 S5 R4 V4 · weakest: V; each feature uses its own diagram rather than repeating an empty hero. */

.audit-page .page-hero--audit { padding-block: var(--space-6) var(--space-8); }
.audit-page .page-hero--audit .feature-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--space-7);
  margin-top: var(--space-6);
}
.audit-page .page-hero--audit .page-hero-copy { min-width: 0; max-width: none; gap: var(--space-4); }
.audit-page .page-hero--audit h1 { max-width: none; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
.audit-page .page-hero--audit .lead { font-size: var(--step-lg); line-height: 1.55; max-width: var(--measure); }
.audit-page .page-hero--audit .dev-note { margin-top: 0; }
.audit-page .page-hero--audit .cta-row { margin-top: var(--space-2); }
.audit-page .feature-stage { margin: 0; min-width: 0; color: var(--text-primary); }
.audit-page .feature-stage figcaption { margin-top: var(--space-5); font-size: var(--step-sm); line-height: 1.5; color: var(--text-secondary); }
.audit-page .feature-stage :is(dl, ol) { margin: 0; }
.audit-page .feature-stage :is(dt, strong) { font-weight: var(--weight-bold); }
.audit-page .feature-stage dd { margin: 0; color: var(--text-secondary); }
.audit-page .feature-stage--access { border-block: 1px solid var(--border-control); }
.audit-page .feature-permissions > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding-block: var(--space-5); }
.audit-page .feature-permissions > div + div { border-top: 1px solid var(--border-subtle); }
.audit-page .feature-permissions dt { font-size: var(--step-2xl); letter-spacing: -.025em; }
.audit-page .feature-permissions dd { font-size: var(--step-base); line-height: 1.5; }
.audit-page .feature-stage--access figcaption { margin-top: 0; padding-block: var(--space-4); border-top: 1px solid var(--border-subtle); }

.audit-page .feature-stage--blocks { display: grid; gap: var(--space-3); }
.audit-page .feature-stage--blocks > div { padding: var(--space-5) var(--space-6); border: 1px solid var(--border-control); }
.audit-page .feature-stage--blocks span { display: block; font-size: var(--step-sm); line-height: 1.5; color: var(--text-secondary); }
.audit-page .feature-stage--blocks strong { display: block; margin-top: var(--space-2); font-size: var(--step-2xl); letter-spacing: -.025em; }
.audit-page .feature-stage--blocks .feature-block-target { border-color: var(--selected-border); background: var(--selected-bg); }
.audit-page .feature-stage--blocks .feature-block-target span { color: var(--text-primary); }
.audit-page .feature-stage--blocks figcaption { margin-top: var(--space-2); }

.audit-page .feature-stage--design { padding: var(--space-6); border: 1px solid var(--border-control); border-radius: var(--radius-lg); background: var(--bg-raised); }
.audit-page .feature-design-parts > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4); align-items: baseline; padding-block: var(--space-4); border-bottom: 1px solid var(--border-subtle); }
.audit-page .feature-design-parts dt { font-size: var(--step-md); line-height: 1.4; }
.audit-page .feature-design-parts dd { font-size: var(--step-sm); line-height: 1.5; }
.audit-page .feature-design-result { font-size: var(--step-2xl); line-height: 1.2; font-weight: var(--weight-bold); letter-spacing: -.025em; margin: var(--space-6) 0 0; }

.audit-page .feature-stage--chat { padding: var(--space-6); background: var(--bg); border-radius: var(--radius-lg); }
.audit-page .feature-chat-sequence { padding-left: var(--space-5); }
.audit-page .feature-chat-sequence li { padding: var(--space-4) 0 var(--space-4) var(--space-4); }
.audit-page .feature-chat-sequence li + li { border-top: 1px solid var(--border-subtle); }
.audit-page .feature-chat-sequence li::marker { color: var(--text-secondary); font-size: var(--step-sm); }
.audit-page .feature-chat-sequence strong { display: block; font-size: var(--step-2xl); letter-spacing: -.025em; }
.audit-page .feature-chat-sequence span { display: block; margin-top: var(--space-2); font-size: var(--step-base); line-height: 1.5; color: var(--text-secondary); }
.audit-page .feature-stage--chat figcaption { border-top: 1px solid var(--border-subtle); padding-top: var(--space-4); margin-top: var(--space-3); }

.audit-page .feature-operation-sequence { padding: 0; list-style: none; }
.audit-page .feature-operation-sequence li { padding: var(--space-5) 0 var(--space-5) var(--space-6); border-left: 1px solid var(--border-control); position: relative; }
.audit-page .feature-operation-sequence li + li { border-top: 1px solid var(--border-subtle); }
.audit-page .feature-operation-sequence li::before { content: ''; position: absolute; left: -1px; top: var(--space-7); width: var(--space-4); border-top: 1px solid var(--border-control); }
.audit-page .feature-operation-sequence strong { display: block; font-size: var(--step-2xl); letter-spacing: -.025em; }
.audit-page .feature-operation-sequence span { display: block; margin-top: var(--space-2); font-size: var(--step-base); line-height: 1.5; color: var(--text-secondary); }
.audit-page .feature-stage--live img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }

.audit-page .feature-memory-parts > div { padding-block: var(--space-6); border-top: 1px solid var(--border-control); }
.audit-page .feature-memory-parts > div + div { border-top-color: var(--border-subtle); }
.audit-page .feature-memory-parts dt { font-size: var(--step-3xl); letter-spacing: -.025em; line-height: 1.1; }
.audit-page .feature-memory-parts dd { font-size: var(--step-base); line-height: 1.5; margin-top: var(--space-3); max-width: 25em; }
.audit-page .feature-stage--memory figcaption { margin-top: 0; padding-block: var(--space-4); border-top: 1px solid var(--border-control); }

.audit-page .feature-helper-sequence { list-style: none; padding: 0; }
.audit-page .feature-helper-sequence li { border: 1px solid var(--border-control); padding: var(--space-5); border-radius: var(--radius-md); }
.audit-page .feature-helper-sequence li + li { margin-top: var(--space-4); }
.audit-page .feature-helper-sequence strong { display: block; font-size: var(--step-xl); letter-spacing: -.02em; }
.audit-page .feature-helper-sequence span { display: block; margin-top: var(--space-2); font-size: var(--step-base); color: var(--text-secondary); line-height: 1.5; }

/* The body uses the subject's own anatomy: rows, an inline reference, a flow,
   a statement or a paired explanation, rather than identical card bands. */
.audit-page.audit-feature :is(.section--tight) .container { min-width: 0; }
.audit-page.audit-feature :is(.section-head, .bullets, .acc) { max-width: none; }
.audit-page.audit-feature .section-head h2 { max-width: 20em; text-wrap: balance; }
.audit-page.audit-feature .bullets { display: grid; gap: var(--space-5); }
.audit-page.audit-feature .bullets > li { line-height: 1.65; }
.audit-page.audit-feature .bullets > li span { max-width: var(--measure); }

.audit-page--features-access-control #levels .cols3 { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--border-control); }
.audit-page--features-access-control #levels .col { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4) 0; border: 0; border-bottom: 1px solid var(--border-subtle); border-radius: 0; background: transparent; box-shadow: none; }
.audit-page--features-access-control #levels .tile-icon { display: none; }
.audit-page--features-access-control #levels h3 { font-size: var(--step-lg); }
.audit-page--features-access-control #levels p { margin: 0; }
.audit-page--features-access-control :is(#admin-only, #limits, #good-to-know) .container { display: grid; gap: var(--space-6); }
.audit-page--features-access-control :is(#admin-only, #limits, #good-to-know) .section-head { margin: 0; }
.audit-page--features-access-control #pause .two-up { gap: var(--space-6); }
.audit-page--features-access-control #pause .col { border: 0; border-top: 1px solid var(--border-control); border-radius: 0; padding: var(--space-5) 0; background: transparent; box-shadow: none; }

.audit-page--features-block-editor #finalising .finalising-flow { max-width: 40rem; }
.audit-page--features-block-editor #safe-block-editing .bullets { border-top: 1px solid var(--border-subtle); padding-top: var(--space-6); margin-top: var(--space-6); }
.audit-page--features-design-system #starters .cols3 { grid-template-columns: minmax(0, 1fr); }
.audit-page--features-design-system #starters .col { border: 0; border-top: 1px solid var(--border-control); background: transparent; border-radius: 0; padding: var(--space-5) 0; box-shadow: none; }
.audit-page--features-design-system #starters h3 { font-size: var(--step-xl); }
.audit-page--features-design-system :is(#checking, #manage-design) .container { display: grid; gap: var(--space-6); }
.audit-page--features-design-system :is(#checking, #manage-design) .section-head { margin: 0; }
.audit-page--features-chat #your-key .container { display: grid; gap: var(--space-5); }
.audit-page--features-chat #your-key .section-head { margin: 0; }
.audit-page--features-chat #plan-first .cols3 { grid-template-columns: minmax(0, 1fr); gap: 0; }
.audit-page--features-chat #plan-first .col { border: 0; border-top: 1px solid var(--border-control); border-radius: 0; background: transparent; padding: var(--space-5) 0; box-shadow: none; }
.audit-page--features-chat #plan-first .tile-icon { display: none; }
.audit-page--features-chat #plan-first h3 { font-size: var(--step-lg); }
.audit-page--features-integrations :is(#switches, #overlap-warnings) .container { display: grid; gap: var(--space-6); }
.audit-page--features-integrations :is(#switches, #overlap-warnings) .section-head { margin: 0; }
.audit-page--features-live-view #live-view .container { display: grid; gap: var(--space-6); align-items: center; }
.audit-page--features-live-view #live-view .section-head { margin: 0; }
.audit-page--features-live-view #live-view .live-view-media { margin: 0; }
.audit-page--features-live-view #live-view .container { display: block; }
.audit-page--features-live-view #live-view .section-head { max-width: none; gap: var(--space-4); }
.audit-page--features-integrations #tools-integrations { padding-block: var(--space-7); }
.audit-page--features-integrations #tools-integrations .container { display: grid; align-items: center; gap: var(--space-6); }
.audit-page--features-integrations #tools-integrations .section-head { margin: 0; }
.audit-page--features-integrations #tools-integrations .integration-shot { margin: 0; }
.audit-page--features-integrations #tools-integrations figcaption { font-size: var(--step-base); line-height: 1.6; color: var(--text-secondary); }
.audit-page--features-memory-and-instructions :is(#memory, #secrets) .container { display: grid; gap: var(--space-6); }
.audit-page--features-memory-and-instructions :is(#memory, #secrets) .section-head { margin: 0; }
.audit-page--features-sandbox :is(#purpose, #live-site-boundary) .lead { font-size: var(--step-2xl); max-width: 30em; color: var(--text-primary); line-height: 1.4; }
.audit-page--features-sandbox :is(#crash-recovery, #controls) .container { display: grid; gap: var(--space-6); }
.audit-page--features-sandbox :is(#crash-recovery, #controls) .section-head { margin: 0; }

@media (min-width: 40em) {
  .audit-page .feature-permissions > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: var(--space-5); }
  .audit-page--features-access-control #levels .col { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: baseline; }
  .audit-page--features-design-system #starters .cols3 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); row-gap: 0; }
  .audit-page--features-design-system #starters .cols3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .audit-page .page-hero--audit { min-height: calc(100svh - var(--header-h)); display: grid; align-content: center; }
  .audit-page .page-hero--audit .feature-intro { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-8); margin-top: var(--space-7); }
  .audit-page .page-hero--audit .page-hero-copy { max-width: 35rem; }
  .audit-page .page-hero--audit h1 { font-size: clamp(2.75rem, 4.4vw, 4.25rem); line-height: 1.05; }
  .audit-page .feature-stage--access { padding-top: var(--space-4); }
  .audit-page .feature-permissions > div { min-height: 128px; align-content: center; }
  .audit-page .feature-stage--blocks > div { min-height: 112px; }
  .audit-page .feature-stage--chat { padding: var(--space-7); }
  .audit-page .feature-memory-parts > div { padding-block: var(--space-7); }
  .audit-page .feature-helper-sequence li { padding: var(--space-6); }
  .audit-page .feature-helper-sequence li:nth-child(2) { margin-left: var(--space-6); }
  .audit-page .feature-helper-sequence li:nth-child(3) { margin-left: var(--space-8); }
  .audit-page .page-hero--live .feature-intro { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: var(--space-7); }
  .audit-page.audit-feature :is(#admin-only, #limits, #good-to-know, #checking, #manage-design, #switches, #overlap-warnings, #memory, #secrets, #crash-recovery, #controls) .container { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: var(--space-8); align-items: start; }
  .audit-page--features-chat #your-key .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-8); }
  .audit-page--features-chat #your-key .section-head { grid-row: span 2; }
  .audit-page--features-chat #plan-first .col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--space-8); align-items: baseline; }
  .audit-page--features-chat #plan-first .col p { margin: 0; }
  .audit-page--features-live-view #live-view .section-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr); column-gap: var(--space-8); align-items: start; }
  .audit-page--features-live-view #live-view .section-head > :is(h2, .badges) { grid-column: 1; }
  .audit-page--features-live-view #live-view .section-head > p:not(.badges) { grid-column: 2; }
  .audit-page--features-live-view #live-view .section-head > p:nth-child(3) { grid-row: 1; }
  .audit-page--features-live-view #live-view .section-head > p:nth-child(4) { grid-row: 2; }
  .audit-page--features-integrations #tools-integrations .container { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: var(--space-8); }
}
@media (max-width: 39.99em) {
  .audit-page .page-hero--audit { padding-block: var(--space-5) var(--space-7); }
  .audit-page .page-hero--audit .feature-intro { gap: var(--space-6); }
  .audit-page .page-hero--audit .cta-row { align-items: stretch; }
  .audit-page .page-hero--audit .cta-row .btn { text-align: center; }
  .audit-page .feature-stage--design { padding: var(--space-5); }
  .audit-page .feature-design-parts > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .audit-page .feature-stage--chat { padding: var(--space-5); }
  .audit-page .feature-stage--blocks > div { padding-inline: var(--space-5); }
}

/* Hallmark · component: hero card stroke · accent existing boxes without enclosing open diagrams. */
.audit-page .page-hero--audit :is(.feature-stage--design, .feature-stage--chat),
.audit-page .page-hero--audit .feature-stage--blocks > div,
.audit-page .page-hero--audit .feature-helper-sequence > li {
  border: 1px solid var(--border-subtle);
  border-inline-start: 3px solid var(--hero-card-accent);
}
