/* Shared Musashi Gold palette. Loaded only by capture and activation. */
.musashi-gold-theme {
  color-scheme: dark;
  --mg-bg:#0B1826;
  --mg-surface:#142C3B;
  --mg-surface-raised:#1B3545;
  --mg-border:#2B4657;
  --mg-control-border:#607D90;
  --mg-text:#F4F7FA;
  --mg-text-muted:#B6C6D4;
  --mg-gold:#D6B66B;
  --mg-primary:#008257;
  --mg-primary-hover:#006E49;
  --mg-primary-active:#005F40;
  --mg-on-primary:#FFFFFF;
  --mg-accent:#16D995;
  --mg-disabled-bg:#263F4C;
  --mg-disabled-text:#B6C6D4;
  --mg-error:#FF9898;
  --mg-warning:#F2B46D;
  --mg-info:#8EC7FF;
  /* Bridge the existing components to the single palette without restyling layouts. */
  --bg:var(--mg-bg);
  --bg2:var(--mg-bg);
  --panel:var(--mg-surface);
  --text:var(--mg-text);
  --muted:var(--mg-text-muted);
  --green:var(--mg-accent);
  --button:var(--mg-primary);
  --gold:var(--mg-gold);
  --border:var(--mg-border);
  background:var(--mg-bg);
  color:var(--mg-text);
}
/* Flat surfaces, including the native dialog's top layer. Media stays untouched. */
.musashi-gold-theme body,
.musashi-gold-theme .nav,
.musashi-gold-theme .hero,
.musashi-gold-theme .closing,
.musashi-gold-theme #video,
.musashi-gold-theme #backtest,
.musashi-gold-theme .delivery-section {background:var(--mg-bg)}
.musashi-gold-theme :is(.access-card,.situations article,.how-panel,.delivery-card,.delivery-community,.private-panel,.broker-disclosure,.faq details) {background:var(--mg-surface);border-color:var(--mg-border)}
.musashi-gold-theme #backtest :is(.evidence-metrics>div,.evidence-figure,.test-conditions,.evidence-parameters) {background:var(--mg-surface);border-color:var(--mg-border)}
.musashi-gold-theme .access-card {box-shadow:0 12px 32px rgb(0 0 0 / 16%)}
.musashi-gold-theme :is(.trial-number,.delivery-chip) {background:var(--mg-surface-raised)}
.musashi-gold-theme #video .video-frame {background:var(--mg-surface);box-shadow:none}
.musashi-gold-theme :is(.trial-footer,.evidence-chart-heading,.evidence-parameters>span,.delivery-community-art) {border-color:var(--mg-border)}
.musashi-gold-theme #testimonios,
.musashi-gold-theme .member-capture-dialog {--card:var(--mg-surface-raised);--green2:var(--mg-accent);--green-dim:var(--mg-surface);--border-g:var(--mg-border);--text2:var(--mg-text-muted)}
.musashi-gold-theme #testimonios .member-capture-open {background:var(--mg-surface);border-color:var(--mg-control-border)}
.musashi-gold-theme .member-capture-dialog {background:var(--mg-surface-raised);border-color:var(--mg-control-border)}
.musashi-gold-theme .member-capture-dialog::backdrop {background:var(--mg-bg);opacity:.9}
.musashi-gold-theme :is(.member-capture-close,#testimonios .member-stories-controls>button) {border-color:var(--mg-control-border)}
.musashi-gold-theme #testimonios .member-stories-track {scrollbar-color:var(--mg-control-border) var(--mg-bg)}
.musashi-gold-theme #testimonios .member-stories-dots button::before {opacity:1}
/* Product identity, never a generic success or loss indicator. */
.musashi-gold-theme .eyebrow {color:var(--mg-text-muted)}
.musashi-gold-theme :is(.mg-product-name,.product-name,.vsl-title-accent),
.musashi-gold-theme .gold-landing .product-name,
.musashi-gold-theme .delivery-eyebrow strong {color:var(--mg-gold)}
.musashi-gold-theme .how-panel h2 span,
.musashi-gold-theme .delivery-heading h2>span {color:var(--mg-text)}
.musashi-gold-theme .delivery-section {--delivery-green:var(--mg-accent);--delivery-gold:var(--mg-gold)}
.musashi-gold-theme .delivery-icon-key {color:var(--mg-accent)}
.musashi-gold-theme .community-icon-disc {fill:var(--mg-surface)}
.musashi-gold-theme .community-icon-plane {fill:var(--mg-text)}
.musashi-gold-theme .delivery-community-label {background:var(--mg-surface-raised);color:var(--mg-accent)}
.musashi-gold-theme :is(.delivery-card p,.delivery-chip,.delivery-community p) {color:var(--mg-text-muted)}
.musashi-gold-theme #backtest {--evidence-gold:var(--mg-gold);--evidence-green:var(--mg-accent)}
.musashi-gold-theme #backtest .evidence-metrics>div:nth-child(2) dd>[data-value] {color:var(--mg-text)}
.musashi-gold-theme #backtest :is(.evidence-subtitle,.evidence-metric-note,.evidence-footer p) {color:var(--mg-text-muted)}
.musashi-gold-theme :is(.trial-number,.how-panel .trial-eyebrow,.delivery-community-art),
.musashi-gold-theme .faq summary::after {color:var(--mg-accent)}
.musashi-gold-theme #video .pill {background:var(--mg-surface);border-color:var(--mg-border)}
.musashi-gold-theme #video .pill::before {box-shadow:none}
.musashi-gold-theme .gold-scroll-progress {background:var(--mg-accent);box-shadow:none}
/* FAQ disclosure cards use the same flat surfaces as the other sections. */
.musashi-gold-theme #preguntas .faq details {background:var(--mg-surface);border-color:var(--mg-border)}
.musashi-gold-theme #preguntas .faq summary {color:var(--mg-text)}
.musashi-gold-theme #preguntas .faq summary::after {background:var(--mg-surface-raised);color:var(--mg-accent)}
.musashi-gold-theme #preguntas .faq p {border-color:var(--mg-border);color:var(--mg-text-muted)}
.musashi-gold-theme #preguntas .faq details[open] {border-color:var(--mg-control-border)}
.musashi-gold-theme #preguntas .faq summary:focus-visible {outline:2px solid var(--mg-accent);outline-offset:3px}
@media(hover:hover) and (pointer:fine){.musashi-gold-theme #preguntas .faq details:has(>summary:hover){border-color:var(--mg-control-border)}}
/* Primary and secondary actions use the same states on both screens. */
.musashi-gold-theme .button:not(.button-outline),
.musashi-gold-theme #backtest .button,
.musashi-gold-theme .skip-link {background:var(--mg-primary);color:var(--mg-on-primary)}
.musashi-gold-theme .button:not(.button-outline):hover:not(:disabled),
.musashi-gold-theme #backtest .button:hover {background:var(--mg-primary-hover);color:var(--mg-on-primary)}
.musashi-gold-theme .button:not(.button-outline):active:not(:disabled),
.musashi-gold-theme #backtest .button:active {background:var(--mg-primary-active);color:var(--mg-on-primary)}
.musashi-gold-theme .button-outline {background:transparent;border-color:var(--mg-control-border);color:var(--mg-text)}
.musashi-gold-theme .button-outline:hover:not(:disabled) {background:var(--mg-surface-raised);color:var(--mg-text)}
.musashi-gold-theme .button-outline:active:not(:disabled) {background:var(--mg-surface);color:var(--mg-text)}
.musashi-gold-theme .button::before,
.musashi-gold-theme .situations article::before {content:none}
.musashi-gold-theme .situations article:hover {transform:none}
.musashi-gold-theme .text-link,
.musashi-gold-theme #backtest .evidence-chart-heading .text-link {color:var(--mg-accent)}
.musashi-gold-theme :is(p,li) a:not(.button) {color:var(--mg-accent);text-decoration:underline;text-underline-offset:3px}
.musashi-gold-theme :focus-visible {outline:2px solid var(--mg-accent);outline-offset:3px}
.musashi-gold-theme .button:disabled,
.musashi-gold-theme :is(button:disabled,input:disabled,select:disabled),
.musashi-gold-theme #testimonios .member-stories-controls>button:disabled {background:var(--mg-disabled-bg);color:var(--mg-disabled-text);opacity:1}
/* Native controls, placeholders and autofill stay legible on dark surfaces. */
.musashi-gold-theme :is(input,select,textarea) {background:var(--mg-bg);border-color:var(--mg-control-border);color:var(--mg-text);accent-color:var(--mg-accent)}
.musashi-gold-theme select option {background:var(--mg-surface-raised);color:var(--mg-text)}
.musashi-gold-theme ::placeholder {color:var(--mg-text-muted);opacity:1}
.musashi-gold-theme input:autofill {background:var(--mg-bg);color:var(--mg-text);box-shadow:0 0 0 1000px var(--mg-bg) inset}
.musashi-gold-theme input:-webkit-autofill {-webkit-text-fill-color:var(--mg-text);caret-color:var(--mg-text);box-shadow:0 0 0 1000px var(--mg-bg) inset}
.musashi-gold-theme [data-tone="error"] {color:var(--mg-error)}
.musashi-gold-theme [data-tone="error"]::before {content:'⚠ ';font-weight:700}
.musashi-gold-theme [data-tone="pending"] {color:var(--mg-text-muted)}
/* Visual states reflect the existing request; they do not grant access. */
.musashi-gold-theme .activation-progress li {border-color:var(--mg-border);color:var(--mg-text-muted)}
.musashi-gold-theme .activation-progress span {color:var(--mg-text-muted)}
.musashi-gold-theme .activation-progress li[aria-current="step"] {border-color:var(--mg-accent);outline:1px solid var(--mg-accent);outline-offset:3px;color:var(--mg-text)}
.musashi-gold-theme .activation-progress li[aria-current="step"]>span {color:var(--mg-accent)}
.musashi-gold-theme .activation-progress li[aria-current="step"]::after {content:' · Actual';color:var(--mg-accent)}
.musashi-gold-theme .activation-progress li[data-complete="true"]::after {content:' · ✓ Completado';color:var(--mg-accent)}
.musashi-gold-theme #request-panel[data-state="approved"] h2::before {content:'✓ ';color:var(--mg-accent)}
.musashi-gold-theme #request-panel[data-state="in_review"] h2::before {content:'◷ ';color:var(--mg-info)}
.musashi-gold-theme #request-panel:is([data-state="correction"],[data-state="rejected"],[data-state="revoked"]) h2::before {content:'⚠ ';color:var(--mg-warning)}
.musashi-gold-theme .kit-panel {border-color:var(--mg-border)}
@media(prefers-reduced-motion:reduce) {
  .musashi-gold-theme {scroll-behavior:auto}
  .musashi-gold-theme .button {transition:none;transform:none}
}
/* Contexto editorial del reporte y condiciones de acceso. */
.musashi-gold-theme #backtest .evidence-metrics dd {color:var(--mg-text)}
.musashi-gold-theme #backtest .evidence-period {font-size:clamp(16px,2vw,23px);line-height:1.5;display:block;letter-spacing:normal}
.gold-landing .evidence-context,.gold-landing .capture-attribution,.gold-landing #access-conditions p,.gold-landing .access-legal {font-size:1rem;line-height:1.65;color:var(--mg-text)}
.gold-landing .access-legal a {text-decoration:underline}
.member-capture-dialog .capture-attribution {max-width:65ch;color:#fff}
.gold-landing #access-conditions p,.gold-landing .access-legal {font-size:.875rem;line-height:1.5;margin:10px 0;color:var(--mg-text)}
