/* Theme adapters for the standalone public pages. Media and artwork keep their original colors. */
html[data-acre-theme][data-acre-page="editorial"],
html[data-acre-theme][data-acre-page="blueprint"] {
  --bg: var(--acre-bg);
  --paper: var(--acre-bg);
  --panel: var(--acre-surface);
  --white: var(--acre-surface);
  --pale: var(--acre-surface);
  --ink: var(--acre-text);
  --text: var(--acre-text);
  --muted: var(--acre-muted);
  --line: var(--acre-border);
  --blue: var(--acre-accent);
  --accent: var(--acre-accent);
}
html[data-acre-page="editorial"] :is(.header,.site-header) { background: var(--acre-bg); }
html[data-acre-page="editorial"] :is(.closing,.closing-quote,.review-section,.proof-evidence) { background: var(--acre-surface); }
html[data-acre-page="editorial"] .button { background: var(--acre-action); color: var(--acre-action-text); border-color: var(--acre-action); }
html[data-acre-page="editorial"] .button:hover { background: var(--acre-action); color: var(--acre-action-text); }
html[data-acre-page="editorial"] .button.secondary { background: transparent; color: var(--acre-text); border-color: var(--acre-border); }
html[data-acre-page="editorial"] .button.secondary:hover { background: var(--acre-surface); }
html[data-acre-page="editorial"] :is(.desktop-nav a:hover,.footer a:hover) { color: var(--acre-text); }
html[data-acre-page="editorial"] :is(.outputs,.badges span,.status.pending) { color: var(--acre-muted); }
html[data-acre-page="editorial"] :is(.tool-icon,.outputs li::before,.wins li::before) { color: var(--acre-accent); }
html[data-acre-page="editorial"] input::placeholder { color: var(--acre-muted); }
html[data-acre-page="editorial"] :is(.badges span,.tool-icon,.button.secondary,.mobile-menu summary,input[type="search"]) { border-color: var(--acre-border); }
html[data-acre-theme="light"][data-acre-page="editorial"] .june-change { color: #246440; }
/* The blueprint deliberately retains its dark intro, CTA, and footer. */
html[data-acre-page="blueprint"] :is(.contents,.step:nth-of-type(even),.reflection>div,.closing) { background: var(--acre-surface); }
html[data-acre-page="blueprint"] .step:nth-of-type(odd) { background: var(--acre-bg); }
html[data-acre-page="blueprint"] .button { background: var(--acre-action); color: var(--acre-action-text); }
html[data-acre-page="blueprint"] .button-outline { background: transparent; color: var(--acre-text); }
html[data-acre-page="blueprint"] .cta .button { background: #fff; color: #141412; }
html[data-acre-page="blueprint"] .cta .button-outline { background: transparent; color: #fff; }
html[data-acre-page="blueprint"] .cta .button-outline:hover { background: #fff; color: #141412; }
html[data-acre-page="blueprint"] .footer { --muted: #a5a8a3; }
/* Keep a usable control beside the brand on narrow viewports. */
html[data-acre-page] .acre-theme-toggle { flex-shrink: 0; }
@media (max-width: 600px) {
  html[data-acre-page] .header-inner { gap: 12px; flex-wrap: wrap; padding-block: 12px; }
  html[data-acre-page] .header-inner .brand { min-width: 0; margin-right: auto; }
  html[data-acre-page] .header-inner .brand img { width: min(155px, 38vw); height: auto; }
  html[data-acre-page="form"] .site-header { gap: 12px; flex-wrap: wrap; }
  html[data-acre-page="form"] .site-header > a:first-child { margin-right: auto; }
  html[data-acre-page="blueprint"] .header-inner .nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; gap: 16px; }
}
/* Application and workshop forms share the same paper/ink palette. */
html[data-acre-theme][data-acre-page="form"] {
  --paper: var(--acre-bg);
  --ink: var(--acre-text);
  --muted: var(--acre-muted);
  --line: var(--acre-border);
  --accent: var(--acre-accent);
  --selected: var(--acre-surface);
  color: var(--acre-text);
  background: var(--acre-bg);
}
html[data-acre-theme="dark"][data-acre-page="form"] { --error: #ffaaa0; }
html[data-acre-page="form"] :is(.intro-copy,input::placeholder) { color: var(--acre-muted); }
html[data-acre-page="form"] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  background: var(--acre-surface); color: var(--acre-text); border-color: var(--acre-border);
}
html[data-acre-page="form"] :is(.request-panel,.choice:has(input:checked)) { background: var(--acre-surface); }
html[data-acre-page="form"] .choice:has(input:checked) { border-color: var(--acre-accent); }
html[data-acre-theme="dark"][data-acre-page="form"] .error-summary { background: #351e1b; }
html[data-acre-theme="dark"][data-acre-page="form"] .request-status[data-state="error"] { color: #ffaaa0; }
html[data-acre-page="form"] .primary-button { background: var(--acre-action); color: var(--acre-action-text); border-color: var(--acre-action); }
html[data-acre-page="form"] .primary-button:is(:disabled,[aria-disabled="true"]) { background: var(--acre-surface); color: var(--acre-muted); border-color: var(--acre-border); }
html[data-acre-page="form"] :is(.next-chapter,.mobile-selection-link) { background: #151515; color: #f3f1ec; }
html[data-acre-page="form"] .next-chapter .primary-button { background: #f3f1ec; color: #151515; border-color: #f3f1ec; }
html[data-acre-page="editorial"] :is(.body-copy,.provider-tags span) { color: var(--acre-muted); }
html[data-acre-page="editorial"] :is(.rail-controls button:hover,.load:hover) { background: var(--acre-surface); }
html[data-acre-page="editorial"] dialog { color: #f3f1ec; }
html[data-acre-page="editorial"] .text-link:hover { border-color: var(--acre-text); }
/* Public membership page, privacy notice, and private workshop utilities. */
html[data-acre-theme][data-acre-page="ask"] {
  --paper: var(--acre-bg); --white: var(--acre-surface); --ink: var(--acre-text);
  --muted: var(--acre-muted); --line: var(--acre-border); --blue: var(--acre-accent);
}
html[data-acre-page="ask"] :is(.why,.conversation,.membership,.proof,.price-visual,.offer,.hero-stage) { background: var(--acre-surface); border-color: var(--acre-border); }
html[data-acre-page="ask"] :is(.hero,.section) .eyebrow { color: var(--acre-accent); }
html[data-acre-page="ask"] .button { background: var(--acre-action); color: var(--acre-action-text); }
html[data-acre-page="ask"] :is(.fit,.join) .button-light { background: #f3f1ec; color: #141412; }
html[data-acre-page="ask"] .header-inner { min-height: 82px; height: auto; }
html[data-acre-page="privacy"] body { background: var(--acre-bg); color: var(--acre-text); }
html[data-acre-page="privacy"] :is(header,footer) { border-color: var(--acre-border); }
html[data-acre-page="privacy"] a { color: var(--acre-accent); }
html[data-acre-page="privacy"] header a { color: var(--acre-text); }
html[data-acre-page="privacy"] footer { color: var(--acre-muted); }
html[data-acre-page="privacy"] .skip { background: var(--acre-bg); }
html[data-acre-page="form"] :is(.preference-card,.library-status[data-state="error"]) { background: var(--acre-surface); }
@media(max-width:600px) {
 html[data-acre-page="ask"] .header-inner .nav { order: 3; width: 100%; margin: 0; padding-bottom: 10px; }
}
