:root {
    --red: #990000;
    --red-hover: #7f0000;
    --red-active: #660000;

    --ink: #101828;
    --charcoal: #1d2939;
    --steel: #475467;
    --border: #d0d5dd;
    --surface-alt: #f8fafc;
    --bg: #ffffff;

    --midnight-blue: #1f2a44;
    --deep-plum: #3b2a52;
    --muted-violet: #6951a8;

    --classic-ink: #142033;
    --classic-border: #d7dee6;

    --modern-night: #0b1220;
    --modern-midnight: #111827;

    --container: 1180px;
    --shadow: 0 6px 24px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
}
a { color: var(--midnight-blue); text-decoration: none; }
a:hover { color: var(--deep-plum); }
img { max-width: 100%; }

.container { width: min(var(--container), calc(100% - 3rem)); margin: 0 auto; }
.section { padding: 4rem 0; }
.section-alt { background: var(--surface-alt); }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.section-head h1, .section-head h2 { margin: 0; }

h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.25; }
h3 { margin-top: 0; font-size: 1.2rem; }
.lead { font-size: 1.08rem; color: var(--steel); max-width: 62ch; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: .74rem; font-weight: 700; color: var(--muted-violet); }
.meta { color: #d6def0; }

.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 15; }
.site-header--light { background: #fff; }
.site-header--dark { background: linear-gradient(90deg, var(--modern-night), var(--modern-midnight)); color: #f8fafc; border-bottom-color: rgba(255,255,255,.12); }

.global-nav-wrap { min-height: 76px; display: flex; align-items: center; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: .75rem; color: inherit; }
.logo-box { background: var(--red); color: #fff; width: 50px; height: 50px; display: grid; place-items: center; font-weight: 700; }
.logo-text strong { display: block; font-size: 1rem; }
.logo-text small { color: var(--steel); }
.site-header--dark .logo-text small { color: #b6c2de; }

.global-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1rem; }
.global-nav a { font-size: .95rem; color: inherit; padding: .4rem .15rem; border-bottom: 2px solid transparent; }
.global-nav a.is-active { border-color: var(--red); }
.header-actions { margin-left: auto; display: flex; gap: 1rem; font-size: .9rem; }
.header-actions a { color: inherit; opacity: .9; }
.mobile-toggle { display: none; }

.event-subnav { border-top: 1px solid rgba(255,255,255,.12); background: rgba(17,24,39,.88); }
.event-subnav__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.event-subnav__label { color: #fff; padding: .7rem 0; }
.event-subnav nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.event-subnav a { display: block; color: #d7def2; padding: .95rem .75rem; font-size: .9rem; border-bottom: 2px solid transparent; }
.event-subnav a.is-active, .event-subnav a:hover { border-color: var(--red); color: #fff; }

.breadcrumbs { padding: .9rem 0; }
.breadcrumbs ol { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0; flex-wrap: wrap; color: var(--steel); }
.breadcrumbs li:not(:last-child)::after { content: '›'; margin-left: .5rem; }

.hero { padding: 5.5rem 0; }
.hero--home { background: linear-gradient(180deg, #fff 0%, #fbfcff 100%); }
.hero--event { color: #fff; background: radial-gradient(circle at right top, #2836a4, var(--modern-night) 65%); }
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
.hero-panel { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem; }
.hero-panel--dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; padding: .72rem 1rem; border: 1px solid transparent; font-weight: 600; cursor: pointer; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.2rem; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); color: #fff; }
.btn-secondary { background: #fff; color: var(--charcoal); border-color: #98a2b3; }
.btn-secondary--dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost { background: #eef2f6; color: var(--midnight-blue); }

.card-grid { display: grid; gap: 1rem; }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem;
    box-shadow: 0 1px 0 rgba(16,24,40,.02);
}
.card--event { background: #f3f4f8; border-color: #c9cde4; }
.tile { display: block; min-height: 170px; }
.tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-weight: 700; margin: .2rem 0 .55rem; }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; }
.check-list { padding: 0; margin: 0; list-style: none; display: grid; gap: .65rem; }
.check-list li::before { content: '✓'; color: var(--red); margin-right: .55rem; font-weight: 700; }
.quote-card { background: #f3f1fd; border: 1px solid #d5cdf6; border-radius: 12px; padding: 1.2rem; }

.photo-placeholder, .cover-placeholder {
    width: 100%; border-radius: 9px; min-height: 140px; display: grid; place-items: center;
    background: linear-gradient(135deg, #d8dce8, #eef2f8); color: #475467;
}
.cover-placeholder { min-height: 220px; }

.cta-band { background: var(--surface-alt); }
.cta-band--dark { background: var(--modern-night); color: #fff; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

.study-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.2rem; align-items: start; }
.study-purchase { position: sticky; top: 102px; }
.button-column { display: grid; gap: .65rem; margin: 1rem 0 .7rem; }
.hint { color: var(--steel); font-size: .9rem; }
.meta-box dl { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 0; }
.meta-box dt { color: var(--steel); }
.meta-box dd { margin: 0; font-weight: 600; }

.chip-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.chip { padding: .4rem .72rem; background: #eef2f6; border-radius: 999px; color: var(--charcoal); font-size: .85rem; }

.filter-row { display: flex; gap: .7rem; margin-bottom: 1rem; }
.filter-row input { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: .72rem; }
.section-end-actions { display: flex; gap: .75rem; margin-top: 1.3rem; }

.speaker-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 9px;
    margin-bottom: .75rem;
    background: #eef2f8;
}
.partner-grid { align-items: stretch; }
.partner-card { text-align: center; }
.partner-logo {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    background: #f5f6f8;
    border-radius: 9px;
    padding: .8rem;
    margin-bottom: .5rem;
}
.timeline { border-left: 2px solid #dbe3ef; margin-left: .6rem; display: grid; gap: 1rem; }
.timeline-item { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; margin-left: -0.6rem; }
.timeline-item time { color: var(--deep-plum); font-weight: 700; }

.site-footer { margin-top: 3rem; padding: 2.8rem 0; background: #0f1729; color: #f7f8fc; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 1.25rem; }
.site-footer h3, .site-footer h4 { margin: 0 0 .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.site-footer a { color: #dbe4fb; }

.mode-classic { --ink: var(--classic-ink); --border: var(--classic-border); }

@media (max-width: 1060px) {
    .global-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: inherit; border-top: 1px solid var(--border); }
    .global-nav.is-open { display: block; }
    .global-nav ul { padding: .8rem 1.5rem 1rem; display: grid; }
    .mobile-toggle { display: inline-flex; margin-left: auto; }
    .header-actions { display: none; }
    .event-subnav nav ul { overflow-x: auto; white-space: nowrap; }
    .hero-grid, .study-layout, .two-col, .footer-grid { grid-template-columns: 1fr; }
    .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .study-purchase { position: static; }
}

@media (max-width: 700px) {
    .container { width: min(var(--container), calc(100% - 1.5rem)); }
    .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
    .section { padding: 2.7rem 0; }
    .event-subnav__inner { display: block; }
    .cta-band__inner, .section-head { align-items: start; flex-direction: column; }
}
