.theme-page .hero { padding-bottom: 36px; }
.theme-page .hero-inner { max-width: 780px; }
.theme-page .hero h1 { margin-bottom: 18px; }
.theme-page .lede { max-width: 650px; color: var(--muted); }
.theme-library { padding-top: 12px; }
.theme-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.theme-mode { display: flex; padding: 5px; gap: 5px; border: 1px solid var(--glass-border); border-radius: var(--radius-full); background: var(--surface); }
.theme-mode button { border-radius: var(--radius-full); padding: 11px 24px; color: var(--muted); min-height: 44px; }
.theme-mode button[aria-pressed=true] { background: var(--gold-soft); color: var(--gold-bright); }
[data-theme=light] .theme-mode button[aria-pressed=true] { color: var(--gold-deep); }
.theme-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.theme-section { margin: 0 0 48px; }
.theme-section-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 20px; }
.theme-section-heading h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.theme-section-heading p, .theme-panel p, .theme-caption { color: var(--muted); }
.theme-palette { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.theme-swatch, .theme-panel { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--radius); backdrop-filter: blur(16px); }
.theme-swatch-color { height: 92px; background: var(--swatch); border-bottom: 1px solid var(--glass-border); }
.theme-swatch-info { padding: 16px; display: grid; gap: 6px; }
.theme-swatch-info strong { font-family: var(--font-display); font-size: 1rem; }
.theme-swatch-info code { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; }
.theme-swatch-info button { text-align: left; padding: 5px 0; min-height: 32px; font-family: var(--font-mono); font-size: .8rem; overflow-wrap: anywhere; }
.theme-swatch-info button:hover { color: var(--gold-bright); }
.theme-fonts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.theme-panel { padding: 26px; }
.theme-panel h3 { font-size: 1.25rem; margin-bottom: 12px; }
.theme-font-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-bright); margin-bottom: 14px; }
.theme-font-example { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 18px; overflow-wrap: anywhere; }
.theme-font-body { font-family: var(--font-body); }
.theme-font-mono { font-family: var(--font-mono); }
.theme-details { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.theme-sample-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 12px; }
.theme-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.theme-facts dt { color: var(--muted); font-size: .8rem; margin-bottom: 4px; }
.theme-facts dd { margin: 0; font-family: var(--font-mono); font-size: .85rem; }
.theme-reference-code { margin-top: 18px; max-height: 260px; overflow: auto; padding: 20px; border: 1px solid var(--glass-border); border-radius: var(--radius); background: var(--surface-strong); color: var(--text); font-family: var(--font-mono); font-size: .78rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.theme-status { min-height: 26px; margin-bottom: 16px; color: var(--gold-bright); font-size: .9rem; }
.theme-page :is(button,a):focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (max-width: 800px) { .theme-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); } .theme-fonts, .theme-details { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .theme-panel { padding: 20px; } .theme-actions { width: 100%; } .theme-actions .btn { flex: 1; font-size: .8rem; padding: 12px; } .theme-swatch-info { padding: 12px; } }
