/* Hallmark · v2.0.0 · redesign: full · theme: locked docs/design.md · genre: modern-minimal · shape: Draft workflow · hero: Banner · job: download · signature: a diagram separating theme-draft work from the live theme and its approval boundary · imagery: diagram of the existing workflow · surface: absolute · nav: shared MCPMate mega menu · footer: shared MCPMate sitemap */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: hierarchy; the private draft and approval boundary now lead instead of a long text-only opening */
/* Hallmark · reworded "Try a new look without touching your site" to "Preview a new look. Approve it yourself." · 58: the shorter title names the same preview and human approval */
/* Hallmark · reworded "Your AI edits a copy of your theme. You review it through a private preview link, and nothing changes for visitors until you approve." to "Edit a theme copy, then review it through a private link." · 58: the visitor-facing boundary is retained in the workflow diagram */
/* Hallmark · waive 24b · the shared CTA uses a 14px optical edge and the homepage capsule uses a 6px inset · the existing MCPMate components keep their locked insets while theme-draft spacing uses scale tokens */
/* Hallmark · hero-review: subagent, ship · finish-review: subagent, ship · Floor 0 FAIL, Reflex 0 unresolved · existing factual copy, prompt, approval rules and links retained */

.theme-page :is(h1, h2, h3) { min-width: 0; overflow-wrap: break-word; }
.theme-page .theme-hero { padding-block: var(--space-5) var(--space-8); }
.theme-hero-grid { display: grid; gap: var(--space-7); padding-top: var(--space-6); align-items: center; }
.theme-hero .page-hero-copy { min-width: 0; gap: var(--space-5); }
.theme-hero h1 { font-size: min(var(--step-4xl), 4rem); max-width: 11em; }
.theme-hero .lead { max-width: 26em; color: var(--text-on-surface); }
.theme-hero .cta-row { margin: 0; gap: var(--space-4) var(--space-5); align-items: center; }
.theme-limits-link { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--step-sm); }
.theme-plan { margin: 0; }
.theme-page .badge, body:has(.theme-page) .site-footer .badge { padding-block: var(--space-1); }
.theme-map { min-width: 0; margin: 0; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--bg-inset); color: var(--text-primary); }
.theme-live { margin: 0; padding-bottom: var(--space-5); border-bottom: 1px solid var(--border-subtle); }
.theme-live dt { font-size: var(--step-lg); font-weight: var(--weight-medium); }
.theme-live dd { margin: var(--space-2) 0 0; max-width: 26em; font-size: var(--step-sm); line-height: 1.6; color: var(--text-on-surface); }
.theme-path { margin: var(--space-5) 0 0; padding: 0 0 0 var(--space-5); list-style: none; border-inline-start: 1px solid var(--border-control); }
.theme-path li { position: relative; display: grid; gap: var(--space-1); padding-block: var(--space-3); }
.theme-path li::before { content: ''; position: absolute; inset-inline-start: calc(-1 * var(--space-5)); top: var(--space-5); width: var(--space-3); height: 1px; background: var(--border-control); }
.theme-path li:first-child { padding-top: 0; }
.theme-path li:first-child::before { top: var(--space-3); }
.theme-path strong { font-size: var(--step-base); font-weight: var(--weight-medium); }
.theme-path span { font-size: var(--step-sm); color: var(--text-on-surface); }
.theme-map figcaption { margin-top: var(--space-5); font-size: var(--step-xs); color: var(--text-on-surface); }
.theme-page > .section { padding-block: var(--space-8); }
.theme-page .section-head { max-width: none; margin-bottom: var(--space-7); }
.theme-page .guide-steps { gap: 0; }
.theme-page .guide-steps > li { grid-template-columns: var(--space-6) minmax(0, 1fr); gap: var(--space-3) var(--space-4); padding-block: var(--space-6); border-top: 1px solid var(--border-subtle); }
.theme-page .guide-steps > li::before { display: block; grid-row: 1; width: auto; height: auto; border-radius: 0; background: none; color: var(--text-accent); box-shadow: none; font-size: var(--step-lg); font-weight: var(--weight-medium); line-height: 1.3; font-variant-numeric: tabular-nums; }
.theme-page .guide-steps h3 { margin: 0; font-size: var(--step-lg); line-height: 1.3; }
.theme-page .guide-steps > li > p { grid-column: 2; margin: 0; max-width: 38em; color: var(--text-on-surface); font-size: var(--step-base); }
.theme-page #try .cards { grid-template-columns: minmax(0, 1fr); gap: 0; }
.theme-page #try .cards::before { display: none; }
.theme-page .recipe { min-width: 0; display: grid; grid-template-rows: auto; gap: var(--space-4); padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.theme-page .recipe::before, .theme-page .recipe::after { display: none; }
.theme-page .recipe > * { min-width: 0; }
.theme-page .recipe h3 { grid-row: 1; font-size: var(--step-xl); line-height: 1.25; letter-spacing: -.015em; }
.theme-page .recipe .card-top { grid-row: 2; justify-content: start; gap: var(--space-4); }
.theme-page .recipe .goal { grid-row: 3; max-width: 29em; font-size: var(--step-base); color: var(--text-on-surface); }
.theme-page .recipe .prompt-box { border: 0; border-radius: var(--radius-md); }
.theme-page .recipe .config-head { padding: var(--space-3) var(--space-3) 0 var(--space-5); }
.theme-page .recipe .prompt-text { padding: var(--space-4) var(--space-5) var(--space-5); font-size: var(--step-md); line-height: 1.6; }
.theme-page .recipe .card-foot { color: var(--text-on-surface); font-size: var(--step-sm); }
.theme-page .recipe .more-body { color: var(--text-on-surface); font-size: var(--step-base); }
.theme-page .more:not([open]) > .more-body { display: none; }
.theme-page .recipe .tool-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); justify-items: start; }
.theme-page .tool-list :is(li, code) { min-width: 0; max-width: 100%; }
.theme-page .tool-list code { white-space: normal; overflow-wrap: anywhere; }
.theme-page .bullets { gap: var(--space-5); max-width: none; color: var(--text-on-surface); }
.theme-page .bullets li > span { min-width: 0; }
.theme-page .bullets .icon { width: 20px; height: 20px; }
.theme-page #limits .bullets li { padding-bottom: var(--space-5); border-bottom: 1px solid var(--border-subtle); }
.theme-page #limits .bullets li:last-child { padding-bottom: 0; border-bottom: 0; }
.theme-page #related .cols3 { gap: var(--space-6); }
.theme-page #related .col { padding: var(--space-5) 0; border: 0; border-top: 1px solid var(--border-subtle); border-radius: 0; box-shadow: none; background: none; }
.theme-page #related .col::after { display: none; }
.theme-page #related .col h3 { font-size: var(--step-lg); }
.theme-page #related .col p { font-size: var(--step-base); color: var(--text-on-surface); }

@media (min-width: 48em) {
  .theme-page > .section { padding-block: var(--space-9); }
  .theme-page .guide-steps > li { grid-template-columns: var(--space-6) minmax(0, .7fr) minmax(0, 1.3fr); gap: var(--space-5); }
  .theme-page .guide-steps > li > p { grid-column: 3; }
  .theme-page .recipe { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-4) var(--space-8); align-content: start; }
  .theme-page .recipe > :is(h3, .card-top, .goal, .more) { grid-column: 1; }
  .theme-page .recipe .prompt-box { grid-column: 2; grid-row: 1 / span 3; }
  .theme-page .recipe .card-foot { grid-column: 2; grid-row: 4; align-self: start; }
  .theme-page #limits > .container { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-8); }
  .theme-page #limits .section-head { margin: 0; align-content: start; }
}

@media (min-width: 64em) {
  .theme-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-8); padding-block: var(--space-7) var(--space-5); }
  .theme-map { padding: var(--space-7); }
}
@media (max-width: 47.99em) {
  body:has(.theme-page) .footer-nav :is(ul, li) { min-width: 0; }
  body:has(.theme-page) .footer-nav :is(a, .link-planned) { flex-wrap: wrap; column-gap: var(--space-2); padding-block: var(--space-2); }
  body:has(.theme-page) .footer-nav .badge { margin-inline-start: 0; }
}
@media (max-width: 29.99em) {
  .theme-hero-grid { gap: var(--space-5); padding-top: var(--space-5); }
  .theme-hero h1 { font-size: var(--step-3xl); }
  .theme-hero .page-hero-copy { gap: var(--space-4); }
  .theme-hero .lead { font-size: var(--step-base); }
  .theme-hero .cta-row { flex-wrap: nowrap; gap: var(--space-3); }
  .theme-hero .cta-row .btn { flex: none; width: auto; min-height: 48px; padding-inline: var(--space-3); font-size: var(--step-sm); }
  .theme-limits-link { font-size: var(--step-sm); }
  .theme-map { padding: var(--space-5); }
  .theme-live { padding-bottom: var(--space-4); }
  .theme-path { margin-top: var(--space-4); }
  .theme-path li { padding-block: var(--space-2); }
  .theme-map figcaption { margin-top: var(--space-4); }
}

/* Hallmark · component: hero card stroke · locked MCPMate palette · static orange edge, neutral frame. */
.theme-hero .theme-map {
  border: 1px solid var(--border-subtle);
  border-inline-start: 3px solid var(--hero-card-accent);
}
