﻿:root {
  color-scheme: light;
  --primary: #366092;
  --secondary: #366092;
  --text: #0f172a;
  --muted: #64748b;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --r: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
body { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--surface); color: var(--text); line-height: 1.6; }
.puck-richtext { word-break: break-word; overflow-wrap: anywhere; }
.ql-align-center  { text-align: center; }
.ql-align-right   { text-align: right; }
.ql-align-justify { text-align: justify; }
.ql-size-small { font-size: .75em; }
.ql-size-large { font-size: 1.5em; }
.ql-size-huge  { font-size: 2.5em; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.nav { background: var(--secondary); padding: .875rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.nav-brand { color: #fff; font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.nav-brand:hover { text-decoration: none; opacity: .85; }
.nav-burger { display: flex; align-items: center; background: none; border: none; cursor: pointer; padding: .35rem; color: #fff; line-height: 0; flex-shrink: 0; margin-left: auto; position: relative; }
.nav-burger-wrap { position: relative; margin-left: auto; flex-shrink: 0; }
.nav-links { display: none; position: absolute; top: calc(100% + 6px); right: 0; flex-direction: column; min-width: 160px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.25); z-index: 200; background: var(--secondary); }
.nav-links.open { display: flex; }
.nav-links a { color: rgba(255,255,255,.9); font-size: .9rem; padding: .65rem 1.1rem; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,.1); }
.nav-links a:last-child { border-bottom: none; }
.nav-links a:hover { background: rgba(255,255,255,.12); text-decoration: none; color: #fff; }
@media (max-width: 640px) {
  .nav { padding: .75rem 1rem; }
}
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: #fff; padding: 3.5rem 1.5rem; text-align: center; }
.hero-logo { max-height: 64px; max-width: 200px; display: block; margin: 0 auto 1.25rem; object-fit: contain; }
.hero h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: .5rem; }
.hero p { font-size: 1.05rem; opacity: .87; max-width: 540px; margin: .625rem auto 0; line-height: 1.65; }
.info-bar { background: var(--surface); border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .375rem 1.5rem; justify-content: center; padding: .875rem 1.5rem; font-size: .875rem; color: var(--muted); }
.info-bar strong { color: var(--text); }
.container { max-width: 900px; margin: 0 auto; padding: 2rem 1.25rem; }
.cta-row { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; padding: 1.75rem 0 .5rem; }
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.25rem; border-radius: 6px; font-weight: 600; font-size: .875rem; cursor: pointer; transition: opacity .15s, transform .1s; border: 2px solid transparent; }
.btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { background: transparent; color: var(--secondary); border-color: var(--secondary); }
.section-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); }
.day-section { margin-bottom: 2.5rem; }
.day-heading { font-size: .875rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .875rem; }
.session-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: .9rem 1.125rem; margin-bottom: .5rem; display: flex; gap: 1rem; align-items: flex-start; box-shadow: var(--shadow); transition: border-color .15s; }
.session-card:hover { border-color: var(--primary); }
.session-time { font-weight: 700; font-size: .8125rem; color: var(--primary); min-width: 88px; padding-top: .125rem; flex-shrink: 0; }
.session-body { flex: 1; min-width: 0; }
.session-title { font-weight: 600; font-size: .9375rem; margin-bottom: .25rem; }
.session-title a { color: var(--text); }
.session-title a:hover { color: var(--primary); text-decoration: none; }
.session-meta { font-size: .8rem; color: var(--muted); }
.track-badge { display: inline-block; background: #eff6ff; color: #1d4ed8; padding: 1px 7px; border-radius: 4px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-left: .4rem; vertical-align: middle; }
.speakers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.125rem; }
.speaker-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.speaker-photo { width: 100%; height: 160px; object-fit: cover; display: block; background: var(--bg); }
.speaker-photo-placeholder { width: 100%; height: 160px; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: rgba(255,255,255,.4); }
.speaker-info { padding: .875rem 1rem; }
.speaker-name { font-weight: 700; font-size: .9375rem; margin-bottom: .3rem; }
.speaker-bio { font-size: .8125rem; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.detail-wrap { max-width: 700px; }
.detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 2rem 2.25rem; box-shadow: var(--shadow); }
.detail-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -.02em; line-height: 1.3; }
.meta-grid { display: flex; flex-wrap: wrap; gap: .4rem .875rem; margin-bottom: 1.5rem; font-size: .875rem; color: var(--muted); }
.meta-item { display: flex; align-items: center; gap: .3rem; }
.description { font-size: .9375rem; line-height: 1.7; color: var(--text); white-space: pre-line; margin-bottom: 1.5rem; }
.qr-section { text-align: center; padding: 1.5rem 1rem; background: var(--bg); border-radius: var(--r); border: 1px dashed var(--border); }
.qr-section img { max-width: 180px; height: auto; margin: 0 auto .625rem; display: block; }
.qr-label { font-size: .8rem; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; color: var(--muted); margin-bottom: 1.5rem; }
.back-link:hover { color: var(--primary); text-decoration: none; }
.footer { text-align: center; padding: 2.5rem 1rem 2rem; color: var(--muted); font-size: .8125rem; border-top: 1px solid var(--border); margin-top: 3rem; }
@media (max-width: 600px) {
  .session-card { flex-direction: column; gap: .3rem; }
  .session-time { min-width: auto; }
  .detail-card { padding: 1.25rem; }
  .hero { padding: 2.5rem 1rem; }
  .container { padding: 2rem 1rem; }
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
    --bg: #f1f5f9;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
  }
  body {
    background-color: #ffffff !important;
    color: #0f172a !important;
  }
}