/* disc-result.css — Result page styles (renders inside WP theme) */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
    --navy:    #1a3a5c;
    --orange:  #f47920;
    --blue:    #2a6db5;
    --white:   #ffffff;
    --light:   #f4f7fb;
    --border:  #d0dae8;
    --text:    #1a2535;
    --muted:   #5a6a7e;
    --D: #e63946; --I: #f4a261; --S: #2a9d8f; --C: #2a6db5;
    --ease: cubic-bezier(.4,0,.2,1);
    --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }

/* ── Outer wrapper ────────────────────────────────────────── */
.dat-result-wrap {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

/* ── Not Found ────────────────────────────────────────────── */
.dat-notfound-wrap { text-align: center; padding: 60px 20px; }
.dat-notfound__icon { font-size: 64px; color: var(--border); margin-bottom: 20px; display: block; }
.dat-notfound__title { font-family: 'Merriweather', Georgia, serif; font-size: 32px; font-weight: 900; color: var(--navy); margin: 0 0 14px; }
.dat-notfound__text  { color: var(--muted); font-size: 16px; margin: 0 0 28px; line-height: 1.6; }

/* ── Action Bar ───────────────────────────────────────────── */
.dat-action-bar {
    display: flex;
    justify-content: flex-end;
    padding: 12px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.dat-download-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--navy); color: #fff;
    border: none; padding: 8px 18px; border-radius: 6px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: background .18s var(--ease);
}
.dat-download-btn:hover { background: #0f2238; }

/* ── Result Header ────────────────────────────────────────── */
.dat-res-header {
    text-align: center;
    padding: 36px 20px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0;
    margin-top: 12px;
}
.dat-res-eyebrow {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.dat-res-name {
    font-family: 'Merriweather', Georgia, serif;
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 6px;
}
.dat-res-intro { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.dat-res-badge {
    display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
    background: var(--light); border: 1.5px solid var(--border);
    border-radius: var(--radius); padding: 12px 32px;
}
.dat-res-badge__style { font-family: 'Merriweather', Georgia, serif; font-size: 36px; font-weight: 900; letter-spacing: 4px; line-height: 1; }
.dat-res-badge__label { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

/* ── Sections ─────────────────────────────────────────────── */
.dat-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 30px;
    margin-top: 14px;
}
.dat-section__title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 18px;
}
.dat-section__title--center { text-align: center; }
.dat-section__title--accent { font-family: 'Source Sans 3', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); }

/* ── Score Table ──────────────────────────────────────────── */
.dat-score-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dat-score-table thead tr { background: var(--light); }
.dat-score-table th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--border); }
.dat-score-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dat-score-table tr:last-child td { border-bottom: none; }
.dat-disc-key { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff; margin-right: 8px; }
.dat-style-name { font-size: 13px; color: var(--muted); }
.dat-score-num { font-weight: 700; font-size: 16px; color: var(--navy); width: 60px; }
.dat-bar-cell { width: 55%; }
.dat-bar-track { background: #e2e8f0; border-radius: 5px; height: 12px; overflow: hidden; }
.dat-bar-fill  { height: 100%; border-radius: 5px; width: 0; transition: width 1.2s var(--ease); }

/* ── Summary ──────────────────────────────────────────────── */
.dat-summary-section { background: var(--light); }
.dat-summary-intro { text-align: center; font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 22px; max-width: 580px; margin-left: auto; margin-right: auto; }
.dat-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width: 560px) { .dat-profile-grid { grid-template-columns: 1fr; } }
.dat-profile-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; }
.dat-profile-card__tag { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.dat-profile-card__title { font-family: 'Merriweather', Georgia, serif; font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.dat-profile-card p { font-size: 13.5px; line-height: 1.65; color: var(--muted); margin-bottom: 8px; }
.dat-profile-card p:last-child { margin-bottom: 0; }
.dat-label { font-weight: 600; color: var(--text); }

/* ── Model Table ──────────────────────────────────────────── */
.dat-model-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dat-model-table th { background: var(--light); padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--border); }
.dat-model-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--muted); }
.dat-model-table tr:last-child td { border-bottom: none; }

/* ── CTA ──────────────────────────────────────────────────── */
.dat-cta-section { text-align: center; padding: 32px 20px; margin-top: 14px; background: var(--navy); border-radius: var(--radius); }
.dat-cta-text { color: rgba(255,255,255,.7); font-size: 15px; margin-bottom: 20px; line-height: 1.6; }
.dat-cta-text strong { color: #fff; }

/* ── Buttons ──────────────────────────────────────────────── */
.dat-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 32px; border: none; border-radius: 50px; font-family: 'Source Sans 3', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .22s var(--ease); text-decoration: none; }
.dat-btn--primary { background: var(--navy); color: #fff; }
.dat-btn--primary:hover { background: #0f2238; transform: translateY(-2px); }
.dat-btn--orange  { background: var(--orange); color: #fff; }
.dat-btn--orange:hover  { background: #d9640f; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(244,121,32,.35); }

/* ── Modal ────────────────────────────────────────────────── */
.dat-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.65);
    z-index: 99999; display: flex; align-items: center; justify-content: center;
    padding: 20px; backdrop-filter: blur(3px);
}
.dat-modal {
    background: #fff; border-radius: 14px; max-width: 560px; width: 100%;
    padding: 36px; position: relative; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
    animation: slideUp .3s var(--ease);
}
@keyframes slideUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.dat-modal__close { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .15s; }
.dat-modal__close:hover { background: var(--light); }
.dat-modal__title { font-family: 'Merriweather', Georgia, serif; font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 6px; padding-right: 30px; line-height: 1.4; }
.dat-modal__title span { color: var(--blue); }
.dat-modal__sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.dat-modal-msg { padding: 10px 14px; border-radius: 6px; font-size: 14px; margin-bottom: 14px; text-align: center; }
.dat-modal-msg--success { background: #d4edda; color: #155724; }
.dat-modal-msg--error   { background: #f8d7da; color: #721c24; }
.dat-modal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width: 480px) { .dat-modal-fields { grid-template-columns: 1fr; } }
.dat-mfield input, .dat-mfield select {
    width: 100%; padding: 11px 13px;
    border: 1.5px solid var(--border); border-radius: 7px;
    font-family: 'Source Sans 3', sans-serif; font-size: 14px; color: var(--text);
    outline: none; transition: border-color .18s var(--ease);
}
.dat-mfield input:focus, .dat-mfield select:focus { border-color: var(--blue); }
.dat-modal-footer { text-align: center; margin-top: 20px; }

/* ── Print ────────────────────────────────────────────────── */
@media print {
    .dat-action-bar, .dat-cta-section, .dat-modal-overlay { display: none !important; }
    .dat-section { border: 1px solid #ccc !important; box-shadow: none !important; }
}