:root {
    --paper: #f5f0e8;
    --paper-strong: #efe6da;
    --ink: #111318;
    --ink-soft: #454b55;
    --muted: #6f7681;
    --line: rgba(17, 19, 24, 0.14);
    --line-strong: rgba(17, 19, 24, 0.28);
    --panel: rgba(255, 252, 247, 0.72);
    --panel-strong: rgba(255, 252, 247, 0.92);
    --accent: #8a2f2d;
    --accent-soft: #c97358;
    --accent-faint: rgba(138, 47, 45, 0.08);
    --shadow: 0 18px 60px rgba(31, 26, 20, 0.08);
    --equation-surface: linear-gradient(180deg, rgba(255, 252, 247, 0.98) 0%, rgba(240, 233, 222, 0.96) 100%);
    --equation-border: rgba(17, 19, 24, 0.12);
    --equation-ink: #1b2028;
    --code-surface: linear-gradient(180deg, rgba(37, 43, 55, 0.96) 0%, rgba(26, 31, 41, 0.99) 100%);
    --code-ink: #f7f3ed;
    --profile-surface: linear-gradient(180deg, rgba(255, 252, 247, 0.96) 0%, rgba(243, 235, 225, 0.9) 100%);
    --radius: 24px;
    --radius-sm: 16px;
    --content-width: 1220px;
    --article-width: 920px;
    --transition: 180ms ease;
}

html[data-theme="dark"] {
    --paper: #0f141b;
    --paper-strong: #151c25;
    --ink: #edf1f7;
    --ink-soft: #b1bccb;
    --muted: #8f9aad;
    --line: rgba(237, 241, 247, 0.14);
    --line-strong: rgba(237, 241, 247, 0.24);
    --panel: rgba(19, 25, 34, 0.84);
    --panel-strong: rgba(19, 25, 34, 0.96);
    --accent: #ff8c69;
    --accent-soft: #f7b267;
    --accent-faint: rgba(255, 140, 105, 0.1);
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
    --equation-surface: linear-gradient(180deg, rgba(34, 42, 55, 0.96) 0%, rgba(23, 29, 39, 0.98) 100%);
    --equation-border: rgba(237, 241, 247, 0.12);
    --equation-ink: #edf1f7;
    --code-surface: linear-gradient(180deg, rgba(18, 23, 31, 0.98) 0%, rgba(12, 16, 23, 1) 100%);
    --code-ink: #edf1f7;
    --profile-surface: linear-gradient(180deg, rgba(24, 31, 42, 0.98) 0%, rgba(17, 22, 31, 0.92) 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    min-height: 100vh;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    color: var(--ink);
    line-height: 1.7;
    background:
        radial-gradient(circle at top left, rgba(201, 115, 88, 0.18), transparent 22%),
        radial-gradient(circle at bottom right, rgba(138, 47, 45, 0.12), transparent 28%),
        linear-gradient(180deg, #f7f3ed 0%, var(--paper) 100%);
}

html[data-theme="dark"] body {
    background: #0f141b;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(138, 47, 45, 0.35);
    outline-offset: 3px;
}

::selection {
    background: rgba(138, 47, 45, 0.18);
    color: var(--ink);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

img {
    display: block;
    max-width: 100%;
}

mark {
    padding: 0.04em 0.28em;
    border-radius: 0.35rem;
    background: rgba(138, 47, 45, 0.14);
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

code,
pre {
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    background: rgba(247, 243, 237, 0.84);
    border-bottom: 1px solid var(--line);
}

html[data-theme="dark"] header {
    background: rgba(15, 20, 27, 0.84);
}

nav {
    width: min(var(--content-width), 100% - 2.5rem);
    margin: 0 auto;
    padding: 0.9rem 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo img {
    display: block;
    width: auto;
    height: 1.95rem;
    max-width: min(13rem, 42vw);
}

.site-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.site-search-trigger {
    width: 100%;
    min-height: 44px;
    padding: 0.72rem 4.9rem 0.72rem 3rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.9), rgba(247, 242, 233, 0.84));
    color: var(--ink-soft);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.site-search-trigger:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.mobile-search {
    display: none;
}

.mobile-search-shell {
    display: none;
    position: relative;
    width: 42px;
    height: 42px;
    align-self: center;
    transition: width var(--transition);
}

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: none;
    padding: 5rem 1.25rem 1.5rem;
    background: rgba(17, 19, 24, 0.38);
    backdrop-filter: blur(14px);
}

.search-overlay.open {
    display: block;
}

.search-overlay-panel {
    width: min(960px, 100%);
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.search-overlay-head {
    position: relative;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
}

.search-overlay-input {
    width: 100%;
    min-height: 54px;
    padding: 0.95rem 4.2rem 0.95rem 3rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
}

.search-overlay-input:focus {
    outline: none;
    border-color: var(--line-strong);
    box-shadow: 0 0 0 3px var(--accent-faint);
}

.search-overlay-icon {
    position: absolute;
    top: 50%;
    left: 1.95rem;
    width: 1rem;
    height: 1rem;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.search-overlay-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.search-overlay-close {
    position: absolute;
    top: 50%;
    right: 1.65rem;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    color: var(--ink);
    transform: translateY(-50%);
    cursor: pointer;
}

.search-overlay-body {
    max-height: min(68vh, 720px);
    overflow: auto;
    padding: 1rem;
}

.search-overlay-results {
    display: grid;
    gap: 1rem;
}

.search-results-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.search-results-summary strong {
    color: var(--ink);
    font-weight: 700;
}

.search-empty-state {
    display: grid;
    gap: 0.4rem;
    padding: 1rem;
    border: 1px dashed var(--line-strong);
    border-radius: 16px;
    background: var(--panel);
}

.search-empty-state strong {
    color: var(--ink);
}

.desktop-search {
    flex: 0 1 17rem;
    width: min(17rem, 100%);
    max-width: 17rem;
}

.site-search-icon {
    position: absolute;
    left: 1rem;
    width: 1.18rem;
    height: 1.18rem;
    color: var(--muted);
    pointer-events: none;
}

.site-search-icon svg,
.search-page-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.25;
}

html[data-theme="dark"] .site-search-trigger {
    background: linear-gradient(180deg, rgba(24, 31, 42, 0.96), rgba(18, 24, 32, 0.92));
}

.site-search-input {
    width: 100%;
    min-height: 42px;
    padding: 0.72rem 5.75rem 0.72rem 2.6rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 252, 247, 0.82);
    color: var(--ink);
}

.site-search-input::placeholder {
    color: var(--muted);
}

.site-search-input:focus {
    outline: none;
    border-color: var(--line-strong);
    box-shadow: 0 0 0 3px var(--accent-faint);
}

.search-shortcut,
.search-page-shortcut {
    position: absolute;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    pointer-events: none;
}

.search-shortcut {
    color: var(--muted);
}

.search-page-shortcut {
    position: static;
    margin-left: auto;
}

html[data-theme="dark"] .site-search-input {
    background: rgba(19, 25, 34, 0.92);
}

.nav-primary-shell {
    display: grid;
    gap: 0.35rem;
    justify-items: center;
    min-width: 0;
}

.nav-context {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.68rem;
    border-radius: 999px;
    background: rgba(138, 47, 45, 0.08);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-primary {
    min-width: 0;
    padding: 0.42rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(247, 242, 233, 0.88));
    box-shadow: 0 14px 32px rgba(31, 26, 20, 0.08);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    list-style: none;
    color: var(--muted);
}

.nav-links a {
    padding: 0.62rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.nav-search-link {
    border: 1px solid var(--line);
    background: rgba(255, 252, 247, 0.82);
    color: var(--ink);
}

html[data-theme="dark"] .nav-search-link {
    background: rgba(19, 25, 34, 0.92);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
    background: rgba(17, 19, 24, 0.06);
}

.nav-links a.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    color: #fffaf4;
    box-shadow: 0 10px 18px rgba(138, 47, 45, 0.2);
}

html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .nav-links a.active {
    background: rgba(237, 241, 247, 0.08);
}

html[data-theme="dark"] .nav-primary {
    background: linear-gradient(180deg, rgba(21, 28, 37, 0.98), rgba(17, 22, 31, 0.94));
}

html[data-theme="dark"] .nav-links a.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    color: #131922;
}

.nav-utilities {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    align-self: center;
    justify-self: end;
}

.nav-links-panel {
    display: none;
}

.mobile-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 252, 247, 0.82);
    color: var(--ink);
    cursor: pointer;
}

.mobile-search-toggle-icon {
    position: static;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
}

.mobile-search-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 42px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.mobile-search-panel .mobile-search {
    display: flex;
    height: 100%;
}

.mobile-search-panel .site-search-input {
    height: 42px;
    min-height: 42px;
    padding-right: 0.95rem;
}

.mobile-search-panel .search-shortcut {
    display: none;
}

.mobile-search-shell.open {
    width: min(15.5rem, calc(100vw - 8.5rem));
}

.mobile-search-shell.open .mobile-search-toggle {
    display: none;
}

.mobile-search-shell.open .mobile-search-panel {
    opacity: 1;
    pointer-events: auto;
}

html[data-theme="dark"] .mobile-search-toggle {
    background: rgba(19, 25, 34, 0.92);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    align-self: center;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 252, 247, 0.82);
    color: var(--ink);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

html[data-theme="dark"] .theme-toggle {
    background: rgba(19, 25, 34, 0.92);
}

main {
    display: block;
}

.container {
    width: min(var(--content-width), 100% - 2.5rem);
    margin: 0 auto;
}

.hero {
    padding: 3.5rem 0 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 1.5rem;
    align-items: stretch;
}

.hero-grid-single {
    grid-template-columns: 1fr;
}

.hero-copy,
.feature-panel,
.topic-card,
.content-card,
.info-panel,
.article-shell,
.reference-panel,
.topic-focus {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 2.2rem;
    position: relative;
    overflow: hidden;
}

.hero-copy-landing {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4.5rem 3rem 4rem;
    background:
        linear-gradient(180deg, rgba(255, 252, 247, 0.86) 0%, rgba(255, 252, 247, 0.74) 100%);
}

.hero-brand {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-items: center;
}

.hero-name {
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-logo {
    width: min(28rem, 82vw);
    height: auto;
}

.hero-tagline {
    color: var(--muted);
    font-size: 1.3rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy-landing h1 {
    max-width: 11ch;
    font-size: clamp(3.8rem, 7vw, 6.4rem);
    line-height: 0.94;
    margin: 0;
}

.hero-summary {
    max-width: 62ch;
    margin-top: 1.35rem;
    color: var(--ink-soft);
    font-size: 1.08rem;
    line-height: 1.85;
}

html[data-theme="dark"] .hero-copy-landing {
    background: linear-gradient(180deg, rgba(19, 25, 34, 0.96) 0%, rgba(19, 25, 34, 0.88) 100%);
}

html[data-theme="dark"] .home-hero .hero-summary {
    color: rgba(232, 237, 243, 0.82);
}

.home-hero {
    padding: 5.25rem 0 2.75rem;
}

.home-hero-copy {
    width: min(1080px, 100%);
    margin: 0 auto;
    text-align: center;
}

.home-hero .eyebrow {
    color: var(--muted);
}

.home-hero h1 {
    max-width: 15ch;
    margin: 1rem auto 1.2rem;
    font-size: clamp(3.5rem, 8vw, 6.8rem);
    line-height: 0.92;
}

.home-hero .hero-summary {
    margin: 0 auto;
    max-width: 68ch;
    font-size: 1.08rem;
}

.home-hero .hero-actions {
    justify-content: center;
}

.core-areas-section {
    padding: 1rem 0 3.5rem;
}

.core-areas-layout {
    display: grid;
    gap: 1.2rem;
}

.core-areas-lead {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.core-areas-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.flow-step {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--panel-strong);
}

.flow-step strong {
    display: block;
    margin-bottom: 0.35rem;
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.05rem;
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.area-card {
    display: grid;
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-strong);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: transform var(--transition), border-color var(--transition);
}

.area-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.area-card h3 {
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.65rem;
    line-height: 1.02;
}

.area-card p {
    color: var(--ink-soft);
}

.area-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.area-keywords span {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
    font-size: 0.84rem;
}

.hero-copy::before {
    content: "";
    position: absolute;
    inset: auto -10% -20% auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 115, 88, 0.16), transparent 65%);
    pointer-events: none;
}

.eyebrow,
.card-kicker,
.content-meta,
.article-meta {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    font-weight: 700;
}

.hero h1,
.page-title,
.article-title,
.topic-title,
.section-head h2 {
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    letter-spacing: -0.05em;
    line-height: 0.96;
}

.hero h1 {
    font-size: clamp(3.2rem, 6vw, 6rem);
    margin: 1rem 0 1.1rem;
    max-width: 9.5ch;
}

.hero p,
.page-intro,
.article-lead,
.section-head p,
.card-body p,
.content-card p {
    color: var(--ink-soft);
}

.hero p {
    font-size: 1.08rem;
    max-width: 62ch;
}

.hero-copy-landing p {
    max-width: 60ch;
}

.hero-actions,
.inline-links,
.meta-row,
.feature-meta,
.metrics-row,
.topic-stat-row,
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.hero-actions {
    margin-top: 2rem;
    justify-content: center;
}

.button,
.ghost-button,
.filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.82rem 1.18rem;
    font-weight: 600;
    transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.button {
    color: #fffaf4;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
}

.ghost-button,
.filter-button {
    color: var(--ink);
    background: rgba(255, 252, 247, 0.72);
    border-color: var(--line);
}

html[data-theme="dark"] .ghost-button,
html[data-theme="dark"] .filter-button {
    background: rgba(19, 25, 34, 0.92);
}

.button:hover,
.ghost-button:hover,
.filter-button:hover {
    transform: translateY(-2px);
}

.filter-button.active {
    background: var(--ink);
    color: #fffaf4;
    border-color: var(--ink);
}

.meta-row {
    margin-top: 1.25rem;
}

.meta-row span,
.metrics-row span,
.topic-stat-row span,
.content-meta > span,
.article-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
}

.feature-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feature-panel img,
.content-card img,
.topic-card img {
    width: 100%;
    object-fit: cover;
}

.feature-panel img,
.topic-card img,
.content-card img {
    background: linear-gradient(135deg, rgba(138, 47, 45, 0.08), rgba(17, 19, 24, 0.04));
}

.feature-content {
    padding: 1.5rem;
    display: grid;
    gap: 0.9rem;
}

.feature-content h2 {
    font-size: 1.55rem;
    line-height: 1.1;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    color: var(--ink-soft);
}

.feature-list li {
    padding-top: 0.6rem;
    border-top: 1px solid var(--line);
}

.section {
    padding: 1.5rem 0 0.75rem;
}

.section-collapsible {
    padding-top: 0;
}

.collapsible-panel[hidden] {
    display: none;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.3rem;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-head p {
    max-width: 62ch;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem;
}

.domain-grid,
.note-list {
    display: grid;
    gap: 1.2rem;
}

.featured-carousel {
    display: grid;
    gap: 1.15rem;
}

.featured-articles-section {
    padding-top: 0.35rem;
}

.featured-articles-head {
    align-items: start;
}

.featured-articles-title {
    display: grid;
    gap: 0.6rem;
}

.featured-articles-title p {
    max-width: 60ch;
}

.featured-articles-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
    align-self: start;
}

.featured-articles-summary span {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.featured-carousel-shell {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at top left, rgba(201, 115, 88, 0.16), transparent 28%),
        radial-gradient(circle at bottom right, rgba(138, 47, 45, 0.1), transparent 32%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.82), rgba(255, 252, 247, 0.7));
    box-shadow: var(--shadow);
}

.featured-carousel-track {
    display: flex;
    transition: transform 320ms ease;
    will-change: transform;
}

.featured-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.featured-slide-card {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #12161d;
    box-shadow: 0 24px 52px rgba(17, 19, 24, 0.18);
    isolation: isolate;
}

.featured-slide-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 10, 16, 0.1) 0%, rgba(7, 10, 16, 0.3) 34%, rgba(7, 10, 16, 0.82) 100%),
        linear-gradient(90deg, rgba(7, 10, 16, 0.72) 0%, rgba(7, 10, 16, 0.26) 52%, rgba(7, 10, 16, 0.16) 100%);
    z-index: 1;
}

.featured-slide-card:hover {
    transform: translateY(-3px);
}

.featured-slide-media {
    position: absolute;
    inset: 0;
    min-height: 100%;
    overflow: hidden;
    background: rgba(17, 19, 24, 0.04);
}

.featured-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.featured-slide-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 1.55rem;
    color: #f8f5ef;
}

.featured-slide-link:hover {
    color: #ffffff;
}

.featured-slide-copy {
    display: grid;
    align-content: end;
    gap: 0.9rem;
    width: min(760px, 82%);
    padding: 0 0 4rem;
}

.featured-slide-card h3 {
    font-size: clamp(2.05rem, 3.8vw, 3.45rem);
    line-height: 1.02;
    max-width: 16ch;
    text-wrap: balance;
    overflow-wrap: anywhere;
    color: #fffaf2;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.featured-slide-card p {
    max-width: 58ch;
    color: rgba(248, 245, 239, 0.9);
    font-size: 1.08rem;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

.featured-slide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.featured-slide-tags span {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    background: rgba(12, 15, 21, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(248, 245, 239, 0.9);
    font-size: 0.84rem;
    backdrop-filter: blur(8px);
}

.featured-slide-card .content-meta > span {
    background: rgba(12, 15, 21, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(248, 245, 239, 0.92);
    backdrop-filter: blur(8px);
}

.featured-slide-credit {
    position: absolute;
    right: 1.35rem;
    bottom: 1.2rem;
    z-index: 3;
    max-width: min(46ch, calc(100% - 2.7rem));
    color: rgba(248, 245, 239, 0.78);
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: right;
    text-decoration: none;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.28);
}

.featured-slide-credit:hover {
    color: #ffffff;
}

.featured-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.featured-carousel-button {
    min-width: 88px;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    color: var(--ink);
    cursor: pointer;
}

.featured-carousel-button:hover {
    border-color: var(--line-strong);
}

.featured-carousel-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.featured-carousel-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 19, 24, 0.16);
    cursor: pointer;
    transition: transform var(--transition), background var(--transition);
}

.featured-carousel-dot.active {
    background: var(--accent);
    transform: scale(1.15);
}

html[data-theme="dark"] .featured-carousel-dot {
    background: rgba(237, 241, 247, 0.22);
}

html[data-theme="dark"] .featured-carousel-shell {
    background:
        radial-gradient(circle at top left, rgba(255, 140, 105, 0.16), transparent 28%),
        radial-gradient(circle at bottom right, rgba(247, 178, 103, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(19, 25, 34, 0.98), rgba(19, 25, 34, 0.92));
}

.domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.domain-card,
.note-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel-strong);
    padding: 1.35rem;
    position: relative;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow);
}

.note-item-program {
    background:
        linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(247, 242, 233, 0.9));
    border-color: rgba(138, 47, 45, 0.18);
}

.note-item-article {
    background:
        linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(243, 237, 228, 0.88));
    border-color: rgba(17, 19, 24, 0.12);
}

html[data-theme="dark"] .note-item-program {
    background:
        linear-gradient(180deg, rgba(31, 37, 48, 0.98), rgba(23, 29, 38, 0.92));
    border-color: rgba(255, 140, 105, 0.28);
}

html[data-theme="dark"] .note-item-article {
    background:
        linear-gradient(180deg, rgba(20, 26, 35, 0.98), rgba(16, 21, 29, 0.92));
    border-color: rgba(237, 241, 247, 0.12);
}

.domain-card:hover,
.note-item:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.domain-card h3,
.note-item h3 {
    font-size: 1.22rem;
    line-height: 1.15;
    margin: 0.5rem 0 0.6rem;
}

.note-item h3 mark,
.note-item p mark {
    box-shadow: inset 0 -0.55em 0 rgba(138, 47, 45, 0.12);
}

.domain-card p,
.note-item p {
    color: var(--ink-soft);
}

.note-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.note-item-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.note-item-label-dot {
    width: 0.68rem;
    height: 0.68rem;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(138, 47, 45, 0.08);
}

.note-item-label-program {
    color: var(--accent);
}

.note-item-label-article {
    color: var(--ink-soft);
}

.note-item-label-program .note-item-label-dot {
    width: 0.82rem;
    height: 0.82rem;
    box-shadow: 0 0 0 5px rgba(138, 47, 45, 0.12);
}

.note-item-label-article .note-item-label-dot {
    position: relative;
    width: 0.82rem;
    height: 0.92rem;
    border-radius: 0.22rem;
    background: transparent;
    border: 1.4px solid currentColor;
    opacity: 0.82;
    box-shadow: none;
}

.note-item-label-article .note-item-label-dot::after {
    content: "";
    position: absolute;
    left: 0.16rem;
    right: 0.16rem;
    top: 0.2rem;
    height: 1.5px;
    background: currentColor;
    box-shadow: 0 0.18rem 0 currentColor, 0 0.36rem 0 currentColor;
}

.note-item-label-article .note-item-label-dot::before {
    content: "";
    position: absolute;
    top: -1.4px;
    right: -1.4px;
    width: 0.28rem;
    height: 0.28rem;
    background: var(--panel-strong);
    border-top: 1.4px solid currentColor;
    border-right: 1.4px solid currentColor;
    border-top-right-radius: 0.18rem;
}

html[data-theme="dark"] .note-item-label-dot {
    box-shadow: 0 0 0 4px rgba(255, 140, 105, 0.12);
}

html[data-theme="dark"] .note-item-label-program .note-item-label-dot {
    box-shadow: 0 0 0 5px rgba(255, 140, 105, 0.16);
}

html[data-theme="dark"] .note-item-label-article .note-item-label-dot {
    box-shadow: none;
}

.note-item-footer {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding-top: 0.95rem;
    border-top: 1px solid var(--line);
    justify-content: flex-start;
}

.note-item-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.2rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.note-item-program .note-item-action {
    color: var(--accent);
    background: rgba(138, 47, 45, 0.08);
    border-color: rgba(138, 47, 45, 0.2);
}

.note-item-article .note-item-action {
    color: var(--ink);
    background: rgba(17, 19, 24, 0.05);
}

html[data-theme="dark"] .note-item-article .note-item-action {
    background: rgba(237, 241, 247, 0.08);
}

html[data-theme="dark"] .note-item-program .note-item-action {
    background: rgba(255, 140, 105, 0.12);
    border-color: rgba(255, 140, 105, 0.26);
}

.topic-card,
.content-card {
    overflow: hidden;
    height: 100%;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.topic-card:hover,
.content-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: 0 22px 60px rgba(31, 26, 20, 0.12);
}

.topic-card img,
.content-card img {
    height: 220px;
}

.card-body {
    padding: 1.35rem;
    display: grid;
    gap: 0.72rem;
}

.card-body h3 {
    font-size: 1.3rem;
    line-height: 1.12;
}

.content-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.taxonomy-refined {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.65rem;
    align-items: center;
}

.meta-hierarchy,
.meta-type,
.meta-focus,
.meta-kind,
.meta-program {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.meta-hierarchy {
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    color: var(--ink-soft);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
}

.meta-pillar {
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.meta-program {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
}

.meta-separator {
    color: var(--muted);
    font-size: 0.82rem;
}

.meta-type,
.meta-focus,
.meta-kind {
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
}

.meta-type {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.meta-focus,
.meta-kind {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.split-grid,
.info-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.3rem;
}

.info-panel {
    padding: 1.5rem;
}

.profile-panel {
    padding: 0;
    overflow: hidden;
}

.profile-shell {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 0;
    border-radius: inherit;
    overflow: hidden;
}

.profile-image,
.profile-identity {
    padding: 1.7rem;
}

.profile-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--profile-surface);
    overflow: hidden;
}

.profile-image::before {
    content: "";
    position: absolute;
    inset: 1.1rem;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(201, 115, 88, 0.18), transparent 42%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(243, 235, 225, 0.82));
    border: 1px solid rgba(138, 47, 45, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.profile-image::after {
    content: "";
    position: absolute;
    inset: 2rem;
    border-radius: 26px;
    border: 1px dashed rgba(138, 47, 45, 0.18);
    pointer-events: none;
}

.profile-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 200px;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    border-radius: 0;
    border: 1px solid rgba(138, 47, 45, 0.14);
    background: rgba(255, 252, 247, 0.7);
    box-shadow:
        0 22px 40px rgba(31, 26, 20, 0.14),
        0 0 0 10px rgba(255, 252, 247, 0.58);
}

.profile-identity {
    background:
        radial-gradient(circle at top right, rgba(201, 115, 88, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.92) 0%, rgba(255, 252, 247, 0.78) 100%);
}

html[data-theme="dark"] .profile-identity {
    background:
        radial-gradient(circle at top right, rgba(255, 140, 105, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(19, 25, 34, 0.98) 0%, rgba(19, 25, 34, 0.9) 100%);
}

html[data-theme="dark"] .profile-image::before {
    background:
        radial-gradient(circle at top left, rgba(255, 140, 105, 0.18), transparent 42%),
        linear-gradient(180deg, rgba(28, 35, 46, 0.98), rgba(19, 25, 34, 0.92));
    border-color: rgba(247, 178, 103, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .profile-image::after {
    border-color: rgba(247, 178, 103, 0.2);
}

html[data-theme="dark"] .profile-image img {
    border-color: rgba(247, 178, 103, 0.18);
    background: rgba(19, 25, 34, 0.72);
    box-shadow:
        0 24px 46px rgba(0, 0, 0, 0.32),
        0 0 0 10px rgba(24, 31, 42, 0.78);
}

.profile-role {
    margin-top: 0.55rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.profile-identity h3 {
    margin-top: 1.1rem;
    font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
    font-size: 1.35rem;
    line-height: 1.1;
}

.profile-contact {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.profile-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    width: fit-content;
    max-width: 100%;
    padding: 0;
    color: var(--ink);
    font-weight: 600;
}

.profile-contact-link svg {
    width: 1.18rem;
    height: 1.18rem;
    fill: currentColor;
    flex: 0 0 auto;
}

html[data-theme="dark"] .profile-contact-link {
    color: #f4efe5;
}

.info-panel h2,
.topic-focus h3 {
    font-size: 1.5rem;
    line-height: 1.1;
    margin-top: 0.7rem;
}

.info-panel ul,
.article-body ul,
.article-body ol,
.reference-panel ol {
    margin-left: 1.2rem;
}

.info-panel li + li,
.article-body li + li,
.reference-panel li + li {
    margin-top: 0.45rem;
}

.page-shell {
    padding: 3rem 0 4rem;
}

.page-title,
.topic-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin: 0.7rem 0 1rem;
}

.page-intro {
    max-width: 72ch;
    font-size: 1.04rem;
}

.search-input {
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.95rem 6.75rem 0.95rem 3.25rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    color: var(--ink);
}

.search-input:focus {
    outline: 2px solid transparent;
    border-color: var(--accent);
}

.search-input-shell {
    position: relative;
    margin-top: 0.85rem;
}

.search-page-icon {
    position: absolute;
    top: 50%;
    left: 1.1rem;
    width: 1.22rem;
    height: 1.22rem;
    color: var(--muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.search-page-shortcut {
    top: 50%;
    transform: translateY(-50%);
}

.topic-header {
    display: grid;
    gap: 1rem;
    padding: 1.45rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(201, 115, 88, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(247, 242, 233, 0.84));
    box-shadow: var(--shadow);
}

.topic-header-band {
    display: grid;
    gap: 0.9rem;
}

.topic-header-stats,
.topic-header-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.topic-header-stats span,
.topic-header-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.82rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 252, 247, 0.7);
}

.topic-header-stats span {
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topic-header-links a {
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 600;
}

.topic-header-links a:hover {
    border-color: var(--line-strong);
}

html[data-theme="dark"] .topic-header {
    background:
        radial-gradient(circle at top right, rgba(255, 140, 105, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(19, 25, 34, 0.98), rgba(19, 25, 34, 0.9));
}

html[data-theme="dark"] .topic-header-stats span,
html[data-theme="dark"] .topic-header-links a {
    border-color: rgba(247, 178, 103, 0.26);
    background: rgba(30, 38, 50, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .topic-header-stats span {
    color: #f3dfbf;
}

html[data-theme="dark"] .topic-header-links a {
    color: #f4efe5;
}

.topic-layout {
    display: grid;
    gap: 1.5rem;
}

.topic-layout-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
}

.topic-main {
    display: grid;
    gap: 1.5rem;
    min-width: 0;
}

.topic-aside {
    position: sticky;
    top: 5.8rem;
    display: grid;
    gap: 1rem;
}

.topic-aside-card {
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
}

.topic-aside-hierarchy {
    margin-top: 0.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
    color: var(--ink);
    font-size: 0.96rem;
    font-weight: 700;
}

.topic-aside-hierarchy .meta-pillar {
    color: var(--muted);
}

.topic-aside-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.topic-aside-tags span {
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.topic-aside-card-contents {
    display: grid;
    gap: 0.95rem;
}

.topic-aside-groups {
    display: grid;
    gap: 1rem;
    margin-top: 0.95rem;
}

.topic-aside-group {
    display: grid;
    gap: 0.6rem;
}

.topic-aside-group + .topic-aside-group {
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
}

.topic-aside-group-link {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.topic-aside-link-list {
    display: grid;
    gap: 0.55rem;
}

.topic-aside-link {
    display: grid;
    gap: 0.32rem;
    padding: 0.68rem 0.75rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.topic-aside-link:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
}

.topic-aside-link-title {
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
}

.topic-aside-link-type {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html[data-theme="dark"] .topic-aside-group-link {
    color: #f4efe5;
}

html[data-theme="dark"] .topic-aside-link {
    border-color: rgba(247, 178, 103, 0.16);
    background: rgba(27, 34, 45, 0.92);
}

html[data-theme="dark"] .topic-aside-link:hover {
    border-color: rgba(247, 178, 103, 0.34);
    background: rgba(32, 40, 52, 0.96);
}

html[data-theme="dark"] .topic-aside-link-type {
    color: #f3c98f;
}

.article-layout {
    padding: 3rem 0 4rem;
}

.article-layout-grid {
    width: min(var(--content-width), 100% - 2.5rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.5rem;
    align-items: start;
}

.article-shell {
    width: min(var(--article-width), 100%);
    margin: 0;
    padding: 2.3rem;
    background: var(--panel-strong);
}

.article-aside {
    position: sticky;
    top: 5.8rem;
    display: grid;
    gap: 1rem;
}

.article-aside-card {
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
}

.article-aside-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.article-aside-list div {
    display: grid;
    gap: 0.2rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}

.article-aside-list div:first-child {
    padding-top: 0;
    border-top: 0;
}

.article-aside-list dt {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.article-aside-list dd {
    color: var(--ink);
    line-height: 1.5;
}

.article-aside-list dd .meta-hierarchy {
    font-size: 0.88rem;
}

.article-aside-list dd .meta-program {
    font-size: 0.9rem;
}

.article-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.article-keywords span {
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.72rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.page-back-link,
.article-back-link,
.topic-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-start;
    align-self: flex-start;
    justify-self: start;
    width: fit-content;
    max-width: 100%;
    min-height: 3.25rem;
    padding: 0.9rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(138, 47, 45, 0.24);
    background: linear-gradient(135deg, rgba(138, 47, 45, 0.16), rgba(201, 115, 88, 0.09));
    color: var(--ink);
    box-shadow: var(--shadow);
    font-weight: 600;
    transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.page-back-link:hover,
.article-back-link:hover,
.topic-back-link:hover {
    transform: translateY(-2px);
    border-color: rgba(138, 47, 45, 0.38);
    box-shadow: 0 14px 32px rgba(31, 26, 20, 0.12);
}

.page-back-link-icon,
.article-back-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff8f2;
    font-size: 1.02rem;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .page-back-link,
html[data-theme="dark"] .article-back-link,
html[data-theme="dark"] .topic-back-link {
    border-color: rgba(255, 140, 105, 0.28);
    background: linear-gradient(135deg, rgba(255, 140, 105, 0.18), rgba(247, 178, 103, 0.08));
}

.article-title {
    font-size: clamp(2.5rem, 5vw, 4.3rem);
    margin: 0.85rem 0 1rem;
}

.article-meta.taxonomy-refined {
    display: grid;
    gap: 0.75rem;
    align-items: start;
}

.article-meta.taxonomy-refined .meta-hierarchy {
    font-size: 0.95rem;
}

.article-meta.taxonomy-refined .meta-program {
    font-size: 0.98rem;
}

.article-meta.taxonomy-refined .meta-type,
.article-meta.taxonomy-refined .meta-focus {
    justify-self: start;
}

.content-meta.taxonomy-refined {
    gap: 0.42rem 0.55rem;
    margin-bottom: 0.25rem;
}

.content-meta.taxonomy-refined .meta-hierarchy,
.content-meta.taxonomy-refined .meta-kind {
    flex-basis: 100%;
}

.content-meta.taxonomy-refined .meta-hierarchy {
    margin-bottom: 0.05rem;
}

.note-item .content-meta.taxonomy-refined .meta-hierarchy {
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.note-item .content-meta.taxonomy-refined .meta-program {
    font-size: 0.8rem;
}

.note-item .content-meta.taxonomy-refined .meta-type,
.note-item .content-meta.taxonomy-refined .meta-focus,
.note-item .content-meta.taxonomy-refined .meta-kind {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

html[data-theme="dark"] .note-item .content-meta.taxonomy-refined .meta-type,
html[data-theme="dark"] .note-item .content-meta.taxonomy-refined .meta-focus,
html[data-theme="dark"] .note-item .content-meta.taxonomy-refined .meta-kind {
    border-color: rgba(247, 178, 103, 0.22);
    background: rgba(32, 40, 52, 0.92);
}

html[data-theme="dark"] .note-item .content-meta.taxonomy-refined .meta-type {
    color: #f3c98f;
}

html[data-theme="dark"] .note-item .content-meta.taxonomy-refined .meta-focus,
html[data-theme="dark"] .note-item .content-meta.taxonomy-refined .meta-kind,
html[data-theme="dark"] .note-item .content-meta.taxonomy-refined .meta-program,
html[data-theme="dark"] .note-item .content-meta.taxonomy-refined .meta-hierarchy {
    color: #d9e0e8;
}

.article-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.2rem;
    color: var(--muted);
    font-size: 0.95rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.2rem;
}

.article-byline span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.article-lead {
    font-size: 1.08rem;
}

.article-body h2 {
    font-size: 1.5rem;
    margin: 2.2rem 0 0.8rem;
    letter-spacing: -0.03em;
}

.article-body h3 {
    font-size: 1.16rem;
    margin: 1.45rem 0 0.6rem;
}

.article-body p,
.article-body ul,
.article-body ol {
    color: var(--ink-soft);
}

.article-body p + p,
.article-body ul + p,
.article-body pre + p,
.article-body .equation-block + p {
    margin-top: 1rem;
}

.article-figure {
    margin: 1.5rem 0 1.8rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-strong);
}

.article-figure img {
    width: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(138, 47, 45, 0.08), rgba(17, 19, 24, 0.04));
}

.article-figure figcaption {
    margin-top: 0.85rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.article-table-shell {
    margin: 1.15rem 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel-strong);
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.article-table th,
.article-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.article-table th {
    color: var(--accent);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(138, 47, 45, 0.06);
}

.article-table tbody tr:last-child td {
    border-bottom: 0;
}

.article-table td {
    color: var(--ink-soft);
}

.equation-block,
pre {
    margin: 1.1rem 0;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid var(--equation-border);
    background: var(--equation-surface);
    color: var(--equation-ink);
    overflow-x: auto;
}

.equation-block {
    text-align: center;
}

pre {
    background: var(--code-surface);
    color: var(--code-ink);
}

pre code {
    font-size: 0.94rem;
    line-height: 1.65;
}

.note {
    border-left: 3px solid var(--accent);
    padding: 0.9rem 1rem;
    background: rgba(138, 47, 45, 0.08);
    border-radius: 12px;
    color: var(--ink);
    margin: 1.15rem 0;
}

.reference-panel {
    margin-top: 2rem;
    padding: 1.3rem;
    background: var(--panel-strong);
}

.reference-panel a {
    color: var(--accent);
}

.article-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.8rem;
}

.small-text {
    color: var(--muted);
    font-size: 0.95rem;
}

.topic-table {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.1rem;
}

.topic-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
}

.search-layout {
    gap: 1.35rem;
}

.search-support-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.95fr);
    gap: 1.35rem;
}

.search-guide-panel {
    display: grid;
    gap: 1rem;
}

.search-guide-list,
.search-guide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.95rem;
}

.search-guide-list a,
.search-guide-tags span {
    display: inline-flex;
    align-items: center;
    padding: 0.46rem 0.82rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 600;
}

.search-guide-list a:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.about-stat-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.about-stat-strip span {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.about-hero-panel {
    background:
        radial-gradient(circle at top right, rgba(201, 115, 88, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(247, 242, 233, 0.88));
}

html[data-theme="dark"] .about-hero-panel {
    background:
        radial-gradient(circle at top right, rgba(255, 140, 105, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(19, 25, 34, 0.98), rgba(19, 25, 34, 0.92));
}

html[data-theme="dark"] .about-stat-strip span {
    border-color: rgba(247, 178, 103, 0.24);
    background: rgba(30, 38, 50, 0.92);
    color: #f3dfbf;
}

.about-footprint-row > div {
    display: grid;
    gap: 0.45rem;
    align-content: start;
}

.about-row-count {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.32rem 0.64rem;
    border-radius: 999px;
    border: 1px solid rgba(138, 47, 45, 0.18);
    background: rgba(138, 47, 45, 0.08);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html[data-theme="dark"] .about-row-count {
    border-color: rgba(247, 178, 103, 0.24);
    background: rgba(255, 140, 105, 0.14);
    color: #f3c98f;
}

.about-page .grid .info-panel {
    height: 100%;
}

.about-page .profile-identity {
    display: grid;
    align-content: center;
}

footer {
    margin-top: 2rem;
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--line);
}

.site-footer {
    background: transparent;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    color: var(--muted);
}

.footer-links,
.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social {
    align-items: center;
}

.social-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-strong);
    transition: transform var(--transition), border-color var(--transition), color var(--transition);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-link:hover {
    transform: translateY(-2px);
    color: var(--accent);
    border-color: var(--line-strong);
}

.footer-links a:hover,
.reference-panel a:hover {
    color: var(--ink);
}

.mjx-chtml {
    overflow-x: auto;
    overflow-y: hidden;
}

@media (max-width: 1080px) {
    .hero-grid,
    .split-grid,
    .info-grid,
    .profile-shell,
    .grid,
    .grid-4,
    .domain-grid,
    .area-grid,
    .core-areas-flow {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        max-width: 12ch;
    }

    .hero-copy-landing {
        min-height: 460px;
        padding: 3.75rem 2rem 3.25rem;
    }

    .hero-summary {
        max-width: 58ch;
    }

}

@media (max-width: 980px) {
    nav {
        position: relative;
        grid-template-columns: auto auto auto;
    }

    .desktop-search,
    .nav-primary-shell {
        display: none;
    }

    .nav-utilities {
        justify-self: end;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: rgba(255, 252, 247, 0.82);
        color: var(--ink);
        margin-left: 0;
    }

    html[data-theme="dark"] .menu-toggle {
        background: rgba(19, 25, 34, 0.92);
    }

    .nav-links-panel {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 0;
        left: auto;
        width: min(18rem, calc(100vw - 2rem));
        padding: 0.9rem;
        border-radius: 18px;
        border: 1px solid var(--line);
        background: var(--panel-strong);
        display: none;
        box-shadow: var(--shadow);
    }

    .nav-links-panel.open {
        display: grid;
        gap: 0.9rem;
    }

    .mobile-search-shell {
        display: block;
    }

    .theme-toggle,
    .mobile-search-toggle,
    .menu-toggle {
        flex: 0 0 auto;
    }

    .logo {
        min-width: 0;
    }

    .search-overlay {
        padding-top: 4.4rem;
    }

    .nav-links-mobile {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .nav-links-mobile a,
    .nav-links-mobile .nav-search-link {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .featured-slide-card {
        min-height: 420px;
    }

    .featured-slide-link {
        padding: 1rem;
    }

    .featured-slide-copy {
        width: 100%;
        padding-bottom: 4.8rem;
    }

    .featured-slide-card h3 {
        font-size: clamp(1.35rem, 5.6vw, 1.95rem);
        line-height: 1.05;
        max-width: 100%;
    }

    .featured-slide-card p {
        font-size: 0.98rem;
    }

    .featured-slide-credit {
        right: 1rem;
        bottom: 1rem;
        max-width: calc(100% - 2rem);
        font-size: 0.68rem;
    }

    .featured-carousel-controls {
        gap: 0.75rem;
    }

    .featured-carousel-button {
        min-width: 74px;
        padding-inline: 0.85rem;
    }

    .featured-articles-summary {
        justify-content: flex-start;
    }

    .hero-architecture-strip,
    .search-support-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .feature-content,
    .info-panel,
    .article-shell {
        padding: 1.35rem;
    }

    .hero-copy-landing {
        min-height: auto;
        padding: 2.6rem 1.25rem 2.3rem;
    }

    .hero-name {
        font-size: 1.75rem;
    }

    .hero-tagline {
        font-size: 0.74rem;
        letter-spacing: 0.14em;
    }

    .hero-copy-landing h1 {
        max-width: 11.5ch;
        font-size: clamp(2.5rem, 12vw, 3.8rem);
        line-height: 0.98;
    }

    .hero-summary {
        max-width: 34ch;
        margin-top: 1rem;
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-actions {
        width: 100%;
        gap: 0.7rem;
    }

    .hero-actions .button,
    .hero-actions .ghost-button {
        width: 100%;
    }

    .hero {
        padding-top: 2.5rem;
    }

    .hero-architecture-card {
        text-align: left;
    }

    .home-hero {
        padding-top: 3.25rem;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .topic-row {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .footer-grid {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .article-layout-grid,
    .topic-layout-grid {
        grid-template-columns: 1fr;
    }

    .article-aside,
    .topic-aside {
        position: static;
    }

    .topic-header {
        padding: 1.2rem;
    }
}
