:root {
    --det-guide-green: #2d5f4d;
    --det-guide-green-dark: #1f4739;
    --det-guide-yellow: #fee863;
    --det-guide-cream: #f5f2e8;
    --det-guide-paper: #fffdf8;
    --det-guide-card: #ffffff;
    --det-guide-ink: #17231e;
    --det-guide-muted: #526159;
    --det-guide-faint: #718078;
    --det-guide-border: #ded8c8;
    --det-guide-soft: #edf3ef;
}

.det-guide-page {
    background: var(--det-guide-paper);
    color: var(--det-guide-ink);
    font-family: 'Poppins', sans-serif;
}

.det-guide-shell {
    margin: 0 auto;
    width: min(1180px, calc(100% - 40px));
}

.det-guide-hero {
    background:
        radial-gradient(circle at 88% 12%, rgba(254, 232, 99, .24), transparent 26rem),
        var(--det-guide-cream);
    border-bottom: 1px solid var(--det-guide-border);
    padding: 58px 0 48px;
}

.det-guide-breadcrumbs {
    color: var(--det-guide-faint);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 7px;
    margin-bottom: 22px;
}

.det-guide-breadcrumbs a {
    color: var(--det-guide-green);
    text-decoration: none;
}

.det-guide-eyebrow,
.det-guide-kicker,
.det-guide-resources-label,
.det-guide-task-label {
    color: var(--det-guide-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.det-guide-hero h1 {
    color: var(--det-guide-ink);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: .99;
    margin: 12px 0 18px;
    max-width: 930px;
}

.det-guide-lede {
    color: var(--det-guide-muted);
    font-size: 19px;
    line-height: 1.6;
    margin: 0;
    max-width: 820px;
}

.det-guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.det-guide-btn {
    align-items: center;
    border: 1px solid var(--det-guide-green);
    border-radius: 7px;
    color: var(--det-guide-green);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.det-guide-btn-primary {
    background: var(--det-guide-green);
    color: #fff;
}

.det-guide-btn:hover {
    background: var(--det-guide-green-dark);
    color: #fff;
    transform: translateY(-1px);
}

.det-guide-btn:focus,
.det-guide-btn:focus-visible,
.det-guide-page a:focus,
.det-guide-page a:focus-visible {
    outline: 2px solid var(--det-guide-green);
    outline-offset: 3px;
}

.det-guide-layout {
    display: grid;
    gap: 52px;
    grid-template-columns: minmax(0, 1fr) 250px;
    padding: 48px 0 68px;
}

.det-guide-content {
    min-width: 0;
}

.det-guide-section {
    padding: 0 0 46px;
    scroll-margin-top: 86px;
}

.det-guide-section + .det-guide-section {
    border-top: 1px solid var(--det-guide-border);
    padding-top: 42px;
}

.det-guide-section h2 {
    color: var(--det-guide-ink);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.2;
    margin: 8px 0 13px;
}

.det-guide-section h3 {
    color: var(--det-guide-ink);
    font-size: 20px;
    letter-spacing: -.015em;
    line-height: 1.3;
    margin: 26px 0 8px;
}

.det-guide-section p,
.det-guide-section li {
    color: var(--det-guide-muted);
    font-size: 16px;
    line-height: 1.7;
}

.det-guide-section p {
    margin: 12px 0;
}

.det-guide-section ul,
.det-guide-section ol {
    margin: 14px 0 0;
    padding-left: 22px;
}

.det-guide-section li + li {
    margin-top: 7px;
}

.det-guide-section a {
    color: var(--det-guide-green);
    font-weight: 700;
}

.det-guide-source-note {
    border-left: 3px solid var(--det-guide-yellow);
    font-size: 14px !important;
    padding-left: 14px;
}

.det-guide-card-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
}

.det-guide-card {
    background: var(--det-guide-card);
    border: 1px solid var(--det-guide-border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: space-between;
    min-height: 250px;
    padding: 21px;
}

.det-guide-card span {
    color: var(--det-guide-faint);
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.det-guide-card h3 {
    font-size: 21px;
    margin: 12px 0 8px;
}

.det-guide-card p {
    font-size: 14px;
    line-height: 1.58;
    margin: 0;
}

.det-guide-card > a,
.det-guide-card footer a {
    align-items: center;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 7px;
    text-transform: uppercase;
}

.det-guide-facts {
    background: var(--det-guide-card);
    border: 1px solid var(--det-guide-border);
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0 4px;
    overflow: hidden;
}

.det-guide-fact {
    min-width: 0;
    padding: 20px;
}

.det-guide-fact + .det-guide-fact {
    border-left: 1px solid var(--det-guide-border);
}

.det-guide-fact span,
.det-guide-fact small {
    color: var(--det-guide-faint);
    display: block;
    font-size: 11px;
    line-height: 1.45;
}

.det-guide-fact span {
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.det-guide-fact strong {
    color: var(--det-guide-ink);
    display: block;
    font-size: 21px;
    line-height: 1.25;
    margin: 9px 0 7px;
}

.det-guide-table-wrap {
    border: 1px solid var(--det-guide-border);
    border-radius: 10px;
    margin-top: 22px;
    overflow-x: auto;
}

.det-guide-table {
    border-collapse: collapse;
    min-width: 690px;
    width: 100%;
}

.det-guide-table th,
.det-guide-table td {
    border-bottom: 1px solid var(--det-guide-border);
    padding: 15px 17px;
    text-align: left;
    vertical-align: top;
}

.det-guide-table th {
    background: var(--det-guide-soft);
    color: var(--det-guide-ink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.det-guide-table td {
    background: var(--det-guide-card);
    color: var(--det-guide-muted);
    font-size: 14px;
    line-height: 1.55;
}

.det-guide-table tr:last-child td {
    border-bottom: 0;
}

.det-guide-callout {
    background: linear-gradient(135deg, var(--det-guide-soft), var(--det-guide-card));
    border: 1px solid rgba(45, 95, 77, .22);
    border-radius: 10px;
    margin-top: 24px;
    padding: 21px;
}

.det-guide-callout strong {
    color: var(--det-guide-green-dark);
    display: block;
    font-size: 17px;
}

.det-guide-callout p:last-child {
    margin-bottom: 0;
}

.det-guide-task-group + .det-guide-task-group {
    border-top: 1px solid var(--det-guide-border);
    margin-top: 28px;
    padding-top: 32px;
}

.det-guide-task-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.det-guide-task-card {
    background: var(--det-guide-card);
    border: 1px solid var(--det-guide-border);
    border-radius: 10px;
    padding: 19px;
}

.det-guide-task-card h3 {
    font-size: 19px;
    margin: 7px 0 9px;
}

.det-guide-task-card p {
    font-size: 14px;
    line-height: 1.58;
    margin: 0 0 14px;
}

.det-guide-task-card dl {
    display: grid;
    gap: 7px;
    margin: 0;
}

.det-guide-task-card dl > div {
    display: grid;
    gap: 10px;
    grid-template-columns: 76px minmax(0, 1fr);
}

.det-guide-task-card dt {
    color: var(--det-guide-faint);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.det-guide-task-card dd {
    color: var(--det-guide-muted);
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

.det-guide-task-card footer {
    border-top: 1px solid var(--det-guide-border);
    margin-top: 15px;
    padding-top: 13px;
}

.det-guide-score-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 20px;
}

.det-guide-score-card {
    background: var(--det-guide-card);
    border: 1px solid var(--det-guide-border);
    border-radius: 9px;
    padding: 17px;
}

.det-guide-score-card strong {
    color: var(--det-guide-green-dark);
    display: block;
    font-size: 16px;
}

.det-guide-score-card small {
    color: var(--det-guide-faint);
    display: block;
    font-size: 12px;
    line-height: 1.45;
    margin-top: 6px;
}

.det-guide-checklist {
    display: grid;
    gap: 10px;
    list-style: none;
    padding: 0 !important;
}

.det-guide-checklist li {
    background: var(--det-guide-card);
    border: 1px solid var(--det-guide-border);
    border-radius: 9px;
    padding: 14px 16px 14px 45px;
    position: relative;
}

.det-guide-checklist li::before {
    align-items: center;
    background: var(--det-guide-soft);
    border-radius: 50%;
    color: var(--det-guide-green);
    content: '✓';
    display: flex;
    font-size: 13px;
    font-weight: 800;
    height: 22px;
    justify-content: center;
    left: 14px;
    position: absolute;
    top: 15px;
    width: 22px;
}

.det-guide-toc {
    align-self: start;
    background: var(--det-guide-card);
    border: 1px solid var(--det-guide-border);
    border-radius: 10px;
    display: grid;
    gap: 9px;
    padding: 18px;
    position: sticky;
    top: 84px;
}

.det-guide-toc strong {
    color: var(--det-guide-ink);
    font-size: 11px;
    letter-spacing: .06em;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.det-guide-toc a {
    color: var(--det-guide-muted);
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
}

.det-guide-toc a:hover {
    color: var(--det-guide-green);
}

.det-guide-related {
    background: var(--det-guide-cream);
    border-top: 1px solid var(--det-guide-border);
    padding: 42px 0 48px;
}

.det-guide-related h2 {
    color: var(--det-guide-ink);
    font-size: 25px;
    margin: 0 0 20px;
}

.det-guide-related-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.det-guide-related-card {
    background: var(--det-guide-card);
    border: 1px solid var(--det-guide-border);
    border-radius: 9px;
    display: block;
    min-height: 136px;
    padding: 18px;
    text-decoration: none;
}

.det-guide-related-card strong,
.det-guide-related-card span {
    display: block;
}

.det-guide-related-card strong {
    color: var(--det-guide-green);
    font-size: 15px;
}

.det-guide-related-card span {
    color: var(--det-guide-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-top: 8px;
}

.det-guide-resources {
    background: var(--det-guide-paper);
    border-top: 1px solid var(--det-guide-border);
    padding: 28px 0;
}

.det-guide-resources-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    margin-top: 12px;
}

.det-guide-resources-links a {
    color: var(--det-guide-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.det-guide-resources-links a:hover {
    color: var(--det-guide-green);
}

.det-guide-legal {
    background: var(--det-guide-green-dark);
    color: rgba(255, 255, 255, .76);
    font-size: 12px;
    line-height: 1.55;
    padding: 16px 0;
}

body.dark-mode .det-guide-page {
    --det-guide-green: #9bc49b;
    --det-guide-green-dark: #b9d8c1;
    --det-guide-cream: #141b17;
    --det-guide-paper: #101512;
    --det-guide-card: #19211c;
    --det-guide-ink: #eef3ef;
    --det-guide-muted: #b0bcb5;
    --det-guide-faint: #8d9b93;
    --det-guide-border: #34443b;
    --det-guide-soft: #202a24;
}

body.dark-mode .det-guide-hero {
    background:
        radial-gradient(circle at 88% 12%, rgba(254, 232, 99, .08), transparent 26rem),
        linear-gradient(145deg, #17201b, #111713);
}

body.dark-mode .det-guide-btn-primary {
    background: #376f58;
    border-color: #7dab91;
    color: #fff;
}

body.dark-mode .det-guide-btn:hover {
    background: #467b64;
    color: #fff;
}

body.dark-mode .det-guide-callout {
    border-color: #426050;
}

body.dark-mode .det-guide-callout strong,
body.dark-mode .det-guide-score-card strong {
    color: #b9d8c1;
}

body.dark-mode .det-guide-legal {
    background: #0b100d;
}

@media (max-width: 960px) {
    .det-guide-layout {
        gap: 28px;
        grid-template-columns: 1fr;
    }

    .det-guide-toc {
        grid-row: 1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        position: static;
    }

    .det-guide-toc strong {
        grid-column: 1 / -1;
    }

    .det-guide-card-grid,
    .det-guide-score-grid,
    .det-guide-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .det-guide-shell {
        width: min(100% - 28px, 1180px);
    }

    .det-guide-hero {
        padding: 38px 0 34px;
    }

    .det-guide-hero h1 {
        font-size: 42px;
    }

    .det-guide-lede {
        font-size: 17px;
    }

    .det-guide-actions,
    .det-guide-btn {
        width: 100%;
    }

    .det-guide-layout {
        padding-top: 28px;
    }

    .det-guide-toc,
    .det-guide-card-grid,
    .det-guide-facts,
    .det-guide-task-grid,
    .det-guide-score-grid,
    .det-guide-related-grid {
        grid-template-columns: 1fr;
    }

    .det-guide-fact + .det-guide-fact {
        border-left: 0;
        border-top: 1px solid var(--det-guide-border);
    }

    .det-guide-card {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .det-guide-btn {
        transition: none;
    }

    .det-guide-btn:hover {
        transform: none;
    }
}
