/* Quant Resumes (/resumes)
   The panel shell, blue hero band, overlapping video and splotch backdrop all
   come from roadmap.css + learning_hub_brand.css via the roadmap-desktop /
   roadmap-mobile classes, and the space backdrop plus logged-out shell come
   from public_page_shell.css. This file only adds the resume template card. */

/* ------------------------------------------------------------
   1. Resume template card
   ------------------------------------------------------------ */

.rsm-template-card {
    display: grid;
    gap: 1.75rem;
    align-items: center;
    padding: 1.75rem;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.16);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.rsm-template-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

/* Quant Guild blue glow (the PHF research card uses gold; this one is blue). */
.rsm-template-image-wrap {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    line-height: 0;
    background: #ffffff;
    border: 2px solid rgba(37, 99, 235, 0.32);
    box-shadow:
        0 10px 28px rgba(0, 74, 173, 0.16),
        0 2px 8px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.rsm-template-image-wrap:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 104, 216, 0.55);
    box-shadow:
        0 18px 44px rgba(0, 74, 173, 0.28),
        0 6px 16px rgba(15, 23, 42, 0.1),
        0 0 30px rgba(96, 165, 250, 0.45);
}

.rsm-template-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Hint that the preview opens full size — the thumbnail is legible but the
   real page is where you actually read the wording. */
.rsm-template-zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.rsm-template-image-wrap:hover .rsm-template-zoom,
.rsm-template-image-wrap:focus-visible .rsm-template-zoom {
    opacity: 1;
    transform: translateY(0);
}

.rsm-template-body {
    min-width: 0;
}

.rsm-template-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.28);
    color: #047857;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rsm-template-heading {
    margin: 0.9rem 0 0.55rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f2f6b;
}

.rsm-template-desc {
    margin: 0 0 1.15rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
}

.rsm-template-list {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.rsm-template-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #334155;
}

.rsm-template-list i {
    flex-shrink: 0;
    margin-top: 0.15rem;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 9px;
}

.rsm-template-cta {
    padding: 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(96, 165, 250, 0.07));
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.rsm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 1.7rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 74, 173, 0.35);
    background: linear-gradient(135deg, #004aad, #0068d8);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 74, 173, 0.28);
    transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.2s ease;
}

.rsm-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow:
        0 14px 32px rgba(0, 74, 173, 0.36),
        0 0 26px rgba(96, 165, 250, 0.35);
    color: #ffffff;
}

.rsm-btn:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 3px;
}

.rsm-template-note {
    margin: 0.95rem 0 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #64748b;
}

.rsm-template-note strong {
    color: #334155;
    font-weight: 700;
}

.rsm-template-note-link {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rsm-template-note-link:hover {
    color: #0068d8;
}

/* ------------------------------------------------------------
   1a. "Make it yours" steps (under the Open the Template button)
   ------------------------------------------------------------ */

.rsm-steps {
    margin-top: 1.1rem;
    padding-top: 1.05rem;
    border-top: 1px solid rgba(37, 99, 235, 0.16);
}

.rsm-steps__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1d4ed8;
}

.rsm-steps__list {
    margin: 0.85rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.rsm-step {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.rsm-step__num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #004aad, #0068d8);
    border: 1px solid rgba(0, 74, 173, 0.35);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.rsm-step__text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #475569;
}

.rsm-step__text strong {
    color: #0f2f6b;
    font-weight: 700;
}

@media (min-width: 768px) {
    /* Preview gets the larger column so the resume text is actually legible. */
    .rsm-template-card {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        gap: 2.5rem;
        padding: 2.25rem 2.5rem;
        align-items: stretch;
    }

    .rsm-template-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .rsm-template-cta {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .rsm-template-card {
        padding: 1.15rem;
        border-radius: 18px;
    }

    .rsm-template-heading {
        font-size: 1.2rem;
    }

    .rsm-template-cta {
        padding: 1.1rem;
    }

    /* Touch devices never hover, so keep the full-size hint visible. */
    .rsm-template-zoom {
        opacity: 1;
        transform: none;
    }

    .rsm-btn {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ------------------------------------------------------------
   2. Dark mode
   ------------------------------------------------------------ */

html[data-theme='dark'] .rsm-template-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(17, 24, 39, 0.7) 100%);
    border-color: rgba(96, 165, 250, 0.22);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

html[data-theme='dark'] .rsm-template-image-wrap {
    background: #0f172a;
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.4),
        0 0 22px rgba(37, 99, 235, 0.18);
}

html[data-theme='dark'] .rsm-template-image-wrap:hover {
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(96, 165, 250, 0.4);
}

html[data-theme='dark'] .rsm-template-desc {
    color: #cbd5e1;
}

html[data-theme='dark'] .rsm-template-heading {
    color: #e2e8f0;
}

html[data-theme='dark'] .rsm-template-badge {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
}

html[data-theme='dark'] .rsm-template-list li {
    color: #cbd5e1;
}

html[data-theme='dark'] .rsm-template-list i {
    background: rgba(96, 165, 250, 0.18);
    color: #93c5fd;
}

html[data-theme='dark'] .rsm-template-cta {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(96, 165, 250, 0.1));
    border-color: rgba(96, 165, 250, 0.26);
}

html[data-theme='dark'] .rsm-template-note {
    color: #94a3b8;
}

html[data-theme='dark'] .rsm-template-note strong {
    color: #e2e8f0;
}

html[data-theme='dark'] .rsm-template-note-link {
    color: #93c5fd;
}

html[data-theme='dark'] .rsm-steps {
    border-top-color: rgba(96, 165, 250, 0.24);
}

html[data-theme='dark'] .rsm-steps__label {
    color: #93c5fd;
}

html[data-theme='dark'] .rsm-step__num {
    border-color: rgba(96, 165, 250, 0.45);
}

html[data-theme='dark'] .rsm-step__text {
    color: #cbd5e1;
}

html[data-theme='dark'] .rsm-step__text strong {
    color: #e2e8f0;
}

@media (prefers-reduced-motion: reduce) {
    .rsm-template-image-wrap,
    .rsm-btn {
        transition: none;
    }
}
