/* ============================================================================
   FOR PRESCRIBERS — Direction A (Editorial Healthtech)
   ============================================================================
   Phase 2 rebuild. Translates /tmp/design-bundle-new/pharmacy/project/site/
   prescribers.jsx into vanilla CSS. All selectors prefixed with
   `ps-prescriber-` so they cannot collide with other pages.

   Reuses .ps-home-cta-* (final CTA strip) from homepage.css and
   .ps-eyebrow / .ps-nav / .ps-footer from components.css + nav.css + footer.css.

   Print stylesheet at the bottom hides everything marked [data-no-print]
   and lets the .ps-prescriber-handout fill a single page.
   ============================================================================ */

/* ─────────────────────────────────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────────────────────────────────── */

.ps-prescriber-hero {
    padding: 88px 48px 64px;
    background: var(--ps-bg);
}

.ps-prescriber-hero-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: end;
    max-width: 1280px;
    margin: 0 auto;
}

.ps-prescriber-hero-title {
    font-family: var(--ps-font-display);
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: -0.032em;
    color: var(--ps-ink);
    margin: 20px 0 24px;
}

.ps-prescriber-hero-title em {
    font-style: italic;
    color: var(--ps-teal);
}

.ps-prescriber-hero-lede {
    font-family: var(--ps-font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--ps-ink-muted);
    max-width: 520px;
    margin: 0;
}

.ps-prescriber-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: end;
}

.ps-prescriber-print-btn,
.ps-prescriber-share-btn {
    font-family: var(--ps-font-body);
    font-size: 15px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: 999px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    min-height: 44px;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.ps-prescriber-print-btn {
    background: var(--ps-ink);
    color: #fff;
    border: 1px solid var(--ps-ink);
}

.ps-prescriber-print-btn:hover {
    background: var(--ps-teal-deep);
    border-color: var(--ps-teal-deep);
}

.ps-prescriber-share-btn {
    background: transparent;
    color: var(--ps-ink);
    border: 1px solid var(--ps-line-strong);
    padding: 15px 24px;
}

.ps-prescriber-share-btn:hover {
    border-color: var(--ps-ink);
    background: rgba(15, 30, 28, 0.04);
}

.ps-prescriber-print-btn:focus-visible,
.ps-prescriber-share-btn:focus-visible {
    outline: 2px solid var(--ps-teal);
    outline-offset: 3px;
}

/* ─────────────────────────────────────────────────────────────────────────
   HANDOUT (the printable card)
   ───────────────────────────────────────────────────────────────────────── */

.ps-prescriber-handout-wrap {
    padding: 0 48px 72px;
    background: var(--ps-bg);
}

.ps-prescriber-handout {
    max-width: 1184px;
    margin: 0 auto;
    background: var(--ps-card);
    border-radius: 24px;
    border: 2px solid var(--ps-ink);
    overflow: hidden;
}

/* Masthead */
.ps-prescriber-handout-masthead {
    padding: 36px 48px;
    border-bottom: 1px solid var(--ps-line);
    background: var(--ps-cream);
    display: flex;
    align-items: center;
    gap: 20px;
}

.ps-prescriber-handout-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ps-teal);
    color: #fff;
    font-family: var(--ps-font-display);
    font-style: italic;
    font-size: 29px;
    line-height: 1;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ps-prescriber-handout-mastheadtext {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ps-prescriber-handout-wordmark {
    font-family: var(--ps-font-display);
    font-size: 34px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.024em;
    color: var(--ps-ink);
    margin: 0;
}

.ps-prescriber-handout-tagline {
    font-family: var(--ps-font-body);
    font-size: 13px;
    color: var(--ps-ink-muted);
    margin: 0;
}

/* Section shell */
.ps-prescriber-handout-section {
    padding: 40px 48px;
    border-bottom: 1px solid var(--ps-line);
}

.ps-prescriber-handout-section-last { border-bottom: none; }

.ps-prescriber-handout-label {
    font-family: var(--ps-font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--ps-ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 16px;
}

/* E-prescribe ID cards (huge serif numbers) */
.ps-prescriber-handout-ids {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ps-prescriber-handout-idcard {
    border: 1px solid var(--ps-line);
    border-radius: 16px;
    padding: 24px;
    background: var(--ps-bg);
}

.ps-prescriber-handout-idkind {
    font-family: var(--ps-font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--ps-teal);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 8px;
}

.ps-prescriber-handout-idnumber {
    font-family: var(--ps-font-display);
    font-size: clamp(42px, 6vw, 56px);
    font-weight: 400;
    letter-spacing: -0.018em;
    line-height: 1;
    color: var(--ps-ink);
    margin: 0;
    font-variant-numeric: tabular-nums;
}

/* Contact grid */
.ps-prescriber-handout-contact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0;
}

.ps-prescriber-handout-contactrow {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.ps-prescriber-handout-contactrow dt {
    font-family: var(--ps-font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--ps-ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.ps-prescriber-handout-contactrow dd {
    font-family: var(--ps-font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ps-ink);
    margin: 0;
}

.ps-prescriber-handout-contactrow dd a {
    color: var(--ps-ink);
    text-decoration: none;
}

.ps-prescriber-handout-contactrow dd a:hover {
    color: var(--ps-teal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Please-note callout (cream block w/ accent rule, like transfer-card) */
.ps-prescriber-handout-note {
    background: var(--ps-cream);
    border-left: 3px solid var(--ps-accent);
    border-radius: 12px;
    padding: 24px;
}

.ps-prescriber-handout-note ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ps-prescriber-handout-note li {
    font-family: var(--ps-font-body);
    font-size: 15px;
    line-height: 1.75;
    color: var(--ps-ink);
}

.ps-prescriber-handout-note a {
    color: var(--ps-teal);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

.ps-prescriber-handout-note a:hover { color: var(--ps-teal-deep); }

/* Dark footer band */
.ps-prescriber-handout-footer {
    padding: 20px 48px;
    background: var(--ps-ink);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ps-prescriber-handout-footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--ps-font-body);
    font-size: 13px;
    color: var(--ps-ink-on-dark-muted);
    margin: 0;
}

.ps-prescriber-handout-footer-url {
    font-family: var(--ps-font-display);
    font-style: italic;
    font-size: 16px;
    color: #fff;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   FAQ FOR DOCTORS
   ───────────────────────────────────────────────────────────────────────── */

.ps-prescriber-faq {
    padding: 72px 48px;
    background: var(--ps-bg);
    border-top: 1px solid var(--ps-line);
}

.ps-prescriber-faq-head {
    max-width: 820px;
    margin: 0 auto 40px;
}

.ps-prescriber-faq-title {
    font-family: var(--ps-font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.031em;
    color: var(--ps-ink);
    margin: 14px 0 0;
}

.ps-prescriber-faq-grid {
    max-width: 1184px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ps-prescriber-faq-card {
    background: var(--ps-card);
    border: 1px solid var(--ps-line);
    border-radius: 16px;
    padding: 28px;
}

.ps-prescriber-faq-q {
    font-family: var(--ps-font-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.014em;
    line-height: 1.25;
    color: var(--ps-ink);
    margin: 0 0 10px;
}

.ps-prescriber-faq-a {
    font-family: var(--ps-font-body);
    font-size: 14px;
    line-height: 1.7;
    color: var(--ps-ink-muted);
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   SHARE TOAST
   ───────────────────────────────────────────────────────────────────────── */

.ps-prescriber-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--ps-ink);
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-family: var(--ps-font-body);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
    white-space: nowrap;
    z-index: 400;
    box-shadow: var(--ps-shadow-lift);
}

.ps-prescriber-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .ps-prescriber-hero {
        padding: 64px 32px 48px;
    }
    .ps-prescriber-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        align-items: start;
    }
    .ps-prescriber-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-self: start;
    }
    .ps-prescriber-print-btn,
    .ps-prescriber-share-btn {
        flex: 1 1 220px;
    }
    .ps-prescriber-handout-wrap { padding: 0 32px 56px; }
    .ps-prescriber-handout-contact { grid-template-columns: repeat(2, 1fr); }
    .ps-prescriber-faq { padding: 56px 32px; }
}

@media (max-width: 768px) {
    .ps-prescriber-hero {
        padding: 48px 24px 40px;
    }
    .ps-prescriber-handout-wrap { padding: 0 24px 48px; }
    .ps-prescriber-handout-masthead {
        padding: 28px 28px;
        gap: 16px;
    }
    .ps-prescriber-handout-section { padding: 32px 28px; }
    .ps-prescriber-handout-footer  { padding: 18px 28px; }
    .ps-prescriber-handout-ids { grid-template-columns: 1fr; }
    .ps-prescriber-faq { padding: 48px 24px; }
    .ps-prescriber-faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .ps-prescriber-handout {
        border-radius: 18px;
        border-width: 1px;
    }
    .ps-prescriber-handout-masthead {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .ps-prescriber-handout-wordmark { font-size: 28px; }
    .ps-prescriber-handout-contact { grid-template-columns: 1fr; gap: 18px; }
    .ps-prescriber-handout-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .ps-prescriber-handout-idnumber { font-size: 38px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   PRINT STYLESHEET
   ───────────────────────────────────────────────────────────────────────── */

@media print {
    @page {
        margin: 0.35in;
        size: letter;
    }

    /* Hide every chromed surface — only the handout prints. */
    [data-no-print],
    .skip-link {
        display: none !important;
    }

    html, body {
        background: #fff !important;
        color: #000 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 12px !important;
    }

    /* Force background and text colors to render. */
    *, *::before, *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    main, #main-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    .ps-prescriber-handout-wrap {
        padding: 0 !important;
        background: #fff !important;
    }

    .ps-prescriber-handout {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        border: 1.5px solid #000 !important;
        border-radius: 12px !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Section paddings calibrated so the whole card fills a letter page
       nicely — not edge-to-edge compressed, not page-overflowing either. */
    .ps-prescriber-handout-masthead,
    .ps-prescriber-handout-section,
    .ps-prescriber-handout-footer {
        page-break-inside: avoid;
        break-inside: avoid;
        padding: 18px 26px !important;
    }

    /* NCPDP/NPI serif numerals — 56px is legible from arm's length and
       still leaves the card room to breathe on letter. */
    .ps-prescriber-handout-idnumber {
        font-size: 56px !important;
        line-height: 1 !important;
        margin: 4px 0 0 !important;
    }

    .ps-prescriber-handout-idkind,
    .ps-prescriber-handout-label {
        font-size: 11px !important;
        letter-spacing: 0.6px !important;
        margin-bottom: 4px !important;
    }

    .ps-prescriber-handout-idcard {
        padding: 14px 18px !important;
    }

    .ps-prescriber-handout-ids {
        gap: 16px !important;
    }

    /* Masthead logo + wordmark */
    .ps-prescriber-handout-logo {
        width: 44px !important;
        height: 44px !important;
        font-size: 24px !important;
    }

    .ps-prescriber-handout-wordmark {
        font-size: 26px !important;
    }

    .ps-prescriber-handout-tagline {
        font-size: 12px !important;
    }

    /* Contact grid — enough rhythm to scan quickly, not oversized. */
    .ps-prescriber-handout-contactgrid {
        row-gap: 14px !important;
        column-gap: 24px !important;
    }

    .ps-prescriber-handout-contactrow dt {
        margin-bottom: 2px !important;
    }

    .ps-prescriber-handout-contactrow dd {
        font-size: 14px !important;
        margin: 0 !important;
    }

    /* "Please note" bullets — compact but readable. */
    .ps-prescriber-handout-note {
        padding: 14px 18px !important;
        margin: 8px 0 0 !important;
    }

    .ps-prescriber-handout-note li {
        margin-bottom: 6px !important;
        line-height: 1.4 !important;
        font-size: 13px !important;
    }

    .ps-prescriber-handout-note li:last-child {
        margin-bottom: 0 !important;
    }

    .ps-prescriber-handout-footer {
        padding: 12px 26px !important;
    }

    /* Ink savings: drop tints, keep one accent rule on the note block. */
    .ps-prescriber-handout-masthead {
        background: #fff !important;
        border-bottom: 1px solid #000 !important;
    }

    .ps-prescriber-handout-logo {
        background: #000 !important;
        color: #fff !important;
    }

    .ps-prescriber-handout-wordmark,
    .ps-prescriber-handout-tagline,
    .ps-prescriber-handout-label,
    .ps-prescriber-handout-idkind,
    .ps-prescriber-handout-idnumber,
    .ps-prescriber-handout-contactrow dt,
    .ps-prescriber-handout-contactrow dd,
    .ps-prescriber-handout-contactrow dd a,
    .ps-prescriber-handout-note,
    .ps-prescriber-handout-note li,
    .ps-prescriber-handout-note a {
        color: #000 !important;
    }

    .ps-prescriber-handout-section {
        border-bottom: 1px solid #000 !important;
    }

    .ps-prescriber-handout-idcard {
        background: #fff !important;
        border: 1px solid #000 !important;
    }

    .ps-prescriber-handout-note {
        background: #fff !important;
        border: 1px solid #000 !important;
        border-left: 3px solid #000 !important;
    }

    .ps-prescriber-handout-footer {
        background: #fff !important;
        color: #000 !important;
        border-top: 1px solid #000 !important;
        page-break-after: avoid;
    }

    .ps-prescriber-handout-footer-meta,
    .ps-prescriber-handout-footer-url {
        color: #000 !important;
    }

    /* Underline links so the URL is still scannable on paper. */
    .ps-prescriber-handout a {
        text-decoration: underline !important;
        color: #000 !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   REDUCED MOTION
   ───────────────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .ps-prescriber-print-btn,
    .ps-prescriber-share-btn,
    .ps-prescriber-toast {
        transition: none !important;
    }
}
