.learn-article-page {
    --article-bg: #eceeef;
    --article-surface: #ffffff;
    --article-surface-soft: #f6f8fb;
    --article-surface-elevated: #ffffff;
    --article-border: #d8e1ee;
    --article-border-strong: #c8d3e3;
    --article-text: #334155;
    --article-text-secondary: #64748b;
    --article-muted: #8a98ad;
    --article-heading: #0f172f;
    --article-accent: #2563eb;
    --article-accent-deep: #1d4ed8;
    --article-accent-soft: rgba(37, 99, 235, 0.08);
    --article-accent-glow: rgba(37, 99, 235, 0.15);
    --article-code-bg: #111827;
    --article-code-text: #e6edf7;
    --article-table-bg: #eef2f5;
    --article-table-head-bg: #e4e9ef;
    --article-table-row-bg: #f1f4f7;
    --article-table-row-alt: #ebeff3;
    --article-table-border: #d1dae5;
    --article-table-hover: rgba(37, 99, 235, 0.06);
    --article-table-code-bg: #f8fafc;
    --article-table-code-border: #cfd8e5;
    --article-shadow-sm: 0 2px 8px rgba(15, 23, 47, 0.04);
    --article-shadow-md: 0 8px 30px rgba(15, 23, 47, 0.06);
    --article-shadow-lg: 0 20px 50px rgba(15, 23, 47, 0.08);
    --article-shadow-accent: 0 12px 32px rgba(37, 99, 235, 0.18);
    --article-radius-sm: 8px;
    --article-radius-md: 14px;
    --article-radius-lg: 20px;
    --article-radius-xl: 28px;
    --article-max-width: 790px;
    --article-font-heading: "Source Serif 4", var(--font-heading);
    min-height: 100vh;
    padding: 0 0 80px;
    background: var(--article-bg);
    color: var(--article-text);
    line-height: 1.7;
}

html[data-theme="dark"] .learn-article-page {
    --article-bg: #171b21;
    --article-surface: #20252d;
    --article-surface-soft: #262d36;
    --article-surface-elevated: #20252d;
    --article-border: #323a43;
    --article-border-strong: #475569;
    --article-text: #d7dce2;
    --article-text-secondary: #a5adb8;
    --article-muted: #818b97;
    --article-heading: #f3f5f7;
    --article-accent: #7db0ff;
    --article-accent-deep: #a9c7ff;
    --article-accent-soft: rgba(125, 176, 255, 0.1);
    --article-accent-glow: rgba(125, 176, 255, 0.12);
    --article-code-bg: #0d1014;
    --article-code-text: #e8edf5;
    --article-table-bg: #1f252d;
    --article-table-head-bg: #2a323d;
    --article-table-row-bg: #222933;
    --article-table-row-alt: #1d242c;
    --article-table-border: #3a4552;
    --article-table-hover: rgba(125, 176, 255, 0.1);
    --article-table-code-bg: #17202b;
    --article-table-code-border: #3a4552;
    --article-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --article-shadow-md: 0 8px 30px rgba(0, 0, 0, 0.25);
    --article-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.35);
    --article-shadow-accent: 0 12px 32px rgba(37, 99, 235, 0.18);
}

.learn-article-page *,
.learn-article-page *::before,
.learn-article-page *::after {
    box-sizing: border-box;
}

.learn-article-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 0%;
    height: 3px;
    border-radius: 0 2px 2px 0;
    background: linear-gradient(90deg, var(--article-accent), var(--article-accent-deep));
    box-shadow: 0 2px 6px var(--article-accent-glow);
    transition: width 0.1s linear;
}

.learn-article-page-inner {
    width: min(var(--article-max-width), calc(100% - 48px));
    margin: 0 auto;
}

.learn-article-shell {
    width: 100%;
}

.learn-article-rail {
    display: none;
}

.site-ad-slot--rail-right-desktop {
    margin: 0;
}

.learn-article-page a {
    color: var(--article-accent);
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.learn-article-page a:hover {
    color: var(--article-accent-deep);
    text-decoration: underline;
    text-decoration-color: currentColor;
}

.learn-article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 28px 0 0;
    color: var(--article-muted);
    font-size: 0.88rem;
}

.learn-article-breadcrumb a {
    color: var(--article-muted);
    font-weight: 500;
    text-decoration: none;
}

.learn-article-breadcrumb a:hover {
    color: var(--article-heading);
    text-decoration: none;
}

.learn-article-breadcrumb-sep {
    margin: 0 8px;
    color: var(--article-border-strong);
    font-size: 0.75rem;
}

.learn-article-breadcrumb-current {
    color: var(--article-text-secondary);
    font-weight: 500;
}

.learn-article-header {
    position: relative;
    padding: 20px 0 0;
}

.learn-article-title {
    margin: 0 0 20px;
    color: var(--article-heading);
    font-family: var(--article-font-heading);
    font-size: clamp(2.4rem, 6.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.learn-article-lead {
    max-width: 60ch;
    margin: 0 0 24px;
    color: var(--article-text-secondary);
    font-size: 1.18rem;
    font-weight: 400;
    line-height: 1.75;
}

.learn-article-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.learn-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.learn-article-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--article-border);
    border-radius: 999px;
    background: var(--article-surface-soft);
    color: var(--article-text-secondary);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.learn-article-pill-accent {
    border-color: rgba(37, 99, 235, 0.22);
    background: var(--article-accent-soft);
    color: var(--article-accent);
}

.learn-article-pill svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.learn-article-share {
    flex: 0 0 auto;
}

.learn-article-header-divider {
    position: relative;
    height: 1px;
    margin: 36px 0 0;
    background: linear-gradient(90deg, var(--article-border), transparent 80%);
}

.learn-article-header-divider::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    border-radius: 2px;
    background: var(--article-accent);
}

.learn-article-toc {
    margin: 32px 0 40px;
    overflow: hidden;
    border: 1px solid var(--article-border);
    border-radius: var(--article-radius-md);
    background: var(--article-surface-soft);
}

.learn-article-toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    border: 0;
    background: transparent;
    color: var(--article-heading);
    cursor: pointer;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
}

.learn-article-toc-toggle:hover {
    background: var(--article-accent-soft);
}

.learn-article-toc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 18px 14px;
}

.learn-article-toc-list[hidden] {
    display: none;
}

.learn-article-toc-list a {
    padding: 6px 0;
    border-left: 2px solid transparent;
    color: var(--article-text);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.learn-article-toc-list a:hover,
.learn-article-toc-list a:focus {
    padding-left: 8px;
    border-left-color: var(--article-accent);
    color: var(--article-accent);
}

.learn-article-toc-list .learn-article-toc-child {
    margin-left: 14px;
    color: var(--article-text-secondary);
    font-size: 0.86rem;
}

.learn-article-hero-figure {
    position: relative;
    margin: 40px 0 0;
    overflow: hidden;
    border: 1px solid var(--article-border);
    border-radius: var(--article-radius-lg);
    background: var(--article-surface);
    box-shadow: var(--article-shadow-md);
}

.learn-article-hero-figure img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 420px;
    object-fit: cover;
    background: var(--article-surface-soft);
}

.learn-article-image-fallback {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 420px;
    display: grid;
    place-items: center;
    padding: 32px;
    background: #eaf4ff;
    color: #1e3a8a;
    text-align: center;
    font-family: "Segoe UI", var(--font-sans);
    font-weight: 650;
    line-height: 1.12;
}

.learn-article-image-fallback span {
    display: block;
    max-width: 15ch;
    font-size: clamp(2rem, 6vw, 4.3rem);
}

.learn-article-hero-figure figcaption {
    padding: 14px 20px;
    border-top: 1px solid var(--article-border);
    background: var(--article-surface-soft);
    color: var(--article-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    text-align: center;
}

.learn-article-body {
    padding: 48px 0 0;
}

.learn-article-body > :first-child {
    margin-top: 0;
}

.learn-article-body > :last-child {
    margin-bottom: 0;
}

.learn-article-body p,
.learn-article-body ul,
.learn-article-body ol,
.learn-article-body pre,
.learn-article-body .learn-python-code-panel,
.learn-article-body .learn-pair-grid-panel,
.learn-article-body .learn-article-table-wrap,
.learn-article-body figure,
.learn-article-body blockquote {
    margin: 0 0 1.4rem;
}

.learn-article-body p,
.learn-article-body li {
    color: var(--article-text);
    font-size: 1.06rem;
    line-height: 1.82;
}

.learn-article-body p:first-child::first-letter {
    float: left;
    margin: 6px 10px 0 0;
    color: var(--article-accent);
    font-family: var(--font-heading);
    font-size: 3.4em;
    font-weight: 800;
    line-height: 0.8;
}

.learn-article-body ul,
.learn-article-body ol {
    padding-left: 1.5rem;
}

.learn-article-body li {
    margin-bottom: 0.5rem;
}

.learn-article-body li::marker {
    color: var(--article-accent);
}

.learn-article-body h2 {
    position: relative;
    margin: 3.2rem 0 1rem;
    padding-left: 20px;
    color: var(--article-heading);
    font-family: var(--article-font-heading);
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    scroll-margin-top: 100px;
}

.learn-article-body h2::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 4px;
    border-radius: 2px;
    background: var(--article-accent);
}

.learn-article-body h3 {
    margin: 2.2rem 0 0.8rem;
    color: var(--article-heading);
    font-family: var(--article-font-heading);
    font-size: clamp(1.2rem, 1.5vw, 1.38rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    scroll-margin-top: 100px;
}

.learn-article-body h4 {
    margin: 1.8rem 0 0.7rem;
    color: var(--article-heading);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.learn-article-body strong {
    color: var(--article-heading);
    font-weight: 700;
}

.learn-article-body code:not(pre code) {
    padding: 0.12rem 0.45rem;
    border: 1px solid var(--article-border);
    border-radius: 6px;
    background: var(--article-surface-soft);
    color: var(--article-accent);
    font-family: var(--font-mono);
    font-size: 0.9em;
    font-weight: 500;
}

.learn-article-body .katex {
    color: var(--article-heading);
}

.learn-article-body .katex-display {
    margin: 1.7rem 0;
    padding: 0.2rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.learn-article-body pre {
    position: relative;
    padding: 22px 24px;
    overflow-x: auto;
    border: 1px solid #2a3442;
    border-radius: var(--article-radius-md);
    background: var(--article-code-bg);
    color: var(--article-code-text);
    box-shadow: var(--article-shadow-md);
    -webkit-overflow-scrolling: touch;
}

.learn-article-body pre::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 18px 0 0 #22c55e, 36px 0 0 #eab308;
    opacity: 0.68;
}

.learn-article-body pre code {
    display: block;
    padding: 14px 0 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    line-height: 1.72;
    white-space: pre;
}

.learn-article-body .learn-python-code-panel {
    overflow: hidden;
    border: 1px solid var(--article-border);
    border-radius: var(--article-radius-md);
    background:
        linear-gradient(135deg, var(--article-accent-soft), transparent 36%),
        var(--article-surface);
    box-shadow: var(--article-shadow-md);
}

.learn-article-body .learn-python-code-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    padding: 14px 18px;
    color: var(--article-heading);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.learn-article-body .learn-python-code-summary::-webkit-details-marker {
    display: none;
}

.learn-article-body .learn-python-code-summary::after {
    content: "+";
    display: inline-grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--article-border);
    border-radius: 50%;
    background: var(--article-surface-soft);
    color: var(--article-accent);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.learn-article-body .learn-python-code-panel[open] .learn-python-code-summary::after {
    content: "-";
    transform: rotate(180deg);
}

.learn-article-body .learn-python-code-label {
    color: var(--article-heading);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.learn-article-body .learn-python-code-hint {
    margin-left: auto;
    color: var(--article-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.learn-article-body .learn-python-code-panel[open] .learn-python-code-hint {
    font-size: 0;
}

.learn-article-body .learn-python-code-panel[open] .learn-python-code-hint::after {
    content: "Hide code";
    font-size: 0.88rem;
}

.learn-article-body .learn-python-code-panel pre {
    margin: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
}

.learn-article-body .learn-pair-grid-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
    border: 1px solid #2a3442;
    border-radius: var(--article-radius-md);
    background: var(--article-code-bg);
    color: var(--article-code-text);
    box-shadow: var(--article-shadow-md);
}

.learn-article-body .learn-pair-grid-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(230, 237, 247, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.1;
}

.learn-article-body .learn-pair-grid-letter {
    color: var(--article-code-text);
    text-align: center;
}

.learn-article-body .learn-pair-grid-arrow {
    color: var(--article-accent);
    font-size: 0.82rem;
    opacity: 0.9;
}

.learn-article-body blockquote {
    position: relative;
    padding: 24px 28px;
    border: 1px solid var(--article-border);
    border-left: 4px solid var(--article-accent);
    border-radius: var(--article-radius-md);
    background: var(--article-accent-soft);
}

.learn-article-body blockquote::before {
    content: "\201C";
    position: absolute;
    top: 8px;
    left: 16px;
    color: var(--article-accent);
    font-family: Georgia, serif;
    font-size: 3rem;
    line-height: 1;
    opacity: 0.25;
}

.learn-article-body blockquote p {
    margin-bottom: 0.5rem;
    padding-left: 28px;
    color: var(--article-text-secondary);
    font-style: italic;
}

.learn-article-body blockquote p:last-child {
    margin-bottom: 0;
}

.learn-article-body figure {
    overflow: hidden;
    border: 1px solid var(--article-border);
    border-radius: var(--article-radius-md);
    background: var(--article-surface);
    box-shadow: var(--article-shadow-sm);
}

.learn-article-body figure img,
.learn-article-body > img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    background: var(--article-surface-soft);
}

.learn-article-body figcaption {
    padding: 12px 18px;
    border-top: 1px solid var(--article-border);
    background: var(--article-surface-soft);
    color: var(--article-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    text-align: center;
}

.learn-article-body .learn-article-table-wrap {
    overflow-x: auto;
    border-radius: var(--article-radius-sm);
    -webkit-overflow-scrolling: touch;
}

.learn-article-body .learn-article-table {
    width: 100%;
    border: 1px solid var(--article-table-border);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--article-radius-sm);
    background: var(--article-table-bg);
    font-size: 0.95rem;
    box-shadow: 0 10px 28px rgba(15, 23, 47, 0.035);
}

.learn-article-body .learn-article-table thead {
    background: var(--article-table-head-bg);
}

.learn-article-body .learn-article-table th,
.learn-article-body .learn-article-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--article-table-border);
    text-align: left;
}

.learn-article-body .learn-article-table th {
    color: var(--article-heading);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.learn-article-body .learn-article-table td {
    color: var(--article-text);
}

.learn-article-body .learn-article-table tbody tr {
    background: var(--article-table-row-bg);
}

.learn-article-body .learn-article-table tbody tr:nth-child(even) {
    background: var(--article-table-row-alt);
}

.learn-article-body .learn-article-table tbody tr:last-child td {
    border-bottom: none;
}

.learn-article-body .learn-article-table tbody tr:hover {
    background: var(--article-table-hover);
}

.learn-article-body .learn-article-table code:not(pre code) {
    border-color: var(--article-table-code-border);
    background: var(--article-table-code-bg);
}

.learn-article-end-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 52px 0 40px;
}

.learn-article-end-marker span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--article-border-strong);
}

.learn-article-end-marker span:nth-child(2) {
    width: 8px;
    height: 8px;
    background: var(--article-accent);
    opacity: 0.68;
}

.learn-article-tool-cta {
    position: relative;
    margin: 0 0 24px;
    padding: 30px 32px;
    overflow: hidden;
    border: 1px solid var(--article-border);
    border-radius: var(--article-radius-xl);
    background: var(--article-surface-elevated);
    box-shadow: var(--article-shadow-md);
}

.learn-article-tool-cta::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--article-accent-glow), transparent 70%);
    pointer-events: none;
}

.learn-article-tool-cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 28px;
}

.learn-article-tool-cta-text {
    flex: 1;
}

.learn-article-tool-cta h2 {
    margin: 0 0 8px;
    color: var(--article-heading);
    font-family: var(--article-font-heading);
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.learn-article-tool-cta p {
    margin: 0;
    color: var(--article-text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
}

.learn-article-tool-button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 14px;
    background: var(--article-accent);
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: var(--article-shadow-accent);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.learn-article-tool-button:hover {
    background: var(--article-accent-deep);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.learn-article-tool-button svg {
    width: 18px;
    height: 18px;
}

.learn-article-see-also {
    margin: 0;
}

.learn-article-donation-block {
    margin: 0 0 56px;
}

.learn-article-see-also-title {
    margin: 0 0 24px;
    color: var(--article-heading);
    font-family: var(--article-font-heading);
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.learn-article-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.learn-article-see-also .ui-card-link::after {
    display: none;
}

.learn-article-see-also .ui-card-link:hover {
    transform: none;
}

.learn-article-see-also .ui-card-link-description {
    display: -webkit-box;
    overflow: hidden;
    color: var(--article-text-secondary);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.learn-article-see-also .ui-card-link-arrow {
    color: var(--article-text-secondary);
}

.learn-article-back-link {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--article-border);
    color: var(--article-muted);
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 900px) {
    .learn-article-body .learn-pair-grid-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .learn-article-breadcrumb {
        padding: 20px 0 0;
        font-size: 0.84rem;
    }

    .learn-article-header {
        padding: 36px 0 0;
    }

    .learn-article-title {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }

    .learn-article-hero-figure img,
    .learn-article-image-fallback {
        max-height: 260px;
    }

    .learn-article-lead {
        font-size: 1.06rem;
    }

    .learn-article-meta {
        flex: 1 1 auto;
        gap: 8px;
    }

    .learn-article-meta-row {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .learn-article-share {
        align-self: center;
        margin-left: auto;
    }

    .learn-article-pill {
        min-height: 32px;
        padding: 0 11px;
        font-size: 0.8rem;
    }

    .learn-article-body {
        padding: 36px 0 0;
    }

    .learn-article-body p,
    .learn-article-body li {
        font-size: 1rem;
        line-height: 1.75;
    }

    .learn-article-body p:first-child::first-letter {
        font-size: 2.8em;
    }

    .learn-article-body h2 {
        padding-left: 14px;
        font-size: 1.35rem;
    }

    .learn-article-body blockquote {
        padding: 18px 16px;
    }

    .learn-article-body blockquote p {
        padding-left: 20px;
    }

    .learn-article-donation-block {
        margin-bottom: 48px;
    }

    .learn-article-tool-cta {
        padding: 24px 22px;
        border-radius: var(--article-radius-lg);
    }

    .learn-article-tool-cta-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .learn-article-tool-button {
        width: 100%;
        justify-content: center;
    }

    .learn-article-related-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 560px) {
    .learn-article-body .learn-pair-grid-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding: 12px;
    }

    .learn-article-body .learn-pair-grid-item {
        min-height: 32px;
        padding: 7px 8px;
        font-size: 0.84rem;
    }
}

@media (max-width: 420px) {
    .learn-article-page-inner {
        width: calc(100% - 32px);
    }
}

@media (min-width: 1440px) {
    .learn-article-shell.learn-article-shell-has-rail {
        display: grid;
        grid-template-columns: minmax(0, var(--article-max-width)) 180px;
        gap: 40px;
        width: min(calc(var(--article-max-width) + 220px), calc(100% - 48px));
        margin: 0 auto;
        align-items: start;
    }

    .learn-article-shell.learn-article-shell-has-rail .learn-article-page-inner {
        width: 100%;
        margin: 0;
    }

    .learn-article-shell.learn-article-shell-has-rail .learn-article-rail {
        display: block;
        min-width: 0;
    }

    .learn-article-shell.learn-article-shell-has-rail .learn-article-rail .site-ad-slot {
        position: sticky;
        top: 120px;
        margin: 132px 0 0;
    }

    .learn-article-shell.learn-article-shell-has-rail .learn-article-rail .site-ad-slot-box {
        min-height: 600px;
        align-content: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .learn-article-page *,
    .learn-article-page *::before,
    .learn-article-page *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
