:root {
  --ink: #10151F;
  --ink-2: #2A2F3A;
  --muted: #6B7280;
  --line: #E1E1DC;
  --paper: #F4F4F1;
  --card: #FFFFFF;
  --blue: #1D5FD6;
  --blue-ink: #1849A6;
  --gold: #FACC15;
  --night: #0B0F17;
  --night-2: #1A2030;
  --night-line: #2A3245;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Archivo, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--paper); }
a { color: var(--blue); }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { color: var(--blue); }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); } }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* header */
.top { background: var(--ink); color: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.brand span { font-weight: 600; font-size: 15px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.3); letter-spacing: .02em; }
.top-link { color: rgba(255,255,255,.75); font-size: 14px; text-decoration: none; }
.top-link:hover { color: #fff; }
@media (max-width: 480px) { .top-link { display: none; } }
.subnav { border-top: 1px solid rgba(255,255,255,.08); }
.subnav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; height: 46px; align-items: stretch; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { display: flex; align-items: center; padding: 0 12px; color: rgba(255,255,255,.72); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.subnav a:hover { color: #fff; }
.subnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.subnav-event { color: var(--gold) !important; padding-left: 0 !important; margin-right: 6px; }

/* type */
h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -.015em; margin: 6px 0 10px; font-weight: 800; text-wrap: balance; }
h2 { font-size: 20px; margin: 0; font-weight: 700; text-wrap: balance; }
h3 { font-size: 17px; line-height: 1.3; margin: 2px 0 6px; font-weight: 700; text-wrap: balance; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.lede { font-size: 18px; color: var(--ink-2); margin: 0; max-width: 62ch; }
.meta { margin: 0; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #E8EEFB; color: var(--blue-ink); }
.pill-gold { background: #FEF3C7; color: #8A5A00; }

/* sections */
.hero { background: var(--ink); color: #fff; padding: 28px 0 40px; }
.hero .eyebrow { color: var(--gold); }
.hero .lede { color: rgba(255,255,255,.82); }
.home-hero { position: relative; color: #fff; background-color: var(--ink); background-position: center 35%; background-size: cover; background-repeat: no-repeat; min-height: clamp(320px, 52vh, 560px); display: flex; align-items: flex-end; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,21,31,.15) 0%, rgba(16,21,31,.88) 100%); }
.home-hero-in { position: relative; padding-top: 48px; padding-bottom: 40px; width: 100%; }
.home-hero .eyebrow { color: var(--gold); }
.home-hero .lede { color: rgba(255,255,255,.88); }
.page-head { background: var(--card); border-bottom: 1px solid var(--line); padding: 18px 0 26px; }
.block { padding-top: 32px; padding-bottom: 8px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.count { color: var(--muted); font-size: 14px; font-weight: 400; }
.back { display: inline-block; font-size: 14px; text-decoration: none; color: var(--muted); margin-bottom: 14px; }
.back:hover { color: var(--ink); }

/* photography sponsor credit in the event hero */
.photo-sponsor { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 22px; color: rgba(255,255,255,.75); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.photo-sponsor:hover { color: #fff; }
.ps-logo { background: #fff; border-radius: 12px; padding: 14px 22px; display: inline-flex; align-items: center; }
.ps-logo img { height: clamp(84px, 11vw, 120px); width: auto; max-width: min(380px, 70vw); object-fit: contain; display: block; }
.ps-big { padding: 18px 26px; border-radius: 14px; }
.ps-big img { height: clamp(150px, 22vw, 240px); max-width: min(480px, 80vw); }

/* event cards (home) */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 18px; }
.event-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.event-card:hover { box-shadow: 0 10px 28px rgba(16,21,31,.12); }
.event-img { aspect-ratio: 16 / 9; background: #D9D9D3 center / cover no-repeat; }
.event-body { padding: 16px 18px 18px; display: grid; gap: 4px; }

/* section tiles (event home) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.tile-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); display: grid; gap: 2px; }
.tile-card strong { font-size: 18px; }
.tile-card span { color: var(--muted); font-size: 14px; }
.tile-card:hover { border-color: var(--blue); }

/* speaker search + chips */
.search { font: inherit; font-size: 15px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); min-width: min(320px, 100%); outline: none; }
.search:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,95,214,.15); }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 8px; }
.chip { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); min-width: 0; }
.chip:hover { border-color: var(--blue); }
.chip span { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.chip strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip em { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[hidden] { display: none; }
.chips.collapsed .chip:nth-child(n+13) { display: none; }
.show-all { margin-top: 12px; }
@media (max-width: 640px) { .chips.collapsed .chip:nth-child(n+7) { display: none; } }
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: #E5E5E0; display: block; }
.avatar-blank { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }

/* slot cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .12s, box-shadow .12s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,21,31,.10); }
.card-img { aspect-ratio: 3 / 2; background: #D9D9D3 center / cover no-repeat; }
.card-body { padding: 12px 14px 14px; }
.card-soft .card-body h3 { font-weight: 600; }
@media (max-width: 640px) {
  .cards { gap: 10px; }
  .card { flex-direction: row; }
  .card-img { aspect-ratio: auto; width: 116px; min-height: 96px; flex: none; }
  .card-body { padding: 10px 12px; min-width: 0; }
  .card-body h3 { font-size: 15px; }
}

/* sponsors */
.orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.org-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; overflow: hidden; }
.org-card:hover { border-color: var(--blue); }
.org-logo { height: 96px; display: flex; align-items: center; justify-content: center; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.org-logo img, .org-logo .logo { max-height: 64px; max-width: 100%; object-fit: contain; }
.org-logo-lg { width: 200px; height: 110px; border: 1px solid var(--line); border-radius: var(--radius); flex: none; }
.org-logo-lg img { max-height: 80px; }
.logo-text { font-weight: 700; color: var(--ink-2); text-align: center; }
.org-body { padding: 10px 14px 12px; display: grid; gap: 2px; }
.org-body strong { font-size: 15px; }
.org-body span { font-size: 13px; color: var(--muted); }
.org-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.org-head h1 { margin: 0 0 4px; }
.items { margin: 16px 0 0; padding-left: 18px; }
.items li { margin: 2px 0; }
.presented { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; text-decoration: none; margin: 2px 0 6px; }
.presented .logo-inline { max-height: 34px; max-width: 160px; object-fit: contain; }

/* people on a session page */
.people { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.people a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.people span { display: flex; flex-direction: column; line-height: 1.25; }
.people strong { font-size: 15px; font-weight: 600; }
.people small { font-size: 13px; color: var(--muted); }
.people a:hover strong { color: var(--blue); }

/* speaker page */
.person { display: flex; align-items: center; gap: 18px; }
.person h1 { margin: 0 0 4px; }
.sessions { margin: 16px 0 0; padding-left: 18px; }
.sessions li { margin: 2px 0; }
.caption-box { margin-top: 18px; padding: 12px 14px; border: 1px dashed #C9C9C2; border-radius: var(--radius); max-width: 640px; }
.caption-box .label { margin: 0 0 2px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.caption-text { margin: 0; font-size: 15px; }

/* buttons + share row */
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.share { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.btn { font: inherit; font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; line-height: 1.2; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--ink); }
.btn:focus-visible { outline: 3px solid rgba(29,95,214,.35); outline-offset: 1px; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.btn-small { padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-share { display: none; }
.can-share .btn-share { display: inline-flex; background: var(--ink); color: #fff; border-color: var(--ink); }

/* justified grid */
.grid { display: flex; flex-wrap: wrap; gap: 6px; }
.grid::after { content: ""; flex-grow: 999999; }
.tile { display: block; position: relative; flex-grow: calc(var(--ar) * 100); flex-basis: calc(var(--ar) * 190px); aspect-ratio: var(--ar); max-width: 100%; background: #D9D9D3; border-radius: 4px; overflow: hidden; }
@media (min-width: 900px) { .tile { flex-basis: calc(var(--ar) * 240px); } }
@media (max-width: 640px) { .grid { gap: 4px; } .tile { flex-basis: calc(var(--ar) * 110px); } }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.tile:hover img { opacity: .88; }

/* photo viewer */
body.dark { background: var(--night); color: #E8EAEE; }
body.dark .foot { border-top-color: #1E2430; color: #8B93A1; }
body.dark .foot a { color: #9DBBF5; }
.viewer { padding-bottom: 24px; }
.viewer-nav { display: flex; justify-content: space-between; align-items: center; padding-block: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); gap: 12px; }
.viewer-nav .back { margin: 0; color: #9AA3B2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-nav .back:hover { color: #fff; }
.pager { display: flex; gap: 6px; flex: none; }
.pager a, .pager span { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; border-radius: 50%; text-decoration: none; color: #fff; background: var(--night-2); line-height: 1; }
.pager span { opacity: .3; }
.pager a:hover { background: var(--night-line); }
.frame { margin: 0; display: flex; justify-content: center; padding: 0 8px; }
.frame img { max-height: calc(100vh - 170px); max-height: calc(100svh - 170px); width: auto; height: auto; object-fit: contain; display: block; border-radius: 2px; }
.viewer-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 32px; padding-top: 18px; flex-wrap: wrap; }
.viewer-text { min-width: 0; }
.viewer-info h1 { font-size: 22px; margin: 0 0 4px; font-weight: 700; }
.viewer-info h1 a, .viewer-info p a { color: #fff; text-decoration: none; }
.viewer-info h1 a:hover, .viewer-info p a:hover { text-decoration: underline; }
.viewer-info p { margin: 0; }
.viewer-info .muted { color: #9AA3B2; }
.viewer-actions .actions { margin-top: 0; }
body.dark .btn { background: var(--night-2); border-color: var(--night-line); color: #fff; }
body.dark .btn:hover { border-color: #6E7A90; }
body.dark .btn-primary { background: var(--blue); border-color: var(--blue); }
body.dark.can-share .btn-share { background: #fff; color: var(--ink); border-color: #fff; }

/* footer + toast */
.foot { margin-top: 48px; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-in p { margin: 4px 0; max-width: 72ch; }
.foot-sponsor strong { color: var(--ink-2); }
body.dark .foot-sponsor strong { color: #C9D2E3; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 10; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.dark .toast { background: #fff; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Post this photo */
.post-photo { margin-top: 14px; }
.share-label { margin: 14px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #6b7280); }
.share-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted, #6b7280); }
.only-files { display: none; }
.can-share-files .only-files { display: inline-flex; }
.can-share-files .no-files { display: none; }
.btn-net { font-weight: 700; border-color: var(--blue); }
.post-photo + .share-label { margin-top: 18px; }
.can-share-files p.only-files { display: block; }
