.pdb-manual {
    --pdb-green: #073d2c;
    --pdb-green-2: #0b5a3f;
    --pdb-red: #a92d32;
    --pdb-gold: #f0b429;
    --pdb-ink: #18342c;
    --pdb-muted: #5c6b66;
    --pdb-line: #cbd8d2;
    --pdb-soft: #f1f6f3;
    --pdb-warm: #fff7df;
    max-width: 1240px;
    margin: 0 auto 64px;
    color: var(--pdb-ink);
    font-size: 18px;
    line-height: 1.6;
}

.pdb-manual *,
.pdb-manual *::before,
.pdb-manual *::after {
    box-sizing: border-box;
}

.pdb-manual h1,
.pdb-manual h2,
.pdb-manual h3,
.pdb-manual p {
    margin-top: 0;
}

.pdb-manual h1,
.pdb-manual h2,
.pdb-manual h3 {
    color: var(--pdb-green);
    letter-spacing: 0;
    line-height: 1.2;
}

.pdb-manual h1 {
    max-width: 780px;
    margin-bottom: 18px;
    color: #fff;
    font-size: 48px;
}

.pdb-manual h2 {
    margin-bottom: 10px;
    font-size: 34px;
}

.pdb-manual h3 {
    margin-bottom: 10px;
    font-size: 21px;
}

.pdb-manual-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
    gap: 36px;
    align-items: center;
    padding: 48px;
    border: 1px solid #052d20;
    border-radius: 8px;
    background: var(--pdb-green);
    box-shadow: 0 12px 32px rgba(7, 61, 44, 0.16);
}

.pdb-manual-eyebrow,
.pdb-manual-kicker {
    margin-bottom: 9px;
    color: #a73a34;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.pdb-manual-hero .pdb-manual-eyebrow {
    color: #ffcf56 !important;
}

.pdb-manual-lead {
    max-width: 780px;
    margin-bottom: 24px;
    color: #f6fbf8 !important;
    font-size: 21px;
}

.pdb-manual-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.pdb-manual-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 2px solid var(--pdb-green);
    border-radius: 6px;
    background: var(--pdb-green);
    color: #fff !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
}

.pdb-manual-button:hover,
.pdb-manual-button:focus {
    border-color: var(--pdb-red);
    background: var(--pdb-red);
    color: #fff !important;
}

.pdb-button-light {
    border-color: #fff;
    background: #fff;
    color: var(--pdb-green) !important;
}

.pdb-button-gold {
    border-color: var(--pdb-gold);
    background: var(--pdb-gold);
    color: #173b2e !important;
}

.pdb-button-secondary {
    border-color: var(--pdb-green);
    background: #fff;
    color: var(--pdb-green) !important;
}

.pdb-manual-jump {
    display: grid;
    gap: 8px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: #fff;
}

.pdb-manual-jump strong {
    margin-bottom: 4px;
    color: var(--pdb-green);
    font-size: 17px;
}

.pdb-manual-jump a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 40px;
    color: var(--pdb-ink);
    font-size: 16px;
    font-weight: 750;
    text-decoration: none;
}

.pdb-manual-jump a:hover,
.pdb-manual-jump a:focus {
    color: var(--pdb-red);
}

.pdb-manual-jump span,
.pdb-step-number,
.pdb-flow-step > span,
.pdb-review-sequence article > span,
.pdb-path-grid a > span {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    border-radius: 50%;
    background: var(--pdb-gold);
    color: #173b2e;
    font-size: 15px;
    font-weight: 900;
}

.pdb-manual-section {
    padding: 48px 0;
    border-bottom: 1px solid var(--pdb-line);
    scroll-margin-top: 32px;
}

.pdb-section-tinted {
    margin-right: -28px;
    margin-left: -28px;
    padding-right: 28px;
    padding-left: 28px;
    background: var(--pdb-soft);
}

.pdb-manual-section-heading {
    max-width: 900px;
    margin-bottom: 28px;
}

.pdb-manual-section-heading > p:last-child {
    margin-bottom: 0;
    color: var(--pdb-muted);
    font-size: 19px;
}

.pdb-manual-steps {
    display: grid;
    gap: 16px;
}

.pdb-three-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pdb-four-columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pdb-manual-step,
.pdb-photo-paths > article,
.pdb-status-grid > article {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--pdb-line);
    border-radius: 8px;
    background: #fff;
}

.pdb-manual-step p:last-child,
.pdb-photo-paths p:last-child,
.pdb-status-grid p:last-child {
    margin-bottom: 0;
}

.pdb-step-number {
    margin-bottom: 16px;
}

.pdb-expect,
.pdb-wide-expect,
.pdb-manual-note {
    padding: 14px 16px;
    border-left: 4px solid var(--pdb-gold);
    background: var(--pdb-warm);
    color: #4a3a11;
    font-size: 16px;
}

.pdb-expect {
    margin-top: 16px;
}

.pdb-wide-expect,
.pdb-manual-note {
    margin-top: 22px;
}

.pdb-manual-note {
    border-left-color: var(--pdb-red);
    background: #fff3f3;
    color: #662226;
}

.pdb-section-actions {
    margin-top: 24px;
}

.pdb-manual-flow,
.pdb-review-sequence {
    display: grid;
    gap: 0;
    border: 1px solid var(--pdb-line);
    border-radius: 8px;
    background: #fff;
}

.pdb-flow-step,
.pdb-review-sequence article {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px;
    border-bottom: 1px solid var(--pdb-line);
}

.pdb-flow-step:last-child,
.pdb-review-sequence article:last-child {
    border-bottom: 0;
}

.pdb-flow-step > div,
.pdb-review-sequence article > div {
    min-width: 0;
}

.pdb-flow-step p,
.pdb-review-sequence p {
    margin-bottom: 0;
}

.pdb-flow-step .pdb-expect {
    margin-top: 12px;
}

.pdb-required-step {
    border-left: 5px solid var(--pdb-red);
}

.pdb-required-step h3 em {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f7d7d8;
    color: #7f2025;
    font-size: 13px;
    font-style: normal;
    text-transform: uppercase;
}

.pdb-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.pdb-status {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 9px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 850;
}

.pdb-status.pending { background: #fff0bd; color: #634a00; }
.pdb-status.approved { background: #d7eee1; color: #0b5338; }
.pdb-status.hold { background: #e6ebf3; color: #34495f; }
.pdb-status.rejected { background: #f7d7d8; color: #7f2025; }

.pdb-path-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.pdb-path-grid a {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 5px 12px;
    align-content: start;
    min-width: 0;
    padding: 20px;
    border: 2px solid var(--pdb-line);
    border-radius: 8px;
    background: #fff;
    color: var(--pdb-ink);
    text-decoration: none;
}

.pdb-path-grid a:hover,
.pdb-path-grid a:focus {
    border-color: var(--pdb-red);
    color: var(--pdb-ink);
}

.pdb-path-grid a > span {
    grid-row: 1 / span 2;
}

.pdb-path-grid strong {
    color: var(--pdb-green);
    font-size: 18px;
}

.pdb-path-grid small {
    color: var(--pdb-muted);
    font-size: 15px;
    line-height: 1.45;
}

.pdb-action-table {
    display: grid;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--pdb-line);
    border-radius: 8px;
    background: #fff;
}

.pdb-action-row {
    display: grid;
    grid-template-columns: minmax(180px, .75fr) minmax(240px, 1.2fr) minmax(240px, 1fr);
    gap: 18px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--pdb-line);
}

.pdb-action-row:last-child {
    border-bottom: 0;
}

.pdb-action-head {
    background: var(--pdb-green);
    color: #fff;
}

.pdb-action-row b {
    color: var(--pdb-green);
}

.pdb-compare-example {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1.25fr;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 22px;
    padding: 16px;
    border: 3px solid #d35a5e;
    border-radius: 8px;
    background: #fff;
}

.pdb-compare-example > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--pdb-line);
    border-radius: 6px;
    background: #fff;
}

.pdb-example-title span,
.pdb-example-title strong,
.pdb-compare-example small,
.pdb-compare-example b {
    display: block;
}

.pdb-example-title span {
    color: var(--pdb-red);
    font-size: 14px;
    font-weight: 850;
    text-transform: uppercase;
}

.pdb-compare-example small {
    margin-bottom: 4px;
    color: var(--pdb-muted);
    font-size: 13px;
    text-transform: uppercase;
}

.pdb-example-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pdb-example-actions button {
    flex: 1 1 auto;
    min-height: 34px;
    padding: 7px 9px;
    border: 0;
    border-radius: 5px;
    background: var(--pdb-green);
    color: #fff;
    font-weight: 750;
    opacity: 1;
}

.pdb-photo-paths {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.pdb-photo-paths ol {
    margin: 0 0 0 24px;
}

.pdb-photo-paths li {
    margin-bottom: 8px;
}

.pdb-final-checklist ol {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: pdb-check;
}

.pdb-final-checklist li {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--pdb-line);
    border-top: 5px solid var(--pdb-gold);
    border-radius: 8px;
    background: #fff;
    counter-increment: pdb-check;
}

.pdb-final-checklist li::before {
    content: counter(pdb-check);
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--pdb-green);
    color: #fff;
    font-size: 14px;
    font-weight: 850;
}

@media (max-width: 1050px) {
    .pdb-four-columns,
    .pdb-path-grid,
    .pdb-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pdb-final-checklist ol {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 780px) {
    .pdb-manual {
        margin-bottom: 36px;
        font-size: 17px;
    }

    .pdb-manual-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 22px;
    }

    .pdb-manual h1 {
        font-size: 36px;
    }

    .pdb-manual h2 {
        font-size: 29px;
    }

    .pdb-manual-lead {
        font-size: 18px;
    }

    .pdb-manual-section {
        padding: 36px 0;
    }

    .pdb-section-tinted {
        margin-right: -16px;
        margin-left: -16px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .pdb-three-columns,
    .pdb-four-columns,
    .pdb-path-grid,
    .pdb-status-grid,
    .pdb-photo-paths,
    .pdb-final-checklist ol,
    .pdb-compare-example {
        grid-template-columns: 1fr;
    }

    .pdb-action-row,
    .pdb-action-head {
        grid-template-columns: 1fr;
    }

    .pdb-action-head {
        display: none;
    }

    .pdb-action-row {
        gap: 8px;
        padding: 20px;
    }

    .pdb-manual-button {
        width: 100%;
    }
}

@media print {
    .pdb-manual {
        max-width: none;
        margin: 0;
        color: #000;
        font-size: 12pt;
    }

    .pdb-manual-hero {
        display: block;
        padding: 24px;
        border: 2px solid #000;
        background: #fff;
        box-shadow: none;
    }

    .pdb-manual h1,
    .pdb-manual-hero .pdb-manual-eyebrow,
    .pdb-manual-lead {
        color: #000;
    }

    .pdb-manual-jump,
    .pdb-manual-actions,
    .site-header,
    .site-footer,
    #wpadminbar {
        display: none !important;
    }

    .pdb-manual-section,
    .pdb-manual-step,
    .pdb-flow-step,
    .pdb-photo-paths > article,
    .pdb-action-row {
        break-inside: avoid;
    }
}
