:root {
    --mag-checklist-bg: #f7f7f4;
    --mag-checklist-surface: #ffffff;
    --mag-checklist-surface-soft: #efefea;
    --mag-checklist-text: #15171a;
    --mag-checklist-text-muted: #62676d;
    --mag-checklist-border: rgba(21, 23, 26, 0.12);
    --mag-checklist-border-strong: rgba(21, 23, 26, 0.2);
    --mag-checklist-accent: #7a4b18;
    --mag-checklist-accent-soft: #f1e5d4;
    --mag-checklist-accent-contrast: #ffffff;
    --mag-checklist-success: #184d3a;
    --mag-checklist-radius-lg: 28px;
    --mag-checklist-radius-md: 20px;
    --mag-checklist-radius-sm: 14px;
    --mag-checklist-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    --mag-checklist-shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.06);
    --mag-checklist-container: 1180px;
}

.mag-checklist-hero__content h1 {
    margin: 0.35rem 0 1rem;
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    line-height: 1.05;
}

.mag-checklist-body h2 {
    font-size: clamp(1.3rem, 2.3vw, 1.95rem);
}

.mag-checklist-section-header h2 {
    margin: 0;
    color: var(--mag-checklist-text);
    font-size: clamp(1.3rem, 2.3vw, 1.95rem);
    font-weight: 780;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.mag-checklist-body h3 {
    font-size: clamp(1.1rem, 2.1vw, 1.65rem);
}

.mag-checklist-dossier-item h3 {
    margin: 0;
    color: var(--mag-checklist-text);
    font-size: clamp(1.1rem, 2.1vw, 1.65rem);
    font-weight: 760;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.mag-checklist-related-card h3 {
    margin: 0;
    color: var(--mag-checklist-text);
    font-size: clamp(1.1rem, 2.1vw, 1.65rem);
    font-weight: 760;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.mag-checklist-kicker {
    margin: 0 0 12px;
    color: var(--mag-checklist-accent);
    font-size: 1rem;
    font-weight: 760;
    letter-spacing: 0.13em;
    line-height: 1.25;
    text-transform: uppercase;
}

.mag-checklist {
    background:
        radial-gradient(circle at top left, rgba(122, 75, 24, 0.12), transparent 34rem),
        linear-gradient(180deg, #fbfbf8 0%, var(--mag-checklist-bg) 44%, #ffffff 100%);
    color: var(--mag-checklist-text);
    min-height: 100vh;
}

.mag-checklist a {
    color: inherit;
    text-decoration: none;
}

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

.mag-checklist-container {
    width: min(var(--mag-checklist-container), calc(100% - 40px));
    margin: 0 auto;
}

.mag-checklist-card-meta {
    margin: 0 0 10px;
    color: var(--mag-checklist-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-transform: uppercase;
}

.mag-checklist-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 34px;
    color: var(--mag-checklist-text-muted);
    font-size: 0.92rem;
    line-height: 1.4;
}

.mag-checklist-breadcrumb a {
    color: var(--mag-checklist-accent);
    font-weight: 740;
}

.mag-checklist-breadcrumb a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.mag-checklist-hero {
    padding: 58px 0 32px;
}

.mag-checklist-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
    align-items: start;
}

.mag-checklist-hero__excerpt {
    max-width: 820px;
    margin: 26px 0 0;
    color: var(--mag-checklist-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 1.9vw, 1.36rem);
    font-style: italic;
    letter-spacing: -0.016em;
    line-height: 1.68;
}

.mag-checklist-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    color: var(--mag-checklist-text-muted);
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.4;
}

.mag-checklist-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--mag-checklist-border);
    border-radius: 999px;
}

.mag-checklist-summary-card {
    padding: 26px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(241, 229, 212, 0.72)),
        var(--mag-checklist-surface);
    border: 1px solid var(--mag-checklist-border);
    border-left: 4px solid var(--mag-checklist-accent);
    border-radius: var(--mag-checklist-radius-md);
    box-shadow: var(--mag-checklist-shadow-soft);
}

.mag-checklist-summary-card__text {
    margin: 0;
    color: var(--mag-checklist-text);
    font-size: 1.02rem;
    letter-spacing: -0.01em;
    line-height: 1.72;
}

.mag-checklist-thread,
.mag-checklist-guide-link {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--mag-checklist-border);
}

.mag-checklist-thread span,
.mag-checklist-guide-link span {
    display: block;
    margin-bottom: 6px;
    color: var(--mag-checklist-text-muted);
    font-size: 0.78rem;
    font-weight: 740;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mag-checklist-thread strong,
.mag-checklist-guide-link a {
    display: block;
    color: var(--mag-checklist-text);
    font-size: 1rem;
    font-weight: 760;
    letter-spacing: -0.02em;
    line-height: 1.42;
}

.mag-checklist-guide-link a {
    color: var(--mag-checklist-accent);
    text-decoration: underline;
    text-underline-offset: 5px;
}

.mag-checklist-cover {
    padding: 0 0 28px;
}

.mag-checklist-cover figure {
    overflow: hidden;
    margin: 0;
    background: var(--mag-checklist-surface);
    border: 1px solid var(--mag-checklist-border);
    border-radius: var(--mag-checklist-radius-lg);
    box-shadow: var(--mag-checklist-shadow);
}

.mag-checklist-cover__media {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--mag-checklist-surface-soft);
}

.mag-checklist-cover img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.mag-checklist-cover figcaption {
    padding: 14px 20px;
    color: var(--mag-checklist-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.mag-checklist-body-section {
    padding: 34px 0 58px;
}

.mag-checklist-reading-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 760px);
    gap: 54px;
    align-items: start;
    justify-content: center;
}

.mag-checklist-reading-tools {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 24px;
}

.mag-checklist-progress-card,
.mag-checklist-completion-card,
.mag-checklist-author-card,
.mag-checklist-dossier-card,
.mag-checklist-angle,
.mag-checklist-instructions,
.mag-checklist-signature,
.mag-checklist-related-card,
.mag-checklist-dossier-item,
.mag-checklist__not-found {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--mag-checklist-border);
    box-shadow: var(--mag-checklist-shadow-soft);
    backdrop-filter: blur(14px);
}

.mag-checklist-progress-card,
.mag-checklist-completion-card {
    padding: 20px;
    border-radius: var(--mag-checklist-radius-md);
}

.mag-checklist-progress {
    overflow: hidden;
    height: 8px;
    background: var(--mag-checklist-surface-soft);
    border-radius: 999px;
}

.mag-checklist-progress span {
    display: block;
    width: 0%;
    height: 100%;
    background: var(--mag-checklist-accent);
    border-radius: inherit;
    transition: width 160ms ease;
}

.mag-checklist-progress-card__label {
    margin: 10px 0 0;
    color: var(--mag-checklist-text-muted);
    font-size: 0.86rem;
    font-weight: 740;
}

.mag-checklist-completion-card strong {
    display: block;
    color: var(--mag-checklist-text);
    font-size: 1.8rem;
    font-weight: 780;
    letter-spacing: -0.055em;
    line-height: 1;
}

.mag-checklist-completion-card span {
    display: block;
    margin-top: 8px;
    color: var(--mag-checklist-text-muted);
    font-size: 0.9rem;
    line-height: 1.52;
}

.mag-checklist-author-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 18px;
    border-radius: var(--mag-checklist-radius-md);
}

.mag-checklist-author-card img,
.mag-checklist-author-card__initial {
    width: 52px;
    height: 52px;
    border-radius: 999px;
}

.mag-checklist-author-card img {
    object-fit: cover;
}

.mag-checklist-author-card__initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mag-checklist-accent);
    color: var(--mag-checklist-accent-contrast);
    font-weight: 780;
}

.mag-checklist-author-card strong {
    display: block;
    color: var(--mag-checklist-text);
    font-size: 0.98rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.mag-checklist-author-card span {
    display: block;
    margin-top: 3px;
    color: var(--mag-checklist-text-muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.mag-checklist-dossier-card {
    padding: 20px;
    border-radius: var(--mag-checklist-radius-md);
}

.mag-checklist-dossier-card strong {
    display: block;
    color: var(--mag-checklist-text);
    font-size: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.35;
}

.mag-checklist-dossier-card p:not(.mag-checklist-card-meta) {
    margin: 10px 0 0;
    color: var(--mag-checklist-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.mag-checklist-home-link {
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--mag-checklist-border);
    border-radius: 999px;
    color: var(--mag-checklist-text);
    font-size: 0.92rem;
    font-weight: 740;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.mag-checklist-home-link:hover {
    transform: translateY(-2px);
    border-color: var(--mag-checklist-border-strong);
    background: #ffffff;
}

.mag-checklist-body-wrap {
    min-width: 0;
}

.mag-checklist-angle,
.mag-checklist-instructions {
    margin-bottom: 22px;
    padding: 22px 24px;
    border-left: 4px solid var(--mag-checklist-accent);
    border-radius: var(--mag-checklist-radius-md);
}

.mag-checklist-angle p:not(.mag-checklist-card-meta) {
    margin: 0;
    color: var(--mag-checklist-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    font-style: italic;
    line-height: 1.72;
}

.mag-checklist-instructions p:not(.mag-checklist-card-meta) {
    margin: 0;
    color: var(--mag-checklist-text-muted);
    font-size: 1rem;
    line-height: 1.72;
}

.mag-checklist-body {
    color: var(--mag-checklist-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.08rem, 1.55vw, 1.22rem);
    letter-spacing: -0.01em;
    line-height: 1.86;
}

.mag-checklist-body > *:first-child {
    margin-top: 0;
}

.mag-checklist-body > *:last-child {
    margin-bottom: 0;
}

.mag-checklist-body p {
    margin: 0 0 1.45em;
}

.mag-checklist-body p:first-child {
    color: var(--mag-checklist-text);
    font-size: 1.15em;
    line-height: 1.78;
}

.mag-checklist-body h2,
.mag-checklist-body h3,
.mag-checklist-body h4 {
    margin: 2em 0 0.7em;
    color: var(--mag-checklist-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 780;
    letter-spacing: -0.045em;
    line-height: 1.1;
}

.mag-checklist-body blockquote {
    margin: 2em 0;
    padding: 22px 26px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(241, 229, 212, 0.7)),
        var(--mag-checklist-surface);
    border: 1px solid var(--mag-checklist-border);
    border-left: 4px solid var(--mag-checklist-accent);
    border-radius: var(--mag-checklist-radius-md);
    color: var(--mag-checklist-text);
    font-size: 1.06em;
    font-style: italic;
    line-height: 1.75;
}

.mag-checklist-body ul,
.mag-checklist-body ol {
    margin: 0 0 1.45em;
    padding-left: 0;
    list-style: none;
}

.mag-checklist-body li {
    position: relative;
    margin: 0 0 0.72em;
    padding: 14px 16px 14px 48px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--mag-checklist-border);
    border-radius: var(--mag-checklist-radius-sm);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    letter-spacing: -0.015em;
    line-height: 1.58;
    cursor: pointer;
}

.mag-checklist-body li::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 16px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--mag-checklist-accent);
    border-radius: 6px;
    background: #ffffff;
}

.mag-checklist-body li:focus-visible {
    outline: 3px solid rgba(122, 75, 24, 0.24);
    outline-offset: 3px;
}

.mag-checklist-body li.mag-checklist-item--checked {
    border-color: rgba(24, 77, 58, 0.26);
    background:
        linear-gradient(135deg, rgba(223, 236, 230, 0.58), rgba(255, 255, 255, 0.88)),
        var(--mag-checklist-surface);
    color: var(--mag-checklist-text-muted);
}

.mag-checklist-body li.mag-checklist-item--checked::before {
    background: var(--mag-checklist-success);
    border-color: var(--mag-checklist-success);
}

.mag-checklist-body li.mag-checklist-item--checked::after {
    content: "";
    position: absolute;
    top: 19px;
    left: 22px;
    width: 6px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.mag-checklist-body a {
    color: var(--mag-checklist-accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.mag-checklist-body hr {
    height: 1px;
    margin: 2.4em 0;
    background: var(--mag-checklist-border);
    border: 0;
}

.mag-checklist-body img {
    height: auto;
    margin: 2em 0;
    border-radius: var(--mag-checklist-radius-md);
}

.mag-checklist-body table {
    display: block;
    overflow-x: auto;
    width: 100%;
    margin: 2em 0;
    border-collapse: collapse;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.96rem;
    line-height: 1.55;
}

.mag-checklist-body th,
.mag-checklist-body td {
    padding: 12px 14px;
    border: 1px solid var(--mag-checklist-border);
    text-align: left;
    vertical-align: top;
}

.mag-checklist-body th {
    background: var(--mag-checklist-accent-soft);
    color: var(--mag-checklist-text);
    font-weight: 760;
}

.mag-checklist-signature {
    margin-top: 42px;
    padding: 26px;
    border-radius: var(--mag-checklist-radius-md);
}

.mag-checklist-signature p:not(.mag-checklist-card-meta) {
    margin: 0;
    color: var(--mag-checklist-text-muted);
    line-height: 1.72;
}

.mag-checklist-dossier,
.mag-checklist-related {
    padding: 44px 0 72px;
}

.mag-checklist-dossier {
    background:
        linear-gradient(180deg, rgba(247, 247, 244, 0.2), rgba(247, 247, 244, 0.72));
}

.mag-checklist-section-header {
    max-width: 760px;
    margin-bottom: 24px;
}

.mag-checklist-dossier-list {
    display: grid;
    gap: 12px;
    max-width: 920px;
}

.mag-checklist-dossier-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 18px;
    border-radius: var(--mag-checklist-radius-md);
}

.mag-checklist-dossier-item--current {
    border-color: rgba(122, 75, 24, 0.34);
    background:
        linear-gradient(135deg, rgba(241, 229, 212, 0.72), rgba(255, 255, 255, 0.86)),
        var(--mag-checklist-surface);
}

.mag-checklist-dossier-item__order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--mag-checklist-accent);
    border-radius: 999px;
    color: var(--mag-checklist-accent-contrast);
    font-size: 0.98rem;
    font-weight: 780;
}

.mag-checklist-dossier-item h3 a,
.mag-checklist-related-card h3 a {
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: background-size 180ms ease;
}

.mag-checklist-dossier-item h3 a:hover,
.mag-checklist-related-card h3 a:hover {
    background-size: 100% 1px;
}

.mag-checklist-dossier-item p:not(.mag-checklist-card-meta),
.mag-checklist-related-card p:not(.mag-checklist-card-meta) {
    margin: 10px 0 0;
    color: var(--mag-checklist-text-muted);
    font-size: 0.96rem;
    line-height: 1.68;
}

.mag-checklist-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mag-checklist-related-card {
    padding: 22px;
    border-radius: var(--mag-checklist-radius-md);
}

.mag-checklist__not-found {
    margin: 80px auto;
    padding: 34px;
    border-radius: var(--mag-checklist-radius-lg);
}

.mag-checklist__not-found h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.06em;
}

.mag-checklist__not-found p:not(.mag-checklist-kicker) {
    max-width: 620px;
    color: var(--mag-checklist-text-muted);
    line-height: 1.7;
}

.mag-checklist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 18px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 720;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        color 180ms ease;
}

.mag-checklist-btn:hover {
    transform: translateY(-2px);
}

.mag-checklist .mag-checklist-btn--primary,
.mag-checklist .mag-checklist-btn--primary:hover,
.mag-checklist .mag-checklist-btn--primary:focus-visible {
    background: var(--mag-checklist-accent);
    color: var(--mag-checklist-accent-contrast) !important;
}

.mag-checklist-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 500ms ease,
        transform 500ms ease;
}

.mag-checklist-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1040px) {
    .mag-checklist-hero__layout,
    .mag-checklist-reading-layout {
        grid-template-columns: 1fr;
    }

    .mag-checklist-reading-tools {
        position: static;
        order: 2;
    }

    .mag-checklist-progress-card {
        display: none;
    }

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

@media (max-width: 720px) {
    .mag-checklist-container {
        width: min(var(--mag-checklist-container), calc(100% - 28px));
    }

    .mag-checklist-hero {
        padding: 42px 0 28px;
    }

    .mag-checklist-breadcrumb {
        margin-bottom: 24px;
    }

    .mag-checklist-hero__layout {
        gap: 28px;
    }

    .mag-checklist-meta span {
        width: 100%;
        justify-content: center;
    }

    .mag-checklist-summary-card {
        padding: 22px;
    }

    .mag-checklist-cover__media {
        aspect-ratio: 16 / 9;
    }

    .mag-checklist-body-section {
        padding: 26px 0 46px;
    }

    .mag-checklist-reading-layout {
        gap: 32px;
    }

    .mag-checklist-body {
        font-size: 1.05rem;
        line-height: 1.78;
    }

    .mag-checklist-body blockquote,
    .mag-checklist-angle,
    .mag-checklist-instructions {
        padding: 18px 20px;
    }

    .mag-checklist-body li {
        padding: 13px 14px 13px 44px;
    }

    .mag-checklist-body li::before {
        left: 14px;
    }

    .mag-checklist-body li.mag-checklist-item--checked::after {
        left: 20px;
    }

    .mag-checklist-dossier,
    .mag-checklist-related {
        padding: 34px 0 54px;
    }

    .mag-checklist-dossier-item {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .mag-checklist-dossier-item__order {
        width: 40px;
        height: 40px;
    }

    .mag-checklist-related-grid {
        grid-template-columns: 1fr;
    }

    .mag-checklist__not-found {
        margin: 54px auto;
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mag-checklist-progress span,
    .mag-checklist-home-link,
    .mag-checklist-dossier-item h3 a,
    .mag-checklist-related-card h3 a,
    .mag-checklist-btn,
    .mag-checklist-reveal {
        transition: none !important;
    }

    .mag-checklist-reveal {
        opacity: 1;
        transform: none;
    }
}
