/* UNHAS Pharmacy Profile Kit — scoped front-end styles */
.ffp-profile {
    --ffp-navy: #083d62;
    --ffp-navy-dark: #052b45;
    --ffp-blue: #1676b8;
    --ffp-blue-soft: #eaf4fb;
    --ffp-gold: #ffbe00;
    --ffp-ink: #17232c;
    --ffp-muted: #5e6d7e;
    --ffp-line: #dce5eb;
    --ffp-surface: #ffffff;
    --ffp-canvas: #f4f7f9;
    --ffp-radius-lg: 28px;
    --ffp-radius-md: 18px;
    --ffp-shadow: 0 18px 50px rgba(5, 43, 69, .10);
    color: var(--ffp-ink);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    margin-inline: auto;
    max-width: 1220px;
    padding: 24px;
}

.ffp-profile *,
.ffp-profile *::before,
.ffp-profile *::after { box-sizing: border-box; }

.ffp-profile a { color: var(--ffp-navy); }
.ffp-profile a:focus-visible,
.ffp-profile summary:focus-visible {
    outline: 3px solid rgba(255, 190, 0, .75);
    outline-offset: 4px;
}

.ffp-profile svg {
    display: block;
    flex: 0 0 auto;
    height: 20px;
    width: 20px;
}

.ffp-hero {
    background: linear-gradient(125deg, var(--ffp-navy-dark) 0%, var(--ffp-navy) 56%, #0c5888 100%);
    border-radius: var(--ffp-radius-lg);
    box-shadow: var(--ffp-shadow);
    color: #fff;
    isolation: isolate;
    min-height: 420px;
    overflow: hidden;
    position: relative;
}

.ffp-hero::after {
    background: var(--ffp-gold);
    bottom: 0;
    content: "";
    height: 6px;
    left: 0;
    position: absolute;
    right: 0;
}

.ffp-hero-pattern {
    background-image:
        radial-gradient(circle at 85% 24%, rgba(255, 190, 0, .26) 0 2px, transparent 3px),
        radial-gradient(circle at 75% 40%, rgba(255, 255, 255, .10) 0 1px, transparent 2px);
    background-size: 30px 30px, 18px 18px;
    inset: 0;
    mask-image: linear-gradient(90deg, transparent 32%, #000 100%);
    opacity: .65;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.ffp-hero-pattern::after {
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 50%;
    content: "";
    height: 540px;
    position: absolute;
    right: -170px;
    top: -250px;
    width: 540px;
}

.ffp-hero-inner {
    align-items: center;
    display: grid;
    gap: clamp(32px, 6vw, 78px);
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    min-height: 420px;
    padding: clamp(34px, 6vw, 70px);
}

.ffp-photo-wrap {
    margin: 0;
    max-width: 280px;
    position: relative;
}

.ffp-photo {
    aspect-ratio: 3 / 4;
    background: #e9eef2;
    border: 7px solid rgba(255, 255, 255, .96);
    border-radius: 22px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, .28);
    display: block;
    object-fit: cover;
    position: relative;
    width: 100%;
    z-index: 1;
}

.ffp-photo-accent {
    background: var(--ffp-gold);
    border-radius: 20px;
    bottom: -15px;
    height: 90%;
    left: -15px;
    position: absolute;
    width: 88%;
}

.ffp-hero-copy { max-width: 720px; }

.ffp-eyebrow {
    color: #ffe186;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.ffp-hero h1 {
    color: #fff;
    font-size: clamp(32px, 4.3vw, 56px);
    font-weight: 760;
    letter-spacing: -.035em;
    line-height: 1.08;
    margin: 0;
    text-wrap: balance;
}

.ffp-credentials {
    color: rgba(255, 255, 255, .72);
    font-size: 16px;
    margin: 8px 0 0;
}

.ffp-role {
    color: #fff;
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 560;
    margin: 18px 0 0;
}

.ffp-role span { color: rgba(255, 255, 255, .72); }

.ffp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.ffp-chip {
    align-items: center;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: rgba(255, 255, 255, .94);
    display: inline-flex;
    font-size: 13px;
    gap: 8px;
    line-height: 1.3;
    max-width: 100%;
    padding: 9px 13px;
}

.ffp-chip svg { color: #ffe186; height: 17px; width: 17px; }

.ffp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.ffp-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 11px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 750;
    gap: 9px;
    justify-content: center;
    line-height: 1;
    min-height: 46px;
    padding: 13px 18px;
    text-decoration: none !important;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.ffp-button:hover { transform: translateY(-2px); }
.ffp-button-primary { background: var(--ffp-gold); color: #2b270e !important; }
.ffp-button-primary:hover { background: #ffd043; }
.ffp-button-secondary { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); color: #fff !important; }
.ffp-button-secondary:hover { background: rgba(255, 255, 255, .16); }

.ffp-layout {
    align-items: start;
    display: grid;
    gap: clamp(28px, 5vw, 62px);
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    padding: clamp(48px, 7vw, 82px) clamp(4px, 2vw, 20px) 40px;
}

.ffp-main { min-width: 0; }
.ffp-section + .ffp-section { border-top: 1px solid var(--ffp-line); margin-top: 58px; padding-top: 58px; }
.ffp-section-heading { margin-bottom: 26px; }
.ffp-section-heading-row { align-items: end; display: flex; gap: 18px; justify-content: space-between; }

.ffp-kicker {
    color: var(--ffp-blue);
    display: block;
    font-size: 11px;
    font-weight: 820;
    letter-spacing: .14em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.ffp-section h2,
.ffp-card h2 {
    color: var(--ffp-navy-dark);
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 760;
    letter-spacing: -.025em;
    line-height: 1.18;
    margin: 0;
}

.ffp-section h2 span { color: var(--ffp-muted); font-weight: 520; }

.ffp-language-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr);
}

.ffp-language-copy {
    color: #3d4b56;
    min-width: 0;
    padding-left: 18px;
    position: relative;
}

.ffp-language-copy::before {
    background: var(--ffp-line);
    border-radius: 2px;
    content: "";
    inset: 3px auto 3px 0;
    position: absolute;
    width: 3px;
}

.ffp-language-copy[lang="en"] { color: #3d4b56; }
.ffp-language-copy[lang="en"]::before { background: var(--ffp-gold); }
.ffp-language-copy p:first-of-type { margin-top: 0; }
.ffp-language-copy p:last-child { margin-bottom: 0; }
.ffp-language-copy ul { margin-bottom: 0; padding-left: 20px; }

.ffp-lang-label {
    color: var(--ffp-navy);
    display: block;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .14em;
    margin-bottom: 8px;
}

.ffp-live-badge {
    align-items: center;
    background: #e9f7ef;
    border: 1px solid #ccebd8;
    border-radius: 999px;
    color: #23663b;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 750;
    gap: 7px;
    margin-bottom: 3px;
    padding: 7px 11px;
}

.ffp-live-badge i {
    background: #38a561;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(56, 165, 97, .14);
    height: 7px;
    width: 7px;
}

.ffp-publications {
    border-top: 1px solid var(--ffp-line);
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
}

.ffp-publications li {
    align-items: start;
    border-bottom: 1px solid var(--ffp-line);
    display: grid;
    gap: 18px;
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 20px 0;
}

.ffp-pub-year {
    background: var(--ffp-blue-soft);
    border-radius: 8px;
    color: var(--ffp-navy);
    display: block;
    font-size: 11px;
    font-weight: 820;
    padding: 6px 4px;
    text-align: center;
}

.ffp-publications h3 { font-size: 16px; line-height: 1.45; margin: 0; }
.ffp-publications h3 a { color: var(--ffp-ink); text-decoration: none; }
.ffp-publications h3 a:hover { color: var(--ffp-blue); text-decoration: underline; text-underline-offset: 3px; }
.ffp-publications h3 svg { display: inline; height: 14px; margin-left: 6px; transform: translateY(2px); width: 14px; }
.ffp-publications p { color: var(--ffp-muted); font-size: 13px; margin: 5px 0 0; }

.ffp-details { border-top: 1px solid var(--ffp-line); }
.ffp-detail { border-bottom: 1px solid var(--ffp-line); }
.ffp-detail summary {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 14px;
    grid-template-columns: 42px minmax(0, 1fr) 28px;
    list-style: none;
    padding: 19px 2px;
}
.ffp-detail summary::-webkit-details-marker { display: none; }
.ffp-detail summary:hover strong { color: var(--ffp-blue); }
.ffp-detail summary strong { color: var(--ffp-navy-dark); display: block; font-size: 16px; transition: color .18s ease; }
.ffp-detail summary small { color: var(--ffp-muted); display: block; font-size: 12px; margin-top: 2px; }

.ffp-detail-icon {
    align-items: center;
    background: var(--ffp-blue-soft);
    border-radius: 11px;
    color: var(--ffp-navy);
    display: flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.ffp-detail-plus { height: 20px; position: relative; width: 20px; }
.ffp-detail-plus::before,
.ffp-detail-plus::after { background: var(--ffp-navy); content: ""; left: 4px; position: absolute; top: 9px; transition: transform .2s ease; }
.ffp-detail-plus::before { height: 2px; width: 12px; }
.ffp-detail-plus::after { height: 12px; left: 9px; top: 4px; width: 2px; }
.ffp-detail[open] .ffp-detail-plus::after { transform: rotate(90deg); }
.ffp-detail-body { padding: 6px 2px 24px 56px; }

.ffp-sidebar { position: sticky; top: 30px; }
.ffp-card {
    background: var(--ffp-surface);
    border: 1px solid var(--ffp-line);
    border-radius: var(--ffp-radius-md);
    box-shadow: 0 12px 35px rgba(5, 43, 69, .07);
    overflow: hidden;
    padding: 25px;
}
.ffp-card + .ffp-card { margin-top: 18px; }
.ffp-card h2 { font-size: 18px; letter-spacing: -.01em; margin-bottom: 19px; }
.ffp-card h2 span { color: var(--ffp-muted); font-size: 12px; font-weight: 500; }

.ffp-facts { margin: 0; }
.ffp-facts > div { border-top: 1px solid #e8eef2; padding: 14px 0; }
.ffp-facts > div:first-child { border-top: 0; padding-top: 0; }
.ffp-facts > div:last-child { padding-bottom: 0; }
.ffp-facts dt { align-items: center; color: var(--ffp-muted); display: flex; font-size: 11px; font-weight: 740; gap: 9px; letter-spacing: .03em; margin-bottom: 4px; }
.ffp-facts dt svg { color: var(--ffp-blue); height: 16px; width: 16px; }
.ffp-facts dt small { font-size: 9px; font-weight: 500; }
.ffp-facts dd { color: var(--ffp-ink); font-size: 14px; font-weight: 650; margin: 0 0 0 25px; overflow-wrap: anywhere; }
.ffp-facts dd a { color: var(--ffp-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.ffp-links-card { background: var(--ffp-navy-dark); border: 0; }
.ffp-links-card h2 { color: #fff; }
.ffp-links-card h2 span { color: rgba(255, 255, 255, .57); }
.ffp-links-card nav { display: grid; }
.ffp-links-card a {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    display: flex;
    font-size: 14px;
    font-weight: 680;
    justify-content: space-between;
    padding: 12px 0;
    text-decoration: none;
}
.ffp-links-card a:first-child { border-top: 0; }
.ffp-links-card a:hover { color: #ffe186; }
.ffp-links-card a svg { height: 17px; transition: transform .18s ease; width: 17px; }
.ffp-links-card a:hover svg { transform: translateX(3px); }
.ffp-links-card a small { color: rgba(255, 255, 255, .55); display: block; font-size: 10px; font-weight: 500; margin-top: 2px; }

.ffp-updated {
    align-items: center;
    color: var(--ffp-muted);
    display: flex;
    font-size: 10px;
    gap: 10px;
    line-height: 1.4;
    margin: 18px 8px 0;
    text-transform: uppercase;
}
.ffp-updated svg { height: 18px; width: 18px; }
.ffp-updated strong { color: var(--ffp-ink); font-size: 11px; }

@media (max-width: 900px) {
    .ffp-hero-inner { grid-template-columns: 210px minmax(0, 1fr); padding: 42px; }
    .ffp-layout { grid-template-columns: 1fr; }
    .ffp-sidebar { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); position: static; }
    .ffp-card + .ffp-card { margin-top: 0; }
    .ffp-updated { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .ffp-profile { padding: 12px; }
    .ffp-hero { border-radius: 20px; }
    .ffp-hero-inner { align-items: start; grid-template-columns: 1fr; padding: 28px 24px 38px; }
    .ffp-photo-wrap { max-width: 180px; }
    .ffp-photo { border-width: 5px; border-radius: 16px; }
    .ffp-photo-accent { bottom: -10px; left: -10px; }
    .ffp-hero h1 { font-size: 32px; }
    .ffp-role { font-size: 16px; }
    .ffp-chip { border-radius: 10px; width: 100%; }
    .ffp-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ffp-layout { padding-top: 45px; }
    .ffp-language-grid { grid-template-columns: 1fr; }
    .ffp-section + .ffp-section { margin-top: 43px; padding-top: 43px; }
    .ffp-section-heading-row { align-items: start; flex-direction: column; }
    .ffp-detail-body { padding-left: 0; }
    .ffp-sidebar { grid-template-columns: 1fr; }
    .ffp-updated { grid-column: auto; }
}

@media (max-width: 410px) {
    .ffp-actions { grid-template-columns: 1fr; }
    .ffp-publications li { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; }
    .ffp-detail summary { grid-template-columns: 38px minmax(0, 1fr) 24px; gap: 10px; }
    .ffp-detail-icon { height: 38px; width: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    .ffp-profile *, .ffp-profile *::before, .ffp-profile *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
    .ffp-profile { max-width: none; padding: 0; }
    .ffp-hero { box-shadow: none; }
    .ffp-layout { grid-template-columns: 1fr 280px; }
    .ffp-sidebar { position: static; }
    .ffp-detail:not([open]) > *:not(summary) { display: block; }
    .ffp-button { border: 1px solid currentColor; }
}
