/* Public shell shared by the homepage and content libraries. */
:root {
    color-scheme: dark;
    --home-bg: #101114;
    --home-surface: #191a1f;
    --home-soft: #202127;
    --home-section: #15161b;
    --home-border: #34353f;
    --home-border-strong: #50515e;
    --home-text: #f1f0f5;
    --home-muted: #aaa9b9;
    --home-accent: #b9a2ff;
    --home-primary: #6842dc;
    --home-tint: #282139;
    --home-shadow: 0 20px 60px #0004;
    --home-card-shadow: 0 2px 6px #0001;
}
html[data-home-theme="light"] {
    color-scheme: light;
    --home-bg: #f3f4f8;
    --home-surface: #fff;
    --home-soft: #eef0f6;
    --home-section: #e9ecf3;
    --home-border: #b8bfd0;
    --home-border-strong: #939db6;
    --home-text: #252239;
    --home-muted: #5e5b70;
    --home-accent: #6239d1;
    --home-primary: #6239d1;
    --home-tint: #ece6fb;
    --home-shadow: 0 20px 60px #24213b12;
    --home-card-shadow: 0 2px 3px #1f263d0d, 0 5px 14px #1f263d08;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; background: var(--home-bg); }
body { margin: 0; }
.mp-public { color: var(--home-text); background: var(--home-bg); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.mp-public [hidden] { display: none !important; }
.mp-public :is(h1,h2,h3,p,figure) { margin: 0; }
.mp-public a { color: inherit; text-decoration: none; }
.mp-public :is(button,summary) { color: inherit; font: inherit; cursor: pointer; }
.mp-public :is(a,button,summary):focus-visible { outline: 2px solid var(--home-accent); outline-offset: 4px; }
.mp-public img { max-width: 100%; display: block; }
.mp-public svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mp-public .mp-arrow { transform: rotate(180deg); }
.mp-wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.mp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mp-skip { position: fixed; top: -80px; left: 20px; padding: 12px 20px; z-index: 100; border-radius: 8px; background: var(--home-surface); }
.mp-skip:focus { top: 12px; }
.mp-header { position: sticky; top: 0; z-index: 40; background: var(--home-bg); border-bottom: 1px solid var(--home-border); }
.mp-header-inner { display: flex; align-items: center; gap: 32px; min-height: 92px; }
.mp-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 800; line-height: 1.1; letter-spacing: -.7px; flex-shrink: 0; }
.mp-brand-art { display: block; width: 206px; }
.mp-brand-art img { width: 100%; height: auto; }
.mp-brand-art .mp-brand-light { display: none; }
html[data-home-theme="light"] .mp-brand-art .mp-brand-light { display: block; }
html[data-home-theme="light"] .mp-brand-art .mp-brand-dark { display: none; }
.mp-brand small { display: block; margin-top: 7px; color: var(--home-muted); font-size: 8px; font-weight: 600; letter-spacing: 1.6px; }
.mp-nav { display: flex; gap: 28px; margin: 0 auto; }
.mp-nav > a { font-size: 13px; font-weight: 500; color: var(--home-muted); padding-block: 12px; }
.mp-nav > a:hover { color: var(--home-accent); }
.mp-header-actions { display: flex; align-items: center; gap: 14px; }
.mp-themes { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--home-border); border-radius: 9px; }
.mp-themes button { border: 0; background: transparent; color: var(--home-muted); border-radius: 6px; width: 31px; height: 31px; display: grid; place-items: center; padding: 0; }
.mp-themes button[aria-pressed="true"] { color: var(--home-accent); background: var(--home-tint); }
.mp-themes svg { width: 16px; height: 16px; }
.mp-account { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 13px; border: 1px solid var(--home-border); border-radius: 8px; background: var(--home-surface); font-size: 12px; font-weight: 600; }
.mp-account:hover { border-color: var(--home-accent); }
.mp-account svg { width: 16px; height: 16px; }
.mp-language { position: relative; font-size: 11px; }
.mp-language summary { display: flex; align-items: center; gap: 4px; padding-block: 10px; list-style: none; }
.mp-language summary::-webkit-details-marker { display: none; }
.mp-language svg { width: 12px; height: 12px; }
.mp-language nav { position: absolute; top: 100%; right: -10px; min-width: 145px; display: grid; padding: 6px; background: var(--home-surface); border: 1px solid var(--home-border); border-radius: 9px; box-shadow: var(--home-shadow); }
.mp-language nav a { padding: 8px 10px; border-radius: 4px; font-size: 13px; }
.mp-language nav a:hover,.mp-language nav a[aria-current] { background: var(--home-tint); color: var(--home-accent); }
.mp-menu-button { display: none; padding: 9px; line-height: 1; border: 1px solid var(--home-border); border-radius: 8px; background: var(--home-surface); }
.mp-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--home-accent); font-size: 10px; letter-spacing: .12em; font-weight: 700; line-height: 1.6; }
.mp-eyebrow > span { width: 22px; height: 2px; background: currentColor; flex-shrink: 0; }
.mp-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.mp-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 47px; padding: 12px 18px; border: 1px solid var(--home-border); border-radius: 9px; background: var(--home-surface); font-size: 12px; font-weight: 650; line-height: 1.5; transition: border-color .15s, background-color .15s; }
.mp-button:hover { border-color: var(--home-accent); background: var(--home-soft); }
.mp-button.mp-primary { color: #fff; background: var(--home-primary); border-color: var(--home-primary); }
.mp-button.mp-primary:hover { background: #5730be; border-color: #5730be; }
.mp-button svg { width: 16px; height: 16px; }
.mp-footer { padding-block: 36px; border-top: 1px solid var(--home-border); }
.mp-footer > div { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.mp-footer .mp-brand { font-size: 17px; }
.mp-footer p { color: var(--home-muted); font-size: 11px; }
.mp-footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; font-size: 11px; }
.mp-footer nav a:hover { color: var(--home-accent); }
.mp-footer small { color: var(--home-muted); font-size: 10px; }
@media (max-width: 1140px) {
    .mp-header-inner { gap: 20px; }
    .mp-nav { gap: 20px; }
    .mp-brand { font-size: 18px; }
    .mp-header-actions { gap: 10px; }
}
@media (max-width: 940px) {
    html { scroll-padding-top: 92px; }
    .mp-wrap { width: calc(100% - 48px); }
    .mp-header-inner { min-height: 80px; flex-wrap: wrap; justify-content: space-between; gap: 0; }
    .mp-nav { order: 3; width: 100%; justify-content: center; padding-bottom: 10px; }
    .home-js .mp-nav { display: none; }
    .home-js .mp-nav.is-open { display: flex; }
    .mp-menu-button { display: inline-flex; }
    .mp-footer nav { margin-left: 0; }
}
@media (max-width: 600px) {
    .mp-wrap { width: calc(100% - 36px); }
    .mp-header-inner { min-height: 76px; }
    .mp-brand-art { width: 150px; }
    .mp-brand { font-size: 15px; gap: 7px; letter-spacing: -.5px; }
    .mp-brand small { font-size: 5px; letter-spacing: .85px; margin-top: 5px; }
    .mp-header-actions { gap: 7px; }
    .mp-header-actions .mp-account { padding: 8px; min-height: 35px; }
    .mp-header-actions .mp-account span { display: none; }
    .mp-account::after { content: ""; }
    .mp-header-actions .mp-account { gap: 0; }
    .mp-themes { padding: 2px; }
    .mp-themes button { width: 26px; height: 29px; }
    .mp-menu-button { padding: 8px 6px; }
    .mp-menu-button svg { width: 18px; height: 18px; }
    .mp-language { font-size: 10px; }
    .mp-language summary { gap: 1px; }
    .mp-language svg { width: 10px; height: 10px; }
    .mp-nav { padding: 14px 0 20px; gap: 8px; flex-direction: column; align-items: stretch; }
    .mp-nav a { padding: 10px 14px; border: 1px solid var(--home-border); border-radius: 7px; background: var(--home-surface); }
    .mp-eyebrow { font-size: 8px; letter-spacing: .1em; gap: 8px; }
    .mp-eyebrow > span { width: 15px; }
    .mp-button { padding: 11px 13px; font-size: 11px; min-height: 44px; }
    .mp-footer { padding-block: 28px; }
    .mp-footer > div { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 360px) {
    .mp-wrap { width: calc(100% - 28px); }
    .mp-header .mp-brand-art { width: 112px; }
    .mp-header-actions { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.mp-public { min-width: 0; min-height: 100vh; }
.mp-public > main { min-height: 55vh; }
.mp-public :is(input,select,textarea) { font: inherit; color: var(--home-text); accent-color: var(--home-primary); }
.mp-content-nav { border-bottom: 1px solid var(--home-border); background: var(--home-surface); }
.mp-content-nav > div { display: flex; gap: 6px; padding-block: 8px; }
.mp-content-nav a { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; font-size: 13px; border: 1px solid transparent; border-radius: 8px; color: var(--home-muted); }
.mp-content-nav a[aria-current] { background: var(--home-tint); border-color: var(--home-border); color: var(--home-accent); font-weight: 650; }
.mp-content-nav a:hover { color: var(--home-accent); background: var(--home-soft); }
.mp-content-nav svg { width: 17px; height: 17px; }
@media (max-width: 600px) {
    .mp-content-nav > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
    .mp-content-nav a { font-size: 12px; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { .mp-public * { transition: none !important; } }
