/* Micronarc Alpine Meeting speaker template - clean dev version */

:root {
    --brand-blue: #6b9bc7;
    --brand-blue-dark: #456d94;
    --brand-green: #006600;
    --text-main: #2f3841;
    --text-muted: #5f6d79;
    --line: rgba(107, 155, 199, 0.22);
    --panel: #ffffff;
    --panel-soft: #f5f8fc;
    --content-width: 920px;
}

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

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
    color: var(--text-main);
    line-height: 1.65;
    background-color: #eef4f8;
    background-image: url("https://micronarc-alpine-meeting.ch/speakers2025/img/micronarc-trianagles.gif");
    background-repeat: repeat;
    background-attachment: fixed;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--brand-blue-dark);
}

.page-shell {
    padding: 20px;
}

.speaker-card {
    width: min(100%, var(--content-width));
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 24px;
}

/* === ACTIONS === */

.top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.back-link,
.external-link,
.linkedin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Back */
.back-link {
    color: var(--brand-blue-dark);
    background: var(--panel-soft);
    border: 1px solid var(--line);
}

/* External */
.external-link {
    color: #ffffff;
    background: var(--brand-blue);
    border: 1px solid transparent;
}

/* LinkedIn (FIXED) */
.linkedin-link {
    width: 44px;
    padding: 10px;
    color: #ffffff;
    background: #0a66c2;
    border: 1px solid #0a66c2;
}

/* Hover */
.back-link:hover,
.external-link:hover,
.linkedin-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(53, 83, 111, 0.10);
}

.linkedin-link:hover {
    background: #004182;
    border-color: #004182;
}

/* === HEADER === */

.brand-banner {
    width: min(100%, 560px);
    margin: 0 auto 24px;
    border-radius: 4px;
    border: 1px solid var(--line);
}

.speaker-header {
    margin-bottom: 28px;
}

.speaker-hero {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.speaker-photo-wrap {
    background: var(--panel-soft);
    border: 1px solid rgba(107, 155, 199, 0.12); /* lighter */
    border-radius: 6px;
    padding: 10px;
}

.speaker-photo {
    width: 100%;
    border-radius: 4px;
    object-fit: cover;
}

.speaker-summary h1 {
    margin: 0 0 10px;
    color: #14202b;
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    line-height: 1.12;
}

.eyebrow,
.section-label {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-green);
}

.affiliation {
    margin: 0 0 6px;
    font-size: 1.08rem;
    font-weight: 600;
}

.country {
    margin: 0;
    color: var(--text-muted);
}

/* === KEYNOTE BADGE === */

.keynote-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(0, 102, 0, 0.08);
    border: 1px solid rgba(0, 102, 0, 0.18);
    color: var(--brand-green);
    font-weight: 700;
}

.keynote-star {
    width: 1.2rem;
    height: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 2px;
    font-size: 0.8rem;
}

/* === CONTENT === */

.title-panel,
.content-section,
.empty-state {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    padding: 20px;
}

.title-panel {
    margin-bottom: 18px;
    background: #f5f8fc;
    border-left: 3px solid var(--brand-blue);
}

.title-panel h2 {
    margin: 0;
    color: var(--brand-blue);
    font-size: clamp(1.2rem, 2.8vw, 1.7rem);
}

.content-section + .content-section {
    margin-top: 18px;
}

.content-section h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.rich-text {
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.rich-text p:first-child {
    margin-top: 0;
}

.rich-text p:last-child {
    margin-bottom: 0;
}

.empty-state {
    text-align: center;
    padding-block: 42px;
}

.empty-state p {
    color: var(--text-muted);
}

/* === MOBILE === */

@media (max-width: 760px) {
    .page-shell {
        padding: 12px;
    }

    .speaker-card {
        padding: 16px;
        border-radius: 6px;
    }

    .speaker-hero {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .speaker-photo-wrap {
        max-width: 260px;
        margin: 0 auto;
    }

    .speaker-summary {
        text-align: center;
    }

    .top-actions {
        justify-content: center;
    }

    .action-links {
        width: 100%;
    }

    .back-link,
    .external-link,
    .linkedin-link {
        width: 100%;
    }

    .title-panel,
    .content-section,
    .empty-state {
        padding: 16px;
        border-radius: 6px;
    }
}