/* The existing amber-on-black identity remains the dark theme. */
html {
  color-scheme: dark;
}

img.vocast-brand-logo--on-light {
  display: none !important;
}

.site-header .vocast-header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.vocast-theme-toggle {
  display: inline-flex;
  min-width: 112px;
  min-height: 38px;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  flex: 0 0 auto;
  color: var(--vocast-white);
  background: transparent;
  font: inherit;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.vocast-theme-toggle:hover,
.vocast-theme-toggle:focus-visible {
  color: var(--vocast-white);
  background: transparent;
}

.vocast-theme-toggle svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.8;
}

.vocast-theme-toggle__track {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 32px;
  border: 1px solid #d29b00;
  border-radius: 999px;
  flex: 0 0 auto;
  background: var(--vocast-yellow);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .24);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.vocast-theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  display: grid;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  place-items: center;
  color: #151613;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  transform: translateX(24px);
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1), box-shadow 180ms ease;
}

.vocast-theme-toggle:hover .vocast-theme-toggle__thumb {
  box-shadow: 0 3px 9px rgba(0, 0, 0, .38);
}

.vocast-theme-toggle:active .vocast-theme-toggle__thumb {
  width: 27px;
  transform: translateX(21px);
}

.vocast-theme-toggle__sun {
  display: none !important;
}

@media (max-width: 781px) {
  .site-header .vocast-header-actions {
    gap: 12px;
  }

  .vocast-theme-toggle__label {
    display: none;
  }

  .vocast-theme-toggle {
    width: 62px;
    min-width: 62px;
    height: 38px;
    padding: 3px;
  }
}

/* Light mode: cool off-white canvas, white panels, ink typography and amber signal. */
html[data-vocast-theme="light"] {
  color-scheme: light;
  --vocast-ink: #f3f4ef;
  --vocast-navy: #ffffff;
  --vocast-blue: #ffb800;
  --vocast-yellow: #ffb800;
  --vocast-paper: #ffffff;
  --vocast-cloud: #f3f4ef;
  --vocast-slate: #555c53;
  --vocast-white: #1b201a;
  --vocast-border: #cbd0c7;
  --vocast-button-yellow: #ffb800;
  --vocast-button-ink: #151613;
  --wp--preset--color--ink: #f3f4ef;
  --wp--preset--color--navy: #1b201a;
  --wp--preset--color--blue: #ffb800;
  --wp--preset--color--yellow: #ffb800;
  --wp--preset--color--paper: #ffffff;
  --wp--preset--color--cloud: #f3f4ef;
  --wp--preset--color--slate: #555c53;
  --wp--preset--color--white: #1b201a;
}

html[data-vocast-theme="light"] img.vocast-brand-logo--on-dark {
  display: none !important;
}

html[data-vocast-theme="light"] img.vocast-brand-logo--on-light {
  display: block !important;
}

html[data-vocast-theme="light"] .vocast-theme-toggle__sun {
	display: block !important;
}

html[data-vocast-theme="light"] .vocast-theme-toggle__moon {
	display: none !important;
}

html[data-vocast-theme="light"] .vocast-theme-toggle__track {
	border-color: #b8bcb4;
	background: #d8dcd4;
}

html[data-vocast-theme="light"] .vocast-theme-toggle__thumb {
	transform: translateX(0);
}

html[data-vocast-theme="light"] .vocast-theme-toggle:active .vocast-theme-toggle__thumb {
	transform: translateX(0);
}

html[data-vocast-theme="light"] :is(.site-header, .home .site-header, .home .site-header.is-scrolled) {
  color: var(--vocast-white);
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--vocast-border);
}

html[data-vocast-theme="light"] :is(.site-header, .home .site-header) a,
html[data-vocast-theme="light"] .site-header .wp-block-navigation__responsive-container-open,
html[data-vocast-theme="light"] .site-header .wp-block-navigation__responsive-container-close {
  color: var(--vocast-white) !important;
}

html[data-vocast-theme="light"] .wp-block-navigation__submenu-container,
html[data-vocast-theme="light"] .wp-block-navigation__responsive-container.is-menu-open {
  color: var(--vocast-white) !important;
  background: var(--vocast-navy) !important;
}

html[data-vocast-theme="light"] .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
html[data-vocast-theme="light"] .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
  color: var(--vocast-button-ink) !important;
  background: var(--vocast-yellow);
}

html[data-vocast-theme="light"] :is(.vocast-catalog-hero, .vocast-catalog-hero h1) {
  color: #f2f3ee;
}

html[data-vocast-theme="light"] .vocast-catalog-hero {
  background-color: rgba(11, 12, 10, .72);
}

html[data-vocast-theme="light"] .vocast-catalog-hero__intro {
  color: #e4e6df;
}

html[data-vocast-theme="light"] .vocast-catalog-hero__badge {
  color: #ffbf26 !important;
}

html[data-vocast-theme="light"] .vocast-catalog-hero .vocast-stream-button--primary {
  color: var(--vocast-button-ink);
  border-color: var(--vocast-button-ink);
  background: var(--vocast-button-yellow);
}

html[data-vocast-theme="light"] .vocast-catalog-hero .vocast-stream-button--secondary {
  color: #1b201a;
  border-color: #fff;
  background: #fff;
}

html[data-vocast-theme="light"] .vocast-catalog-rail__heading h2,
html[data-vocast-theme="light"] .home .vocast-section h2 {
  color: var(--vocast-white);
}

/* Keep yellow as the brand accent; use ink for small text on light surfaces. */
html[data-vocast-theme="light"] :is(.vocast-eyebrow, .home .vocast-eyebrow, .vocast-work-meta, .vocast-work-single .vocast-work-meta, .vocast-catalog-rail__heading a, .vocast-catalog-rail__heading a:hover, .vocast-lab-index-card__link, .vocast-lab-index-card__meta, .vocast-lab-index-card__screen span, .vocast-lab-skill__number, .vocast-tv-frame__screen span, .vocast-alumni-card__number, .vocast-alumni-card__cohort, .vocast-alumni-card__link, .vocast-alumni-directory__head strong, .vocast-faculty-archive .vocast-publication-index__head strong, .vocast-faculty-archive .vocast-publication-row__index, .vocast-faculty-archive .vocast-arrow-link, .vocast-faculty-archive .vocast-publication-row h3 a:hover, .vocast-faculty-archive .vocast-publication-row h3 a:focus-visible, .vocast-work-archive .vocast-work-card__body h3 a:hover, .vocast-work-archive .vocast-work-card__body h3 a:focus-visible, .vocast-work-single__back a:hover) {
  color: var(--vocast-white) !important;
}

html[data-vocast-theme="light"] .vocast-catalog-rail__heading a {
  text-decoration-color: var(--vocast-yellow);
}

html[data-vocast-theme="light"] :is(.vocast-rail-card__media, .vocast-work-card__media) {
  background: #151613;
}

html[data-vocast-theme="light"] :is(.vocast-rail-card__media, .vocast-work-card__media) > img {
  background: #151613;
}

html[data-vocast-theme="light"] .vocast-rail-control {
  color: var(--vocast-white);
  border-color: var(--vocast-border);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 12px rgba(27, 32, 26, .12);
}

html[data-vocast-theme="light"] .vocast-rail-control:hover,
html[data-vocast-theme="light"] .vocast-rail-control:focus-visible {
  color: var(--vocast-button-ink);
  border-color: var(--vocast-button-ink);
  background: var(--vocast-button-yellow);
}

html[data-vocast-theme="light"] .vocast-rail-card__play {
  color: var(--vocast-button-ink);
  border-color: var(--vocast-button-ink);
  background: var(--vocast-button-yellow);
}

html[data-vocast-theme="light"] .home .vocast-section:nth-of-type(even) {
  background: #ffffff !important;
}

html[data-vocast-theme="light"] .home #tentang p:not(.vocast-eyebrow) {
  color: var(--vocast-slate);
}

html[data-vocast-theme="light"] :is(.home .vocast-lab-card, .home .vocast-publication-row, .home .vocast-stat-row > div) {
  color: var(--vocast-white) !important;
  background: var(--vocast-navy) !important;
}

html[data-vocast-theme="light"] .home .vocast-home-publications :is(.vocast-home-publications__intro > p:first-child, .vocast-publication-row p, .vocast-publication-row__year) {
  color: var(--vocast-slate) !important;
}

html[data-vocast-theme="light"] .home .vocast-home-publications .vocast-home-publications__intro a {
  color: var(--vocast-white) !important;
}

html[data-vocast-theme="light"] .home .vocast-home-publications .vocast-home-publications__intro a:hover,
html[data-vocast-theme="light"] .home .vocast-home-publications .vocast-home-publications__intro a:focus-visible {
  color: #9a6f00 !important;
}

html[data-vocast-theme="light"] :is(.vocast-archive-intro__description, .vocast-work-single .wp-block-post-excerpt, .vocast-lab-intro, .vocast-lab-channel__copy > p:not(.vocast-eyebrow), .vocast-lab-index__intro, .vocast-alumni-index__intro, .vocast-alumni-card__role, .vocast-alumni-empty > p:last-child) {
  color: var(--vocast-slate);
}

html[data-vocast-theme="light"] :is(.vocast-work-archive, .vocast-faculty-archive) .vocast-filter-form :is(select, input) {
  border-color: var(--vocast-border);
}

html[data-vocast-theme="light"] .vocast-work-archive .vocast-work-card::before {
  color: #f2f3ee;
  border-color: rgba(242, 243, 238, .42);
}

html[data-vocast-theme="light"] :is(.vocast-filter-form button, .vocast-work-single .vocast-actions .wp-element-button:not(.is-style-outline), .vocast-lab-channel__copy .wp-block-button__link, .wp-block-button:not(.is-style-outline) .wp-block-button__link, .vocast-arrow-link:hover, .vocast-pagination .current) {
  color: var(--vocast-button-ink) !important;
  border-color: var(--vocast-button-ink) !important;
  background: var(--vocast-button-yellow) !important;
}

html[data-vocast-theme="light"] :is(.vocast-work-single .vocast-actions .is-style-outline, .vocast-lab-index-card__link) {
  color: var(--vocast-white);
}

html[data-vocast-theme="light"] .vocast-theme-toggle:hover,
html[data-vocast-theme="light"] .vocast-theme-toggle:focus-visible {
	color: var(--vocast-white);
	background: transparent;
}

html[data-vocast-theme="light"] .vocast-work-single .vocast-embed {
  background: #151613;
}

html[data-vocast-theme="light"] .vocast-lab-page-shell .vocast-page-hero .wp-block-cover__background {
  background: var(--vocast-ink) !important;
}

html[data-vocast-theme="light"] .vocast-lab-page-shell .vocast-page-hero {
  background: var(--vocast-ink);
}

html[data-vocast-theme="light"] :is(.vocast-lab-index-card, .vocast-lab-skill, .vocast-lab-channel, .vocast-alumni-card) {
  background: var(--vocast-navy);
}

html[data-vocast-theme="light"] .vocast-alumni-card:hover {
  background: #f8f5e9;
}

html[data-vocast-theme="light"] .vocast-alumni-card__portrait {
  color: #ffbf26;
}

html[data-vocast-theme="light"] :is(.vocast-teaser-player__frame, .vocast-home-player__frame, .vocast-tv-frame__screen, .vocast-radio-panel) {
  background: #0b0c0a;
}

html[data-vocast-theme="light"] :is(.vocast-home-player, .vocast-home-player__head h2, .vocast-teaser-player__head h2) {
  color: var(--vocast-white);
}

html[data-vocast-theme="light"] .vocast-home-player {
  background: var(--vocast-navy);
}

html[data-vocast-theme="light"] .vocast-home-player__head button {
  color: var(--vocast-white);
  background: var(--vocast-ink);
}

html[data-vocast-theme="light"] .site-footer {
  background: var(--vocast-ink) !important;
}
