/* DIW global stylesheet for schedule and session pages.
   Same layer order as the diw-app build, so it can be folded into it later.
   Dark is the default theme. Add class "theme-white" to <body> for a white page. */
@layer properties, theme, base, components, utilities, legacy, overrides, utility-overrides, base-overrides;

@layer theme {
  :root {
    --f-body: "Geist", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --f-mono: "Geist Mono", ui-monospace, Menlo, monospace;
    --lime: #8dc63f;
    --violet: #6b4dff;
    --card: #181819;
    --card-line: #20242b;
    --radius: 8px;
    /* dark (default) */
    --bg: #08071a;
    --fg: #fff;
    --fg-2: #b9b8d6;
    --fg-3: #8a89ab;
    --line: rgba(255, 255, 255, .12);
    --soft: rgba(255, 255, 255, .04);
    --btn-bg: #fff;
    --btn-fg: #08071a;
    --btn-hover: #d9d8f0;
  }
  body.theme-white {
    --bg: #fff;
    --fg: #000;
    --fg-2: #666;
    --fg-3: #8f8f8f;
    --line: #eaeaea;
    --soft: #fafafa;
    --btn-bg: #000;
    --btn-fg: #fff;
    --btn-hover: #333;
  }
  /* track dots */
  .trk-m { --c: var(--fg); }
  .trk-r { --c: #5fa800; }
  .trk-c { --c: #0070f3; }
  .trk-d { --c: #7928ca; }
  .trk-e { --c: #f5a623; }
}

@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  a { color: inherit; text-decoration: none; }
  h1, h2, h3 { margin: 0; }
}

@layer components {
  .wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .mono { font-family: var(--f-mono); font-size: 12px; color: var(--fg-3); }

  /* header + footer */
  .site-header { border-bottom: 1px solid var(--line); }
  .site-header .wrap { display: flex; justify-content: space-between; align-items: center; height: 60px; gap: 12px; }
  .brand { font-weight: 600; letter-spacing: -.01em; display: flex; gap: 10px; align-items: center; }
  .brand i { width: 18px; height: 18px; border-radius: 50%; background: var(--fg); display: block; }
  .brand small { color: var(--fg-3); font-weight: 400; font-family: var(--f-mono); font-size: 12px; }
  .site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--fg-3); font-size: 13px; margin-top: 64px; }

  /* buttons */
  .btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius); font-size: 14px; font-weight: 500; border: 1px solid var(--line); background: transparent; color: var(--fg); white-space: nowrap; cursor: pointer; font-family: inherit; }
  .btn:hover { border-color: var(--fg); }
  .btn-primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
  .btn-primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }

  /* section heading */
  .h-section { font-size: 13px; font-weight: 500; color: var(--fg-2); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--fg)); margin-right: 8px; vertical-align: middle; }

  /* session page */
  .crumb { padding: 28px 0 0; }
  .crumb a { color: var(--fg-2); }
  .crumb a:hover { color: var(--fg); }
  .tagline { font-size: 13px; color: var(--fg-2); display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-top: 22px; }
  .session-title { font-size: clamp(30px, 5vw, 52px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; margin: 18px 0 28px; max-width: 20ch; text-wrap: balance; }
  .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 8px; }
  .facts div { padding: 14px 16px; border-right: 1px solid var(--line); }
  .facts div:last-child { border-right: 0; }
  .facts dt { font-family: var(--f-mono); font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px; }
  .facts dd { margin: 0; font-weight: 500; }
  .stack { display: grid; gap: 56px; padding-top: 44px; }
  .abstract p { font-size: 17px; line-height: 1.7; margin: 0 0 16px; max-width: 62ch; }
  .abstract .pending { color: var(--fg-3); }
  .related a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .related a:hover b { text-decoration: underline; }
  .related b { font-weight: 500; }
  .cta-band { margin-top: 56px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; background: var(--soft); }
  .cta-band p { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
  .cta-band div { display: flex; gap: 10px; }

  /* speaker card (matches the site's .hxc card) */
  .spk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
  .hxc { display: flex; flex-direction: column; text-align: center; background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 10px; color: #fff; transition: transform .25s, border-color .25s, box-shadow .25s; }
  a.hxc:hover { border-color: rgba(141, 198, 63, .7); transform: translateY(-2px); box-shadow: 0 0 28px rgba(141, 198, 63, .18); }
  .hxc-ph { aspect-ratio: 1 / 1; position: relative; overflow: hidden; border-radius: 10px; background-color: var(--lime); background-size: cover; background-position: center; }
  .hxc-ph.tone-diw { background-color: var(--violet); }
  .hxc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(1) contrast(1.04); }
  .hxc-ini { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; font-weight: 700; letter-spacing: .02em; }
  .hxc-plate { position: absolute; z-index: 2; bottom: 7px; left: 50%; transform: translateX(-50%); min-width: 42%; max-width: 72%; height: 30px; padding: 0 12px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(22, 18, 40, .45); backdrop-filter: blur(14px) saturate(150%); border: 1px solid rgba(255, 255, 255, .22); box-shadow: inset 0 1px rgba(255, 255, 255, .18), 0 10px 24px -12px rgba(0, 0, 0, .6); }
  .hxc-plate img { max-height: 22px; max-width: 100%; object-fit: contain; display: block; }
  .hxc-plate.is-txt { font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hxc-body { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 6px 6px; flex: 1; }
  .hxc-nm { font-size: 14.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
  .hxc-role { font-size: 12.5px; line-height: 1.35; color: #d4d4d8; }
  .hxc-org { font-size: 13px; font-weight: 700; line-height: 1.3; }
  .hxc-pill { margin-top: 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 500; }
  .hxc-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
  /* mesh backgrounds, hosted on the site CDN */
  .mesh-ocp0 { background-image: url(https://diwvideos.b-cdn.net/wp-content/plugins/diw-app/app/assets/ocpmesh0-TCqC1Cim.webp); }
  .mesh-ocp1 { background-image: url(https://diwvideos.b-cdn.net/wp-content/plugins/diw-app/app/assets/ocpmesh1-WqNcwaS8.webp); }
  .mesh-ocp2 { background-image: url(https://diwvideos.b-cdn.net/wp-content/plugins/diw-app/app/assets/ocpmesh2-S9llxnfq.webp); }
  .mesh-ocp3 { background-image: url(https://diwvideos.b-cdn.net/wp-content/plugins/diw-app/app/assets/ocpmesh3-s70yjrkD.webp); }
  .mesh-diw0 { background-image: url(https://diwvideos.b-cdn.net/wp-content/plugins/diw-app/app/assets/diwmesh0-rdLId7sB.webp); }
  .mesh-diw1 { background-image: url(https://diwvideos.b-cdn.net/wp-content/plugins/diw-app/app/assets/diwmesh1-p9DhMu0M.webp); }
  .mesh-diw2 { background-image: url(https://diwvideos.b-cdn.net/wp-content/plugins/diw-app/app/assets/diwmesh2-bMAAYtSj.webp); }
  .mesh-diw3 { background-image: url(https://diwvideos.b-cdn.net/wp-content/plugins/diw-app/app/assets/diwmesh3-QUFGLO9v.webp); }
  .mesh-dual0 { background-image: url(https://diwvideos.b-cdn.net/wp-content/plugins/diw-app/app/assets/dualmesh0-PS2wkeQh.webp); }

  /* schedule page */
  .page-title { font-size: clamp(34px, 6vw, 60px); letter-spacing: -.045em; line-height: 1; font-weight: 700; margin: 0 0 14px; }
  .hero { padding: 56px 0 28px; }
  .hero p { color: var(--fg-2); max-width: 56ch; margin: 0 0 6px; font-size: 17px; }
  .filter-bar { position: sticky; top: 0; z-index: 5; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .filter-bar .wrap { padding-block: 12px; display: grid; gap: 10px; }
  .filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
  .tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius); }
  .tab { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 6px; cursor: pointer; color: var(--fg-2); }
  .tab[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
  .search { flex: 1; min-width: 200px; }
  .search input { width: 100%; height: 42px; font: inherit; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--fg); }
  .search input:focus { outline: 0; border-color: var(--fg); }
  .chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .chip { white-space: nowrap; border: 1px solid var(--line); background: transparent; border-radius: 999px; height: 30px; padding: 0 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--fg-2); }
  .chip[aria-pressed="true"] { border-color: var(--fg); color: var(--fg); }
  .day-head { display: flex; align-items: baseline; gap: 12px; margin: 44px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--fg); }
  .day-head h2 { font-size: 28px; letter-spacing: -.03em; font-weight: 700; }
  .slot { display: grid; grid-template-columns: 100px 1fr; gap: 0 20px; border-bottom: 1px solid var(--line); }
  .slot-time { font-family: var(--f-mono); font-size: 13px; padding-top: 18px; }
  .item { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .item:last-child { border-bottom: 0; }
  .item:hover h3 { text-decoration: underline; }
  .item-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 13px; color: var(--fg-2); margin-bottom: 4px; align-items: center; }
  .item h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; text-wrap: balance; }
  .item-spk { font-size: 14px; color: var(--fg-2); }
  .item-spk b { color: var(--fg); font-weight: 500; }
  .empty { padding: 56px 0; color: var(--fg-3); }

  /* logo wall */
  .logo-wall { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .logo-wall li { flex: 0 0 calc((100% - 50px) / 6); min-width: 140px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; height: 76px; padding: 0 16px; background: var(--card); border: 1px solid var(--card-line); border-radius: 12px; transition: border-color .25s, transform .25s; }
  .logo-wall li:hover { border-color: rgba(141, 198, 63, .7); transform: translateY(-2px); }
  .logo-wall img { filter: brightness(0) invert(1); display: block; max-width: 100%; max-height: 28px; width: auto; height: auto; object-fit: contain; }
  .logo-wall .more { color: #d4d4d8; font-size: 13px; font-weight: 600; }
}

@layer utilities {
  .mt-2 { margin-top: 8px; }
}

@media (max-width: 800px) {
  .facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .facts div:last-child { border-bottom: 0; }
}
@media (max-width: 700px) {
  .slot { grid-template-columns: 1fr; }
  .slot-time { padding: 14px 0 0; }
}

  .wall-note { color: #b9b8d6; font-size: 14px; margin: 16px 0 0; text-align: center; }

.site-nav{display:flex;gap:22px;margin-left:auto;margin-right:18px;font-size:14px;font-weight:500}
.site-nav a{color:var(--fg-2,#52525b);text-decoration:none}
.site-nav a:hover{color:var(--fg,#000)}
@media (max-width:720px){.site-nav{display:none}}

/* schedule cards (1.5.0) */
.slot{border-bottom:0;padding:22px 0 0;align-items:start}
.slot>div:last-child{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px}
.slot-time{padding-top:20px;font-weight:500}
.item{position:relative;display:flex;flex-direction:column;gap:10px;padding:18px 18px 16px 22px;border:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:14px;background:var(--bg);overflow:hidden;transition:transform .2s,box-shadow .2s,border-color .2s}
.item:last-child{border-bottom:1px solid var(--line)}
.item::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--c,var(--fg))}
.item:hover{transform:translateY(-2px);border-color:var(--c,var(--fg));box-shadow:0 10px 26px rgba(0,0,0,.08)}
.item:hover h3{text-decoration:none}
.item h3{margin:0;font-size:18px;line-height:1.28}
.item-meta{margin:0;gap:6px 10px}
.item-meta [class^="trk-"]{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;background:color-mix(in srgb,var(--c,#000) 12%,transparent);color:var(--fg);font-weight:600;font-size:12px}
.item-meta .dot{width:7px;height:7px;border-radius:50%;background:var(--c,var(--fg));display:inline-block}
.item-meta .mono{margin-left:auto;color:var(--fg-3)}
.item-spk{margin-top:auto;padding-top:10px;border-top:1px solid var(--line);font-size:13.5px;line-height:1.45}
.item-spk b{display:block;font-size:14px}
.empty{padding:56px 0;color:var(--fg-3)}
@media (max-width:700px){.slot>div:last-child{grid-template-columns:1fr}}
.item.t-m{--c:var(--fg)}.item.t-r{--c:#5fa800}.item.t-c{--c:#0070f3}.item.t-d{--c:#7928ca}.item.t-e{--c:#f5a623}

