/* Website profile: native WordPress components share Theme B semantic tokens. */
body.single-post .wp-site-blocks > header:has([data-rentclub-header]) { background: var(--rc-surface-canvas); }
body.single-post .rent-club-article { background: var(--rc-surface-canvas) !important; }
body { background: var(--rc-surface-canvas); color: var(--rc-text-primary); }
body.home { --rc-paper: var(--rc-surface-canvas); --rc-paper-alt: var(--rc-surface-sunken); --rc-paper-white: var(--rc-surface-card); --rc-paper-ink: var(--rc-text-primary); --rc-paper-graphite: var(--rc-text-secondary); --rc-paper-muted: var(--rc-text-muted); --rc-paper-line: var(--rc-border-subtle); }
/* Existing inverse sections remain inverse in either page theme. */
.rentclub-header-panel, .rentclub-footer, .rent-club-footer {
  --wp--preset--color--surface: var(--rc-surface-inverse);
  --wp--preset--color--background: var(--rc-surface-inverse);
  --wp--preset--color--foreground: var(--rc-text-inverse);
  --wp--preset--color--secondary-0: var(--rc-text-inverse);
  --wp--preset--color--secondary-100: var(--rc-action-inverse-foreground);
  --wp--preset--color--accent: var(--rc-action-inverse);
  background: var(--rc-surface-inverse); color: var(--rc-text-inverse);
}
.rentclub-header-shell .rent-club-button--primary,
.rentclub-header-shell .rentclub-telegram-link {
  background: var(--rc-action-inverse); color: var(--rc-action-inverse-foreground);
}
.rentclub-header-shell .rent-club-button--primary:hover,
.rentclub-header-shell .rentclub-telegram-link:hover {
  background: var(--rc-text-inverse-secondary); color: var(--rc-action-inverse-foreground);
}
.rentclub-header-shell .rentclub-mobile-cta,
body.home .rent-club-main .rent-club-button--primary,
body.home .rent-club-main .wp-element-button,
.rent-club-editorial-cta .rent-club-button {
  background: var(--rc-action-primary); color: var(--rc-action-primary-foreground);
}
body.home .rent-club-main .rent-club-button--primary:hover,
body.home .rent-club-main .wp-element-button:hover,
.rentclub-header-shell .rentclub-mobile-cta:hover {
  background: var(--rc-action-primary-hover); color: var(--rc-action-primary-foreground) !important;
}
/* The published video hero retains its approved inverse CTA and film overlay. */
.rc-video-hero .rhv-hero {
  --rhv-ink: var(--rc-surface-inverse);
  --rhv-paper: var(--rc-text-inverse);
}
body.home .rent-club-hero .rent-club-button--primary,
body.home .rent-club-hero .wp-element-button {
  background: var(--rc-action-inverse); color: var(--rc-action-inverse-foreground);
}
body.home .rent-club-hero .rent-club-button--primary:hover,
body.home .rent-club-hero .wp-element-button:hover {
  background: var(--rc-text-inverse-secondary); color: var(--rc-action-inverse-foreground) !important;
}
:is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--rc-focus-ring); outline-offset: 4px; }
.rentclub-mobile-sheet { background: var(--rc-surface-raised); color: var(--rc-text-primary); }
.rentclub-mobile-layer { background: var(--rc-overlay-scrim); }
.rentclub-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--rc-border-inverse);
  border-radius: var(--rc-radius-pill); background: transparent; color: var(--rc-text-inverse); cursor: pointer;
}
.rentclub-theme-toggle[hidden] { display: none; }
.rentclub-theme-toggle:hover { background: var(--rc-action-inverse); color: var(--rc-action-inverse-foreground); }
.rentclub-theme-toggle:focus-visible { outline: 2px solid var(--rc-brand-on-inverse); outline-offset: 3px; }
.rentclub-theme-toggle__sun, [data-theme="dark"] .rentclub-theme-toggle__moon { display: none; }
[data-theme="dark"] .rentclub-theme-toggle__sun { display: block; }
@media (max-width: 600px) { .rentclub-header-actions { gap: 4px; } .rentclub-header-panel { column-gap: 8px; } }
.rentclub-mobile-nav a.is-current { color: var(--rc-state-active); }
.rent-club-article, .rent-club-catalog { background: var(--rc-surface-canvas); }
.rent-club-article-toc, .rent-club-editorial-cta { background: var(--rc-surface-section); }

.rentclub-header-shell .rent-club-button.rentclub-mobile-cta{background:var(--rc-action-primary);color:var(--rc-action-primary-foreground)}
body.home .rhv-hero .rhv-cta,body.home .rhv-cta{background:var(--rc-action-inverse);color:var(--rc-action-inverse-foreground)}
body.home .rhv-cta:hover{background:var(--rc-text-inverse-secondary)!important;color:var(--rc-action-inverse-foreground)!important}

.rentclub-header-panel,.rhv-hero,.rent-club-hero,.rhv-cta{--rc-button-background:var(--rc-action-inverse);--rc-button-foreground:var(--rc-action-inverse-foreground)}
.rentclub-mobile-sheet{--rc-button-background:var(--rc-action-primary);--rc-button-foreground:var(--rc-action-primary-foreground)}
body.home .rent-club-main .rent-club-button:hover{background:var(--rc-action-primary-hover)!important;color:var(--rc-action-primary-foreground)!important}
body.home .rent-club-main .rhv-cta:hover{background:var(--rc-text-inverse-secondary)!important;color:var(--rc-action-inverse-foreground)!important}

/* Scroll animation may retain colours resolved before the theme switch. */
body.home .rent-club-blog {
  background-color: var(--rc-surface-card) !important;
  color: var(--rc-text-primary) !important;
}
/* The illustrated library follows the active Theme B palette. */
body.home #rent-club-valera .library-title em,
body.home #rent-club-valera .arrival h2 em {
  color: var(--rc-brand-accent);
}
body.home #rent-club-valera .card-meta { color: var(--rc-text-secondary); }

/* Editorial surfaces and inverse feature cards share the same colour roles. */
.rent-club-editorial {
  --wp--custom--editorial--lavender: var(--rc-surface-section);
  --wp--custom--editorial--paper: var(--rc-surface-canvas);
  --wp--custom--editorial--line: var(--rc-border-subtle);
  color-scheme: light dark;
}
.rent-club-editorial :is(.rent-club-blog-hero, .rent-club-editorial-speakers, .rent-club-article-related__speakers),
.rent-club-editorial .rent-club-blog-list .wp-block-post:first-child {
  --wp--preset--color--secondary-100: var(--rc-surface-inverse);
  --wp--preset--color--secondary-0: var(--rc-text-inverse);
  --wp--preset--color--secondary-20: var(--rc-text-inverse-secondary);
  --wp--preset--color--orange-100: var(--rc-brand-on-inverse);
  --wp--preset--color--purple-100: var(--rc-brand-on-inverse);
  background-color: var(--rc-surface-inverse);
  color: var(--rc-text-inverse);
}
.rent-club-editorial .rent-club-button {
  --rc-button-background: var(--rc-action-primary);
  --rc-button-foreground: var(--rc-action-primary-foreground);
  background: var(--rc-action-primary);
  color: var(--rc-action-primary-foreground);
}
/* Existing Gutenberg primary-button rule is marked important. */
.rent-club-editorial .rent-club-button.wp-block-button__link {
  color: var(--rc-action-primary-foreground) !important;
}
/* WordPress may add line breaks between the three summary grid cells. */
#rent-club-program.rc-monthly-program .program-event summary > br { display: none; }
