/* v1 */
/* =============================================================
   Rize Session Library — styles
   Grounded in the Blade Design System tokens.
   Dark navy header/hero + bright azure accent, clean light body.
   ============================================================= */

/* ---------- FONTS ---------- */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-VariableFont_opsz_wght.ttf") format("truetype-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TASA Orbiter Display";
  src: url("assets/fonts/TASAOrbiterDisplay-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TASA Orbiter Display";
  src: url("assets/fonts/TASAOrbiterDisplay-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TASA Orbiter Display";
  src: url("assets/fonts/TASAOrbiterDisplay-SemiBold.otf") format("opentype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TASA Orbiter Display";
  src: url("assets/fonts/TASAOrbiterDisplay-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TASA Orbiter Display";
  src: url("assets/fonts/TASAOrbiterDisplay-Black.otf") format("opentype");
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ---------- TOKENS ---------- */
:root {
  --brand-navy: #000F44;
  --azure-050: #F2F7FF; --azure-100: #D4E4FF; --azure-200: #A9C9FF;
  --azure-300: #75A9FF; --azure-400: #4288FF; --azure-500: #1566F1;
  --azure-600: #0E54CC; --azure-700: #0A44A8; --azure-800: #073585; --azure-900: #052763;

  --emerald-050: #E6F4ED; --emerald-500: #009B54; --emerald-600: #008D47; --emerald-700: #00733A;
  --orchid-050: #F0E4FF; --orchid-500: #8D60F9; --orchid-600: #764CDE; --orchid-700: #6039BE;

  --neutral-000: #FFFFFF; --neutral-050: #F8F8F8; --neutral-100: #EEF0F1;
  --neutral-200: #DEE1E3; --neutral-300: #C8CDD0; --neutral-400: #AFB6BB;
  --neutral-500: #96A0A6; --neutral-600: #7B878E; --neutral-700: #616D75;
  --neutral-900: #434B51; --neutral-1200: #191D1F; --neutral-1300: #050505;

  --text-strong: #050505; --text-default: #202223;
  --text-muted: #616D75; --text-subtle: #7B878E; --text-inverse: #FFFFFF;

  --surface-bg: #FFFFFF; --surface-subtle: #F6F8FB;
  --surface-line: rgba(67, 75, 81, 0.12);
  --surface-line-strong: rgba(67, 75, 81, 0.22);

  --radius-xs: 4px; --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
  --radius-xl: 20px; --radius-2xl: 24px; --radius-max: 9999px;

  --elev-low: 0 1px 2px 0 rgba(5,5,5,0.06), 0 1px 1px 0 rgba(5,5,5,0.04);
  --elev-mid: 0 8px 24px 0 rgba(5,5,5,0.10);
  --elev-high: 0 16px 48px -4px rgba(5,5,5,0.16);
  --elev-card-hover: 0 18px 40px -12px rgba(0, 15, 68, 0.22);

  --ease: cubic-bezier(0.3, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);

  --maxw: 1200px;
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.55;
  color: var(--text-default);
  background: var(--surface-subtle);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--azure-600); text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--azure-200); color: var(--brand-navy); }

/* ---------- BUTTONS ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border: 0;
  border-radius: var(--radius-md);
  font-family: "Inter"; font-weight: 600; font-size: 14px;
  cursor: pointer; white-space: nowrap; overflow: hidden;
  transition: background var(--ease) .2s, box-shadow var(--ease) .2s, transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary {
  background: var(--azure-500); color: #fff;
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.22), 0 1px 2px 0 rgba(7,53,133,0.20);
}
.btn--primary::before {
  content: ""; position: absolute; inset: -50% 0 auto 0; height: 200%; z-index: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(255,255,255,0.22), transparent 60%);
}
.btn--primary:hover { background: var(--azure-600); }
.btn--primary > * { position: relative; z-index: 1; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(4, 8, 24, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px); height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar__brand { display: flex; align-items: center; gap: 14px; }
.topbar__logo { height: 26px; width: auto; }
.topbar__divider { width: 1px; height: 22px; background: rgba(255,255,255,0.18); }
.topbar__label {
  font-family: "TASA Orbiter Display"; font-weight: 500; font-size: 15px;
  color: rgba(255,255,255,0.78); letter-spacing: -0.01em;
}
.topbar__nav { display: flex; align-items: center; gap: 4px; }
.topbar__navlink {
  color: rgba(255,255,255,0.66); font-size: 13.5px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.topbar__navlink:hover { color: #fff; background: rgba(255,255,255,0.07); }

/* ============================================================
   HERO  (dark)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: #040818;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 48px) clamp(64px, 8vw, 96px);
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(66, 136, 255, 0.34), transparent 62%),
    radial-gradient(700px 380px at 88% 0%, rgba(141, 96, 249, 0.18), transparent 60%),
    linear-gradient(180deg, #06122F 0%, #040818 64%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 170, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, #000 20%, transparent 78%);
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "Inter"; font-size: 11.5px; letter-spacing: 0.04em;
  color: rgba(212, 228, 255, 0.78);
  padding: 7px 16px 7px 13px;
  background: rgba(120, 170, 255, 0.10);
  border: 1px solid rgba(120, 170, 255, 0.22);
  border-radius: var(--radius-max);
  margin-bottom: 28px;
}
.hero__eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ED98A; box-shadow: 0 0 0 4px rgba(78, 217, 138, 0.18);
}
.hero__title {
  font-family: "TASA Orbiter Display"; font-weight: 700;
  font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02;
  letter-spacing: -0.035em; color: #fff; margin: 0;
}
.hero__subtitle {
  font-size: clamp(16px, 2.2vw, 20px); line-height: 1.5;
  color: rgba(216, 224, 240, 0.74);
  margin: 20px 0 0; max-width: 560px; text-wrap: pretty;
}

/* SEARCH BAR */
.searchbar {
  position: relative; width: min(640px, 100%);
  margin-top: 44px; display: flex; align-items: center;
}
.searchbar__icon {
  position: absolute; left: 22px; width: 21px; height: 21px;
  color: var(--neutral-500); pointer-events: none;
}
.searchbar__input {
  width: 100%; height: 62px;
  padding: 0 56px 0 56px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-max);
  background: rgba(255,255,255,0.97);
  font-family: "Inter"; font-size: 16.5px; color: var(--text-strong);
  box-shadow: 0 20px 50px -16px rgba(0, 8, 32, 0.7), inset 0 0 0 1px rgba(255,255,255,0.4);
  transition: box-shadow .25s var(--ease), background .2s var(--ease);
}
.searchbar__input::placeholder { color: var(--neutral-500); }
.searchbar__input:focus {
  outline: none; background: #fff;
  box-shadow: 0 0 0 4px rgba(66, 136, 255, 0.35), 0 20px 50px -16px rgba(0, 8, 32, 0.7);
}
.searchbar__clear {
  position: absolute; right: 16px;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: var(--neutral-100); color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s var(--ease);
}
.searchbar__clear:hover { background: var(--neutral-200); }
.searchbar__clear svg { width: 16px; height: 16px; }

/* ============================================================
   LIBRARY
   ============================================================ */
.library { padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 48px) 96px; }
.library__inner { max-width: var(--maxw); margin: 0 auto; }

/* FILTERS */
.filters {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  padding-bottom: 24px;
}
.filters__communities { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--radius-max);
  border: 1px solid var(--surface-line-strong);
  background: var(--surface-bg);
  font-size: 13.5px; font-weight: 600; color: var(--text-muted);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--neutral-400); color: var(--text-strong); }
.chip.is-active {
  background: var(--brand-navy); border-color: var(--brand-navy); color: #fff;
}
.chip__dot { width: 8px; height: 8px; border-radius: 50%; }
.chip__dot--tech  { background: var(--azure-500); }
.chip__dot--d2c   { background: var(--orchid-500); }
.chip__dot--xport { background: var(--emerald-500); }
.chip.is-active .chip__dot { box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }

.filters__dropdowns { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* DROPDOWNS */
.dropdown { position: relative; }
.dropdown__trigger {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--surface-line-strong);
  background: var(--surface-bg);
  font-size: 13.5px; font-weight: 600; color: var(--text-default);
  cursor: pointer; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.dropdown__trigger:hover { border-color: var(--neutral-400); }
.dropdown.is-open .dropdown__trigger {
  border-color: var(--azure-500); box-shadow: 0 0 0 3px rgba(21,102,241,0.14);
}
.dropdown__label .count {
  margin-left: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--radius-max); background: var(--azure-500); color: #fff;
  font-size: 11px; font-weight: 700;
}
.dropdown__caret { width: 16px; height: 16px; color: var(--text-subtle); transition: transform .2s var(--ease); }
.dropdown.is-open .dropdown__caret { transform: rotate(180deg); }

.dropdown__panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 50;
  min-width: 230px;
  background: var(--surface-bg);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-high);
  padding: 8px;
  animation: pop .16s var(--ease-spring);
}
#dateDropdown .dropdown__panel, #topicDropdown .dropdown__panel { right: auto; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.dropdown__panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px 10px; margin-bottom: 4px;
  border-bottom: 1px solid var(--surface-line);
  font-family: "Inter"; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-subtle);
}
.dropdown__reset {
  border: 0; background: none; cursor: pointer;
  font-family: "Inter"; font-size: 12px; font-weight: 600; color: var(--azure-600);
  text-transform: none; letter-spacing: 0; padding: 2px 4px;
}
.dropdown__reset:hover { text-decoration: underline; }
.dropdown__options { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; }

.check-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  border: 0; background: none; width: 100%; text-align: left;
  font-size: 13.5px; font-weight: 500; color: var(--text-default);
  cursor: pointer; transition: background .12s var(--ease);
}
.check-opt:hover { background: var(--neutral-050); }
.check-opt__box {
  width: 18px; height: 18px; flex: none;
  border: 1.5px solid var(--surface-line-strong); border-radius: var(--radius-xs);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.check-opt__box svg { width: 11px; height: 11px; color: #fff; opacity: 0; }
.check-opt.is-on .check-opt__box { background: var(--azure-500); border-color: var(--azure-500); }
.check-opt.is-on .check-opt__box svg { opacity: 1; }
.check-opt__count { margin-left: auto; font-family: "Inter"; font-size: 11px; color: var(--text-subtle); }

.radio-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  border: 0; background: none; width: 100%; text-align: left;
  font-size: 13.5px; font-weight: 500; color: var(--text-default);
  cursor: pointer; transition: background .12s var(--ease);
}
.radio-opt:hover { background: var(--neutral-050); }
.radio-opt.is-active { background: var(--azure-050); color: var(--azure-700); font-weight: 600; }

.filters__clear {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px dashed var(--surface-line-strong); background: none;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: all .18s var(--ease);
}
.filters__clear:hover { color: var(--azure-600); border-color: var(--azure-300); background: var(--azure-050); }
.filters__clear svg { width: 15px; height: 15px; }

/* RESULT BAR */
.resultbar { padding: 8px 0 22px; }
.resultbar__count {
  margin: 0; font-family: "Inter"; font-size: 12px;
  letter-spacing: 0.03em; color: var(--text-muted);
}
.resultbar__count strong { color: var(--text-strong); font-weight: 700; }

/* ============================================================
   SESSION GRID + CARD
   ============================================================ */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card-session {
  display: flex; flex-direction: column;
  background: var(--surface-bg);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-lg);
  padding: 22px;
  cursor: pointer; text-align: left;
  box-shadow: var(--elev-low);
  transition: transform .22s var(--ease-spring), box-shadow .22s var(--ease), border-color .22s var(--ease);
  animation: cardIn .4s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card-session:hover {
  transform: translateY(-4px);
  box-shadow: var(--elev-card-hover);
  border-color: rgba(21,102,241,0.28);
}
.card-session__top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 16px;
}
.card-session__date {
  font-family: "Inter"; font-size: 11px; color: var(--text-subtle);
  letter-spacing: 0.02em;
}

/* community badge */
.cbadge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 11px 0 9px; border-radius: var(--radius-max);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.01em;
}
.cbadge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cbadge--tech  { background: var(--azure-050);   color: var(--azure-700); }
.cbadge--d2c   { background: var(--orchid-050);  color: var(--orchid-700); }
.cbadge--xport { background: var(--emerald-050); color: var(--emerald-700); }

.card-session__title {
  font-family: "TASA Orbiter Display"; font-weight: 600;
  font-size: 21px; line-height: 1.22; letter-spacing: -0.015em;
  color: var(--text-strong); margin: 0 0 12px;
}
.card-session__speaker {
  display: flex; align-items: center; gap: 11px; margin-bottom: 14px;
}
.card-session__avatar {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "TASA Orbiter Display"; font-weight: 600; font-size: 14px;
  color: #fff;
}
.card-session__speaker-meta { min-width: 0; }
.card-session__speaker-name { font-size: 13.5px; font-weight: 600; color: var(--text-default); line-height: 1.3; }
.card-session__speaker-role { font-size: 12px; color: var(--text-muted); line-height: 1.3; }
.card-session__summary {
  font-size: 13.5px; line-height: 1.5; color: var(--text-muted);
  margin: 0 0 18px; text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-session__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.ttag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: var(--radius-max); background: var(--neutral-100);
  font-size: 11.5px; font-weight: 500; color: var(--neutral-900); white-space: nowrap;
}
.card-session__foot {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--surface-line);
  display: flex; align-items: center;
}
.card-session__read {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: var(--cta-font, "Inter");
  font-size: 13.5px; font-weight: 600; color: var(--azure-600);
}
.card-session__read svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.card-session:hover .card-session__read svg { transform: translateX(3px); }

/* EMPTY STATE */
.empty {
  text-align: center; padding: 72px 24px;
  display: flex; flex-direction: column; align-items: center;
}
.empty__art {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--azure-050); color: var(--azure-500);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.empty__art svg { width: 28px; height: 28px; }
.empty__title {
  font-family: "TASA Orbiter Display"; font-weight: 600; font-size: 22px;
  color: var(--text-strong); margin: 0 0 8px;
}
.empty__text { font-size: 14.5px; color: var(--text-muted); margin: 0 0 24px; max-width: 380px; }

/* ============================================================
   DETAIL VIEW
   ============================================================ */
.detail { padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px) 96px; }
.detail__inner { max-width: var(--maxw); margin: 0 auto; }
.backlink {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: none; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--text-muted);
  padding: 8px 12px 8px 8px; border-radius: var(--radius-sm); margin-bottom: 28px;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.backlink:hover { color: var(--azure-600); background: var(--azure-050); }
.backlink svg { width: 17px; height: 17px; }

.detail__layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 48px; align-items: start;
}

/* detail hero block */
.dhead { margin-bottom: 28px; }
.dhead__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.dhead__date { font-family: "Inter"; font-size: 12px; color: var(--text-subtle); }
.dhead__title {
  font-family: "TASA Orbiter Display"; font-weight: 700;
  font-size: clamp(28px, 4vw, 42px); line-height: 1.08; letter-spacing: -0.025em;
  color: var(--text-strong); margin: 0 0 22px; text-wrap: balance;
}
.dhead__speaker {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--surface-line);
  border-radius: var(--radius-md); background: var(--surface-bg);
}
.dhead__avatar {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "TASA Orbiter Display"; font-weight: 600; font-size: 17px; color: #fff;
}
.dhead__speaker-name { font-size: 15px; font-weight: 600; color: var(--text-strong); }
.dhead__speaker-role { font-size: 13px; color: var(--text-muted); }
.dhead__linkedin {
  margin-left: auto; width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid var(--surface-line-strong); background: var(--surface-bg);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--azure-600); transition: background .18s var(--ease), border-color .18s var(--ease);
}
.dhead__linkedin:hover { background: var(--azure-050); border-color: var(--azure-300); }
.dhead__linkedin svg { width: 18px; height: 18px; }
.dhead__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }

/* markdown body */
.notes { font-size: 16px; line-height: 1.7; color: var(--text-default); }
.notes h2 {
  font-family: "TASA Orbiter Display"; font-weight: 600; font-size: 26px; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--text-strong); margin: 40px 0 16px; padding-top: 8px;
}
.notes h2:first-child { margin-top: 0; }
.notes h3 {
  font-family: "TASA Orbiter Display"; font-weight: 600; font-size: 19px; line-height: 1.3;
  color: var(--text-strong); margin: 30px 0 12px;
}
.notes p { margin: 0 0 18px; text-wrap: pretty; }
.notes ul, .notes ol { margin: 0 0 20px; padding-left: 24px; }
.notes li { margin-bottom: 9px; }
.notes li::marker { color: var(--azure-500); font-weight: 600; }
.notes strong { color: var(--text-strong); font-weight: 700; }
.notes a { color: var(--azure-600); text-decoration: underline; text-underline-offset: 2px; }
.notes blockquote {
  margin: 26px 0; padding: 18px 24px;
  border-left: 3px solid var(--azure-500);
  background: var(--azure-050); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: "TASA Orbiter Display"; font-weight: 500; font-size: 18px; line-height: 1.5;
  color: var(--brand-navy); font-style: normal;
}
.notes blockquote p { margin: 0; }
.notes code {
  font-family: "Inter", monospace; font-size: 13px;
  background: var(--neutral-100); color: var(--azure-800);
  padding: 2px 6px; border-radius: var(--radius-xs);
}
.notes pre {
  background: #0A1330; color: #D8E6FF;
  border: 1px solid rgba(120,170,255,0.18);
  border-radius: var(--radius-md);
  padding: 18px 20px; overflow-x: auto; margin: 0 0 22px;
}
.notes pre code { background: none; color: inherit; padding: 0; font-size: 13px; line-height: 1.6; }
.notes table {
  width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14px;
  border: 1px solid var(--surface-line); border-radius: var(--radius-md); overflow: hidden;
}
.notes th, .notes td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--surface-line); }
.notes th { background: var(--neutral-050); font-size: 12px; font-weight: 700; color: var(--text-strong); }
.notes tr:last-child td { border-bottom: 0; }
.notes hr { border: 0; border-top: 1px solid var(--surface-line); margin: 32px 0; }

/* related sidebar */
.detail__aside { position: sticky; top: 92px; }
.related__title {
  font-family: "Inter"; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-subtle); margin: 0 0 16px;
}
.related__list { display: flex; flex-direction: column; gap: 12px; }
.related-card {
  display: block; text-align: left; width: 100%;
  border: 1px solid var(--surface-line); border-radius: var(--radius-md);
  background: var(--surface-bg); padding: 16px; cursor: pointer;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.related-card:hover { border-color: rgba(21,102,241,0.3); box-shadow: var(--elev-mid); transform: translateY(-2px); }
.related-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.related-card__date { font-family: "Inter"; font-size: 10.5px; color: var(--text-subtle); }
.related-card__title {
  font-family: "TASA Orbiter Display"; font-weight: 600; font-size: 15px; line-height: 1.3;
  color: var(--text-strong); margin: 0 0 6px;
}
.related-card__speaker { font-size: 12.5px; color: var(--text-muted); }

/* ============================================================
   ASK RIZE WIDGET
   ============================================================ */
.ask-fab {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: var(--radius-max);
  background: var(--azure-500); color: #fff; cursor: pointer;
  font-family: "Inter"; font-weight: 600; font-size: 15px;
  box-shadow: 0 14px 34px -8px rgba(21,102,241,0.6), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .2s var(--ease-spring), background .2s var(--ease);
}
.ask-fab:hover { background: var(--azure-600); transform: translateY(-2px); }
.ask-fab__icon { width: 22px; height: 22px; }

.ask-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(4, 8, 24, 0.4); backdrop-filter: blur(2px);
  animation: fade .2s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.ask-drawer {
  position: fixed; right: 0; top: 0; bottom: 0; z-index: 90;
  width: min(440px, 100vw);
  background: var(--surface-bg);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px -20px rgba(0,8,32,0.4);
  animation: slideIn .3s var(--ease-spring);
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.ask-drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--surface-line);
  background: #040818;
}
.ask-drawer__title { display: flex; align-items: center; gap: 12px; }
.ask-drawer__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, var(--azure-400), var(--azure-600));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.ask-drawer__avatar svg { width: 20px; height: 20px; }
.ask-drawer__name { margin: 0; font-family: "TASA Orbiter Display"; font-weight: 600; font-size: 16px; color: #fff; }
.ask-drawer__sub { margin: 2px 0 0; font-size: 12px; color: rgba(216,224,240,0.66); }
.ask-drawer__close {
  width: 36px; height: 36px; border: 0; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s var(--ease);
}
.ask-drawer__close:hover { background: rgba(255,255,255,0.16); }
.ask-drawer__close svg { width: 18px; height: 18px; }

.ask-drawer__body { flex: 1; overflow-y: auto; padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; }
.ask-intro__hi { margin: 0 0 22px; font-size: 15px; line-height: 1.55; color: var(--text-default); }
.ask-intro__label {
  margin: 0 0 12px; font-family: "Inter"; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-subtle);
}
.ask-suggestions { display: flex; flex-direction: column; gap: 8px; }
.ask-suggestion {
  text-align: left; border: 1px solid var(--surface-line); background: var(--surface-subtle);
  border-radius: var(--radius-md); padding: 13px 15px; cursor: pointer;
  font-size: 13.5px; font-weight: 500; color: var(--text-default); line-height: 1.4;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.ask-suggestion:hover { border-color: var(--azure-300); background: var(--azure-050); color: var(--azure-800); }

/* chat bubbles */
.ask-msg { display: flex; flex-direction: column; max-width: 88%; }
.ask-msg--user { align-self: flex-end; align-items: flex-end; }
.ask-msg--bot { align-self: flex-start; align-items: flex-start; }
.ask-bubble {
  padding: 12px 15px; border-radius: 16px; font-size: 14px; line-height: 1.5;
}
.ask-msg--user .ask-bubble {
  background: var(--azure-500); color: #fff; border-bottom-right-radius: 5px;
}
.ask-msg--bot .ask-bubble {
  background: var(--surface-subtle); color: var(--text-default);
  border: 1px solid var(--surface-line); border-bottom-left-radius: 5px;
}
.ask-sources { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.ask-sources__label {
  font-family: "Inter"; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-subtle); margin-bottom: 2px;
}
.ask-source {
  display: flex; align-items: center; gap: 10px; text-align: left; width: 100%;
  border: 1px solid var(--surface-line); border-radius: var(--radius-md);
  background: var(--surface-bg); padding: 10px 12px; cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.ask-source:hover { border-color: var(--azure-300); background: var(--azure-050); }
.ask-source__icon {
  width: 30px; height: 30px; flex: none; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.ask-source__meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ask-source__title { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-strong); line-height: 1.3; }
.ask-source__sub { font-size: 11px; color: var(--text-muted); }

.ask-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.ask-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--neutral-400);
  animation: bounce 1.2s infinite ease-in-out;
}
.ask-typing span:nth-child(2) { animation-delay: .16s; }
.ask-typing span:nth-child(3) { animation-delay: .32s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

.ask-drawer__compose {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-top: 1px solid var(--surface-line); background: var(--surface-bg);
}
.ask-input {
  flex: 1; height: 46px; padding: 0 16px;
  border: 1px solid var(--surface-line-strong); border-radius: var(--radius-max);
  font-family: "Inter"; font-size: 14px; color: var(--text-strong);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.ask-input:focus { outline: none; border-color: var(--azure-500); box-shadow: 0 0 0 3px rgba(21,102,241,0.14); }
.ask-send {
  width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%;
  background: var(--azure-500); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s var(--ease), transform .12s var(--ease);
}
.ask-send:hover { background: var(--azure-600); }
.ask-send:active { transform: scale(0.94); }
.ask-send svg { width: 19px; height: 19px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .detail__layout { grid-template-columns: 1fr; gap: 40px; }
  .detail__aside { position: static; }
  .related__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.tweaks-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 200;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--brand-navy, #0a1f44); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px -8px rgba(0,8,32,0.5);
  transition: transform .15s var(--ease), background .15s var(--ease);
}
.tweaks-fab:hover { transform: rotate(35deg); }
.tweaks-fab svg { width: 20px; height: 20px; }
.tweaks-panel {
  position: fixed; left: 20px; bottom: 78px; z-index: 200;
  width: 256px; padding: 18px; border-radius: var(--radius-lg, 14px);
  background: #fff; border: 1px solid var(--surface-line);
  box-shadow: 0 24px 60px -18px rgba(0,8,32,0.4), inset 0 0 0 1px rgba(255,255,255,0.5);
  display: none; transform-origin: bottom left;
}
.tweaks-panel.is-open { display: block; animation: tweaks-in .18s var(--ease); }
@keyframes tweaks-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
.tweaks-panel__head {
  font-family: "Inter"; font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-subtle); margin: 0 0 14px;
}
.tweaks-field__label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-strong); margin-bottom: 8px; }
.tweaks-seg { display: flex; flex-direction: column; gap: 6px; }
.tweaks-seg__opt {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 9px 12px; border: 1px solid var(--surface-line); border-radius: var(--radius-md, 10px);
  background: #fff; cursor: pointer; font-size: 13px; color: var(--text-default);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.tweaks-seg__opt:hover { border-color: var(--azure-300); }
.tweaks-seg__opt.is-on { border-color: var(--azure-500); background: var(--azure-050); color: var(--text-strong); font-weight: 600; }
.tweaks-seg__dot { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid var(--surface-line-strong); }
.tweaks-seg__opt.is-on .tweaks-seg__dot { border-color: var(--azure-500); background: var(--azure-500); box-shadow: inset 0 0 0 2.5px #fff; }

@media (max-width: 720px) {
  .topbar__nav { display: none; }
  .topbar__label { display: none; }
  .grid { grid-template-columns: 1fr; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters__communities { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .filters__dropdowns { justify-content: flex-start; }
  .related__list { grid-template-columns: 1fr; }
  .ask-fab__label { display: none; }
  .ask-fab { padding: 0; width: 56px; justify-content: center; }
  .hero__title { font-size: 38px; }
}
