:root {
    color-scheme: light;
    font-family: "Museo Sans", Helvetica, Arial, sans-serif;
    font-weight: 300;
    color: #242424;
    background: #fcfbf9;
    line-height: 1.5;
    --brand-blue: #205b8e;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
a:focus-visible { outline: 3px solid #205b8e; outline-offset: 4px; }

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 1;
    padding: 8px 16px;
    background: white;
}
.skip-link:focus { top: 8px; }

.site-header { border-bottom: 1px solid #e8e7e5; }
.header-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-logo { display: block; object-fit: contain; }
.header-inner nav { display: flex; gap: 12px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--brand-blue);
    border-radius: 28px;
    background: var(--brand-blue);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}
.button:hover { background: #15436b; }
.button-outline { background: transparent; color: #242424; border-color: #606060; }
.button-outline:hover { background: #eaf0f4; }

.library-page { max-width: 728px; margin: 0 auto; padding: 32px 24px 56px; }
.share-page { overflow-wrap: anywhere; }
.share-feature { margin: 0 0 12px; color: #666; font-size: 14px; }
.share-subtitle { margin: 0 0 20px; color: #666; }
.share-page .access-card { margin-top: 28px; }
h1 { margin: 0 0 18px; font-size: 28px; font-weight: 300; line-height: 1.3; }
.share-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 6px;
    background: #eaf0f4;
}
.share-notice svg { flex-shrink: 0; color: #64788e; }
.share-notice p { margin: 0; font-weight: 700; }
.published-date { margin: 16px 0; color: #666; font-size: 13px; }
.article-body { margin-top: 20px; padding-top: 32px; border-top: 1px solid #e4e4e4; }
.content-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.abstract-text { margin: 12px 0 0; overflow-wrap: anywhere; }
.library-preview { overflow-wrap: anywhere; }
.library-preview p { margin: 12px 0; }
.library-preview img { display: block; max-width: 100%; height: auto; margin: 12px 0; }
.library-preview h2, .library-preview h3, .library-preview h4,
.library-preview h5, .library-preview h6 { font-size: 18px; margin: 12px 0; }
.preview-wrapper { position: relative; max-height: 9em; overflow: hidden; }
.preview-wrapper::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5em;
    background: linear-gradient(transparent, #fcfbf9);
    pointer-events: none;
}
.article-body .preview-wrapper { max-height: 12em; }
.article-body .preview-wrapper::after { height: 3em; }
.access-card { border: 1px solid #e4e8ec; border-radius: 6px; overflow: hidden; }
.abstract + .access-card { margin-top: 24px; }
.access-summary { padding: 20px 24px; background: linear-gradient(#42628a, #003047); color: white; }
.access-summary h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.access-summary p { margin: 0; font-size: 14px; }
.access-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: white;
}
.access-actions p { margin: 0; font-size: 14px; }
.login-link { display: inline-flex; align-items: center; min-height: 44px; margin-left: 12px; font-weight: 500; }
.contributors { margin-top: 40px; }
.contributors h2 { margin: 0 0 16px; font-size: 18px; font-weight: 500; }
.contributor-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.contributor-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    background: white;
    overflow-wrap: anywhere;
    height: 100%;
    text-decoration: none;
}
a.contributor-card:hover { border-color: var(--brand-blue); background: #f3f7fa; }
a.contributor-card:hover h3 { text-decoration: underline; }
.author-photo { flex-shrink: 0; width: 64px; height: 64px; object-fit: cover; }
.contributor-card h3 { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.contributor-card p { margin: 0; font-size: 14px; }

.participant-page { max-width: 776px; margin: 0 auto; padding: 24px 24px 64px; }
.participant-profile { margin: 44px 0; }
.participant-profile.has-photo { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
.participant-photo { display: block; width: 200px; height: 200px; border-radius: 50%; object-fit: cover; }
.participant-heading { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #e4e4e4; }
.participant-heading h1 { margin-bottom: 6px; }
.participant-role { margin: 0; color: #666; font-size: 14px; }
.participant-details { min-width: 0; overflow-wrap: anywhere; }
.participant-biography { line-height: 1.6; }

.news-preview { margin: 20px 0 24px; padding-top: 16px; border-top: 1px solid #e4e4e4; }
.news-preview h2 { margin: 0 0 12px; font-size: 22px; font-weight: 700; }
.news-preview .abstract-text { margin-top: 0; }
.news-preview .preview-wrapper { max-height: 12em; }

.group-summary {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 24px 0 32px;
    padding: 24px 16px;
    border-top: 1px solid #e4e4e4;
}
.group-avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9069bd, #cd597e);
    color: white;
    font-size: 14px;
    font-weight: 500;
}
.group-details { min-width: 0; overflow-wrap: anywhere; }
.group-details h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.group-members { margin: 0 0 8px; font-size: 13px; color: #666; }
.group-description { margin: 0 0 12px; color: #555; }
.group-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.group-tag { padding: 3px 10px; border-radius: 16px; background: #ececec; font-size: 13px; }

.event-page { max-width: 1048px; margin: 0 auto; padding: 32px 24px 56px; }
.event-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
.event-details { grid-column: 2; grid-row: 1; min-width: 0; overflow-wrap: anywhere; }
.event-sidebar { grid-column: 1; grid-row: 1; min-width: 0; overflow-wrap: anywhere; }
.event-image { display: block; width: 100%; height: auto; border-radius: 6px; }
.event-date { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.event-date svg { flex-shrink: 0; color: #64788e; }
.event-date time span { display: block; }
.event-time { color: #666; }
.event-about h2, .event-sidebar h2 { margin: 0 0 16px; font-size: 20px; font-weight: 700; }
.event-description { line-height: 1.6; margin-bottom: 24px; }
.event-topics, .event-hosts, .event-attendees { margin-top: 32px; }
.event-host { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.event-host img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.event-person { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: #eaf0f4; color: var(--brand-blue); }
.attendee-icons { display: flex; gap: 4px; color: var(--brand-blue); }

.playlist-page { overflow-wrap: anywhere; }
.playlist-description { margin: 20px 0 0; }
.playlist-contents { margin: 24px 0 28px; padding-top: 24px; border-top: 1px solid #e4e4e4; }
.playlist-contents h2 { margin: 0 0 16px; color: #666; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.playlist-items { margin: 0; padding: 0; list-style: none; counter-reset: playlist; }
.playlist-items li { counter-increment: playlist; border-bottom: 1px solid #ededed; }
.playlist-items a { display: flex; align-items: center; gap: 16px; padding: 12px 0; text-decoration: none; }
.playlist-items a::before { content: counter(playlist); flex: 0 0 1.5em; color: #666; text-align: right; }
.playlist-items img { flex-shrink: 0; width: 128px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.playlist-items strong { display: block; font-size: 15px; font-weight: 700; }
.playlist-items a:hover strong { text-decoration: underline; }
.playlist-contributor { display: block; margin-top: 4px; color: #666; font-size: 14px; }
.playlist-items.has-more li:last-child { border-bottom: 0; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }

@media (max-width: 850px) {
    .event-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
    .event-page .access-actions { flex-direction: column; align-items: stretch; }
    .event-page .access-actions p { text-align: center; }
}

@media (max-width: 600px) {
    .header-inner { padding: 12px 16px; }
    .header-inner nav { gap: 8px; }
    .header-inner .button { padding: 8px 16px; }
    .library-page { padding: 24px 16px 40px; }
    h1 { font-size: 24px; }
    .share-notice { padding: 14px; font-size: 14px; }
    .article-body { padding-top: 24px; }
    .access-summary { padding: 18px; }
    .access-actions { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px; }
    .access-actions p { text-align: center; }
    .contributor-list { grid-template-columns: 1fr; }
    .participant-page { padding: 24px 16px 40px; }
    .participant-profile { margin: 28px 0; }
    .participant-profile.has-photo { grid-template-columns: 1fr; gap: 24px; }
    .participant-photo { width: 160px; height: 160px; }
    .event-page { padding: 24px 16px 40px; }
    .event-layout { display: flex; flex-direction: column; gap: 32px; }
    .event-image { max-width: 360px; }
    .playlist-items a { gap: 12px; }
    .playlist-items img { width: 96px; }
}
