/* OpenCustoms Core — стили Этапа 5 */

/* Карта рисков — матрица */
.oc-risk-matrix-wrap { max-width: 1200px; margin: 0 auto; padding: 20px; }
.oc-filters { background: #f7f7f7; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.oc-filters form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.oc-filters select { min-width: 150px; }
.oc-risk-matrix { width: 100%; border-collapse: collapse; table-layout: fixed; }
.oc-risk-matrix th { padding: 10px; text-align: center; font-size: 14px; background: #f0f0f0; }
.oc-matrix-cell { padding: 12px; vertical-align: top; border-radius: 6px; min-height: 120px; }
.oc-cell-count { font-weight: 600; font-size: 13px; display: block; margin-bottom: 8px; }
.oc-cell-risks { list-style: none; padding: 0; margin: 0; }
.oc-cell-risks li { margin-bottom: 6px; font-size: 13px; line-height: 1.4; }
.oc-cell-risks a { color: #2271b1; text-decoration: none; }
.oc-cell-risks a:hover { text-decoration: underline; }
.oc-cell-empty { color: #ccc; text-align: center; display: block; }
.oc-matrix-legend { display: flex; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
.oc-legend-item { display: inline-block; padding: 4px 12px; border-radius: 4px; color: #fff; font-size: 12px; }

/* Страница риска */
.oc-risk-single { max-width: 900px; margin: 0 auto; padding: 20px; }
.oc-risk-header h1 { margin-bottom: 10px; }
.oc-risk-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.oc-tag { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; background: #e0e0e0; }
.oc-tag-category { background: #d4edda; color: #155724; }
.oc-tag-status { background: #cce5ff; color: #004085; }
.oc-tag-prob { background: #fff3cd; color: #856404; }
.oc-tag-imp { background: #f8d7da; color: #721c24; }
.oc-risk-open { margin-bottom: 30px; line-height: 1.7; }
.oc-risk-history-public { background: #f9f9f9; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.oc-history-more { color: #999; }

/* Закрытая часть */
.oc-access-locked { background: #fff8e5; border: 2px dashed #f0b400; border-radius: 8px; padding: 30px; text-align: center; }
.oc-access-locked h2 { margin-top: 0; }
.oc-access-cta { margin-top: 15px; }
.oc-access-cta .button { display: inline-block; padding: 8px 20px; border-radius: 4px; text-decoration: none; font-weight: 600; }
.oc-access-cta .button-primary { background: #2271b1; color: #fff; }

/* Связанные материалы */
.oc-risk-related { background: #f5f5f5; padding: 20px; border-radius: 8px; margin-top: 30px; }
.oc-risk-related h3 { font-size: 15px; margin-bottom: 8px; }

/* Адаптивность */
@media (max-width: 768px) {
    .oc-risk-matrix { font-size: 12px; }
    .oc-filters form { flex-direction: column; }
    .oc-filters select { width: 100%; }
    .oc-risk-single { padding: 15px; }
    .oc-access-locked { padding: 20px; }
}

/* Homepage MVP Product Funnel v1.0.26 */
.oc-home-mvp {
    --oc-home-bg: #f5f7fb;
    --oc-home-surface: #ffffff;
    --oc-home-soft: #eef5fb;
    --oc-home-text: #142033;
    --oc-home-muted: #5d6b7d;
    --oc-home-border: #dde6f0;
    --oc-home-primary: #0a4a8f;
    --oc-home-accent: #0f766e;
    --oc-home-warm: #b45309;
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 16px 64px;
    color: var(--oc-home-text, #142033);
}
.oc-home-mvp a {
    color: inherit;
}
.oc-home-mvp p {
    margin: 0;
    color: var(--oc-home-muted, #5d6b7d);
    line-height: 1.65;
}
.oc-home-mvp__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 38px;
    padding: 52px;
    border: 1px solid #cbdced;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(10,74,143,.96), rgba(15,118,110,.86)),
        linear-gradient(135deg, #ffffff, #eef5fb);
    color: #ffffff;
}
.oc-home-mvp__hero-copy {
    max-width: 780px;
}
.oc-home-mvp__eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    color: #cde8ff;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.oc-home-mvp h1 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 2.75rem;
    line-height: 1.08;
}
.oc-home-mvp__lead {
    color: #ffffff;
    font-size: 1.16rem;
    font-weight: 700;
}
.oc-home-mvp__hero p:not(.oc-home-mvp__lead) {
    max-width: 700px;
    margin-top: 10px;
    color: rgba(255,255,255,.86);
}
.oc-home-mvp__hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 10px;
    background: rgba(255,255,255,.12);
}
.oc-home-mvp__hero-panel span,
.oc-home-mvp__hero-panel strong {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,.14);
    color: #ffffff;
}
.oc-home-mvp__hero-panel span {
    color: #d9f2ff;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}
.oc-home-mvp__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.oc-home-mvp__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--oc-home-border, #dde6f0);
    border-radius: 7px;
    background: var(--oc-home-surface, #ffffff);
    color: var(--oc-home-primary, #0a4a8f);
    font-weight: 800;
    text-decoration: none;
}
.oc-home-mvp__btn--primary {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--oc-home-primary, #0a4a8f);
}
.oc-home-mvp__product-empty .oc-home-mvp__btn--primary,
.oc-home-mvp__cta .oc-home-mvp__btn--primary {
    border-color: var(--oc-home-primary, #0a4a8f);
    background: var(--oc-home-primary, #0a4a8f);
    color: #ffffff;
}
.oc-home-mvp__btn:hover,
.oc-home-mvp__task-card:hover,
.oc-home-mvp__content-card:hover,
.oc-home-mvp__access-card:hover,
.oc-home-mvp__expert:hover {
    border-color: var(--oc-home-primary, #0a4a8f);
    box-shadow: 0 14px 30px rgba(20,32,51,.11);
    text-decoration: none;
    transform: translateY(-1px);
}
.oc-home-mvp__section {
    margin-top: 42px;
}
.oc-home-mvp__section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.oc-home-mvp__section-head h2,
.oc-home-mvp__cta h2,
.oc-home-mvp__telegram h2 {
    margin: 0 0 7px;
    color: var(--oc-home-text, #142033);
    font-size: 1.55rem;
    line-height: 1.25;
}
.oc-home-mvp__section-head p {
    max-width: 760px;
}
.oc-home-mvp__link {
    flex: 0 0 auto;
    color: var(--oc-home-primary, #0a4a8f);
    font-weight: 800;
    text-decoration: none;
}
.oc-home-mvp__link:hover {
    text-decoration: underline;
}
.oc-home-mvp__grid,
.oc-home-mvp__task-grid,
.oc-home-mvp__content-layout,
.oc-home-mvp__product-grid,
.oc-home-mvp__access-grid {
    display: grid;
    gap: 16px;
}
.oc-home-mvp__grid--four,
.oc-home-mvp__task-grid,
.oc-home-mvp__access-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.oc-home-mvp__grid--three,
.oc-home-mvp__product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.oc-home-mvp__content-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.oc-home-mvp__task-card,
.oc-home-mvp__content-card,
.oc-home-mvp__access-card,
.oc-home-mvp__expert {
    display: block;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--oc-home-border, #dde6f0);
    border-radius: 9px;
    background: var(--oc-home-surface, #ffffff);
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.oc-home-mvp__task-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.oc-home-mvp__task-card h3,
.oc-home-mvp__content-card h3,
.oc-home-mvp__access-card h3 {
    margin: 8px 0 0;
    color: var(--oc-home-text, #142033);
    font-size: 1rem;
    line-height: 1.35;
}
.oc-home-mvp__task-card p,
.oc-home-mvp__content-card p,
.oc-home-mvp__access-card p,
.oc-home-mvp__expert-text {
    display: block;
    margin-top: 9px;
    color: var(--oc-home-muted, #5d6b7d);
    line-height: 1.55;
}
.oc-home-mvp__badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e6f1fb;
    color: var(--oc-home-primary, #0a4a8f);
    font-size: .76rem;
    font-weight: 800;
}
.oc-home-mvp__badge--task {
    background: #ecfdf5;
    color: var(--oc-home-accent, #0f766e);
}
.oc-home-mvp__content-card--case .oc-home-mvp__badge {
    background: #fff7ed;
    color: var(--oc-home-warm, #b45309);
}
.oc-home-mvp__content-card--material .oc-home-mvp__badge {
    background: #eef2ff;
    color: #3730a3;
}
.oc-home-mvp__product-band,
.oc-home-mvp__access {
    padding: 28px;
    border: 1px solid var(--oc-home-border, #dde6f0);
    border-radius: 10px;
}
.oc-home-mvp__product-band--courses {
    background: linear-gradient(135deg, #fffaf0 0%, #ffffff 56%, #eef5fb 100%);
}
.oc-home-mvp__product-empty {
    padding: 22px;
    border: 1px dashed #d6b57b;
    border-radius: 9px;
    background: rgba(255,255,255,.72);
}
.oc-home-mvp__product-empty h3 {
    margin: 0 0 8px;
    color: var(--oc-home-text, #142033);
}
.oc-home-mvp__access {
    background: #10243d;
}
.oc-home-mvp__access .oc-home-mvp__section-head h2,
.oc-home-mvp__access .oc-home-mvp__section-head p,
.oc-home-mvp__access .oc-home-mvp__link {
    color: #ffffff;
}
.oc-home-mvp__access-card {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.2);
}
.oc-home-mvp__access-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--oc-home-primary, #0a4a8f);
    font-weight: 900;
}
.oc-home-mvp__access-card h3,
.oc-home-mvp__access-card p {
    color: #ffffff;
}
.oc-home-mvp__empty {
    padding: 18px;
    border: 1px dashed var(--oc-home-border, #dde6f0);
    border-radius: 9px;
    background: var(--oc-home-bg, #f5f7fb);
}
.oc-home-mvp__expert img,
.oc-home-mvp__expert-fallback {
    display: block;
    width: 66px;
    height: 66px;
    margin-bottom: 12px;
    border-radius: 10px;
}
.oc-home-mvp__expert img {
    object-fit: cover;
}
.oc-home-mvp__expert-fallback {
    background: linear-gradient(135deg, #e6f1fb, #ecfdf5);
}
.oc-home-mvp__expert-name {
    display: block;
    color: var(--oc-home-text, #142033);
    font-weight: 900;
}
.oc-home-mvp__telegram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border: 1px solid #b8d9f2;
    border-radius: 10px;
    background: #eef7ff;
}
.oc-home-mvp__telegram .oc-home-mvp__eyebrow {
    color: var(--oc-home-primary, #0a4a8f);
}
.oc-home-mvp__cta {
    margin-top: 42px;
    padding: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 52%, #ecfdf5 100%);
    border: 1px solid var(--oc-home-border, #dde6f0);
}
.oc-home-mvp__cta p {
    max-width: 720px;
    margin-bottom: 18px;
}
@media (max-width: 980px) {
    .oc-home-mvp__hero,
    .oc-home-mvp__grid--four,
    .oc-home-mvp__task-grid,
    .oc-home-mvp__access-grid,
    .oc-home-mvp__content-layout,
    .oc-home-mvp__product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .oc-home-mvp__hero-copy {
        grid-column: 1 / -1;
    }
}
@media (max-width: 640px) {
    .oc-home-mvp {
        padding: 14px 12px 44px;
    }
    .oc-home-mvp__hero,
    .oc-home-mvp__grid--four,
    .oc-home-mvp__grid--three,
    .oc-home-mvp__task-grid,
    .oc-home-mvp__access-grid,
    .oc-home-mvp__content-layout,
    .oc-home-mvp__product-grid {
        grid-template-columns: 1fr;
    }
    .oc-home-mvp__hero,
    .oc-home-mvp__product-band,
    .oc-home-mvp__access,
    .oc-home-mvp__cta {
        padding: 24px 18px;
    }
    .oc-home-mvp h1 {
        font-size: 2rem;
    }
    .oc-home-mvp__section-head,
    .oc-home-mvp__telegram {
        display: block;
    }
    .oc-home-mvp__link,
    .oc-home-mvp__telegram .oc-home-mvp__btn {
        display: inline-flex;
        margin-top: 10px;
    }
    .oc-home-mvp__actions {
        flex-direction: column;
    }
    .oc-home-mvp__btn {
        width: 100%;
    }
}

/* OpenCustoms 1.1-A — portal routes and canonical topic */
.oc-portal {
    --oc-ink: #12233f;
    --oc-muted: #53647a;
    --oc-blue: #145da0;
    --oc-blue-dark: #0b3f73;
    --oc-sky: #eaf3fb;
    --oc-line: #d9e3ed;
    --oc-paper: #ffffff;
    box-sizing: border-box;
    width: 100%;
    color: var(--oc-ink);
    font-family: inherit;
}
.oc-portal *,
.oc-portal *::before,
.oc-portal *::after {
    box-sizing: border-box;
}
.oc-portal a {
    color: inherit;
    text-decoration: none;
}
.oc-portal h1,
.oc-portal h2,
.oc-portal h3,
.oc-portal p {
    margin-top: 0;
}
.oc-portal h1 {
    max-width: 900px;
    margin-bottom: 20px;
    color: var(--oc-ink);
    font-size: clamp(2.15rem, 5vw, 4.8rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}
.oc-portal h2 {
    color: var(--oc-ink);
    font-size: clamp(1.45rem, 2.5vw, 2.2rem);
    line-height: 1.2;
}
.oc-portal-kicker {
    display: block;
    margin-bottom: 14px;
    color: var(--oc-blue);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.oc-portal-home {
    min-height: calc(100vh - 100px);
    padding: clamp(28px, 5vw, 72px) max(24px, calc((100vw - 1220px) / 2));
    background:
        radial-gradient(circle at 85% 10%, rgba(51, 146, 213, .2), transparent 35%),
        linear-gradient(150deg, #f8fbfe 0%, #edf5fb 55%, #e4f0f8 100%);
}
.oc-portal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
    gap: clamp(36px, 6vw, 90px);
    align-items: center;
    min-height: min(690px, calc(100vh - 180px));
}
.oc-portal-home .oc-portal-hero__copy {
    min-width: 0;
}
.oc-portal-home .oc-portal-hero__copy h1 {
    max-width: 820px;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.08;
}
.oc-home-mvp#portal-sections {
    scroll-margin-top: 110px;
    background: #ffffff;
    box-shadow: 0 0 0 100vmax #ffffff;
    clip-path: inset(0 -100vmax);
}
.oc-portal-hero__copy > p,
.oc-portal-page__header > p,
.oc-topic-description {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--oc-muted);
    font-size: clamp(1rem, 1.6vw, 1.22rem);
    line-height: 1.65;
}
.oc-portal-entry-grid {
    display: grid;
    gap: 18px;
}
.oc-portal-entry {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 8px 18px;
    min-height: 210px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(18, 71, 116, .16);
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 55px rgba(20, 64, 103, .09);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.oc-portal-entry:hover,
.oc-portal-entry:focus-visible {
    border-color: var(--oc-blue);
    box-shadow: 0 22px 60px rgba(20, 64, 103, .15);
    transform: translateY(-3px);
}
.oc-portal-entry__number {
    grid-row: 1 / 4;
    color: var(--oc-blue);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
}
.oc-portal-entry strong {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.2;
}
.oc-portal-entry > span:not(.oc-portal-entry__number) {
    color: var(--oc-muted);
    line-height: 1.55;
}
.oc-portal-entry b,
.oc-portal-nav-card b,
.oc-topic-cards b {
    align-self: end;
    color: var(--oc-blue);
    font-size: .88rem;
}
.oc-portal-page {
    max-width: 1220px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 68px) 24px 80px;
}
.oc-portal-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: clamp(30px, 5vw, 56px);
    color: var(--oc-muted);
    font-size: .86rem;
}
.oc-portal-breadcrumb a {
    color: var(--oc-blue);
}
.oc-portal-page__header {
    margin-bottom: clamp(34px, 6vw, 66px);
}
.oc-portal-page__header h1 {
    font-size: clamp(2.1rem, 4.4vw, 4.2rem);
}
.oc-portal-search {
    display: flex;
    max-width: 780px;
    margin-top: 30px;
    padding: 7px;
    border: 1px solid var(--oc-line);
    border-radius: 12px;
    background: var(--oc-paper);
    box-shadow: 0 10px 30px rgba(23, 59, 91, .07);
}
.oc-portal-search input {
    flex: 1;
    min-width: 0;
    padding: 13px 15px;
    border: 0;
    outline: 0;
    color: var(--oc-ink);
    background: transparent;
    font: inherit;
}
.oc-portal-search button,
.oc-portal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid var(--oc-blue);
    border-radius: 9px;
    background: var(--oc-blue);
    color: #fff !important;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.oc-portal-search button:hover,
.oc-portal-button:hover {
    border-color: var(--oc-blue-dark);
    background: var(--oc-blue-dark);
}
.oc-portal-button--secondary {
    background: #fff;
    color: var(--oc-blue) !important;
}
.oc-portal-button--secondary:hover {
    color: #fff !important;
}
.oc-portal-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.oc-portal-nav-card {
    display: flex;
    flex-direction: column;
    min-height: 265px;
    padding: 25px;
    border: 1px solid var(--oc-line);
    border-radius: 14px;
    background: var(--oc-paper);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.oc-portal-nav-card:hover,
.oc-portal-nav-card:focus-visible {
    border-color: var(--oc-blue);
    box-shadow: 0 14px 36px rgba(23, 59, 91, .1);
    transform: translateY(-2px);
}
.oc-portal-nav-card > span {
    margin-bottom: 30px;
    color: var(--oc-blue);
    font-size: .75rem;
    font-weight: 800;
}
.oc-portal-nav-card strong {
    margin-bottom: 12px;
    font-size: 1.2rem;
}
.oc-portal-nav-card p {
    flex: 1;
    color: var(--oc-muted);
    font-size: .92rem;
    line-height: 1.55;
}
.oc-portal-back {
    margin-top: 44px;
    color: var(--oc-blue);
    font-weight: 700;
}
.oc-portal-intro-resource {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin: -24px 0 34px;
    padding: 20px 24px;
    border: 1px solid var(--oc-line);
    border-radius: 12px;
    background: var(--oc-sky);
}
.oc-portal-intro-resource .oc-portal-kicker {
    margin-bottom: 5px;
}
.oc-portal-process {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}
.oc-portal-process::before {
    position: absolute;
    top: 50%;
    right: 5%;
    left: 5%;
    height: 2px;
    background: var(--oc-line);
    content: '';
}
.oc-portal-process li {
    position: relative;
    z-index: 1;
}
.oc-portal-process a {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 116px;
    padding: 20px;
    border: 1px solid var(--oc-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 59, 91, .06);
    transition: border-color .2s ease, transform .2s ease;
}
.oc-portal-process a:hover,
.oc-portal-process a:focus-visible {
    border-color: var(--oc-blue);
    transform: translateY(-2px);
}
.oc-portal-process a > span {
    color: var(--oc-blue);
    font-size: .75rem;
    font-weight: 800;
}
.oc-portal-process a > b {
    color: var(--oc-blue);
}
.oc-portal-task-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.oc-portal-task-grid a {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 165px;
    padding: 22px;
    border: 1px solid var(--oc-line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s ease, transform .2s ease;
}
.oc-portal-task-grid a:hover,
.oc-portal-task-grid a:focus-visible {
    border-color: var(--oc-blue);
    transform: translateY(-2px);
}
.oc-portal-task-grid a > span {
    color: var(--oc-blue);
    font-size: .88rem;
    font-weight: 700;
}
.oc-portal-placeholder,
.oc-topic-next {
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid var(--oc-line);
    border-radius: 16px;
    background: var(--oc-sky);
}
.oc-portal-placeholder p,
.oc-topic-next p {
    color: var(--oc-muted);
}
.oc-portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}
.oc-topic-section {
    margin-top: 58px;
}
.oc-topic-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.oc-topic-cards > a {
    display: flex;
    flex-direction: column;
    min-height: 175px;
    padding: 22px;
    border: 1px solid var(--oc-line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s ease, transform .2s ease;
}
.oc-topic-cards > a:hover,
.oc-topic-cards > a:focus-visible {
    border-color: var(--oc-blue);
    transform: translateY(-2px);
}
.oc-topic-cards strong {
    margin-bottom: 10px;
    font-size: 1.05rem;
}
.oc-topic-cards a > span {
    flex: 1;
    color: var(--oc-muted);
    font-size: .9rem;
    line-height: 1.5;
}
.oc-topic-task-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.oc-topic-task-list a {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-left: 3px solid var(--oc-blue);
    background: var(--oc-sky);
    font-weight: 700;
}
.oc-topic-task-list a span {
    color: var(--oc-blue);
}
.oc-topic-next {
    margin-top: 62px;
}

@media (max-width: 1024px) {
    .oc-portal-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .oc-portal-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .oc-portal-entry {
        min-height: 230px;
    }
    .oc-portal-nav-grid,
    .oc-portal-process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .oc-portal-process::before {
        display: none;
    }
}

@media (max-width: 720px) {
    .oc-portal-home,
    .oc-portal-page {
        padding-right: 18px;
        padding-left: 18px;
    }
    .oc-portal-home {
        min-height: 0;
    }
    .oc-portal h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    .oc-portal-entry-grid,
    .oc-portal-nav-grid,
    .oc-portal-process,
    .oc-portal-task-grid,
    .oc-topic-cards,
    .oc-topic-task-list {
        grid-template-columns: 1fr;
    }
    .oc-portal-entry {
        min-height: 0;
        padding: 22px;
    }
    .oc-portal-nav-card {
        min-height: 220px;
    }
    .oc-portal-search {
        display: grid;
    }
    .oc-portal-intro-resource {
        align-items: stretch;
        flex-direction: column;
        margin-top: 0;
    }
    .oc-portal-process a {
        min-height: 92px;
    }
}

/* Кейсы — архив */
.oc-cases-archive { max-width: 1120px; margin: 0 auto; padding: 48px 24px 64px; color: #0a1628; }
.oc-archive-eyebrow { margin: 0 0 8px; color: #0a4a8f; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.oc-cases-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.oc-cases-grid.oc-grid-single { grid-template-columns: minmax(0, 760px); }
.oc-case-card { display: flex; min-height: 100%; background: #fff; border: 1px solid #dbe4ee; border-radius: 14px; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.oc-case-card:hover { border-color: #9db9d5; box-shadow: 0 12px 32px rgba(10,22,40,.08); transform: translateY(-2px); }
.oc-case-thumb img { width: 100%; height: 180px; object-fit: cover; }
.oc-case-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 28px; }
.oc-case-title { margin: 0 0 14px; font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 700; line-height: 1.22; overflow-wrap: anywhere; }
.oc-case-title a { color: #0a4a8f; text-decoration: none; }
.oc-case-title a:hover { color: #073665; text-decoration: underline; text-underline-offset: 3px; }
.oc-case-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.oc-case-topics .oc-tag { padding: 5px 10px; background: #edf4fb; color: #27496d; font-size: .75rem; line-height: 1.2; }
.oc-case-excerpt { margin-bottom: 24px; color: #4a5a6d; font-size: .94rem; line-height: 1.65; }
.oc-case-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; padding-top: 18px; border-top: 1px solid #edf1f5; }
.oc-badge { font-size: .74rem; padding: 5px 10px; border-radius: 999px; }
.oc-badge-open { background: #d4edda; color: #155724; }
.oc-badge-locked { background: #fff3cd; color: #856404; }
.oc-badge-info { background: #e0e0e0; color: #333; }
.oc-read-more { color: #0a4a8f; font-size: .9rem; font-weight: 700; text-decoration: none; }
.oc-read-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.oc-pagination { margin-top: 30px; text-align: center; }
.oc-pagination .page-numbers { display: inline-block; padding: 6px 12px; margin: 0 2px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; }
.oc-pagination .page-numbers.current { background: #2271b1; color: #fff; border-color: #2271b1; }

/* Кейсы — страница */
.oc-case-single { max-width: 900px; margin: 0 auto; padding: 20px; }
.oc-case-header h1 { margin-bottom: 10px; }
.oc-case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.oc-tag-access { background: #cce5ff; color: #004085; }
.oc-case-section { margin-bottom: 30px; }
.oc-case-section h2 { font-size: 22px; margin-bottom: 12px; }
.oc-related-list { list-style: none; padding: 0; }
.oc-related-list li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.oc-related-list li:last-child { border-bottom: none; }
.oc-risk-quick { font-size: 12px; color: #888; margin-left: 8px; }
.oc-docs-note { color: #666; font-style: italic; }
.oc-severity { font-size: 12px; color: #dc3232; }
.oc-priority { font-size: 11px; color: #888; }

/* Эксперты */
.oc-experts-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.oc-expert-card { display: flex; align-items: center; gap: 12px; background: #f9f9f9; padding: 12px; border-radius: 8px; min-width: 250px; }
.oc-expert-photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.oc-expert-info a { font-weight: 600; color: #2271b1; text-decoration: none; }
.oc-expert-spec { font-size: 13px; color: #666; margin: 4px 0 0; }

/* Адаптивность кейсов */
@media (max-width: 768px) {
    .oc-cases-archive { padding: 32px 16px 48px; }
    .oc-cases-grid,
    .oc-cases-grid.oc-grid-single { grid-template-columns: 1fr; }
    .oc-case-body { padding: 22px; }
    .oc-case-footer { align-items: flex-start; flex-direction: column; }
    .oc-case-single { padding: 15px; }
    .oc-experts-grid { flex-direction: column; }
}

/* Курсы */
.oc-courses-archive { max-width: 1200px; margin: 0 auto; padding: 20px; }
.oc-courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 20px; }
.oc-course-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s; }
.oc-course-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.oc-course-thumb img { width: 100%; height: 180px; object-fit: cover; }
.oc-course-body { padding: 15px; }
.oc-course-title { font-size: 18px; margin: 0 0 8px; }
.oc-course-title a { color: #2271b1; text-decoration: none; }
.oc-course-offer { font-size: 14px; color: #555; margin-bottom: 8px; }
.oc-course-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #666; margin-bottom: 8px; }
.oc-course-price { font-size: 20px; font-weight: 700; color: #2271b1; }
.oc-course-price.oc-free { color: #46b450; }
.oc-course-single { max-width: 900px; margin: 0 auto; padding: 20px; }
.oc-course-header h1 { margin-bottom: 10px; }
.oc-course-details { background: #f9f9f9; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.oc-detail-row { padding: 4px 0; }
.oc-detail-label { font-weight: 600; color: #555; }
.oc-course-buy { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.oc-price { font-size: 28px; font-weight: 700; color: #2271b1; }
.oc-price.oc-free { color: #46b450; }
.oc-btn-buy, .oc-btn-invoice { padding: 10px 24px; border-radius: 4px; text-decoration: none; font-weight: 600; display: inline-block; }
.oc-btn-buy { background: #2271b1; color: #fff; }
.oc-btn-invoice { background: #f0f0f0; color: #333; }
.oc-program-module { padding: 12px; border-left: 3px solid #2271b1; margin-bottom: 10px; background: #f9f9f9; border-radius: 0 6px 6px 0; }
.oc-program-module h3 { margin: 0 0 5px; font-size: 16px; }
.oc-program-module p { margin: 0; font-size: 14px; color: #555; }
.oc-spur-block { background: #eef7ff; border: 1px solid #cce5ff; padding: 15px; border-radius: 8px; }
.oc-discounts li { padding: 4px 0; }
.oc-discounts code { background: #f0f0f0; padding: 2px 6px; border-radius: 3px; }

/* Мероприятия */
.oc-events-archive { max-width: 1200px; margin: 0 auto; padding: 20px; }
.oc-events-list { display: flex; flex-direction: column; gap: 15px; }
.oc-event-card { display: flex; gap: 15px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; transition: box-shadow 0.2s; }
.oc-event-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.oc-event-past { opacity: 0.7; }
.oc-event-date { min-width: 60px; text-align: center; background: #2271b1; color: #fff; border-radius: 8px; padding: 8px; height: fit-content; }
.oc-date-day { font-size: 24px; font-weight: 700; display: block; }
.oc-date-month { font-size: 12px; text-transform: uppercase; }
.oc-event-body { flex: 1; }
.oc-event-title { font-size: 18px; margin: 0 0 5px; }
.oc-event-title a { color: #2271b1; text-decoration: none; }
.oc-event-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #666; margin-bottom: 5px; }
.oc-badge-past { background: #ddd; color: #666; }
.oc-event-tariffs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.oc-tariff { font-size: 12px; background: #f0f0f0; padding: 3px 8px; border-radius: 10px; }
.oc-event-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; justify-content: center; }
.oc-event-single { max-width: 900px; margin: 0 auto; padding: 20px; }
.oc-event-details { background: #f9f9f9; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.oc-event-buy { display: flex; gap: 12px; margin: 20px 0; }
.oc-tariffs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
.oc-tariff-card { border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; text-align: center; }
.oc-tariff-card h3 { margin: 0 0 8px; }
.oc-tariff-price { font-size: 22px; font-weight: 700; color: #2271b1; margin-bottom: 8px; }
.oc-tariff-includes { font-size: 13px; color: #666; margin-bottom: 10px; }
.oc-auto-open { font-size: 13px; color: #888; margin-top: 10px; }

/* Материалы */
.oc-materials-archive { max-width: 1200px; margin: 0 auto; padding: 20px; }
.oc-materials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.oc-material-card { display: flex; gap: 12px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; }
.oc-material-icon { font-size: 32px; }
.oc-material-body { flex: 1; }
.oc-material-title { font-size: 16px; margin: 0 0 5px; }
.oc-material-title a { color: #2271b1; text-decoration: none; }
.oc-material-comp { font-size: 13px; color: #666; margin: 5px 0; }
.oc-material-single { max-width: 900px; margin: 0 auto; padding: 20px; }
.oc-files-list { list-style: none; padding: 0; }
.oc-files-list li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.oc-files-list a { color: #2271b1; text-decoration: none; }
.oc-files-list a:hover { text-decoration: underline; }
.oc-links-list { list-style: none; padding: 0; }
.oc-links-list li { padding: 6px 0; }
.oc-links-list a { color: #2271b1; text-decoration: none; }

/* Эксперт */
.oc-expert-single { max-width: 900px; margin: 0 auto; padding: 20px; }
.oc-expert-top { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.oc-expert-photo-lg { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.oc-expert-roles { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.oc-expert-section { margin-bottom: 25px; }

/* Общая адаптивность */
@media (max-width: 768px) {
    .oc-courses-grid, .oc-materials-grid { grid-template-columns: 1fr; }
    .oc-event-card { flex-direction: column; }
    .oc-event-actions { flex-direction: row; align-items: flex-start; }
    .oc-expert-top { flex-direction: column; }
    .oc-tariffs-grid { grid-template-columns: 1fr; }
    .oc-course-buy, .oc-event-buy { flex-direction: column; }
}

/* ============================================
 * OpenCustoms Core v1.0.3 — стили шаблона кейса
 * ============================================ */

/* Шапка кейса */
.oc-case-header {
    max-width: 780px;
    margin: 0 auto 32px;
    padding: 0 20px;
}
.oc-case-title {
    font-size: 28px;
    line-height: 1.3;
    margin: 12px 0 0;
    color: #1a3a6c;
}
.oc-case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.oc-tag-training {
    background: #e8f5e9;
    color: #2e7d32;
}
.oc-tag-topic {
    background: #e3f2fd;
    color: #1565c0;
}

/* Основной макет: оглавление + контент */
.oc-case-layout {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Боковое оглавление (desktop) */
.oc-case-toc {
    flex: 0 0 240px;
    position: sticky;
    top: 24px;
    align-self: flex-start;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 16px 0;
}
.oc-toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.oc-toc-nav li {
    margin-bottom: 4px;
}
.oc-toc-nav a {
    color: #555;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    display: block;
    padding: 4px 8px;
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
}
.oc-toc-nav a:hover {
    color: #1a3a6c;
    border-left-color: #1a3a6c;
    padding-left: 12px;
}
.oc-toc-toggle {
    display: none; /* only visible on mobile */
}

/* Колонка контента */
.oc-case-content {
    flex: 1 1 780px;
    max-width: 780px;
    min-width: 0; /* prevent overflow */
}

/* Секции контента */
.oc-case-section {
    margin-bottom: 32px;
}
.oc-case-section h2 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 16px;
    color: #1a3a6c;
    scroll-margin-top: 24px;
}
.oc-case-section h2:first-child {
    margin-top: 0;
}
.oc-case-section p {
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Таблицы — защита от переполнения */
.oc-case-content table,
.oc-case-content .wp-block-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 24px;
}
.oc-case-content table th,
.oc-case-content table td {
    white-space: nowrap;
    padding: 8px 12px;
    border: 1px solid #ddd;
}
.oc-case-content table th {
    background: #f5f7fa;
    font-weight: 600;
}

/* Чек-листы — защита от переполнения */
.oc-case-content ul.wp-block-list,
.oc-case-content ol.wp-block-list {
    padding-left: 24px;
    word-break: break-word;
    overflow-wrap: break-word;
}
.oc-case-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Изображения */
.oc-case-content img {
    max-width: 100%;
    height: auto;
}

/* Продуктовый блок (закрытая часть) */
/* ═══ Locked block (v1.0.4) ═══ */
.oc-locked-block {
    background: #fff;
    border: 1px solid #e0e4ec;
    border-radius: 10px;
    padding: 32px 36px;
    margin: 40px 0 32px;
    box-shadow: 0 2px 12px rgba(10,22,40,.06);
    position: relative;
    overflow: hidden;
}
.oc-locked-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, #0a1628 0%, #0a4a8f 100%);
}
.oc-locked-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.oc-locked-icon {
    width: 18px; height: 18px;
    flex-shrink: 0;
    opacity: 0.45;
    color: #0a1628;
}
.oc-locked-eyebrow {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}
.oc-locked-title {
    font-size: 22px;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 12px;
    line-height: 1.35;
}
.oc-locked-fallback {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px;
    line-height: 1.5;
}
.oc-locked-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
}
.oc-locked-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #1a1a2e;
    line-height: 1.5;
}
.oc-locked-check {
    flex-shrink: 0;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    margin-top: 1px;
}
.oc-locked-cta {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ═══ Buttons ═══ */
.oc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}
.oc-btn-primary {
    background: #0a1628;
    color: #fff;
    box-shadow: 0 2px 8px rgba(10,22,40,.15);
}
.oc-btn-primary:hover {
    background: #0a4a8f;
    box-shadow: 0 4px 12px rgba(10,22,40,.2);
    color: #fff;
}

/* ═══ Related zone (v1.0.4) ═══ */
.oc-related-zone {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e0e4ec;
}
.oc-related-section {
    margin-bottom: 28px;
}
.oc-related-section:last-child { margin-bottom: 0; }
.oc-related-heading {
    font-size: 17px;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 12px;
}
.oc-related-grid {
    display: grid;
    gap: 10px;
}
.oc-related-risks {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.oc-related-materials {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.oc-related-experts {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Risk cards */
.oc-risk-card {
    background: #fff;
    border: 1px solid #e0e4ec;
    border-radius: 6px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.oc-risk-card:hover {
    border-color: #c0cfe0;
    box-shadow: 0 1px 4px rgba(10,22,40,.06);
}
.oc-risk-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #0a1628;
    margin-bottom: 6px;
}
.oc-risk-card-meta { display: flex; gap: 6px; align-items: center; }
.oc-risk-badge { font-size: 11px; padding: 2px 8px; border-radius: 12px; font-weight: 600; }
.oc-risk-high { background: #fef2f2; color: #c62828; }
.oc-risk-medium { background: #fff8e1; color: #e65100; }
.oc-risk-low { background: #e8f5e9; color: #2e7d32; }
.oc-risk-prob { background: #f3f4f6; color: #6b7280; }

/* Material cards */
.oc-material-card {
    background: #fff;
    border: 1px solid #e0e4ec;
    border-radius: 6px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.oc-material-card:hover { border-color: #c0cfe0; box-shadow: 0 1px 4px rgba(10,22,40,.06); }
.oc-material-type {
    flex-shrink: 0; width: 32px; height: 32px;
    border-radius: 6px; background: #e3f2fd;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
}
.oc-material-title { font-size: 14px; font-weight: 600; color: #0a1628; }
.oc-material-info span { display: block; margin-top: 5px; color: #0a5b99; font-size: 12px; font-weight: 700; }
.oc-event-materials-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 12px; }
.oc-event-materials-heading .oc-related-heading { margin-bottom: 0; }
.oc-event-materials-heading .oc-event-section-kicker { margin-bottom: 5px; }
.oc-event-materials-heading > a { flex: 0 0 auto; color: #0a5b99; font-size: 13px; font-weight: 700; text-decoration: none; }

/* Expert cards */
.oc-expert-card {
    background: #fff;
    border: 1px solid #e0e4ec;
    border-radius: 6px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.oc-expert-card:hover { border-color: #c0cfe0; box-shadow: 0 1px 4px rgba(10,22,40,.06); }
.oc-expert-photo {
    flex-shrink: 0; width: 48px; height: 48px;
    border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0a1628, #0a4a8f);
}
.oc-expert-photo img { width: 100%; height: 100%; object-fit: cover; }
.oc-expert-initials { color: #fff; font-size: 16px; font-weight: 700; }
.oc-expert-info { flex: 1; min-width: 0; }
.oc-expert-name {
    font-size: 14px; font-weight: 600; color: #0a1628;
    text-decoration: none; display: block; margin-bottom: 2px;
}
.oc-expert-name:hover { color: #0a4a8f; }
.oc-expert-comp { font-size: 12px; color: #6b7280; line-height: 1.4; }


/* Legacy-вспомогательные классы */
.oc-closed-header h2 {
    margin-top: 0;
}

/* ============== МОБИЛЬНАЯ ВЕРСИЯ ============== */
@media (max-width: 768px) {
    .oc-case-header {
        padding: 0 16px;
        margin-bottom: 24px;
    }
    .oc-case-title {
        font-size: 22px;
    }

    /* Оглавление — кнопка на мобильном */
    .oc-case-toc {
        flex: none;
        width: 100%;
        position: relative;
        top: auto;
        max-height: none;
        padding: 0 16px;
        margin-bottom: 16px;
    }
    .oc-toc-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 10px 16px;
        background: #f5f7fa;
        border: 1px solid #e0e4ec;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        color: #1a3a6c;
        font-weight: 500;
    }
    .oc-toc-toggle:hover {
        background: #eef0f5;
    }
    .oc-toc-label {
        font-weight: 600;
    }
    .oc-toc-nav {
        display: none;
        padding: 12px 0;
    }
    .oc-toc-open .oc-toc-nav {
        display: block;
    }

    .oc-case-layout {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    .oc-case-content {
        max-width: 100%;
        padding: 0 16px;
    }

    .oc-locked-block {
        padding: 24px 20px;
        margin: 28px 0 24px;
    }
    .oc-locked-title {
        font-size: 19px;
    }
    .oc-locked-features {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .oc-locked-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .oc-locked-cta .oc-btn {
        justify-content: center;
        padding: 13px 20px;
    }

    .oc-related-zone {
        margin-top: 32px;
        padding-top: 24px;
    }
    .oc-related-risks,
    .oc-related-materials,
    .oc-related-experts {
        grid-template-columns: 1fr;
    }

    .oc-case-section h2 {
        font-size: 19px;
        margin-top: 28px;
    }

    /* Таблицы на мобильном */
    .oc-case-content table,
    .oc-case-content .wp-block-table {
        font-size: 13px;
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .oc-case-title {
        font-size: 20px;
    }
    .oc-locked-block {
        padding: 20px 16px;
    }
    .oc-btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
 * Существующие стили (личный кабинет, риски и т.д.)
 * ============================================ */

/* Личный кабинет */
.oc-cabinet { max-width: 1000px; margin: 0 auto; padding: 20px; }
.oc-cabinet-header { margin-bottom: 20px; }
.oc-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid #2271b1; margin-bottom: 20px; }
.oc-tab { background: none; border: none; padding: 10px 16px; cursor: pointer; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.oc-tab.active { border-bottom-color: #2271b1; font-weight: 600; color: #2271b1; }
.oc-tab-content { display: none; }
.oc-tab-content.active { display: block; }
.oc-grants-list { display: flex; flex-wrap: wrap; gap: 12px; }
.oc-grant-card { background: #f9f9f9; padding: 15px; border-radius: 8px; min-width: 250px; border-left: 3px solid #46b450; }
.oc-grant-expired { border-left-color: #dc3232; opacity: 0.75; }
.oc-items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.oc-item-card { background: #f9f9f9; padding: 12px; border-radius: 6px; }
.oc-item-card a { color: #2271b1; text-decoration: none; font-weight: 500; }
.oc-recommendations { margin-top: 30px; padding: 20px; background: #eef7ff; border-radius: 8px; }
.oc-recommendations h2 { margin-top: 0; }
.oc-cabinet-login { max-width: 400px; margin: 40px auto; text-align: center; }

/* Сертификаты */
.oc-cert-check { max-width: 600px; margin: 0 auto; padding: 20px; }
.oc-cert-check form { display: flex; gap: 8px; margin: 15px 0; }
.oc-cert-result { padding: 20px; border-radius: 8px; margin-top: 15px; }
.oc-cert-valid { background: #d4edda; border: 1px solid #c3e6cb; }
.oc-cert-invalid { background: #f8d7da; border: 1px solid #f5c6cb; }

@media (max-width: 768px) {
    .oc-tabs { flex-direction: column; }
    .oc-tab { border-bottom: none; text-align: left; }
    .oc-cert-check form { flex-direction: column; }
}

/* ══════════════════════════════════════════════
 * v1.0.7 — Events, Experts, Widget CSS
 * ══════════════════════════════════════════════ */

/* === Event single === */
.oc-event-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}
.oc-event-header { margin-bottom: 24px; }
.oc-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.oc-event-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #0a4a8f;
    font-weight: 600;
}
.oc-event-format-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #e3f2fd;
    color: #0a4a8f;
}
.oc-event-title {
    font-size: 28px;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 8px;
    line-height: 1.3;
}
.oc-event-short-desc {
    font-size: 16px;
    color: #555;
    margin: 0 0 16px;
    line-height: 1.5;
}
.oc-event-content { margin-bottom: 24px; line-height: 1.7; }

/* Event program */
.oc-event-program {
    background: #f8f9fb;
    border: 1px solid #e0e4ec;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
}
.oc-event-program h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 12px;
}
.oc-program-list { list-style: none; padding: 0; margin: 0; }
.oc-program-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eef0f5;
    font-size: 14px;
    align-items: start;
}
.oc-program-item:last-child { border-bottom: none; }
.oc-program-time { font-weight: 600; color: #0a4a8f; }
.oc-program-topic { color: #1a1a2e; }
.oc-program-speaker { color: #6b7280; font-size: 13px; }
.oc-program-item-single {
    padding: 8px 0;
    border-bottom: 1px solid #eef0f5;
    font-size: 14px;
    color: #1a1a2e;
}

/* Event notice */
.oc-event-notice {
    padding: 16px 20px;
    background: #f0f4fa;
    border-radius: 8px;
    color: #555;
    font-size: 14px;
    margin: 16px 0;
}

/* Event CTA */
.oc-event-cta { margin: 24px 0; }
.oc-event-cta-note {
    max-width: 680px;
    margin: 10px 0 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
}

/* === Events archive === */
.oc-events-archive { max-width: 1200px; margin: 0 auto; padding: 24px 20px; }
.oc-events-section { margin-bottom: 40px; }
.oc-events-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e4ec;
}
.oc-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.oc-event-archive-card {
    background: #fff;
    border: 1px solid #e0e4ec;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.oc-event-archive-card:hover {
    border-color: #c0cfe0;
    box-shadow: 0 2px 8px rgba(10,22,40,.06);
}
.oc-event-archive-date {
    font-size: 13px;
    font-weight: 600;
    color: #0a4a8f;
    margin-bottom: 4px;
}
.oc-event-archive-title {
    font-size: 16px;
    font-weight: 600;
    color: #0a1628;
    margin-bottom: 4px;
}
.oc-event-archive-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* === Expert single === */
.oc-expert-single-v2 {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}
.oc-expert-top-v2 {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.oc-expert-photo-v2 {
    flex-shrink: 0;
    width: 96px; height: 96px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628, #0a4a8f);
}
.oc-expert-photo-v2 img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.oc-expert-initials-v2 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}
.oc-expert-info-v2 { flex: 1; min-width: 0; }
.oc-expert-name-v2 {
    font-size: 24px;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 4px;
}
.oc-expert-role-v2 {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}
.oc-expert-org-v2 {
    font-size: 14px;
    color: #0a4a8f;
    font-weight: 500;
}
.oc-expert-bio-v2 {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 16px;
}
.oc-expert-links-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.oc-expert-link-v2 {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #0a4a8f;
    text-decoration: none;
}
.oc-expert-link-v2:hover { text-decoration: underline; }
.oc-expert-ask-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 6px;
    background: #0a1628;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.oc-expert-ask-btn:hover { background: #0a4a8f; color: #fff; }

/* === Experts archive === */
.oc-experts-archive-v2 { max-width: 1200px; margin: 0 auto; padding: 24px 20px; }
.oc-experts-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.oc-expert-card-v2 {
    background: #fff;
    border: 1px solid #e0e4ec;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.oc-expert-card-v2:hover {
    border-color: #c0cfe0;
    box-shadow: 0 2px 8px rgba(10,22,40,.06);
}
.oc-expert-card-avatar {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628, #0a4a8f);
}
.oc-expert-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.oc-expert-card-initials { color: #fff; font-size: 18px; font-weight: 700; }
.oc-expert-card-name { font-size: 15px; font-weight: 600; color: #0a1628; margin-bottom: 2px; }
.oc-expert-card-role { font-size: 13px; color: #6b7280; }

/* === Upcoming events widget === */
.oc-upcoming-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 600px;
}
.oc-event-card-min {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e0e4ec;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.oc-event-card-min:hover {
    border-color: #c0cfe0;
    box-shadow: 0 1px 4px rgba(10,22,40,.06);
}
.oc-event-card-date {
    flex-shrink: 0;
    width: 56px;
    text-align: center;
    border-right: 1px solid #eef0f5;
    padding-right: 12px;
}
.oc-event-day {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0a1628;
}
.oc-event-time {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}
.oc-event-card-body {
    flex: 1;
    min-width: 0;
}
.oc-event-card-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0a1628;
    margin-bottom: 2px;
}
.oc-event-card-desc {
    display: block;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}
.oc-event-card-format {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    color: #0a4a8f;
    background: #e3f2fd;
    padding: 1px 8px;
    border-radius: 8px;
}
.oc-events-all-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #0a4a8f;
    text-decoration: none;
    font-weight: 500;
    margin-top: 8px;
}
.oc-events-all-link:hover { text-decoration: underline; }

/* === Mobile for events/experts === */
@media (max-width: 768px) {
    .oc-event-title { font-size: 22px; }
    .oc-events-grid { grid-template-columns: 1fr; }
    .oc-expert-top-v2 { flex-direction: column; align-items: center; text-align: center; }
    .oc-experts-grid-v2 { grid-template-columns: 1fr; }
    .oc-program-item {
        grid-template-columns: 50px 1fr;
    }
    .oc-program-speaker { grid-column: 2; }
    .oc-event-card-min { flex-direction: column; gap: 8px; }
    .oc-event-card-date {
        border-right: none;
        border-bottom: 1px solid #eef0f5;
        padding-right: 0;
        padding-bottom: 8px;
        width: 100%;
        text-align: left;
        display: flex;
        gap: 8px;
        align-items: baseline;
    }
    .oc-event-day, .oc-event-time { display: inline; }
}

/* ══════════════════════════════════════════════
 * v1.0.8 — Access page + Publications
 * ══════════════════════════════════════════════ */

/* === Access page === */
.oc-access-page { max-width: 900px; margin: 0 auto; padding: 24px 20px 48px; }
.oc-access-intro {
    max-width: 680px;
    margin-bottom: 28px;
}
.oc-access-eyebrow,
.oc-access-plan__label {
    margin: 0 0 8px;
    color: #0a4a8f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.oc-access-intro h2,
.oc-access-plan h2,
.oc-access-steps h2 {
    color: #0a1628;
    font-weight: 700;
}
.oc-access-intro h2 { margin: 0 0 12px; font-size: clamp(24px, 4vw, 34px); }
.oc-access-intro p:last-child { margin: 0; color: #4b5563; line-height: 1.7; }
.oc-access-plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 32px;
    margin: 28px 0;
    padding: 32px;
    background: #fff;
    border: 1px solid #dce4ee;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(10, 22, 40, .06);
}
.oc-access-plan h2 { margin: 0 0 18px; font-size: 24px; }
.oc-access-plan__benefits { margin: 0; padding-left: 20px; color: #27364a; }
.oc-access-plan__benefits li + li { margin-top: 8px; }
.oc-access-plan__note { margin: 18px 0 0; color: #6b7280; font-size: 14px; line-height: 1.55; }
.oc-access-plan__purchase {
    align-self: center;
    padding-left: 28px;
    border-left: 1px solid #e5eaf0;
}
.oc-access-plan__price { color: #0a1628; font-size: 32px; font-weight: 800; line-height: 1.2; }
.oc-access-plan__purchase > p { margin: 5px 0 18px; color: #6b7280; }
.oc-access-plan__button { display: block; width: 100%; padding: 13px 20px; text-align: center; border-radius: 7px; }
.oc-access-plan__login { margin: 14px 0 0 !important; font-size: 13px; text-align: center; }
.oc-access-plan__login a { color: #0a4a8f; font-weight: 600; }
.oc-access-plan__unavailable { padding: 12px; background: #f6f7f9; border-radius: 6px; color: #555 !important; }
.oc-access-active { margin: 24px 0; }
.oc-access-steps { margin-top: 36px; }
.oc-access-steps h2 { margin: 0 0 14px; font-size: 21px; }
.oc-access-steps ol { margin: 0; padding-left: 22px; color: #4b5563; }
.oc-access-steps li + li { margin-top: 8px; }
.oc-access-login-prompt {
    text-align: center;
    padding: 32px 24px;
    background: #f8f9fb;
    border: 1px solid #e0e4ec;
    border-radius: 8px;
    margin-bottom: 32px;
}
.oc-access-login-prompt h2 {
    font-size: 22px; font-weight: 700; color: #0a1628;
    margin: 0 0 8px;
}
.oc-access-login-prompt p {
    font-size: 15px; color: #555; margin: 0 0 16px;
}
.oc-access-actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.oc-access-actions .oc-btn {
    padding: 10px 28px; border-radius: 6px; font-size: 14px; font-weight: 600;
    text-decoration: none; display: inline-block;
}
.oc-btn-secondary {
    background: #fff; color: #0a1628; border: 1px solid #c0cfe0;
}
.oc-btn-secondary:hover { border-color: #0a4a8f; color: #0a4a8f; }

.oc-access-active h2, .oc-access-no-grants h2 {
    font-size: 20px; font-weight: 700; color: #0a1628; margin: 0 0 16px;
}

/* Plans grid */
.oc-access-plans { margin: 32px 0; }
.oc-access-plans h2 {
    font-size: 20px; font-weight: 700; color: #0a1628; margin: 0 0 16px;
}
.oc-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.oc-plan-card {
    background: #fff;
    border: 1px solid #e0e4ec;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.oc-plan-title {
    font-size: 16px; font-weight: 700; color: #0a1628; margin: 0;
}
.oc-plan-price {
    font-size: 20px; font-weight: 700; color: #0a4a8f;
}
.oc-plan-desc {
    font-size: 13px; color: #6b7280; line-height: 1.5; flex: 1;
}
.oc-plan-btn {
    margin-top: 8px;
    text-align: center;
}

/* Catalog grid */
.oc-access-catalog { margin: 32px 0; }
.oc-access-catalog h2 {
    font-size: 20px; font-weight: 700; color: #0a1628; margin: 0 0 16px;
}
.oc-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.oc-catalog-card {
    background: #f8f9fb;
    border: 1px solid #e0e4ec;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: border-color 0.15s;
}
.oc-catalog-card:hover { border-color: #0a4a8f; }
.oc-catalog-label { font-size: 14px; color: #6b7280; }
.oc-catalog-count { font-size: 24px; font-weight: 700; color: #0a1628; }

/* === Publications filter (on native posts archive) === */
.oc-pub-filters {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}
.oc-pub-filter {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    background: #f0f4fa;
    color: #555;
    transition: background 0.15s, color 0.15s;
}
.oc-pub-filter:hover,
.oc-pub-filter-active {
    background: #0a4a8f;
    color: #fff;
}

@media (max-width: 768px) {
    .oc-access-page { padding-right: 16px; padding-left: 16px; }
    .oc-access-plan { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px; }
    .oc-access-plan__purchase { padding: 22px 0 0; border-top: 1px solid #e5eaf0; border-left: 0; }
    .oc-plans-grid { grid-template-columns: 1fr; }
    .oc-catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Publications Knowledge Base v1.0.20 ── */

.oc-pub-archive {
    background: #fafbfc;
    min-height: 60vh;
}

.oc-pub-container {
    width: min(100% - 48px, 1120px);
    margin: 0 auto;
    padding: 48px 0 64px;
}

.oc-pub-archive .oc-pub-title {
    font-size: clamp(1.75rem, 4vw, 2.55rem);
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 8px;
}

.oc-pub-taxonomy {
    margin: 30px 0 18px;
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid #cad9e8;
    border-radius: 18px;
    background: linear-gradient(145deg, #f7fbff, #eef6fc);
}

.oc-pub-taxonomy-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.oc-pub-taxonomy-head h2,
.oc-pub-results-head h2 {
    margin: 0;
    color: #0a1628;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.oc-pub-taxonomy-head > a,
.oc-pub-reset {
    color: #0a4a8f;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

.oc-pub-taxonomy-kicker,
.oc-pub-results-kicker {
    margin: 0 0 5px;
    color: #0a5ba5;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.oc-pub-topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.oc-pub-topic {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 9px 12px 9px 14px;
    border: 1px solid #bfd2e4;
    border-radius: 10px;
    background: #fff;
    color: #173451;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
}

.oc-pub-topic b {
    display: inline-grid;
    min-width: 23px;
    height: 23px;
    padding: 0 5px;
    place-items: center;
    border-radius: 7px;
    background: #e8f2fb;
    color: #0a4a8f;
    font-size: .72rem;
}

.oc-pub-topic:hover,
.oc-pub-topic:focus,
.oc-pub-topic.is-active {
    border-color: #0a4a8f;
    background: #0a4a8f;
    color: #fff;
}

.oc-pub-topic:hover b,
.oc-pub-topic:focus b,
.oc-pub-topic.is-active b {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.oc-pub-tag-cloud {
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(0, 2fr);
    gap: 24px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #d3e0ec;
}

.oc-pub-tag-cloud-head h3 {
    margin: 0 0 5px;
    color: #173451;
    font-size: 1rem;
}

.oc-pub-tag-cloud-head p {
    margin: 0;
    color: #647487;
    font-size: .78rem;
    line-height: 1.45;
}

.oc-pub-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 13px;
}

.oc-pub-tag {
    color: #36536f;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.oc-pub-tag.is-small { font-size: .78rem; }
.oc-pub-tag.is-medium { font-size: .9rem; }
.oc-pub-tag.is-large { color: #0a4a8f; font-size: 1.04rem; font-weight: 750; }
.oc-pub-tag:hover,
.oc-pub-tag:focus,
.oc-pub-tag.is-active { color: #072f5b; text-decoration: underline; text-underline-offset: 3px; }
.oc-pub-tag sup { margin-left: 3px; color: #71869b; font-size: .62em; }

.oc-pub-format-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 30px;
}

.oc-pub-format-row > span {
    color: #68798b;
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.oc-pub-format-row .oc-pub-filters { margin: 0; }

.oc-pub-results-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 34px 0 18px;
}

.oc-pub-results-head p:last-child {
    margin: 5px 0 0;
    color: #718092;
    font-size: .8rem;
}

.oc-pub-card-taxonomy {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 9px;
    margin: 0 0 12px;
}

.oc-pub-card-topic,
.oc-pub-card-tag {
    font-size: .72rem;
    line-height: 1.3;
    text-decoration: none;
}

.oc-pub-card-topic {
    padding: 5px 8px;
    border-radius: 6px;
    background: #e9f3fc;
    color: #0a4a8f;
    font-weight: 700;
}

.oc-pub-card-tag { color: #68798b; }
.oc-pub-card-topic:hover,
.oc-pub-card-tag:hover { color: #072f5b; text-decoration: underline; }

.oc-pub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.oc-pub-card {
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.oc-pub-card:hover {
    box-shadow: 0 12px 32px rgba(10, 22, 40, 0.08);
    border-color: #9db9d5;
    transform: translateY(-2px);
}

.oc-pub-card-format {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0a4a8f;
    background: #e8f0fe;
    border-radius: 4px;
    padding: 2px 8px;
    align-self: flex-start;
    margin-bottom: 10px;
}

.oc-pub-card-h2 {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}
.oc-pub-card-h2 a {
    color: #0a1628;
    text-decoration: none;
}
.oc-pub-card-h2 a:hover {
    color: #0a4a8f;
}

.oc-pub-card-excerpt {
    font-size: 0.94rem;
    color: #5a6270;
    line-height: 1.62;
    margin: 0 0 20px;
    flex: 1;
}

.oc-pub-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.oc-pub-card-date {
    font-size: 0.78rem;
    color: #8892a0;
}

.oc-pub-card-read {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0a4a8f;
    text-decoration: none;
}
.oc-pub-card-read:hover {
    text-decoration: underline;
}

.oc-pub-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f4;
}
.oc-pub-card-action {
    font-size: 0.75rem;
    color: #4a5060;
    background: #f4f5f7;
    border-radius: 4px;
    padding: 3px 8px;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
}
.oc-pub-card-action:hover {
    background: #e8f0fe;
    color: #0a4a8f;
}

/* Empty state */
.oc-pub-empty {
    text-align: center;
    padding: 60px 20px;
}
.oc-pub-empty-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0a1628;
    margin: 0 0 8px;
}
.oc-pub-empty-sub {
    font-size: 0.92rem;
    color: #6a7180;
    margin: 0;
}

/* Pagination */
.oc-pub-pagination {
    text-align: center;
    margin: 20px 0 0;
}
.oc-pub-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    font-size: 0.88rem;
    color: #0a4a8f;
    text-decoration: none;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
}
.oc-pub-pagination .current {
    background: #0a4a8f;
    color: #fff;
    border-color: #0a4a8f;
}

/* Related competencies on single post */
.oc-header__right { position: relative; }
@media (min-width: 641px) {
    .oc-search-form.is-open { display: block !important; }
}
.oc-search-toggle.is-active { color: #0a4a8f; }
.oc-search-toggle:focus-visible,
.oc-search-form input:focus-visible { outline: 2px solid #145da0; outline-offset: 2px; }

.oc-publication-single article.blog__details-wrapper > .blog__standard-thumb {
    display: none;
}
.oc-pub-related-comp {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 2px solid #f0f0f4;
}
.oc-pub-related-h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0a1628;
    margin: 0 0 14px;
}
.oc-pub-related-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-bottom: 1px solid #e2e8ef;
}
.oc-pub-related-item {
    display: flex;
    min-height: 52px;
    padding: 12px 2px;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    background: transparent;
    border-top: 1px solid #e2e8ef;
    border-radius: 0;
    text-decoration: none;
    transition: background 0.2s;
}
.oc-pub-related-item:hover {
    background: #f7fafc;
}
.oc-pub-related-action {
    font-size: 0.92rem;
    font-weight: 500;
    color: #1a1a2e;
}
.oc-pub-related-area {
    font-size: 0.78rem;
    color: #8892a0;
    margin-left: 0;
}

/* Author and automatic further reading on publication pages */
.oc-pub-afterword {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 2px solid #f0f0f4;
    color: #0a1628;
}
.oc-pub-author-line {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
}
.oc-pub-afterword-eyebrow {
    display: inline;
    margin-bottom: 0;
    color: #697386;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.oc-pub-author-name {
    color: #0a1628;
    font-size: 1.08rem;
    font-weight: 700;
}
.oc-pub-author-separator { color: #9aa7b5; }
a.oc-pub-author-name:hover {
    color: #0a4a8f;
}
.oc-pub-further-reading {
    margin-top: 24px;
}
.oc-pub-further-reading > h2 {
    margin: 0 0 14px;
    color: #0a1628;
    font-size: 1.3rem;
    font-weight: 700;
}
.oc-pub-further-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.oc-pub-further-card {
    display: flex;
    min-height: 168px;
    padding: 18px;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    background: #fff;
    color: #0a1628;
    line-height: 1.45;
}
.oc-pub-further-card:hover { border-color: #9db9d5; box-shadow: 0 10px 28px rgba(10,22,40,.06); }
.oc-pub-further-label { color: #697386; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.oc-pub-further-card strong { font-size: .98rem; line-height: 1.42; }
.oc-pub-further-link { margin-top: auto; color: #0a4a8f; font-size: .86rem; font-weight: 700; }
.oc-pub-project-context {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid #cfe0ee;
    border-radius: 14px;
    background: linear-gradient(145deg, #eef6fc, #f8fbfd);
}
.oc-pub-project-context h2 {
    margin: 0 0 8px;
    color: #0a1628;
    font-size: 1.25rem;
    line-height: 1.3;
}
.oc-pub-project-context p {
    max-width: 760px;
    margin: 0;
    color: #40546a;
    line-height: 1.6;
}
.oc-pub-project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}
.oc-pub-project-links a {
    display: inline-flex;
    min-height: 40px;
    padding: 8px 13px;
    align-items: center;
    border: 1px solid #b9d2e5;
    border-radius: 9px;
    background: #fff;
    color: #0a4a8f;
    font-size: 0.88rem;
    font-weight: 700;
}
.oc-pub-project-links a:hover {
    border-color: #0a4a8f;
    color: #07376b;
}

@media (max-width: 600px) {
    .oc-pub-container {
        width: min(100% - 32px, 1120px);
        padding: 32px 0 48px;
    }
    .oc-pub-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .oc-pub-card { padding: 22px; }
    .oc-pub-taxonomy { padding: 20px 16px; border-radius: 14px; }
    .oc-pub-taxonomy-head,
    .oc-pub-results-head { align-items: flex-start; flex-direction: column; }
    .oc-pub-topic { width: 100%; justify-content: space-between; }
    .oc-pub-tag-cloud { grid-template-columns: 1fr; gap: 13px; }
    .oc-pub-format-row { align-items: flex-start; flex-direction: column; }
    .oc-pub-related-item {
        gap: 2px;
    }
    .oc-pub-related-area {
        margin-left: 0;
    }
    .oc-pub-further-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .oc-pub-related-item { align-items: flex-start; flex-direction: column; gap: 4px; }
    .oc-pub-further-card { min-height: 0; }
    .oc-pub-project-context { padding: 20px; }
    .oc-pub-project-links { flex-direction: column; }
    .oc-pub-project-links a { justify-content: center; }
}

/* ── Route CTA (user navigation) v1.0.22 ── */
.oc-route-cta {
    margin-top: 40px;
    padding: 24px 28px;
    background: #f7f8fa;
    border: 1px solid #e2e5ea;
    border-radius: 10px;
}
.oc-route-cta-h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0a1628;
    margin: 0 0 8px;
}
.oc-route-cta-text {
    font-size: 0.9rem;
    color: #4a5060;
    line-height: 1.6;
    margin: 0 0 16px;
}
.oc-route-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.oc-route-cta-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #0a4a8f;
    background: #fff;
    border: 1px solid #d0d4dc;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.oc-route-cta-btn:hover {
    background: #e8f0fe;
    border-color: #0a4a8f;
}

@media (max-width: 600px) {
    .oc-route-cta {
        padding: 18px 16px;
    }
    .oc-route-cta-buttons {
        flex-direction: column;
    }
    .oc-route-cta-btn {
        text-align: center;
    }
}

/* ── Unified Archive Layer v1.0.23 ── */

/* Archive header (shared across events/experts/publikacii) */
.oc-archive-header {
    margin-bottom: 32px;
}
.oc-archive-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 8px;
    line-height: 1.25;
}
.oc-archive-intro {
    font-size: 1rem;
    color: #4a5060;
    line-height: 1.7;
    max-width: 680px;
    margin: 0;
}

/* Archive section heading */
.oc-section-heading {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a5060;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

/* Archive containers — unified width */
.oc-events-archive,
.oc-experts-archive {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 24px;
}

.oc-expert-filter {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(220px, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    margin: 0 0 12px;
    padding: 18px;
    border: 1px solid #d5e0eb;
    border-radius: 14px;
    background: #f7faff;
}
.oc-expert-filter label > span { display: block; margin-bottom: 6px; color: #263f57; font-size: .82rem; font-weight: 700; }
.oc-expert-filter input,
.oc-expert-filter select { box-sizing: border-box; width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #bdcddd; border-radius: 9px; background: #fff; color: #0a1628; }
.oc-expert-filter .oc-btn { min-height: 46px; border: 0; cursor: pointer; }
.oc-expert-filter__reset { display: inline-flex; min-height: 46px; align-items: center; color: #365c7d; }
.oc-expert-filter__result { margin: 0 0 18px; color: #52677d; font-size: .9rem; }
.oc-expert-card-topics { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.oc-expert-card-topics span { padding: 4px 7px; border-radius: 999px; background: #eaf3fb; color: #164d78; font-size: .7rem; line-height: 1.2; }

/* Archive past section */
.oc-archive-past {
    margin-top: 40px;
    opacity: 1;
}
.oc-event-past-card {
    opacity: 1;
}

/* Archive empty state */
.oc-empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 1rem;
    color: #4a5060;
}

/* Competencies archive cards — replace inline styles */
.oc-comp-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: stretch;
    margin-bottom: 40px;
}
.oc-comp-area-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    border: 1px solid #e2e5ea;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.oc-comp-area-card:hover {
    border-color: #0a4a8f;
    box-shadow: 0 2px 8px rgba(10,74,143,0.08);
}
.oc-comp-area-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0a1628;
    margin-bottom: 8px;
}
.oc-comp-area-desc {
    font-size: 0.9rem;
    color: #4a5060;
    line-height: 1.55;
    margin-bottom: 16px;
    flex-grow: 1;
}
.oc-comp-area-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}
.oc-comp-area-meta-item {
    font-size: 0.82rem;
    color: #6a7180;
}
.oc-comp-area-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: #0a4a8f;
}

/* Competencies breadcrumb */
.oc-comp-crumb {
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #8892a0;
}
.oc-comp-crumb a {
    color: #8892a0;
    text-decoration: none;
}
.oc-comp-crumb a:hover {
    color: #0a4a8f;
}

/* Competencies info block */
.oc-comp-info-block {
    margin-bottom: 40px;
    padding: 20px 24px;
    background: #f7f8fa;
    border: 1px solid #e2e5ea;
    border-radius: 10px;
}
.oc-comp-info-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a5060;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}
.oc-comp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.oc-comp-info-item-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: #0a1628;
    margin-bottom: 4px;
}
.oc-comp-info-item-desc {
    font-size: 0.85rem;
    color: #4a5060;
    line-height: 1.5;
}
.oc-comp-info-note {
    font-size: 0.82rem;
    color: #6a7180;
    margin-top: 14px;
    margin-bottom: 0;
}

/* Competencies section heading */
.oc-comp-section-heading {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a5060;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

/* Archive CTA (shared on publikacii/events/experts) */
.oc-archive-cta {
    margin-top: 48px;
}

/* Mobile: unified */
@media (max-width: 640px) {
    .oc-events-archive,
    .oc-experts-archive {
        padding: 28px 16px;
    }
    .oc-comp-archive-grid {
        grid-template-columns: 1fr;
    }
    .oc-archive-title {
        font-size: 1.5rem;
    }
    .oc-comp-info-grid {
        grid-template-columns: 1fr;
    }
    .oc-expert-filter {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════
 * v1.0.23 — Single Pages Visual Layer
 * ══════════════════════════════════════════════ */

/* ── Single Competencies (moved from inline <style>) ── */

.oc-comp-single__container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0 72px;
}

.oc-comp-single--area .oc-comp-single__container,
.oc-comp-single--competency .oc-comp-single__container {
    max-width: 800px;
}

.oc-comp-single .oc-crumb,
.oc-comp-single .oc-crumb a {
    color: #8892a0;
    text-decoration: none;
    font-size: 0.82rem;
}
.oc-comp-single .oc-crumb-sep {
    color: #ccc;
    margin: 0 2px;
}
.oc-comp-single .oc-crumbs {
    margin-bottom: 16px;
}

.oc-comp-single .oc-comp-h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: #0a1628;
    line-height: 1.25;
    margin: 0 0 16px;
}

.oc-comp-single .oc-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
}
.oc-comp-single .oc-badge-area   { background: #e8f0fe; color: #0a4a8f; }
.oc-comp-single .oc-badge-comp   { background: #e8f5e9; color: #1a7a4c; }
.oc-comp-single .oc-badge-action { background: #fff3e0; color: #b8731a; }

.oc-comp-single .oc-badge-wrap { margin-bottom: 20px; }

.oc-comp-single .oc-entry-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #1a1a2e;
    margin-bottom: 28px;
}

.oc-comp-single--action .oc-entry-content {
    max-width: 820px;
}

.oc-action-orientation {
    max-width: 820px;
    margin: 0 0 28px;
    padding: 22px 24px;
    border: 1px solid #d8e4ef;
    border-radius: 14px;
    background: #f5f9fc;
}
.oc-action-orientation__eyebrow,
.oc-action-next__eyebrow {
    margin: 0 0 6px;
    color: #075fae;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.oc-action-orientation h2,
.oc-action-next h2 { margin: 0 0 8px; color: #071b3b; font-size: 1.25rem; }
.oc-action-orientation p:last-child,
.oc-action-next > p { max-width: 720px; margin: 0; color: #425873; line-height: 1.6; }

.oc-comp-single .oc-section-h {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0a1628;
}

.oc-comp-single .oc-child-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
.oc-comp-single .oc-child-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f4;
}
.oc-comp-single .oc-child-list a {
    color: #0a4a8f;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}
.oc-comp-single .oc-child-list a:hover {
    text-decoration: underline;
}

.oc-comp-single .oc-parent-link {
    font-size: 0.88rem;
    color: #4a5060;
    margin-bottom: 20px;
}
.oc-comp-single .oc-parent-link a {
    color: #0a4a8f;
    text-decoration: none;
}

/* Result card */
.oc-comp-single .oc-card {
    background: #f7f8fa;
    border: 1px solid #e2e5ea;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.oc-comp-single--action .oc-outcome-card {
    max-width: 820px;
    margin-top: 8px;
    margin-bottom: 36px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f5f8fc 0%, #ffffff 100%);
    border-color: #d7e1ec;
    border-left: 4px solid #1d6fb8;
    border-radius: 12px;
}
.oc-comp-single .oc-card-h {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a5060;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 6px;
}
.oc-comp-single .oc-card-text {
    font-size: 0.95rem;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.55;
}

/* Related */
.oc-comp-single .oc-related-wrap {
    margin-bottom: 28px;
}
.oc-comp-single--action .oc-related-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 0 0 32px;
    padding: 28px;
    background: #f7f9fc;
    border: 1px solid #e0e7ef;
    border-radius: 18px;
}
.oc-comp-single--action .oc-related-wrap > .oc-section-h {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 1.35rem;
}
.oc-comp-single .oc-related-group {
    margin-bottom: 18px;
}
.oc-comp-single--action .oc-related-group {
    display: flex;
    min-width: 0;
    margin: 0;
    flex-direction: column;
}
.oc-comp-single .oc-related-subh {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4a5060;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
}
.oc-comp-single .oc-related-subh b {
    display: inline-flex;
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e8f2fb;
    color: #0b3f73;
    font-size: .72rem;
    font-weight: 800;
}
.oc-comp-single .oc-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.oc-comp-single .oc-related-grid.oc-related-single {
    grid-template-columns: 1fr;
    max-width: 340px;
}
.oc-comp-single--action .oc-related-grid,
.oc-comp-single--action .oc-related-grid.oc-related-single {
    grid-template-columns: 1fr;
    max-width: none;
    height: 100%;
}
.oc-comp-single .oc-related-card {
    display: block;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e2e5ea;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a2e;
    font-size: 0.9rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.oc-comp-single--action .oc-related-card {
    min-height: 132px;
    padding: 18px 20px;
    border-color: #d8e1eb;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(10, 22, 40, 0.04);
}
.oc-comp-single .oc-related-card:hover {
    border-color: #c0cfe0;
    box-shadow: 0 2px 8px rgba(10,22,40,.06);
}
.oc-comp-single .oc-related-group.is-collapsed .oc-related-card--extra {
    display: none;
}
.oc-comp-single .oc-related-toggle {
    width: 100%;
    min-height: 40px;
    margin-top: 10px;
    padding: 8px 12px;
    border: 1px solid #bdd1e2;
    border-radius: 9px;
    background: #f4f9fd;
    color: #0b3f73;
    font: inherit;
    font-size: .82rem;
    font-weight: 750;
    cursor: pointer;
}
.oc-comp-single .oc-related-toggle:hover,
.oc-comp-single .oc-related-toggle:focus-visible {
    border-color: #145da0;
    background: #fff;
    outline: 3px solid rgba(29,111,184,.2);
    outline-offset: 2px;
}
.oc-comp-single .oc-related-card:focus-visible,
.oc-comp-single .oc-context-summary:focus-visible {
    outline: 3px solid rgba(29, 111, 184, 0.3);
    outline-offset: 3px;
}
.oc-comp-single .oc-related-title {
    font-weight: 500;
    margin-bottom: 4px;
}
.oc-comp-single--action .oc-related-title {
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.45;
}
.oc-comp-single .oc-related-meta {
    font-size: 0.78rem;
    color: #6a7180;
    margin-top: 2px;
}
.oc-comp-single .oc-related-meta-light {
    color: #8892a0;
}

/* Context details */
.oc-comp-single .oc-context-details {
    margin-top: 4px;
    border: 1px solid #e2e5ea;
    border-radius: 8px;
    overflow: hidden;
}
.oc-comp-single--action .oc-context-details {
    margin-top: 0;
    border-color: #d8e1eb;
    border-radius: 12px;
    background: #fff;
}
.oc-comp-single .oc-context-summary {
    padding: 14px 20px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0a1628;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.oc-comp-single .oc-context-summary::-webkit-details-marker { display: none; }
.oc-comp-single .oc-context-summary::after {
    content: '▸';
    font-size: 0.8rem;
    color: #8892a0;
    transition: transform 0.2s;
}
.oc-comp-single .oc-context-details[open] .oc-context-summary::after {
    transform: rotate(90deg);
}
.oc-comp-single .oc-context-body {
    padding: 0 20px 16px;
}
.oc-context-intro { margin: 0 0 12px; color: #536781; font-size: .88rem; line-height: 1.5; }
.oc-action-next { margin-top: 26px; padding: 26px 28px; border-radius: 16px; background: #0c2949; color: #fff; }
.oc-action-next h2 { color: #fff; }
.oc-action-next > p { color: #d6e2ed; }
.oc-action-next__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.oc-action-next .oc-btn-secondary { border-color: rgba(255,255,255,.55); background: transparent; color: #fff; }
.oc-action-next__back { padding: 10px 4px; color: #d6e2ed; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.oc-comp-single .oc-context-row {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    border-top: 1px solid #f0f0f4;
    font-size: 0.88rem;
}
.oc-comp-single .oc-context-label {
    flex: 0 0 220px;
    color: #4a5060;
    font-weight: 500;
}
.oc-comp-single .oc-context-value {
    color: #1a1a2e;
}

/* ── Expert single (matching template classes) ── */

.oc-expert-single {
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 24px 72px;
}
.oc-expert-header {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-bottom: 32px;
    padding: 32px;
    background: linear-gradient(135deg, #f4f8fc 0%, #ffffff 72%);
    border: 1px solid #dbe4ee;
    border-radius: 16px;
}
.oc-expert-photo-lg {
    flex-shrink: 0;
    width: 132px; height: 132px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628, #0a4a8f);
}
.oc-expert-photo-lg img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.oc-expert-photo-lg .oc-expert-initials {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}
.oc-expert-meta {
    flex: 1;
    min-width: 0;
}
.oc-expert-name-heading {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 4px;
    line-height: 1.25;
}
.oc-expert-header .oc-expert-role,
.oc-expert-header .oc-expert-org {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 2px;
}
.oc-expert-header .oc-expert-org {
    color: #0a4a8f;
    font-weight: 500;
}

.oc-expert-section {
    margin: 0;
    padding: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.oc-expert-section .oc-section-heading {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a5060;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}
.oc-expert-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #1a1a2e;
}

.oc-ext-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.oc-ext-links li {
    padding: 6px 0;
}
.oc-ext-links a {
    color: #0a4a8f;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.oc-ext-links a:hover {
    text-decoration: underline;
}

.oc-expert-contact {
    margin: 24px 0 32px;
}

.oc-expert-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}
.oc-expert-overview > .oc-expert-section:only-child { grid-column: 1 / -1; }
.oc-experts-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.oc-experts-directory.oc-grid-single { grid-template-columns: minmax(0, 760px); }
.oc-experts-directory .oc-expert-archive-card {
    min-height: 150px;
    padding: 24px;
    gap: 18px;
    align-items: flex-start;
    border-color: #dbe4ee;
    border-radius: 14px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.oc-experts-directory .oc-expert-archive-card:hover {
    border-color: #9db9d5;
    box-shadow: 0 12px 32px rgba(10,22,40,.08);
    transform: translateY(-2px);
}
.oc-experts-directory .oc-expert-photo { width: 72px; height: 72px; margin-top: 2px; }
.oc-experts-directory .oc-expert-name {
    margin-bottom: 7px;
    font-size: 1.12rem;
    font-weight: 700;
}
.oc-experts-directory .oc-expert-comp {
    color: #526176;
    font-size: .88rem;
    line-height: 1.5;
}
.oc-expert-card-evidence { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #e6edf4; color: #526176; font-size: .78rem; line-height: 1.45; }
.oc-expert-card-evidence p { margin: 0 0 5px; }
.oc-expert-card-evidence span { font-weight: 700; color: #263f57; }
.oc-expert-card-evidence a { color: #315f85; text-decoration: none; }
.oc-expert-card-evidence small { display: inline-flex; margin-left: 4px; padding: 1px 5px; border-radius: 999px; background: #eef3f7; color: #526176; font-size: .68rem; }
.oc-expert-card-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 13px; }
.oc-expert-card-actions a { color: #0a4a8f; font-size: .78rem; font-weight: 700; text-decoration: none; }
.oc-expert-card-actions a:last-child { color: #365c7d; }
.oc-expert-publications {
    margin: 40px 0 0;
    padding-top: 32px;
    border-top: 1px solid #dbe4ee;
}
.oc-expert-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.oc-expert-section-head h2 {
    margin: 0;
    color: #0a1628;
    font-size: 1.45rem;
}
.oc-expert-section-head a {
    color: #0a4a8f;
    font-weight: 700;
    text-decoration: none;
}
.oc-expert-publications-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.oc-expert-publication-card {
    padding: 22px;
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
}
.oc-expert-publication-format {
    color: #0a4a8f;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.oc-expert-publication-card h3 {
    margin: 8px 0 18px;
    font-size: 1.05rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.oc-expert-publication-card h3 a { color: #0a1628; text-decoration: none; }
.oc-expert-publication-card h3 a:hover { color: #0a4a8f; }
.oc-expert-publication-card time { color: #718096; font-size: .8rem; }

/* ── Event single refinements ── */

.oc-event-featured-media { display: grid; width: fit-content; max-width: 100%; margin: 28px auto 32px; overflow: hidden; place-items: center; border-radius: 14px; background: transparent; }
.oc-event-featured-media img { display: block; width: auto; max-width: 100%; max-height: 520px; object-fit: contain; border-radius: inherit; }
.oc-event-program-summary { margin-top: 30px; padding: 28px 30px; border: 1px solid #dbe4ee; border-radius: 14px; background: #f7f9fb; }
.oc-event-kind-nav { display: flex; gap: 8px; margin: 22px 0 30px; }
.oc-event-kind-nav a { padding: 10px 16px; border: 1px solid #c8d8e7; border-radius: 9px; background: #fff; color: #17415f; font-weight: 750; text-decoration: none; }
.oc-event-kind-nav a[aria-current="page"] { border-color: #075fae; background: #075fae; color: #fff; }
.oc-event-access-offer { margin-top: 30px; padding: 28px 30px; border: 1px solid #bfd5e8; border-radius: 14px; background: #f2f8fd; }
.oc-event-access-offer p { max-width: 720px; }
.oc-event-gallery { margin-top: 32px; }
.oc-event-gallery-viewer { max-width: 920px; }
.oc-event-gallery-main { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: #eaf0f5; cursor: zoom-in; }
.oc-event-gallery-main img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: contain; }
.oc-event-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.oc-event-gallery-thumb { flex: 0 0 112px; padding: 0; overflow: hidden; aspect-ratio: 4 / 3; border: 2px solid transparent; border-radius: 9px; background: #eaf0f5; cursor: pointer; }
.oc-event-gallery-thumb.is-active { border-color: #075fae; }
.oc-event-gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.oc-event-gallery-caption { margin: 4px 0 0; color: #536781; font-size: .88rem; }
.oc-event-gallery-dialog { width: min(94vw, 1280px); max-width: none; padding: 48px 64px 24px; border: 0; border-radius: 14px; background: #071b2f; color: #fff; }
.oc-event-gallery-dialog::backdrop { background: rgba(2, 12, 25, .86); }
.oc-event-gallery-dialog figure { margin: 0; text-align: center; }
.oc-event-gallery-dialog img { display: block; width: auto; max-width: 100%; height: auto; max-height: 78vh; margin: 0 auto; object-fit: contain; }
.oc-event-gallery-dialog figcaption { margin-top: 12px; color: #d9e5ef; }
.oc-event-gallery-close,
.oc-event-gallery-arrow { position: absolute; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.oc-event-gallery-close { top: 10px; right: 12px; width: 36px; height: 36px; font-size: 1.65rem; line-height: 1; }
.oc-event-gallery-arrow { top: 50%; width: 42px; height: 42px; transform: translateY(-50%); font-size: 1.25rem; }
.oc-event-gallery-arrow--prev { left: 10px; }
.oc-event-gallery-arrow--next { right: 10px; }
.oc-event-section-kicker { margin: 0 0 7px; color: #0b5fa5; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.oc-event-program-summary .oc-section-heading { margin-bottom: 18px; }
.oc-event-program-summary .oc-program-list { margin-bottom: 0; columns: 2; column-gap: 40px; }
.oc-event-program-summary .oc-program-list-bulleted { padding-left: 1.25rem; list-style: disc outside; }
.oc-event-program-summary .oc-program-list-bulleted li { display: list-item; break-inside: avoid; padding-left: .2rem; }
.oc-event-resources { margin-top: 32px; }
.oc-event-resource-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.oc-event-resource-group { padding: 22px; border: 1px solid #dbe4ee; border-radius: 14px; background: #f7f9fc; }
.oc-event-resource-group h3 { margin: 0 0 14px; color: #071b3b; font-size: 1.05rem; }
.oc-event-resource-group ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.oc-event-resource-group li { display: grid; gap: 3px; }
.oc-event-resource-group a { color: #075fae; font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.oc-event-resource-group span { color: #536781; font-size: .88rem; line-height: 1.45; }
.oc-event-resource-group--talks { grid-column: 1 / -1; padding: 0; border: 0; background: transparent; }
.oc-event-resource-group--talks > h3 { margin-bottom: 18px; }
.oc-event-resource-group--talks > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.oc-event-talk { align-content: start; min-width: 0; padding: 22px; border: 1px solid #dbe4ee; border-radius: 14px; background: #f7f9fc; }
.oc-event-talk-speaker { margin: 0; color: #075fae; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.oc-event-talk h4 { margin: 0; color: #071b3b; font-size: 1.05rem; line-height: 1.35; }
.oc-event-talk-summary { margin: 0; color: #465d78; line-height: 1.55; }
.oc-event-talk-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; }
.oc-event-talk-links a { font-size: .9rem; }

.oc-events-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.oc-events-directory.oc-grid-single { grid-template-columns: minmax(0, 760px); }
.oc-event-archive-summary { display: grid; gap: 2px; margin-top: auto; padding: 16px 20px; border-top: 1px solid #dbe4ee; color: #536781; }
.oc-event-archive-summary strong { color: #0a4a8f; font-size: .92rem; }
.oc-event-archive-summary span { font-size: .78rem; }
.oc-events-directory .oc-event-archive-card {
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 24px;
    border-color: #dbe4ee;
    border-radius: 14px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.oc-event-archive-main { display: flex; flex: 1; flex-direction: column; color: inherit; text-decoration: none; }
.oc-event-archive-cover { display: grid; height: 172px; margin: -24px -24px 20px; overflow: hidden; place-items: center; border-radius: 13px 13px 0 0; background: #edf3f8; }
.oc-event-archive-cover img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.oc-event-presenter { display: flex; margin-top: 18px; padding-top: 14px; align-items: center; gap: 10px; border-top: 1px solid #e2e8ef; color: #0a1628; text-decoration: none; }
.oc-event-presenter:hover strong { color: #0a4a8f; }
.oc-event-presenter__avatar { display: grid; width: 38px; height: 38px; overflow: hidden; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #0b4f87; color: #fff; font-size: .72rem; font-weight: 800; }
.oc-event-presenter__avatar img { width: 100%; height: 100%; object-fit: cover; }
.oc-event-presenter small, .oc-event-presenter strong { display: block; }
.oc-event-presenter small { color: #718096; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.oc-event-presenter strong { margin-top: 1px; font-size: .86rem; }
.oc-events-directory .oc-event-archive-card:hover {
    border-color: #9db9d5;
    box-shadow: 0 12px 32px rgba(10,22,40,.08);
    transform: translateY(-2px);
}
.oc-events-directory .oc-event-date-badge {
    margin-bottom: 10px;
    font-size: .82rem;
}
.oc-events-directory .oc-tag-format {
    align-self: flex-start;
    margin-bottom: 12px;
    color: #27496d;
    background: #edf4fb;
}
.oc-events-directory .oc-event-archive-title {
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.38;
    overflow-wrap: anywhere;
}
.oc-events-directory .oc-event-archive-desc {
    color: #526176;
    font-size: .9rem;
    line-height: 1.58;
}

.oc-event-year-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 34px 0 12px; padding: 16px 18px; border: 1px solid #dbe4ee; border-radius: 14px; background: #f7f9fb; }
.oc-event-year-nav__label { margin-right: 6px; color: #41556f; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.oc-event-year-nav a { padding: 7px 12px; border: 1px solid #c8d8e8; border-radius: 999px; background: #fff; color: #07569b; font-weight: 700; text-decoration: none; }
.oc-event-year-nav a:hover, .oc-event-year-nav a:focus-visible, .oc-event-year-nav a.is-current { border-color: #07569b; background: #07569b; color: #fff; }
.oc-archive-section-kicker { margin: 0 0 7px; color: #0b5fa5; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.oc-archive-section-intro { max-width: 760px; margin: -8px 0 22px; color: #4b607a; }

/* Event calendar shared by archive and homepage */
.oc-event-calendar { width: 100%; max-width: 430px; margin: 0 0 38px; padding: 16px 18px; border: 1px solid #dbe4ee; border-radius: 12px; background: #fbfcfd; }
.oc-event-calendar__head { display: flex; margin-bottom: 10px; align-items: center; justify-content: space-between; gap: 16px; }
.oc-event-calendar__eyebrow { color: #617187; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.oc-event-calendar__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.oc-event-calendar__nav a { color: #0b4f87; font-size: .72rem; font-weight: 750; text-decoration: none; }
.oc-event-calendar__nav a:hover, .oc-event-calendar__nav a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.oc-event-calendar__months { display: grid; min-height: 0; flex: 1; grid-template-rows: repeat(2,minmax(0,1fr)); gap: 12px; }
.oc-event-calendar__month { display: flex; min-height: 0; padding-top: 11px; flex-direction: column; border-top: 1px solid #e4ebf2; }
.oc-event-calendar__month:first-child { padding-top: 0; border-top: 0; }
.oc-event-calendar__month-head { display: flex; margin-bottom: 4px; align-items: baseline; justify-content: space-between; gap: 8px; }
.oc-event-calendar__month-head h3 { margin: 0; color: #0a1628; font-size: .98rem; line-height: 1.2; text-transform: capitalize; }
.oc-event-calendar__month-head span { color: #617187; font-size: .62rem; font-weight: 750; }
.oc-event-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
.oc-event-calendar__weekday { padding: 3px; color: #718096; font-size: .66rem; font-weight: 750; text-align: center; }
.oc-event-calendar__day, .oc-event-calendar__empty { position: relative; display: grid; min-height: 25px; place-items: center; color: #657487; font-size: .76rem; text-decoration: none; }
.oc-event-calendar__day.has-events { color: #0b4f87; font-weight: 900; }
.oc-event-calendar__day.has-events:hover, .oc-event-calendar__day.has-events:focus-visible { background: #edf6fc; text-decoration: underline; text-underline-offset: 3px; outline: 1px solid #9fc0dc; outline-offset: -1px; }
.oc-event-calendar__day.is-past { color: #344e67; }
.oc-event-calendar__day > span { position: absolute; top: 1px; right: 2px; color: #0b4f87; font-size: .52rem; font-weight: 900; line-height: 1; }
.oc-event-calendar__note { margin: 9px 0 0; color: #718096; font-size: .7rem; }
.oc-event-calendar--archive { max-width: none; }
.oc-event-calendar--archive .oc-event-calendar__months { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: none; gap: 28px; }
.oc-event-calendar--archive .oc-event-calendar__month + .oc-event-calendar__month { padding: 0 0 0 28px; border-top: 0; border-left: 1px solid #e4ebf2; }
.oc-event-single {
    max-width: 1120px;
    padding: 48px 24px 72px;
}
.oc-event-single .oc-event-header {
    max-width: 940px;
    margin-bottom: 28px;
}
.oc-event-single .oc-event-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    line-height: 1.18;
    overflow-wrap: anywhere;
}
.oc-event-single .oc-event-short-desc {
    max-width: 860px;
    color: #526176;
    font-size: 1.05rem;
    line-height: 1.65;
}

.oc-event-single .oc-event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.oc-event-single .oc-event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    background: #f4f8fc;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 32px;
    overflow: hidden;
}
.oc-event-single .oc-detail-row {
    display: grid;
    gap: 4px;
    padding: 18px 20px;
    font-size: 0.9rem;
}
.oc-event-single .oc-detail-row:not(:last-child) {
    border-right: 1px solid #dbe4ee;
}
.oc-event-single .oc-detail-label {
    flex: none;
    color: #6a7788;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.oc-event-single .oc-detail-value {
    color: #0a1628;
    font-size: 1rem;
    font-weight: 700;
}
.oc-event-single .oc-event-section {
    max-width: 900px;
    margin-bottom: 32px;
    color: #0a1628;
    font-size: 1rem;
    line-height: 1.75;
}
.oc-event-single .oc-event-section .oc-section-heading {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a5060;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}
.oc-event-single .oc-program-table {
    width: 100%;
    border-collapse: collapse;
}
.oc-event-single .oc-program-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eef0f5;
    font-size: 0.9rem;
    vertical-align: top;
}
.oc-event-single .oc-program-time {
    font-weight: 600;
    color: #0a4a8f;
    white-space: nowrap;
    width: 80px;
}
.oc-event-single .oc-program-desc {
    color: #1a1a2e;
}
.oc-event-single .oc-program-plain {
    font-weight: 500;
    color: #4a5060;
}
.oc-event-single .oc-event-notice {
    padding: 12px 16px;
    background: #f7f8fa;
    border: 1px solid #e2e5ea;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #4a5060;
    text-align: center;
}
.oc-event-single .oc-event-status {
    display: inline-flex;
    align-items: center;
    margin: -4px 0 24px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef2f6;
    color: #455468;
    font-size: 0.82rem;
    font-weight: 650;
}
.oc-event-route-cta { margin-top: 40px; }

/* ── Unified single-page mobile ── */
@media (max-width: 640px) {
    .oc-event-calendar { max-width: 100%; padding: 14px 12px; overflow: hidden; }
    .oc-event-calendar__head { display: block; }
    .oc-event-calendar__nav { margin-top: 8px; justify-content: flex-start; }
    .oc-event-calendar__months { display: block; }
    .oc-event-calendar__month + .oc-event-calendar__month { margin-top: 12px; }
    .oc-event-calendar--archive .oc-event-calendar__month + .oc-event-calendar__month { padding: 11px 0 0; border-top: 1px solid #e4ebf2; border-left: 0; }
    .oc-event-calendar__grid { gap: 1px; }
    .oc-event-calendar__day, .oc-event-calendar__empty { min-height: 30px; font-size: .76rem; }
    .oc-event-single,
    .oc-expert-single {
        padding: 28px 16px 40px;
    }
    .oc-expert-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }
    .oc-expert-overview,
    .oc-experts-directory,
    .oc-experts-directory.oc-grid-single,
    .oc-expert-publications-grid {
        grid-template-columns: 1fr;
    }
    .oc-experts-archive { padding: 32px 16px 48px; }
    .oc-experts-directory .oc-expert-archive-card { min-height: 0; padding: 18px; align-items: flex-start; }
    .oc-experts-directory .oc-expert-photo { width: 60px; height: 60px; }
    .oc-expert-card-actions { flex-direction: column; gap: 8px; }
    .oc-expert-section-head { align-items: flex-start; flex-direction: column; }
    .oc-event-single .oc-detail-row {
        display: grid;
        gap: 2px;
    }
    .oc-event-single .oc-detail-label {
        flex: none;
    }
    .oc-comp-single .oc-context-row {
        flex-direction: column;
        gap: 4px;
    }
    .oc-comp-single .oc-context-label {
        flex: none;
    }
    .oc-comp-single__container {
        width: min(1120px, calc(100% - 32px));
        padding: 32px 0 48px;
    }
    .oc-comp-single--action .oc-related-wrap {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px 18px;
        border-radius: 14px;
    }
    .oc-comp-single--action .oc-related-card {
        min-height: 0;
    }
    .oc-event-single .oc-program-table td {
        display: block;
    }
    .oc-event-single .oc-program-time {
        display: block;
        width: auto;
        margin-bottom: 2px;
    }
    .oc-events-directory,
    .oc-events-directory.oc-grid-single {
        grid-template-columns: 1fr;
    }
    .oc-events-archive { padding: 32px 16px 48px; }
    .oc-event-single .oc-event-details { grid-template-columns: 1fr; }
    .oc-event-single .oc-detail-row:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid #dbe4ee;
    }
}

/* v1.0.27 — Interface cleanup */
.oc-home-mvp__hero .oc-home-mvp__btn:not(.oc-home-mvp__btn--primary) {
    border-color: rgba(255,255,255,.68);
    background: rgba(255,255,255,.16);
    color: #ffffff;
}
.oc-home-mvp__hero .oc-home-mvp__btn:not(.oc-home-mvp__btn--primary):hover {
    border-color: #ffffff;
    background: rgba(255,255,255,.24);
    color: #ffffff;
}

.oc-footer__logo img,
.oc-footer .custom-logo,
.oc-footer img.custom-logo {
    max-width: 120px;
    height: auto;
}

.single-post .widget_recent_entries,
.single-post .widget_recent_comments,
.single-post .widget_categories,
.single-post .widget_archive,
.single-post .widget_meta,
.single-post .widget_tag_cloud,
.single-post .widget_sponsor,
.single-post .widget_sponsors {
    display: none !important;
}

.oc-course-thumb,
.oc-pub-card-thumb,
.oc-material-thumb {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #eef3f8;
    text-decoration: none;
}
.oc-course-thumb img,
.oc-pub-card-thumb img,
.oc-material-thumb img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}
.oc-course-thumb-fallback,
.oc-pub-card-thumb-fallback,
.oc-material-thumb-fallback {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #0a4a8f;
    background: linear-gradient(135deg, #e8f0fe 0%, #f7f8fa 100%);
    font-size: .86rem;
    font-weight: 800;
}
.oc-pub-card-thumb {
    margin-bottom: 14px;
}
.oc-material-thumb {
    flex: 0 0 120px;
}
.oc-material-thumb img,
.oc-material-thumb-fallback {
    height: 120px;
    min-height: 120px;
}
.oc-card-label,
.oc-pub-card-actions-title {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    color: #4a5060;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* v1.0.49: keep legacy theme widgets out of publication articles. */
.single-post .blog-sidebar {
    display: none;
}
.single-post .blog__post-meta li:has(> a[href*="#respond"]) {
    display: none;
}
.single-post .blog-details-area .row.justify-content-center > .col-lg-8 {
    flex: 0 0 100%;
    max-width: 780px;
    width: 100%;
}

@media (max-width: 767px) {
    .oc-event-featured-media { margin: 22px auto 26px; border-radius: 12px; }
    .oc-event-featured-media img { max-height: none; }
    .oc-event-gallery-thumb { flex-basis: 88px; }
    .oc-event-gallery-dialog { padding: 46px 12px 18px; }
    .oc-event-gallery-arrow { top: auto; bottom: 14px; }
    .oc-event-program-summary { padding: 22px 18px; }
    .oc-event-program-summary .oc-program-list { columns: 1; }
    .oc-event-resource-groups { grid-template-columns: 1fr; }
    .oc-event-resource-group { padding: 18px; }
    .oc-event-resource-group--talks { padding: 0; }
    .oc-event-resource-group--talks > ul { grid-template-columns: 1fr; }
    .oc-event-talk { padding: 18px; }
    .single-post .blog-details-area .row.justify-content-center > .col-lg-8 {
        max-width: 100%;
    }
}
.oc-course-topics,
.oc-material-card-competencies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}
.oc-material-card {
    align-items: stretch;
}
.oc-material-body {
    min-width: 0;
}

@media (max-width: 640px) {
    .oc-material-card {
        flex-direction: column;
    }
    .oc-material-thumb {
        flex-basis: auto;
    }
}

/* v1.0.46 — production journey: access status in WooCommerce account. */
.oc-account-access {
    margin: 28px 0;
    padding: 24px;
    border: 1px solid #d8e1ea;
    border-radius: 12px;
    background: #f8fafc;
}
.oc-account-access__head,
.oc-account-access__item > div,
.oc-account-access__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.oc-account-access__head {
    margin-bottom: 18px;
}
.oc-account-access__head h2 {
    margin: 0;
    color: #0a2f63;
    font-size: 24px;
}
.oc-account-access__eyebrow {
    margin: 0 0 4px;
    color: #526277;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.oc-account-access__list {
    display: grid;
    gap: 10px;
}
.oc-account-access__item {
    padding: 16px;
    border-radius: 8px;
    background: #fff;
}
.oc-account-access__item p,
.oc-account-access__empty {
    margin: 8px 0 0;
    color: #526277;
}
.oc-account-access__status {
    padding: 4px 9px;
    border-radius: 999px;
    color: #17603a;
    background: #e5f5eb;
    font-size: 12px;
    font-weight: 700;
}
.oc-account-access__actions {
    justify-content: flex-start;
    margin-top: 16px;
}
.oc-account-access__resources {
    display: grid;
    gap: 7px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}
.oc-account-access__resources a {
    color: #0a4a8f;
    font-weight: 700;
    text-decoration: none;
}
.oc-account-access__resources a:hover,
.oc-account-access__resources a:focus-visible {
    text-decoration: underline;
}
.oc-account-library {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #d8e1ea;
}
.oc-account-library h3 {
    margin: 0;
    color: #102a43;
    font-size: 20px;
}
.oc-account-library > p {
    margin: 6px 0 14px;
    color: #526277;
}
.oc-account-library__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.oc-account-library__grid > a {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #d8e1ea;
    border-radius: 10px;
    background: #fff;
    color: #102a43;
    text-decoration: none;
}
.oc-account-library__grid > a span {
    color: #075b9e;
    font-size: 13px;
    font-weight: 800;
}
.oc-account-library__grid > a:hover,
.oc-account-library__grid > a:focus-visible {
    border-color: #75a8cf;
    box-shadow: 0 6px 18px rgba(24, 58, 86, .08);
}
.oc-account-menu-item a {
    font-weight: 700;
}
.oc-access-locked .oc-access-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.oc-checkout-website {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.oc-contact-consent {
    font-size: 14px;
    line-height: 1.5;
}

/* v1.0.128 — Past-event programme uses retrospective wording and visible bullets. */
.woocommerce-cart .oc-cart-access-thumb {
    display: inline-grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 1px solid #d9e7f4;
    border-radius: 12px;
    background: #edf6fd;
    color: #07569b;
}
.woocommerce-cart .oc-cart-access-thumb svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}
.woocommerce-cart .oc-cart-access-thumb--course {
    background: #eef3ff;
    color: #173f8a;
}
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    color: #526277;
    line-height: 1.55;
}
.woocommerce-checkout .woocommerce-form-coupon-toggle a,
.woocommerce-checkout .woocommerce-privacy-policy-text a,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
    color: #0a4a8f;
    font-weight: 700;
}

/* v1.0.53 — public shell for the existing risk map. */
.oc-risk-map-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 56px 0 64px;
}
.oc-risk-map-page__header {
    max-width: 760px;
    margin-bottom: 28px;
}
.oc-risk-map-page__eyebrow {
    margin: 0 0 8px;
    color: #0a4a8f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.oc-risk-map-page h1 {
    margin: 0 0 12px;
    color: #0a2f63;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
}
.oc-risk-map-page__header > p:last-child {
    margin: 0;
    color: #526277;
    font-size: 17px;
    line-height: 1.6;
}
.oc-risk-map-page__frame {
    overflow: hidden;
    border: 1px solid #d8e1ea;
    border-radius: 16px;
    background: #08172c;
    box-shadow: 0 16px 40px rgba(10, 22, 40, .10);
}
.oc-risk-map-page__iframe {
    display: block;
    width: 100%;
    min-height: 980px;
    border: 0;
}
.oc-risk-map-page__return {
    margin: 22px 0 0;
}
.oc-risk-map-page__return a {
    color: #0a4a8f;
    font-weight: 700;
}

@media (max-width: 640px) {
    .oc-account-access {
        padding: 18px;
    }
    .oc-account-access__head,
    .oc-account-access__item > div,
    .oc-account-access__actions {
        align-items: flex-start;
        flex-direction: column;
    }
    .oc-account-access__head h2 {
        font-size: 21px;
    }
    .oc-account-library__grid {
        grid-template-columns: 1fr;
    }
    .oc-risk-map-page {
        width: min(100% - 28px, 1180px);
        padding: 32px 0 44px;
    }
    .oc-risk-map-page__header > p:last-child {
        font-size: 16px;
    }
    .oc-risk-map-page__frame {
        margin: 0 -4px;
        border-radius: 10px;
    }
    .oc-risk-map-page__iframe {
        min-height: 1180px;
    }
}
/* Launch navigation: unfinished routes stay reachable by direct URL for QA,
   but are not advertised by legacy hard-coded footer markup. */
.oc-footer li:has(> a[href*="/riski-ved/"]),
.oc-footer li:has(> a[href*="/risk-map/"]),
.oc-footer li:has(> a[href*="/courses/"]),
.oc-footer li:has(> a[href*="/baza-znaniy/"]),
.oc-footer li:has(> a[href*="/materials/"]) {
    display: none;
}

.oc-footer a[href*="/riski-ved/"],
.oc-footer a[href*="/risk-map/"],
.oc-footer a[href*="/courses/"],
.oc-footer a[href*="/baza-znaniy/"],
.oc-footer a[href*="/materials/"] {
    display: none;
}

/* Launch search: useful public entities only, without theme service noise. */
.search .blog-standard-area .col-lg-8 {
    flex: 0 0 100%;
    max-width: 100%;
}

.search .blog-sidebar,
.search article.format-search .cat,
.search article.format-search .blog__post-meta {
    display: none !important;
}

.search article.format-search {
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
}

/* Launch visual polish: compact, accessible archive filters. */
.oc-case-filters {
    margin: 0 0 28px;
    padding: 18px;
    background: #f4f7fa;
    border: 1px solid #e0e7ef;
    border-radius: 12px;
}
.oc-case-filters form {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) auto auto;
    gap: 12px;
    align-items: end;
}
.oc-filter-field {
    display: grid;
    gap: 6px;
    margin: 0;
}
.oc-filter-field > span {
    color: #4a5a6d;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.oc-case-filters select {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 9px 38px 9px 12px;
    color: #0a1628;
    background-color: #fff;
    border: 1px solid #b8c6d5;
    border-radius: 8px;
    font: inherit;
}
.oc-case-filters select:focus,
.oc-filter-submit:focus,
.oc-filter-reset:focus {
    outline: 3px solid rgba(10,74,143,.22);
    outline-offset: 2px;
}
.oc-filter-submit {
    min-height: 44px;
    padding: 10px 20px;
    color: #fff;
    background: #0a4a8f;
    border: 1px solid #0a4a8f;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.oc-filter-submit:hover { background: #073665; border-color: #073665; }
.oc-filter-reset {
    min-height: 44px;
    padding: 11px 4px;
    color: #0a4a8f;
    font-size: .9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}
.oc-filter-reset:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 820px) {
    .oc-case-filters form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .oc-case-filters { padding: 14px; }
    .oc-case-filters form { grid-template-columns: 1fr; }
    .oc-filter-submit,
    .oc-filter-reset { width: 100%; }
}

/* 1.0.66: consistent headers for informational and legal pages. */
.oc-has-public-page-header .entry-header,
.oc-has-public-page-header .page-header,
.oc-has-public-page-header .breadcrumb-area {
    display: none;
}
.oc-public-page-header {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto 32px;
    padding: 44px 48px;
    color: #fff;
    background: #0a1628;
    border-radius: 18px;
}
.oc-public-page-header h1 {
    max-width: 900px;
    margin: 0;
    color: inherit;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
}
.oc-public-page-content {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    color: #0a1628;
}
.oc-public-page-content p,
.oc-public-page-content li {
    color: inherit;
}
@media (max-width: 680px) {
    .oc-public-page-header,
    .oc-public-page-content {
        width: min(1120px, calc(100% - 28px));
    }
    .oc-public-page-header {
        margin-bottom: 24px;
        padding: 30px 22px;
        border-radius: 14px;
    }
}
/* v1.0.93: searchable, no-JS-safe FAQ for the EPD publication series. */
.oc-epd-faq {
    margin: 28px 0 40px;
}
.oc-epd-faq__search {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}
.oc-epd-faq__search label {
    color: #0a1628;
    font-weight: 750;
}
.oc-epd-faq__search input {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #b8cadb;
    border-radius: 8px;
    background: #fff;
    color: #0a1628;
}
.oc-epd-faq__search input:focus-visible {
    outline: 3px solid rgba(0, 95, 170, .25);
    outline-offset: 2px;
    border-color: #005faa;
}
.oc-epd-faq__status {
    color: #52677d;
    font-size: .9rem;
}
.oc-epd-faq__item {
    border-top: 1px solid #d7e1eb;
}
.oc-epd-faq__item:last-of-type {
    border-bottom: 1px solid #d7e1eb;
}
.oc-epd-faq__item summary {
    position: relative;
    padding: 18px 44px 18px 0;
    color: #0a1628;
    font-weight: 780;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}
.oc-epd-faq__item summary::-webkit-details-marker { display: none; }
.oc-epd-faq__item summary::after {
    content: '+';
    position: absolute;
    top: 16px;
    right: 8px;
    color: #005faa;
    font-size: 1.35rem;
    line-height: 1;
}
.oc-epd-faq__item[open] summary::after { content: '\2212'; }
.oc-epd-faq__answer {
    padding: 0 44px 18px 0;
}
.oc-epd-faq__empty {
    padding: 18px 0;
    color: #52677d;
}

/* v1.0.94: restrained supporting elements inside long publications. */
.oc-publication-video {
    position: relative;
    width: 100%;
    margin: 20px 0 30px;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 10px;
    background: #0a1628;
}
.oc-publication-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.oc-publication-video-lead {
    max-width: 48rem;
    margin-bottom: 1.25rem;
}

.oc-publication-video-fallback {
    margin-top: .65rem;
    color: #5f6f84;
    font-size: .875rem;
}
.oc-publication-disclaimer {
    margin: 28px 0 0;
    color: #718096;
    font-size: .78rem;
    line-height: 1.55;
}

/* v1.0.97: editorial task intake and portrait-safe expert avatars. */
.oc-expert-photo img,
.oc-expert-photo-lg img,
.oc-expert-photo-v2 img {
    object-fit: cover;
    object-position: center 18%;
}
.oc-expert-task-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin: 34px 0;
    padding: 28px 30px;
    border: 1px solid #cbdced;
    border-radius: 18px;
    background: linear-gradient(135deg, #f4f9fe 0%, #fff 72%);
}
.oc-expert-task-cta h2 { margin: 5px 0 8px; font-size: clamp(1.35rem, 2.3vw, 1.8rem); }
.oc-expert-task-cta p:last-child { max-width: 680px; margin: 0; color: #52677d; }
.oc-expert-task-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.oc-btn-secondary { border: 1px solid #abc4db; background: #fff; color: #064f8c; }

.oc-task-intake { max-width: 960px; margin: 0 auto; padding: 46px 24px 72px; }
.oc-task-intake__hero { max-width: 760px; margin-bottom: 28px; }
.oc-task-intake__hero h1 { margin: 7px 0 12px; color: #0a1628; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; }
.oc-task-intake__hero > p:last-child { color: #52677d; font-size: 1.08rem; line-height: 1.65; }
.oc-task-expert { display: grid; grid-template-columns: 72px minmax(190px, .75fr) 1fr; gap: 18px; align-items: center; margin: 0 0 22px; padding: 18px 20px; border: 1px solid #cbdced; border-radius: 14px; background: #f6faff; }
.oc-task-expert img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 18%; }
.oc-task-expert span, .oc-task-expert strong, .oc-task-expert small { display: block; }
.oc-task-expert span { margin-bottom: 3px; color: #52677d; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.oc-task-expert strong { color: #0a1628; font-size: 1.05rem; }
.oc-task-expert small { margin-top: 4px; color: #52677d; line-height: 1.35; }
.oc-task-expert > p { margin: 0; color: #52677d; font-size: .9rem; line-height: 1.5; }
.oc-task-form { padding: 30px; border: 1px solid #d5e0eb; border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(18, 54, 88, .08); }
.oc-task-form fieldset { margin: 0; padding: 0 0 30px; border: 0; }
.oc-task-form fieldset + fieldset { padding-top: 26px; border-top: 1px solid #e3eaf1; }
.oc-task-form legend { width: 100%; margin-bottom: 16px; color: #0a1628; font-size: 1.1rem; font-weight: 800; }
.oc-task-form legend > span { display: inline-grid; width: 29px; height: 29px; margin-right: 8px; place-items: center; border-radius: 9px; background: #075b9e; color: #fff; font-size: .85rem; }
.oc-task-chips, .oc-task-options { display: flex; flex-wrap: wrap; gap: 10px; }
.oc-task-chips label, .oc-task-options label { cursor: pointer; }
.oc-task-chips input, .oc-task-options input { position: absolute; opacity: 0; pointer-events: none; }
.oc-task-chips span, .oc-task-options span { display: block; padding: 11px 14px; border: 1px solid #c9d7e5; border-radius: 10px; background: #fff; color: #19344f; transition: .16s ease; }
.oc-task-chips input:checked + span, .oc-task-options input:checked + span { border-color: #075b9e; background: #e9f4fd; color: #064f8c; box-shadow: inset 0 0 0 1px #075b9e; }
.oc-task-chips input:focus-visible + span, .oc-task-options input:focus-visible + span { outline: 3px solid rgba(7, 91, 158, .25); outline-offset: 2px; }
.oc-task-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.oc-task-field { display: block; width: 100%; }
.oc-task-field > span { display: block; margin-bottom: 7px; color: #263f57; font-weight: 700; }
.oc-task-field input, .oc-task-field textarea { box-sizing: border-box; width: 100%; border: 1px solid #bdcddd; border-radius: 9px; background: #fbfdff; color: #0a1628; }
.oc-task-field input { min-height: 48px; padding: 10px 12px; }
.oc-task-field textarea { padding: 13px; resize: vertical; }
.oc-task-field textarea { min-height: 260px; }
.oc-task-field-hint { margin: -7px 0 15px; color: #718096; font-size: .87rem; }
.oc-task-picker { margin-top: 22px; padding: 26px; border: 1px solid #d5e0eb; border-radius: 18px; background: #fff; }
.oc-task-picker h2 { margin: 0 0 18px; color: #0a1628; font-size: 1.15rem; }
.oc-task-picker h2 > span { display: inline-grid; width: 29px; height: 29px; margin-right: 8px; place-items: center; border-radius: 9px; background: #075b9e; color: #fff; font-size: .85rem; }
.oc-task-chips--links a { display: block; padding: 11px 14px; border: 1px solid #c9d7e5; border-radius: 10px; background: #fff; color: #19344f; text-decoration: none; }
.oc-task-chips--links a:hover, .oc-task-chips--links a[aria-current="true"] { border-color: #075b9e; background: #e9f4fd; color: #064f8c; box-shadow: inset 0 0 0 1px #075b9e; }
.oc-task-expert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.oc-task-expert-choice { display: grid; grid-template-columns: 58px 1fr auto; gap: 13px; align-items: center; padding: 14px; border: 1px solid #d5e0eb; border-radius: 12px; color: #0a1628; text-decoration: none; }
.oc-task-expert-choice:hover { border-color: #8db6d7; background: #f6faff; }
.oc-task-expert-choice img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: center 18%; }
.oc-task-expert-choice strong, .oc-task-expert-choice small { display: block; }.oc-task-expert-choice small { margin-top: 3px; color: #52677d; line-height: 1.35; }
.oc-task-field input:focus, .oc-task-field textarea:focus { border-color: #075b9e; outline: 3px solid rgba(7, 91, 158, .16); }
.oc-task-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.oc-task-privacy { display: flex; gap: 10px; align-items: flex-start; color: #52677d; font-size: .88rem; line-height: 1.45; }
.oc-task-privacy input { margin-top: 4px; }
.oc-task-submit { margin-top: 22px; border: 0; cursor: pointer; }
.oc-task-note { max-width: 620px; margin: 12px 0 0; color: #718096; font-size: .8rem; line-height: 1.5; }
.oc-task-hp { position: absolute !important; left: -9999px !important; }
.oc-task-error { padding: 13px 16px; border-left: 4px solid #b42318; background: #fff2f0; color: #7a271a; }
.oc-task-result { display: flex; gap: 18px; align-items: flex-start; padding: 28px; border: 1px solid #a9d9bd; border-radius: 16px; background: #f0fbf4; }
.oc-task-result__icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 50%; background: #16834b; color: #fff; font-size: 1.3rem; font-weight: 900; }
.oc-task-result h2 { margin: 0 0 5px; }.oc-task-result p { margin: 0; }
@media (max-width: 720px) {
    .oc-expert-task-cta { grid-template-columns: 1fr; padding: 23px 20px; }
    .oc-task-intake { padding: 32px 16px 56px; }
    .oc-task-form { padding: 22px 17px; }
    .oc-task-expert { grid-template-columns: 58px 1fr; }
    .oc-task-expert img { width: 58px; height: 58px; }
    .oc-task-expert > p { grid-column: 1 / -1; }
    .oc-task-options, .oc-task-contact-grid { grid-template-columns: 1fr; }
    .oc-task-expert-grid { grid-template-columns: 1fr; }
}

/* v1.0.143 — compact search and non-repetitive material cards */
.oc-library-catalog-hero { margin-bottom: 28px; }
.oc-library-source-event { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin: -10px 0 22px; padding: 17px 20px; border: 1px solid #bcd3e5; border-radius: 14px; background: #eaf4fb; }
.oc-library-source-event div { display: grid; gap: 3px; }
.oc-library-source-event span { color: #3f617d; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.oc-library-source-event strong { color: #102a43; }
.oc-library-source-event a { flex: 0 0 auto; color: #075b9e; font-size: .85rem; font-weight: 800; text-decoration: none; }
.oc-library-filters { display: grid; gap: 13px; margin: 0 0 42px; padding: 20px; border: 1px solid #cfdeeb; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(26,62,96,.05); }
.oc-library-filters-primary { display: grid; grid-template-columns: minmax(190px,.75fr) minmax(300px,1.65fr) auto; gap: 12px; align-items: end; }
.oc-library-search { min-width: 0; }
.oc-library-filters label { display: grid; gap: 7px; color: #304b63; font-size: .77rem; font-weight: 800; }
.oc-library-filters input, .oc-library-filters select { width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #bdcede; border-radius: 9px; background: #fff; color: #102a43; font: inherit; font-weight: 500; }
.oc-library-filters button { min-height: 46px; padding: 10px 20px; border: 0; border-radius: 9px; background: #0b5fa5; color: #fff; font-weight: 800; cursor: pointer; }
.oc-library-advanced { border-top: 1px solid #e1e9f0; padding-top: 12px; }
.oc-library-advanced summary { width: fit-content; color: #245b86; font-size: .82rem; font-weight: 800; cursor: pointer; }
.oc-library-advanced summary span { margin-left: 5px; padding: 3px 6px; border-radius: 999px; background: #e8f2f9; font-size: .68rem; }
.oc-library-advanced-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.oc-library-filter-reset { width: fit-content; color: #245b86; font-size: .82rem; font-weight: 750; }
.oc-library-catalog-head { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 22px; }
.oc-library-catalog-head h2 { margin: 0; font-size: clamp(1.7rem,3vw,2.5rem); }
.oc-library-catalog-head > p { max-width: 500px; margin: 0; color: #546b80; line-height: 1.55; }
.oc-library-catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.oc-library-catalog-card { display: flex; min-height: 520px; flex-direction: column; overflow: hidden; border: 1px solid #cfdeeb; border-radius: 18px; background: #fff; box-shadow: 0 12px 32px rgba(24,58,86,.065); }
.oc-library-catalog-card--no-cover { min-height: 330px; }
.oc-library-catalog-cover { display: block; height: 190px; overflow: hidden; background: #eaf1f7; }
.oc-library-catalog-cover img { width: 100%; height: 100%; object-fit: cover; }
.oc-library-catalog-card-body { display: flex; flex: 1; flex-direction: column; padding: 21px; }
.oc-library-catalog-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.oc-library-catalog-badges span { padding: 5px 8px; border-radius: 999px; background: #edf3f8; color: #405a70; font-size: .69rem; font-weight: 800; }
.oc-library-catalog-badges .is-open { background: #e3f5ec; color: #14633b; }
.oc-library-catalog-badges .is-paid { background: #fff0d9; color: #814a08; }
.oc-library-catalog-badges .is-granted { background: #dcefe8; color: #0e5d3a; }
.oc-library-catalog-card h3 { margin: 0 0 11px; font-size: 1.18rem; line-height: 1.3; }
.oc-library-catalog-card h3 a { color: #0a1628; text-decoration: none; }
.oc-library-catalog-card-body > p { margin: 0; color: #53697e; font-size: .88rem; line-height: 1.55; }
.oc-library-catalog-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.oc-library-catalog-topics span { color: #176297; font-size: .73rem; font-weight: 700; }
.oc-library-catalog-contents { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 14px; color: #425d73; font-size: .75rem; }
.oc-library-catalog-contents b { width: 100%; color: #183a56; }
.oc-library-catalog-access { display: grid; gap: 3px; margin-top: auto; padding-top: 18px; border-top: 1px solid #e1e9f0; }
.oc-library-catalog-access strong { color: #102a43; font-size: .93rem; }
.oc-library-catalog-access small { color: #6a7e90; }
.oc-library-empty { padding: 42px; border: 1px dashed #b7cada; border-radius: 16px; background: #fff; text-align: center; }
.oc-library-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 38px; }
.oc-library-pagination .page-numbers { padding: 9px 13px; border: 1px solid #c8d8e5; border-radius: 8px; background: #fff; color: #195b8d; text-decoration: none; }
.oc-library-pagination .current { border-color: #0b5fa5; background: #0b5fa5; color: #fff; }
@media (max-width: 980px) {
    .oc-library-filters-primary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .oc-library-filters-primary button { grid-column: 1 / -1; }
    .oc-library-advanced-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .oc-library-catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .oc-library-source-event, .oc-event-materials-heading { display: grid; gap: 12px; }
    .oc-library-filters-primary, .oc-library-advanced-grid, .oc-library-catalog-grid { grid-template-columns: 1fr; }
    .oc-library-filters-primary button { grid-column: auto; }
    .oc-library-catalog-head { display: block; }
    .oc-library-catalog-head > p { margin-top: 10px; }
    .oc-library-catalog-card { min-height: 0; }
    .oc-library-catalog-cover { height: 190px; }
}

/* v1.0.137 — public pilot library */
.oc-library-route .breadcrumb-area { display: none !important; }
.oc-library { padding: 52px 0 84px; background: #f4f7fa; color: #0a1628; }
.oc-library .oc-container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.oc-library h1, .oc-library h2, .oc-library h3 { color: #0a1628; }
.oc-library-hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr); gap: 32px; align-items: end; padding: 46px; border-radius: 26px; background: linear-gradient(132deg, #0d315b 0%, #105d98 70%, #0c7895 100%); color: #fff; box-shadow: 0 24px 70px rgba(8, 38, 72, .17); }
.oc-library-hero h1 { max-width: 780px; margin: 10px 0 18px; color: #fff; font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.04em; }
.oc-library-hero-copy > p:last-child { max-width: 720px; margin: 0; color: #dcecf7; font-size: 1.08rem; line-height: 1.65; }
.oc-library-hero .oc-archive-eyebrow { color: #9ed9f0; }
.oc-library-hero-note { display: grid; gap: 8px; padding: 22px; border: 1px solid rgba(255,255,255,.24); border-radius: 17px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.oc-library-hero-note strong { color: #fff; font-size: 1.25rem; }
.oc-library-hero-note span { color: #dcecf7; font-size: .9rem; line-height: 1.5; }
.oc-library-kicker { margin: 0 0 7px; color: #0a65aa; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.oc-library-intro { display: grid; grid-template-columns: minmax(240px, .65fr) 1.35fr; gap: 42px; align-items: start; margin: 58px 0; }
.oc-library-intro h2, .oc-library-section-head h2, .oc-library-outcomes h2, .oc-library-subscription-preview h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.12; }
.oc-library-intro ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.oc-library-intro li { display: flex; gap: 13px; min-height: 126px; padding: 18px; border: 1px solid #d3dfeb; border-radius: 15px; background: #fff; }
.oc-library-intro li > b { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 9px; background: #0b5fa5; color: #fff; }
.oc-library-intro li span, .oc-library-intro li strong { display: block; }
.oc-library-intro li span { color: #5a6d82; font-size: .88rem; line-height: 1.45; }
.oc-library-intro li strong { margin-bottom: 7px; color: #0a1628; font-size: .98rem; line-height: 1.25; }
.oc-library-section-head { display: flex; justify-content: space-between; gap: 34px; align-items: end; margin-bottom: 24px; }
.oc-library-section-head > p { max-width: 520px; margin: 0; color: #52677d; line-height: 1.55; }
.oc-library-section-head > a { flex: 0 0 auto; color: #075b9e; font-weight: 750; }
.oc-library-shelf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.oc-library-shelf-card { --shelf-accent: #0b6cab; position: relative; display: flex; min-height: 520px; flex-direction: column; overflow: hidden; padding: 28px; border: 1px solid #d3dfeb; border-radius: 20px; background: #fff; box-shadow: 0 12px 34px rgba(26, 62, 96, .07); }
.oc-library-shelf-card::before { position: absolute; inset: 0 0 auto; height: 7px; background: var(--shelf-accent); content: ""; }
.oc-library-shelf-card--payments { --shelf-accent: #00877b; }
.oc-library-shelf-card--technical-regulation { --shelf-accent: #a65919; }
.oc-library-shelf-eyebrow { margin: 4px 0 15px; color: var(--shelf-accent, #0b6cab); font-size: .73rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.oc-library-shelf-card h3 { margin: 0 0 14px; font-size: 1.65rem; line-height: 1.08; }
.oc-library-shelf-card > p:not(.oc-library-shelf-eyebrow) { margin: 0; color: #4f647a; line-height: 1.58; }
.oc-library-shelf-card ul { display: grid; gap: 10px; margin: 24px 0; padding: 0; list-style: none; }
.oc-library-shelf-card li { position: relative; padding-left: 23px; color: #233b54; font-size: .92rem; line-height: 1.42; }
.oc-library-shelf-card li::before { position: absolute; top: .5em; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--shelf-accent); content: ""; }
.oc-library-shelf-meta { display: grid; gap: 5px; margin-top: auto; padding: 18px 0; border-top: 1px solid #e0e8f0; color: #5c7085; font-size: .8rem; }
.oc-library-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px; padding: 11px 17px; border-radius: 10px; background: #0b5fa5; color: #fff !important; font-weight: 800; text-decoration: none; }
.oc-library-button:hover { background: #084d86; transform: translateY(-1px); }
.oc-library-button:focus-visible, .oc-library a:focus-visible { outline: 3px solid #77b9e8; outline-offset: 3px; }
.oc-library-open-note { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; margin-top: 58px; padding: 32px 36px; border-radius: 20px; background: #102a4c; color: #dce9f4; }
.oc-library-open-note h2 { margin: 0 0 10px; color: #fff; font-size: 1.7rem; }
.oc-library-open-note p:last-child { max-width: 750px; margin: 0; color: #dce9f4; line-height: 1.55; }
.oc-library-open-note .oc-library-kicker { color: #8fd3ef; }
.oc-library-button--light { background: #fff; color: #0b5fa5 !important; }
.oc-library-back { margin-bottom: 18px; }
.oc-library-back a { color: #315a7d; font-weight: 750; text-decoration: none; }
.oc-library-detail-hero { --shelf-accent: #0b6cab; padding: 48px; border: 1px solid #cbdcea; border-radius: 24px; background: linear-gradient(135deg, #fff 0%, #edf6fc 100%); box-shadow: inset 7px 0 0 var(--shelf-accent); }
.oc-library-detail-hero--payments { --shelf-accent: #00877b; background: linear-gradient(135deg, #fff 0%, #eaf8f5 100%); }
.oc-library-detail-hero--technical-regulation { --shelf-accent: #a65919; background: linear-gradient(135deg, #fff 0%, #fbf2e9 100%); }
.oc-library-detail-hero h1 { max-width: 850px; margin: 7px 0 17px; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.035em; }
.oc-library-detail-lead { max-width: 850px; margin: 0 0 13px; color: #163a5b; font-size: 1.23rem; line-height: 1.5; }
.oc-library-detail-hero > p:not(.oc-library-shelf-eyebrow):not(.oc-library-detail-lead) { max-width: 820px; color: #52677d; line-height: 1.6; }
.oc-library-detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.oc-library-detail-meta span { padding: 8px 11px; border: 1px solid #c7d8e6; border-radius: 999px; background: rgba(255,255,255,.72); color: #264760; font-size: .82rem; font-weight: 700; }
.oc-library-outcomes { margin: 34px 0 58px; padding: 28px 32px; border: 1px solid #d3dfeb; border-radius: 18px; background: #fff; }
.oc-library-outcomes ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.oc-library-outcomes li { padding: 16px 17px; border-radius: 12px; background: #f0f6fb; color: #183a56; font-weight: 700; line-height: 1.4; }
.oc-library-content + .oc-library-content { margin-top: 62px; }
.oc-library-item-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.oc-library-item-card { display: flex; min-height: 485px; flex-direction: column; overflow: hidden; border: 1px solid #d3dfeb; border-radius: 18px; background: #fff; }
.oc-library-item-image { display: block; height: 174px; overflow: hidden; background: #e5edf4; }
.oc-library-item-image img { width: 100%; height: 100%; object-fit: cover; }
.oc-library-item-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.oc-library-item-status { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.oc-library-item-status span, .oc-library-item-status small { padding: 5px 8px; border-radius: 999px; font-size: .7rem; font-weight: 750; }
.oc-library-item-status span { background: #e6f5ee; color: #17673e; }
.oc-library-item-status small { background: #eef2f6; color: #55697d; }
.oc-library-item-body time { color: #5e7184; font-size: .76rem; font-weight: 700; }
.oc-library-item-body h3 { margin: 10px 0; font-size: 1.16rem; line-height: 1.28; }
.oc-library-item-body h3 a { color: #0a1628; text-decoration: none; }
.oc-library-item-body p { margin: 0; color: #53677c; font-size: .88rem; line-height: 1.52; }
.oc-library-item-link { margin-top: auto; padding-top: 18px; color: #075b9e; font-size: .86rem; font-weight: 800; text-decoration: none; }
.oc-library-item-link.is-granted { color: #0e6840; }
.oc-library-material { padding: 52px 0 76px; background: #f4f7fa; }
.oc-library-material-card { max-width: 980px; margin: 0 auto; overflow: hidden; border: 1px solid #d5e0ea; border-radius: 22px; background: #fff; box-shadow: 0 18px 48px rgba(23, 49, 73, .08); }
.oc-library-material-head { padding: clamp(28px, 5vw, 58px); border-bottom: 1px solid #dce5ed; background: linear-gradient(135deg, #f8fbfd 0%, #edf5fa 100%); }
.oc-library-material-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.oc-library-material-badges span { padding: 6px 10px; border-radius: 999px; background: #e7eef4; color: #38536a; font-size: .74rem; font-weight: 800; }
.oc-library-material-badges .is-open { background: #e1f3e9; color: #12613a; }
.oc-library-material-badges .is-paid { background: #fff0d8; color: #7e4909; }
.oc-library-material-head h1 { max-width: 860px; margin: 0; color: #0a1628; font-size: clamp(2rem, 5vw, 3.45rem); line-height: 1.08; overflow-wrap: anywhere; }
.oc-library-material-summary { max-width: 780px; margin: 22px 0 0; color: #4d6378; font-size: clamp(1rem, 2vw, 1.22rem); line-height: 1.65; }
.oc-library-material-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.oc-library-material-topics span { padding: 5px 9px; border: 1px solid #c9d9e6; border-radius: 7px; color: #075b9e; font-size: .76rem; font-weight: 700; }
.oc-library-material-contents,
.oc-library-material-content,
.oc-library-material-gate { padding: clamp(28px, 5vw, 52px); }
.oc-library-material-contents { border-bottom: 1px solid #e0e8ef; background: #fbfcfd; }
.oc-library-material-contents h2 { margin: 0 0 14px; color: #102a43; font-size: 1.2rem; }
.oc-library-material-contents ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding-left: 20px; color: #40566b; }
.oc-library-material-content { color: #172b3d; font-size: 1.03rem; line-height: 1.75; }
.oc-library-material-content > :first-child { margin-top: 0; }
.oc-library-material-content > :last-child { margin-bottom: 0; }
.oc-library-material-gate { max-width: 760px; }
.oc-library-material-kicker { margin: 0 0 9px; color: #075b9e; font-size: .74rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.oc-library-material-gate h2 { margin: 0 0 14px; color: #102a43; font-size: clamp(1.5rem, 3vw, 2rem); }
.oc-library-material-gate > p:not(.oc-library-material-kicker):not(.oc-library-material-price) { max-width: 660px; color: #50667a; line-height: 1.65; }
.oc-library-material-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.oc-library-material-pending,
.oc-access-pending {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
}
.oc-library-material-price { margin: 18px 0 0; color: #243e54; font-weight: 700; }
.oc-library-material-footer { padding: 20px clamp(28px, 5vw, 52px); border-top: 1px solid #e0e8ef; background: #fbfcfd; }
.oc-library-material-footer a { color: #075b9e; font-weight: 800; text-decoration: none; }
@media (max-width: 640px) {
    .oc-library-material { padding: 20px 0 42px; }
    .oc-library-material-card { border-radius: 14px; }
    .oc-library-material-actions { display: grid; }
    .oc-library-material-actions .oc-btn { width: 100%; text-align: center; }
}
.oc-library-publication-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.oc-library-publication-grid article { padding: 23px; border: 1px solid #d3dfeb; border-radius: 15px; background: #fff; }
.oc-library-publication-grid span { color: #16704b; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.oc-library-publication-grid h3 { margin: 11px 0; font-size: 1.12rem; line-height: 1.3; }
.oc-library-publication-grid h3 a { color: #0a1628; text-decoration: none; }
.oc-library-publication-grid p { margin: 0; color: #53677c; font-size: .87rem; line-height: 1.5; }
.oc-library-subscription-preview { display: grid; grid-template-columns: 1fr minmax(250px, .55fr); gap: 40px; align-items: center; margin-top: 62px; padding: 36px; border-radius: 20px; background: #102a4c; color: #dce9f4; }
.oc-library-subscription-preview h2 { color: #fff; }
.oc-library-subscription-preview p:last-child { max-width: 700px; margin-bottom: 0; color: #dce9f4; line-height: 1.55; }
.oc-library-subscription-preview .oc-library-kicker { color: #8fd3ef; }
.oc-library-preview-actions { display: grid; gap: 14px; }
.oc-library-preview-actions > a:last-child { color: #fff; font-weight: 750; text-align: center; }
@media (max-width: 900px) {
    .oc-library-hero, .oc-library-intro, .oc-library-subscription-preview { grid-template-columns: 1fr; }
    .oc-library-shelf-grid, .oc-library-item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .oc-library-shelf-card:last-child, .oc-library-item-card:last-child { grid-column: 1 / -1; }
    .oc-library-shelf-card { min-height: 450px; }
}
@media (max-width: 640px) {
    .oc-library { padding: 28px 0 54px; }
    .oc-library .oc-container { width: min(100% - 28px, 1160px); }
    .oc-library-hero, .oc-library-detail-hero { padding: 28px 22px; border-radius: 18px; }
    .oc-library-hero h1, .oc-library-detail-hero h1 { font-size: 2.35rem; }
    .oc-library-intro { gap: 22px; margin: 40px 0; }
    .oc-library-intro ol, .oc-library-shelf-grid, .oc-library-item-grid, .oc-library-publication-grid, .oc-library-outcomes ul { grid-template-columns: 1fr; }
    .oc-library-shelf-card:last-child, .oc-library-item-card:last-child { grid-column: auto; }
    .oc-library-shelf-card { min-height: 0; padding: 24px 22px; }
    .oc-library-section-head { display: block; }
    .oc-library-section-head > p, .oc-library-section-head > a { display: block; margin-top: 12px; }
    .oc-library-open-note { grid-template-columns: 1fr; padding: 26px 22px; }
    .oc-library-outcomes { padding: 24px 20px; }
    .oc-library-item-card { min-height: 0; }
    .oc-library-item-image { height: 185px; }
    .oc-library-subscription-preview { gap: 25px; padding: 28px 22px; }
}
