/* Hallmark · v2.0.0 · redesign: full · theme: locked docs/design.md · genre: modern-minimal · shape: Change ledger · hero: Banner · job: download · signature: the existing before-and-after content comparison, shown at full width · imagery: existing labelled example · surface: absolute · nav: shared MCPMate mega menu · footer: shared MCPMate sitemap */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 · weakest: variety; lead with the wide change comparison and use open records and recovery rows instead of another command catalogue */
/* Hallmark · reworded "A copy of every change, before and after" to "Every change, before and after" · 58: a shorter headline names the same retained before-and-after copies */
/* Hallmark · reworded "MCPMate keeps what each change replaced, so you can see exactly what your AI did and put back anything you don’t want." to "See what your AI changed and what it replaced." · 58: recovery and the retained copies are explained in full in the sections below */
/* Hallmark · waive 24b · the shared CTA uses a 14px optical edge and the homepage capsule uses a 6px inset · these locked MCPMate components are outside the history page composition */
/* Hallmark · hero-review: subagent · 1 finding resolved: both comparison values now fit on phones · finish-review: subagent, ship · Floor 0 FAIL, Reflex 0 unresolved · all existing factual copy and links retained */

.history-page :is(h1, h2, h3) { min-width: 0; overflow-wrap: break-word; }
.history-page .history-hero { padding-block: var(--space-5) var(--space-8); }
.history-intro { display: grid; gap: var(--space-5); padding-block: var(--space-6); }
.history-hero h1 { max-width: 12em; font-size: min(var(--step-4xl), 4rem); }
.history-hero-copy { display: grid; gap: var(--space-5); align-content: center; }
.history-hero .lead { max-width: 24em; color: var(--text-on-surface); }
.history-hero .cta-row { gap: var(--space-4) var(--space-5); margin: 0; align-items: center; }
.history-limits-link { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--step-sm); }
.history-example { min-width: 0; }
.history-example .change-card { padding: var(--space-5); gap: var(--space-5); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--bg-raised); }
.history-example .change-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-4); }
.history-example .change-head h3 { font-size: var(--step-md); line-height: 1.3; }
.history-example .change-head > .badge { grid-column: 2; grid-row: 1 / span 2; }
.history-field { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; font-size: var(--step-sm); color: var(--text-on-surface); }
.history-field dd { margin: 0; color: var(--text-primary); }
.history-example .diff { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.history-example .diff li { grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); align-content: start; align-items: start; padding: var(--space-5); border-radius: var(--radius-sm); }
.history-example .diff-label { font-size: var(--step-sm); }
.history-example .diff li > span:last-child { grid-column: 2; color: var(--text-primary); font-size: var(--step-md); line-height: 1.5; }
.history-example .diff .is-before { background: var(--diff-before-bg); }
.history-example .diff .is-after { background: var(--diff-after-bg); }
.history-example .change-meta { gap: var(--space-4) var(--space-6); font-size: var(--step-sm); padding-top: var(--space-4); border-top: 1px solid var(--border-subtle); }
.history-example .change-meta div { display: grid; gap: var(--space-1); min-width: 0; }
.history-example .change-meta :is(dt, dd) { color: var(--text-on-surface); }
.history-example .change-meta dd { color: var(--text-primary); overflow-wrap: anywhere; }
.history-example figcaption { color: var(--text-on-surface); font-size: var(--step-xs); }
.history-page .badge, body:has(.history-page) .site-footer .badge { padding-block: var(--space-1); }
.history-page > .section { padding-block: var(--space-8); }
.history-page .section-head { max-width: none; margin-bottom: var(--space-7); }
.history-page .section-head .lead { max-width: 42em; color: var(--text-on-surface); }
.history-page .history-coverage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--space-8); }
.history-page .history-object { display: grid; grid-template-rows: auto auto auto; align-content: start; gap: var(--space-3); padding: var(--space-5) 0; border-top: 1px solid var(--border-subtle); border-radius: 0; }
.history-object-title { display: flex; align-items: baseline; gap: var(--space-3); }
.history-object-title .icon { color: var(--icon-accent); align-self: start; margin-top: var(--space-1); width: 20px; height: 20px; }
.history-object-title h3 { font-size: var(--step-lg); line-height: 1.3; }
.history-page .history-object p { font-size: var(--step-base); color: var(--text-on-surface); max-width: 32em; }
.history-page .history-object .badge { white-space: normal; }
.history-records .two-up { gap: var(--space-6); }
.history-records .col { padding: var(--space-6); gap: var(--space-5); border: 0; box-shadow: none; background: var(--bg-inset); }
.history-records .col h3 { font-size: var(--step-2xl); line-height: 1.15; letter-spacing: -.02em; }
.history-records .col p { font-size: var(--step-base); color: var(--text-on-surface); max-width: 30em; }
.history-records .col strong { font-weight: var(--weight-medium); color: var(--text-primary); }
.history-settings { display: grid; gap: var(--space-5); margin-top: var(--space-7); padding-top: var(--space-7); border-top: 1px solid var(--border-subtle); }
.history-settings h2 { font-size: var(--step-xl); line-height: 1.25; }
.history-page .bullets { gap: var(--space-5); color: var(--text-on-surface); max-width: none; }
.history-page .bullets li > span { min-width: 0; }
.history-page .bullets .icon { width: 20px; height: 20px; }
.history-page .history-recovery { grid-template-columns: minmax(0, 1fr); gap: 0; }
.history-recovery .col { position: relative; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); padding: var(--space-6) 0; border: 0; border-top: 1px solid var(--border-subtle); border-radius: 0; box-shadow: none; background: none; }
.history-recovery .tile-icon { margin: 0; padding: 0; align-self: start; width: 24px; height: 24px; color: var(--icon-accent); background: none; border: 0; border-radius: 0; }
.history-recovery h3 { font-size: var(--step-lg); }
.history-recovery .col p { grid-column: 2; max-width: 39em; font-size: var(--step-base); color: var(--text-on-surface); }
.history-page #limits .bullets li { padding-bottom: var(--space-5); border-bottom: 1px solid var(--border-subtle); }
.history-page #limits .bullets li:last-child { padding-bottom: 0; border-bottom: 0; }
.history-faq .acc { min-width: 0; }
.history-faq .acc summary { gap: var(--space-5); padding-block: var(--space-5); }
.history-faq .acc p { color: var(--text-on-surface); font-size: var(--step-base); }
.history-faq details:not([open]) > p { display: none; }
.history-related .cols3 { gap: var(--space-6); }
.history-related .col { padding: var(--space-5) 0; border: 0; border-top: 1px solid var(--border-subtle); border-radius: 0; background: none; box-shadow: none; }
.history-related .col::after { display: none; }
.history-related .col h3 { font-size: var(--step-lg); }
.history-related .col p { font-size: var(--step-base); color: var(--text-on-surface); }

@media (min-width: 48em) {
  .history-intro { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-8); padding-block: var(--space-7); align-items: center; }
  .history-example .change-card { padding: var(--space-6); }
  .history-example .change-head { display: flex; gap: var(--space-5); }
  .history-example .change-head h3 { margin-inline-end: auto; }
  .history-example .diff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-example .diff li { min-height: 144px; }
  .history-page > .section { padding-block: var(--space-9); }
  .history-page .history-coverage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-covered > .container > .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: var(--space-8); }
  .history-covered .section-head .lead { font-size: var(--step-base); }
  .history-records .two-up { gap: var(--space-8); }
  .history-records .col { padding: var(--space-7); }
  .history-settings { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); margin-top: var(--space-8); padding-top: var(--space-7); }
  .history-settings .bullets { gap: var(--space-4); font-size: var(--step-sm); }
  .history-recovery .col { grid-template-columns: auto minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-5); padding-block: var(--space-6); }
  .history-recovery .col p { grid-column: 3; }
  .history-page :is(#limits, .history-faq) > .container { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-8); }
  .history-page :is(#limits, .history-faq) .section-head { margin: 0; align-content: start; }
}
@media (max-width: 47.99em) {
  body:has(.history-page) .footer-nav :is(ul, li) { min-width: 0; }
  body:has(.history-page) .footer-nav :is(a, .link-planned) { flex-wrap: wrap; column-gap: var(--space-2); padding-block: var(--space-2); }
  body:has(.history-page) .footer-nav .badge { margin-inline-start: 0; }
}
@media (max-width: 29.99em) {
  .history-intro { padding-block: var(--space-5); gap: var(--space-4); }
  .history-hero-copy { gap: var(--space-4); }
  .history-hero h1 { font-size: var(--step-3xl); }
  .history-hero .lead { font-size: var(--step-base); }
  .history-hero .cta-row { flex-wrap: nowrap; gap: var(--space-3); }
  .history-hero .cta-row .btn { flex: none; width: auto; min-height: 48px; padding-inline: var(--space-3); font-size: var(--step-sm); }
  .history-limits-link { font-size: var(--step-sm); }
  .history-example .change-card { padding: var(--space-4); gap: var(--space-4); }
  .history-example .change-head h3 { font-size: var(--step-base); }
  .history-example .diff { gap: var(--space-2); }
  .history-example .diff li { padding: var(--space-3); gap: var(--space-2); }
  .history-example .diff li > span:last-child { font-size: var(--step-base); }
  .history-example .change-meta { gap: var(--space-3); font-size: var(--step-xs); }
  .history-records .col { padding: var(--space-5); }
}
