/* Landing-page sections for the Payer Data Ops white paper.
 *
 * Scoped to the `pdow-` prefix and loaded only by
 * /resources/whitepapers/payer-data-ops-cio-cdo-blueprint-cms-0057-f-readiness.
 * The detail template is deliberately light-themed and sets its own type and
 * colour values inline, so these rules repeat those literals rather than
 * reaching for the global tokens, which resolve dark on some surfaces.
 */

.pdow-section {
    padding: 58px 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.pdow-section-alt {
    background: #f8fafc;
}

.pdow-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 14px;
}

.pdow-section h2 {
    font-size: 30px;
    line-height: 1.16;
    letter-spacing: -.7px;
    color: #111827;
    margin: 0 0 14px;
    max-width: 780px;
}

.pdow-lede {
    font-size: 16px;
    line-height: 1.72;
    color: #475569;
    margin: 0 0 32px;
    max-width: 780px;
}

.pdow-note {
    font-size: 12.5px;
    line-height: 1.6;
    color: #64748b;
    margin: 20px 0 0;
    max-width: 860px;
}

/* ---------- Compliance clock ---------- */

.pdow-clock {
    background: #0f172a;
    color: #ffffff;
    padding: 46px 0 50px;
}

.pdow-clock-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 26px;
    margin-bottom: 34px;
}

.pdow-clock-eyebrow {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #60a5fa;
}

.pdow-clock-head p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 720px;
}

.pdow-clock-track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.pdow-clock-track li {
    position: relative;
    padding-top: 22px;
    border-top: 2px solid rgba(148, 163, 184, .35);
}

.pdow-clock-track li::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #64748b;
}

.pdow-clock-track li.is-deadline {
    border-top-color: #60a5fa;
}

.pdow-clock-track li.is-deadline::before {
    background: #60a5fa;
    box-shadow: 0 0 0 5px rgba(96, 165, 250, .22);
}

.pdow-clock-date {
    display: block;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.2px;
    color: #ffffff;
    margin-bottom: 6px;
}

.pdow-clock-track li.is-deadline .pdow-clock-date {
    color: #93c5fd;
}

.pdow-clock-label {
    display: block;
    font-size: 13.5px;
    line-height: 1.5;
    color: #cbd5e1;
}

/* ---------- Research stats ---------- */

.pdow-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.pdow-stat {
    background: #ffffff;
    border: 1px solid #d7dde8;
    border-top: 3px solid #2563eb;
    padding: 24px 22px;
}

.pdow-stat-value {
    display: block;
    font-size: 36px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1.4px;
    color: #111827;
    margin-bottom: 12px;
}

.pdow-stat-label {
    display: block;
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
    margin-bottom: 14px;
}

.pdow-stat-source {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: #64748b;
}

/* ---------- Failure points ---------- */

.pdow-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.pdow-card {
    background: #ffffff;
    border: 1px solid #d7dde8;
    padding: 24px 22px;
}

.pdow-section-alt .pdow-card {
    background: #ffffff;
}

.pdow-card-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 15px;
    margin-bottom: 14px;
}

.pdow-card h3 {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px;
}

.pdow-card p {
    font-size: 14px;
    line-height: 1.62;
    color: #475569;
    margin: 0;
}

/* ---------- Reference architecture ---------- */

.pdow-stack {
    display: grid;
    gap: 14px;
}

.pdow-layer {
    border: 1px solid #d7dde8;
    background: #ffffff;
    padding: 22px 24px;
}

.pdow-layer-core {
    border: 2px solid #2563eb;
    background: #f5f9ff;
    box-shadow: 0 16px 36px -22px rgba(37, 99, 235, .55);
}

.pdow-layer-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 18px;
    margin-bottom: 16px;
}

.pdow-layer-title {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #111827;
    margin: 0;
}

.pdow-layer-core .pdow-layer-title {
    color: #1d4ed8;
}

.pdow-layer-owner {
    font-size: 12.5px;
    color: #64748b;
}

.pdow-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.pdow-chip {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 7px 11px;
}

.pdow-layer-core .pdow-chip {
    color: #1e3a8a;
    background: #ffffff;
    border-color: #bfdbfe;
}

/* ---------- Blueprint phases ---------- */

.pdow-phase-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.pdow-phase {
    background: #ffffff;
    border: 1px solid #d7dde8;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
}

.pdow-phase-meta {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 10px;
}

.pdow-phase h3 {
    font-size: 19px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 10px;
}

.pdow-phase p {
    font-size: 14px;
    line-height: 1.62;
    color: #475569;
    margin: 0 0 18px;
}

.pdow-phase-exit {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed #cbd5e1;
    font-size: 13px;
    line-height: 1.55;
    color: #334155;
}

.pdow-phase-exit strong {
    color: #111827;
    font-weight: 800;
}

/* ---------- Scorecard preview ---------- */

.pdow-table-wrap {
    overflow-x: auto;
    border: 1px solid #d7dde8;
    background: #ffffff;
}

.pdow-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.pdow-table th,
.pdow-table td {
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    line-height: 1.55;
    vertical-align: top;
}

.pdow-table thead th {
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: #475569;
    background: #f8fafc;
}

.pdow-table tbody tr:last-child td {
    border-bottom: 0;
}

.pdow-table td:first-child {
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.pdow-table td:nth-child(2) {
    color: #334155;
}

.pdow-table td:last-child {
    color: #475569;
}

/* ---------- Evidence band ---------- */

.pdow-evidence {
    background: #111827;
    color: #ffffff;
    padding: 54px 0;
}

.pdow-evidence h2 {
    color: #ffffff;
    font-size: 28px;
    line-height: 1.18;
    letter-spacing: -.6px;
    margin: 0 0 12px;
}

.pdow-evidence .pdow-eyebrow {
    color: #60a5fa;
}

.pdow-evidence .pdow-lede {
    color: #cbd5e1;
}

.pdow-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.pdow-metric {
    border-left: 3px solid #60a5fa;
    padding: 4px 0 4px 18px;
}

.pdow-metric-value {
    display: block;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1.2px;
    color: #ffffff;
    margin-bottom: 10px;
}

.pdow-metric-label {
    display: block;
    font-size: 13.5px;
    line-height: 1.55;
    color: #cbd5e1;
}

.pdow-evidence .pdow-note {
    color: #94a3b8;
}

/* ---------- FAQ ---------- */

.pdow-faq {
    max-width: 880px;
    border-top: 1px solid #e5e7eb;
}

.pdow-faq details {
    border-bottom: 1px solid #e5e7eb;
}

.pdow-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 40px 18px 0;
    position: relative;
    font-size: 16.5px;
    font-weight: 800;
    color: #111827;
    line-height: 1.45;
}

.pdow-faq summary::-webkit-details-marker {
    display: none;
}

.pdow-faq summary::after {
    content: '\f067';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 6px;
    top: 20px;
    font-size: 13px;
    color: #2563eb;
    transition: transform .2s ease;
}

.pdow-faq details[open] summary::after {
    content: '\f068';
}

.pdow-faq details p {
    margin: 0;
    padding: 0 40px 20px 0;
    font-size: 15px;
    line-height: 1.72;
    color: #475569;
}

/* ---------- Continue reading ---------- */

.pdow-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pdow-link-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #d7dde8;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.pdow-link-card:hover,
.pdow-link-card:focus-visible {
    border-color: #2563eb;
    box-shadow: 0 14px 30px -18px rgba(15, 23, 42, .32);
    transform: translateY(-2px);
}

.pdow-link-meta {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #2563eb;
}

.pdow-link-card h3 {
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.32;
    color: #111827;
    margin: 0;
}

.pdow-link-card p {
    font-size: 13.5px;
    line-height: 1.58;
    color: #475569;
    margin: 0;
}

/* ---------- Sources ---------- */

.pdow-source-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 28px;
}

.pdow-source-list li {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13.5px;
    line-height: 1.58;
    color: #475569;
}

.pdow-source-list strong {
    color: #111827;
    font-weight: 800;
}

/* ---------- Closing CTA ---------- */

.pdow-cta {
    background: #f5f9ff;
    border-top: 1px solid #dbeafe;
    padding: 52px 0 58px;
}

.pdow-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.pdow-cta h2 {
    margin: 0 0 10px;
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -.6px;
    color: #111827;
    max-width: 620px;
}

.pdow-cta p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #475569;
    max-width: 620px;
}

.pdow-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pdow-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.pdow-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.pdow-btn-primary:hover,
.pdow-btn-primary:focus-visible {
    background: #1d4ed8;
    color: #ffffff;
}

.pdow-btn-ghost {
    background: #ffffff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.pdow-btn-ghost:hover,
.pdow-btn-ghost:focus-visible {
    border-color: #2563eb;
    background: #eff6ff;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .pdow-stat-grid,
    .pdow-phase-grid,
    .pdow-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pdow-card-grid,
    .pdow-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pdow-clock-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 22px;
    }

    .pdow-source-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .pdow-section {
        padding: 44px 0;
    }

    .pdow-section h2 {
        font-size: 25px;
    }

    .pdow-stat-grid,
    .pdow-card-grid,
    .pdow-phase-grid,
    .pdow-metric-grid,
    .pdow-link-grid,
    .pdow-clock-track {
        grid-template-columns: minmax(0, 1fr);
    }

    .pdow-source-list li {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .pdow-cta-actions .pdow-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pdow-link-card,
    .pdow-btn,
    .pdow-faq summary::after {
        transition: none;
    }
}
