/* R0025: the brand, legal links and preferences share one horizontal rhythm. */
.footer {
  --rz-footer-width: 1280px;
  --rz-footer-gutter: 64px;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: .875rem;
  line-height: 1.6;
}
.footer > :is(.footer-inner, .blog-wrap, .epk-wrap, .site-legal-links, .rz-measure) {
  box-sizing: border-box;
  width: min(var(--rz-footer-width), calc(100% - var(--rz-footer-gutter)));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
.footer .footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.5rem;
}
.footer .rz-footer-brand {
  display: inline-flex;
  align-items: center;
  width: 106px;
  min-height: 53px;
  margin: 0;
}
.footer .rz-footer-logo { display: block; width: 100%; height: auto; object-fit: contain; }
.footer .footer-copyright { min-width: 0; text-align: center; overflow-wrap: break-word; }
.footer .footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .25rem 1.25rem; }
.footer .footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding-block: .25rem; font: inherit; }
.site-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 1.5rem;
  margin-top: 1rem;
  padding-block: .75rem 0;
  border-top: 1px solid var(--line, #34434b);
  color: var(--muted, #b3c1c8);
  font: inherit;
  text-align: start;
}
.site-legal-links p { margin: 0; }
.site-legal-links nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; }
.site-legal-links a, .site-legal-links button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.site-legal-links a:hover, .site-legal-links button:hover { color: var(--mint, #80f8d4); }
.site-legal-links :focus-visible { outline: 2px solid var(--mint, #80f8d4); outline-offset: 3px; }
.footer .rz-measure {
  margin-top: 1rem;
  margin-bottom: 0;
  padding-block: .75rem 0;
  border-color: var(--line, #34434b);
  color: var(--muted, #b3c1c8);
  font: inherit;
}
.footer .rz-measure summary { list-style-position: inside; }
.footer .rz-measure p { color: inherit; }
.epk-footer { --rz-footer-width: 72rem; --rz-footer-gutter: clamp(2.5rem, 9vw, 8rem); }
.info-footer { --rz-footer-width: 68rem; --rz-footer-gutter: 3rem; }
@media (max-width: 760px) {
  .footer { --rz-footer-gutter: 32px; }
  .footer .footer-inner { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: .6rem; }
  .footer .rz-footer-brand { width: 86px; min-height: 44px; }
  .footer .footer-copyright { text-align: start; }
  .footer .footer-links { justify-content: flex-start; }
  .site-legal-links { align-items: flex-start; gap: .5rem; }
  .site-legal-links nav { gap: .25rem 1rem; }
}
@media (max-width: 32rem) { .info-footer { --rz-footer-gutter: 2.3rem; } }
@media (max-width: 359px) { .footer .rz-footer-brand { width: 72px; } }

.rz-measure {
  max-width: 71rem;
  margin: 1rem auto 0;
  padding: .75rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid #35413b;
  color: #e5eae5;
  font: 400 .9375rem/1.55 system-ui, sans-serif;
  text-align: start;
}
.rz-measure[hidden], .rz-measure button[hidden] { display: none; }
.rz-measure details { max-width: 40rem; }
.rz-measure summary { display: list-item; width: fit-content; min-height: 2.75rem; align-content: center; cursor: pointer; }
.rz-measure p { margin: .25rem 0 .85rem; color: #c7d0c9; }
.rz-measure-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.rz-measure button { color: #e5eae5; background: #1a221e; border: 1px solid #8d9e92; padding: .45rem .85rem; border-radius: .35rem; min-height: 2.75rem; font: inherit; cursor: pointer; }
.rz-measure :is(button, summary):focus-visible { outline: 2px solid #aaf2d1; outline-offset: 3px; }
.rz-measure .rz-measure-status:not(:empty) { margin: .6rem 0 0; }

/* The session CTA sits on the light services panel. */
.services .service-cta .button.primary {
  background: #1a5133;
  color: #f7fff9;
}
.services .service-cta .button.primary:hover {
  background: #103e26;
  color: #f7fff9;
}
.services .service-cta .button:focus-visible {
  outline: 3px solid #1a5133;
  outline-offset: 3px;
}
.services .service-cta .muted { color: #3e5046; }
.services .service-num { color: #456251; }

.contact-form :is(label input, select, textarea) { border-color: #758a7c; }

.honors-albums .honors-source {
  margin-top: .3rem;
  color: #aaf2d1;
  font: 600 .8125rem/1.4 var(--sans);
  text-decoration: underline;
  text-underline-offset: .18em;
}
.honors-albums a:focus-visible { outline: 2px solid #aaf2d1; outline-offset: -3px; }
.honors-riaa:focus-visible { outline: 3px solid #162c20; outline-offset: -4px; }

@media (min-width: 761px) {
  .social-float a.whatsapp-float,
  .social-float a.whatsapp-float:hover,
  .social-float a.whatsapp-float:focus-visible { color: #071c11; }
}

/* Load after every page stylesheet. Shared light and dark page palette. */
:root { color-scheme: dark; }
:root[data-theme="dark"] { color-scheme: dark; }

/* R0019: a solid black page canvas, including the initial no-script state. */
html:not([data-theme="light"]) {
  --bg: #000000;
  background: #000000;
}
html:not([data-theme="light"]) body,
html:not([data-theme="light"]) :is(.header, .blog-header, .epk-header, .info-header),
html:not([data-theme="light"]) header > .social-float,
html:not([data-theme="light"]) :is(.hero.wrap.rz-video-hero, .rz-hero-video),
html:not([data-theme="light"]) :is(.story, .production-section, .studio-services, .media-section, .section.collab, .cta.contact-section),
html:not([data-theme="light"]) :is(.footer, .blog-footer, .epk-footer, .info-footer, .rz-measure) {
  background: #000000;
}

.theme-toggle {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: .6rem .7rem;
  border: 1px solid #627a83;
  border-radius: var(--rz-control-radius, 999px);
  background: #17232a;
  color: #edf6f8;
  font: 650 .875rem/1.25 var(--sans, system-ui, sans-serif);
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
}
.theme-toggle:hover { border-color: var(--mint, #80f8d4); }
.theme-toggle:focus-visible { outline: 2px solid var(--mint, #80f8d4); outline-offset: 3px; }
.theme-toggle-icon { display: inline-block; font: 1.15rem/1 system-ui, sans-serif; }
.theme-toggle[aria-pressed="true"] .theme-toggle-icon { transform: rotate(180deg); }

/* White, cool silver and deep teal: artwork retains its original pixels. */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f6f8;
  --panel: #ffffff;
  --ink: #142d38;
  --muted: #445f6a;
  --mint: #006b64;
  --acid: #375b16;
  --line: #b8c8cf;
  --surface: #ffffff;
  --surface-raised: #edf3f6;
  --edge: #b8c8cf;
  --accent: #006b64;
  --rz-text: #344f5a;
  --rz-light-control-line: #66818c;
  --rz-light-control-bg: #eef5f6;
  --metal: linear-gradient(140deg, #93a9b2, #e7eff2 18%, #9fb3bc 44%, #f9fcfd 62%, #879faa 100%);
  --shell: linear-gradient(145deg, #fff 0%, #f8fbfc 64%, #edf3f6 100%);
  background: var(--bg);
  color: var(--ink);
}
html[data-theme="light"] body { background: var(--bg); color: var(--ink); }
html[data-theme="light"] ::selection { background: #bddedc; color: #112f37; }
html[data-theme="light"] :is(.header, .blog-header, .epk-header, .info-header) {
  background: var(--bg);
  border-color: var(--line);
}
html[data-theme="light"] .header .navlinks { color: var(--ink); }
html[data-theme="light"] .header .navright > :is(.lang, .contact-link, .theme-toggle),
html[data-theme="light"] .header .navright > .cover-menu > summary,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] :is(.blog-locale, .epk-locale, .info-locale) {
  background: #fff;
  color: var(--ink);
  border-color: var(--rz-light-control-line);
  box-shadow: 0 3px 10px #24404d0a;
}
html[data-theme="light"] .theme-toggle[aria-pressed="true"] {
  background: #dceeed;
  border-color: var(--mint);
  color: #00564f;
}
html[data-theme="light"] .header .navright > :is(.lang, .contact-link):hover,
html[data-theme="light"] .header .navright > .cover-menu > summary:hover,
html[data-theme="light"] .header .navright > .cover-menu[open] > summary {
  background: #e4eef1;
  color: #004f4a;
  border-color: var(--mint);
}
html[data-theme="light"] .cover-menu-panel { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: 0 12px 25px #203b4a22; }
html[data-theme="light"] .cover-menu-panel a { border-color: var(--line); }
html[data-theme="light"] .rz-progress { background: var(--mint); }

/* Hero, section surfaces and all work-card families. */
html[data-theme="light"] .hero.wrap {
  background: var(--shell) padding-box, var(--metal) border-box;
  box-shadow: 0 14px 38px #26445314;
}
html[data-theme="light"] .hero :is(.hero-photo, .hero-copy-block) { background: transparent; }
html[data-theme="light"] .hero .hero-photo :is(.hero-note, figcaption) { background: #e4edf1; color: var(--muted); }
html[data-theme="light"] :is(.story, .production-section, .studio-services, .media-section, .section.collab, .cta.contact-section) {
  background: var(--bg);
  border-color: var(--line);
}
html[data-theme="light"] .story { background: radial-gradient(ellipse at 85% 5%, #e0eef0, #f2f6f8 55%); }
html[data-theme="light"] :is(.release-card, .production-card, .video-card, .studio-service, .label-card, .contact-form, .hero-honors, .artist-spotify, .spotify-shell, .cover-release, .press-grid > *, .honors-albums li > a, .blog-card, .epk-story) {
  background: var(--shell) padding-box, var(--metal) border-box;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 6px 20px #2644530b;
}
html[data-theme="light"] :is(#credits .track-credits li, .editorial-list li, .muso-tracks .muso-card, .photo-card, .gallery-card, .press-card, .blog-related a) {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="light"] :is(#credits .track-credits li, .editorial-list li, .muso-tracks .muso-card):hover {
  background: #eaf3f5;
  border-color: var(--rz-light-control-line);
}
html[data-theme="light"] .rz-motion-panel:hover { box-shadow: 0 10px 25px #2644531a; }
html[data-theme="light"] :is(.ticker, .story-heading, .story-step, .credit-details, .track-credits, .honors-albums, .honors-totals, .honors-nominations, .release-options, .production-actions, .studio-service details, .studio-process li, .contact-project, .contact-privacy, .site-legal-links) { border-color: var(--line); }
html[data-theme="light"] .ticker { color: var(--muted); background: #e9f0f3; }
html[data-theme="light"] .ticker-track { color: var(--muted); }

/* Explicitly replace old fixed light text on the newly light surfaces. */
html[data-theme="light"] body :is(h1, h2, h3, h4, h5, h6, .hero-hook, .rz33-display, .contact-form label, .track-credits strong, .muso-tracks strong, .honors-albums strong, .studio-process strong) { color: var(--ink); }
html[data-theme="light"] body :is(.hero-copy, .section-intro, .media-intro, .story-heading > p, .story-step p, .production-artists, .production-note p, .release-card p, .label-card p, .studio-service > p, .studio-service li, .studio-process p, .contact-intro, .contact-privacy, .track-credits p, .track-credits small, .muso-tracks small, .muso-tracks p, .editorial-list p, .press-preview, .press-grid p, .video-caption p, .honors-heading p, .honors-totals span, .honors-albums small, .honors-albums span, .honors-nominations p, .honors-muso, .epk-intro, .epk-copy, .rz-measure p, .rz-measure-status, .site-legal-links) { color: var(--muted); }
html[data-theme="light"] body :is(.origin, .eyebrow, .production-role, .rz27-kicker, .rz27-role, .studio-heading > p, .story-place) { color: var(--mint); }
html[data-theme="light"] :is(.muso-artists, .track-artists, .track-role, .credit-alias, .recognition-method, .honors-artist, .honors-units) { color: var(--muted); }
html[data-theme="light"] :is(.production-art, .release-cover, .rz42-cover, .work-cover, .credit-cover, .muso-cover, .honors-cover) { border-color: var(--line); }

/* Shared action surface. Primary actions remain visibly distinct. */
html[data-theme="light"] :is(.video-caption .video-watch, .release-options summary, .release-options .release-links a, .production-actions .production-listen, .production-credits summary, .studio-grid .studio-service summary, .studio-grid .studio-inquire, .label-card .track-source, .track-credits .track-source, .editorial-list .track-source, .story-links a, .production-note a, .studio-example, .honors-albums .honors-source, .artist-spotify-header a, .rz27-cta, .rz36-release-fold > summary, .rz36-evidence-fold > summary, .rz-measure button, .epk-secondary, .blog-post-links a, .video-paging button) {
  background: var(--rz-light-control-bg);
  color: var(--mint);
  border-color: var(--rz-light-control-line);
  box-shadow: none;
}
html[data-theme="light"] .hero :is(.scene-actions .secondary, .rz-hero-social a) {
  background: #eef5f6;
  color: var(--ink);
  border-color: var(--rz-light-control-line);
}
html[data-theme="light"] :is(.button.primary, .hero .scene-actions .primary, .contact-actions .button, .epk-button:not(.epk-secondary), .cover-listen, .info-actions a:first-child, .home-skip, .blog-skip, .epk-skip, .info-skip) {
  background: #006b64;
  color: #fff;
  border-color: #006b64;
}
html[data-theme="light"] :is(.button.primary, .hero .scene-actions .primary, .contact-actions .button, .epk-button:not(.epk-secondary), .info-actions a:first-child):hover { background: #004e49; color: #fff; }
html[data-theme="light"] :is(.track-source, .story-links a, .video-watch, .production-listen, .production-credits summary, .studio-grid .studio-service summary, .studio-grid .studio-inquire, .release-options summary, .release-links a, .artist-spotify-header a, .rz27-cta, .epk-secondary):hover { background: #dcebed; color: #004f4a; border-color: #006b64; }
html[data-theme="light"] .hero .rz-hero-social a:hover { background: #dcebed; color: #004f4a; }
html[data-theme="light"] :is(.story-links a, .epk-text-link, .contact-email, .production-nav a, .footer-links a, .site-legal-links a, .site-legal-links button) { color: var(--mint); }
html[data-theme="light"] .info-body a:hover { color: #004f4a; }

/* Story keeps its scroll staging; only surface and chapter accents change. */
html[data-theme="light"] .story [data-tone="valencia"] { --tone: #456823; --mat: #dfe8d7; }
html[data-theme="light"] .story [data-tone="label"] { --tone: #854839; --mat: #f0e3dc; }
html[data-theme="light"] .story [data-tone="credits"] { --tone: #745816; --mat: #efe6cf; }
html[data-theme="light"] .story [data-tone="today"] { --tone: #00665e; --mat: #d9ebe8; }
html[data-theme="light"] .story :is(.story-visual, .story-screen) { background: #f8fbfc; border-color: var(--line); }
html[data-theme="light"] .story .story-art { background: radial-gradient(ellipse at 50% 35%, var(--mat, #dbe9ed), #f4f8fa); }
html[data-theme="light"] .story .story-visual figcaption { background: #e7eff2; color: var(--ink); border-color: var(--line); }
html[data-theme="light"] .story .story-place { background: #e0eeef; color: var(--mint); }
html[data-theme="light"] .story-chapterbar { background: #edf4f6; border-color: var(--line); }
html[data-theme="light"] .story-chapterbar a,
html[data-theme="light"] .story-nav a { color: var(--muted); }
html[data-theme="light"] .story-chapterbar a[aria-current="step"] { background: #d7e8e9; color: #00564f; border-color: #67878b; }
html[data-theme="light"] .story-progress { background: #b8c8cf; }

/* 3D record carousel: retain artwork, geometry and motion. */
html[data-theme="light"] .rz27-experience { background: var(--shell) padding-box, var(--metal) border-box; }
html[data-theme="light"] .rz27-glow { background: radial-gradient(ellipse at 50% 47%, #77b9bc33, transparent 58%); }
html[data-theme="light"] .rz27-orbit-lines,
html[data-theme="light"] .rz27-orbit-lines::before,
html[data-theme="light"] .rz27-orbit-lines::after { border-color: #849fa661; }
html[data-theme="light"] .rz28-dot { background: #f7fbfc; border-color: #718b95; color: var(--muted); }
html[data-theme="light"] #rz28-album-0:checked ~ .rz27-actions .rz28-dot[for="rz28-album-0"],
html[data-theme="light"] #rz28-album-1:checked ~ .rz27-actions .rz28-dot[for="rz28-album-1"],
html[data-theme="light"] #rz28-album-2:checked ~ .rz27-actions .rz28-dot[for="rz28-album-2"],
html[data-theme="light"] #rz28-album-3:checked ~ .rz27-actions .rz28-dot[for="rz28-album-3"],
html[data-theme="light"] #rz28-album-4:checked ~ .rz27-actions .rz28-dot[for="rz28-album-4"],
html[data-theme="light"] #rz28-album-5:checked ~ .rz27-actions .rz28-dot[for="rz28-album-5"] { background: #d6eae8; color: #00564f; border-color: #006b64; }

/* Certified levels are text, not a color-only indicator. */
html[data-theme="light"] .honors-totals { background: #e7eff2; }
html[data-theme="light"] .honors-albums .honors-level { color: #3d5661; }
html[data-theme="light"] .honors-albums .honors-gold { color: #725009; }
html[data-theme="light"] #hitos-muso :is(.muso-badge, .muso-tally > span) { background: #f3f7f8; border-color: #80969f; }
html[data-theme="light"] #hitos-muso :is(.muso-badge--gold, .muso-tally > span:first-child) { color: #76500b; }
html[data-theme="light"] #hitos-muso :is(.muso-badge--silver, .muso-tally > span:nth-child(2)) { color: #3d5661; }

/* Form controls and errors remain legible in both themes. */
html[data-theme="light"] .contact-form :is(input, select, textarea) {
  background-color: #fff;
  color: var(--ink);
  border-color: #66818c;
  caret-color: var(--ink);
}
html[data-theme="light"] .contact-form :is(input, textarea)::placeholder { color: #566f7b; opacity: 1; }
html[data-theme="light"] .contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23006b64' stroke-width='1.7'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: right .85rem center;
}
html[data-theme="light"] .contact-form [aria-invalid="true"] { border-color: #a42a1b; }
html[data-theme="light"] :is(.contact-field-error, .contact-status[data-error]) { color: #9b2619; }
html[data-theme="light"] .contact-status:not([data-error]) { color: #00665e; }

/* Editorial pages, photo galleries and legal footer share the same palette. */
html[data-theme="light"] :is(.blog-art, .blog-post-cover, .photo-card figcaption, .gallery-card figcaption) { background: #e5eef2; color: var(--muted); border-color: var(--line); }
html[data-theme="light"] :is(.footer, .blog-footer, .epk-footer, .info-footer, .rz-measure) { background: var(--bg); color: var(--muted); border-color: var(--line); }
html[data-theme="light"] .rz-measure summary { color: var(--ink); }
html[data-theme="light"] .social-float a { box-shadow: 0 4px 15px #193d491f; }
html[data-theme="light"] .social-float-icon { background: #e6eff3; color: var(--ink); border-color: #6f8a95; }
html[data-theme="light"] .social-float .whatsapp-float { background: #d4f0df; color: #064927; border-color: #51836a; }
html[data-theme="light"] header > .social-float { background: #e7f0f2; border-color: var(--line); }
html[data-theme="light"] header > .social-float a { color: var(--ink); background: transparent; }
html[data-theme="light"] header > .social-float .whatsapp-float { color: #065332; }
html[data-theme="light"] .hero .rz-hero-social img,
html[data-theme="light"] .studio-inquire img,
html[data-theme="light"] .social-float .whatsapp-float img { filter: none; }
html[data-theme="light"] :where(a, button, summary, input, select, textarea):focus-visible { outline-color: #006b64; }

@media (max-width: 430px) {
  .theme-toggle { padding-inline: .5rem; gap: .25rem; }
  .theme-toggle-icon { font-size: 1rem; }
}
@media (forced-colors: active) {
  .theme-toggle { border: 1px solid ButtonText; background: ButtonFace; color: ButtonText; forced-color-adjust: auto; }
  .theme-toggle[aria-pressed="true"] { border: 2px solid Highlight; }
  .theme-toggle:focus-visible { outline: 2px solid Highlight; }
}
