/* -----------------------------------------------------------
   Closeout Checklist — printable worksheet
   Screen + print styles. @media print hides site chrome and
   forces US Letter layout so "File > Print > Save as PDF"
   produces a clean standalone document.
   ----------------------------------------------------------- */

.cleat-coc-wrap {
    max-width: 8.5in;
    margin: 1.5rem auto 3rem;
    padding: 0 1rem;
    color: #1f2937;
    font-size: 10.5pt;
    line-height: 1.45;
}

/* On-screen-only toolbar */
.cleat-coc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #FFF4ED;
    border: 1px solid #FFD0B5;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.cleat-coc-toolbar p {
    margin: 0;
    font-size: 0.9rem;
    color: #7A3A16;
}

.cleat-coc-toolbar button {
    background: #FF5A1F;
    color: #fff;
    border: 0;
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}
.cleat-coc-toolbar button:hover { background: #E24808; }

/* Document sheet */
.cleat-coc-doc {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 0.6in 0.55in;
    border-radius: 4px;
    border-top: 6px solid #FF5A1F;
}

/* Brand bar — logo + wordmark + tagline above the title */
.cleat-coc-brandbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: -0.1rem 0 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #F3D7C5;
}
.cleat-coc-brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.cleat-coc-brand-mark {
    width: 26px;
    height: 26px;
    display: block;
}
.cleat-coc-brand-word {
    font-size: 16pt;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: #2B3340;
    line-height: 1;
}
.cleat-coc-brand-tag {
    font-size: 9pt;
    color: #7A3A16;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Header */
.cleat-coc-header {
    border-bottom: 2px solid #2B3340;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}
.cleat-coc-header h1 {
    font-size: 20pt;
    font-weight: 800;
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
    color: #2B3340;
}
.cleat-coc-header .cleat-coc-sub {
    margin: 0;
    font-size: 9.5pt;
    color: #5A6472;
}

/* Fillable project info block */
.cleat-coc-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1.25rem;
    margin: 0.85rem 0 1.25rem;
    font-size: 10pt;
}
.cleat-coc-meta .cleat-coc-field {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}
.cleat-coc-meta .cleat-coc-label {
    font-weight: 700;
    color: #2B3340;
    white-space: nowrap;
}
.cleat-coc-meta .cleat-coc-line {
    flex: 1;
    border-bottom: 1px solid #6B7280;
    min-height: 1.1rem;
}

/* Section */
.cleat-coc-section {
    margin: 1rem 0 0.9rem;
    page-break-inside: avoid;
    break-inside: avoid;
}
.cleat-coc-section h2 {
    font-size: 12pt;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: #2B3340;
    padding: 0.4rem 0.7rem;
    margin: 0 0 0.5rem;
    border-radius: 3px;
}
.cleat-coc-section h2 .cleat-coc-num {
    display: inline-block;
    color: #FF5A1F;
    margin-right: 0.4rem;
    font-weight: 900;
}
.cleat-coc-section .cleat-coc-intro {
    font-size: 9.5pt;
    color: #4b5563;
    margin: 0 0 0.55rem;
    padding-left: 0.1rem;
}

/* Checklist items */
.cleat-coc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cleat-coc-list li {
    position: relative;
    padding: 0.25rem 0 0.25rem 1.6rem;
    font-size: 10pt;
    line-height: 1.4;
    break-inside: avoid;
}
.cleat-coc-list li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.35rem;
    width: 11pt;
    height: 11pt;
    border: 1.25pt solid #2B3340;
    border-radius: 2px;
    background: #fff;
}
.cleat-coc-list li strong {
    color: #2B3340;
}
.cleat-coc-list li .cleat-coc-note {
    display: block;
    font-size: 9pt;
    color: #6B7280;
    margin-top: 0.1rem;
}

/* Two-column list for dense sections */
.cleat-coc-list--2col {
    columns: 2;
    column-gap: 1.5rem;
}
.cleat-coc-list--2col li { break-inside: avoid; }

/* Signature block */
.cleat-coc-signoff {
    margin-top: 1.25rem;
    padding-top: 0.9rem;
    border-top: 2px solid #2B3340;
    page-break-inside: avoid;
    break-inside: avoid;
}
.cleat-coc-signoff h2 {
    font-size: 11pt;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #2B3340;
    margin: 0 0 0.75rem;
}
.cleat-coc-sign-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
}
.cleat-coc-sign-block .cleat-coc-sign-line {
    border-bottom: 1px solid #2B3340;
    height: 1.75rem;
    margin-bottom: 0.2rem;
}
.cleat-coc-sign-block .cleat-coc-sign-caption {
    font-size: 8.5pt;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.cleat-coc-sign-block .cleat-coc-sign-role {
    font-size: 9.5pt;
    font-weight: 700;
    color: #2B3340;
    margin-top: 0.2rem;
}

/* Document footer */
.cleat-coc-footer {
    margin-top: 1.25rem;
    padding-top: 0.55rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    font-size: 8.5pt;
    color: #6B7280;
}
.cleat-coc-footer strong { color: #2B3340; }
.cleat-coc-footer a {
    color: #FF5A1F;
    text-decoration: none;
    font-weight: 600;
}

/* -----------------------------------------------------------
   Print rules
   ----------------------------------------------------------- */
@media print {
    @page { size: letter; margin: 0.5in; }

    html, body { background: #fff !important; }

    /* Hide everything that isn't the document */
    .cleat-navbar,
    .cleat-footer,
    nav, header > nav, footer,
    .cleat-coc-toolbar {
        display: none !important;
    }

    .cleat-coc-wrap {
        margin: 0;
        padding: 0;
        max-width: none;
    }
    .cleat-coc-doc {
        border: 0;
        padding: 0;
        border-radius: 0;
    }

    .cleat-coc-section { page-break-inside: avoid; }
    .cleat-coc-list li { page-break-inside: avoid; }
    .cleat-coc-signoff { page-break-inside: avoid; }

    /* Ensure coloured elements actually print */
    .cleat-coc-section h2,
    .cleat-coc-doc,
    .cleat-coc-brandbar,
    .cleat-coc-brand-mark,
    .cleat-coc-footer a {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
