/* =============================================================
   Landing and concept screens
   A dark board carried by artwork and a single blue signal.
   Scoped to body.landing, body.detail and body.compose — the pages
   that load this file — so the rest of the site keeps the palette
   and type it already has.
   ============================================================= */

:is(.landing, .detail, .compose) {
  --l-bg:      #080A0F;
  --l-panel:   #0C0E14;
  --l-card:    rgba(255, 255, 255, .03);
  --l-card-hi: rgba(255, 255, 255, .06);
  --l-edge:    rgba(255, 255, 255, .08);
  --l-edge-hi: rgba(255, 255, 255, .20);
  --l-blue:    #2563EB;
  --l-blue-hi: #3B82F6;
  --l-ink:     #E5E7EB;
  --l-ink-dim: #D1D5DB;
  --l-muted:   #94A3B8;
  --l-glow:    0 0 20px rgba(37, 99, 235, .4);
  --l-ease:    cubic-bezier(.16, 1, .3, 1);
  --l-gutter:  24px;
  --l-header:  65px;

  /* Category identity, restated in this screen's palette. */
  --t-world:     #6366F1;
  --t-design:    #2563EB;
  --t-gameplay:  #2563EB;
  --t-lore:      #EF4444;
  --t-systems:   #14B8A6;
  --t-visual:    #94A3B8;
  --t-prototype: #F59E0B;
  --t-vision:    #8B5CF6;

  background: var(--l-bg);
  color: var(--l-ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
@media (min-width: 1280px) { :is(.landing, .detail, .compose) { --l-gutter: 48px; } }

:is(.landing, .detail, .compose) a { color: inherit; }
:is(.landing, .detail, .compose) a:hover { color: inherit; }
:is(.landing, .detail, .compose) h1, :is(.landing, .detail, .compose) h2, :is(.landing, .detail, .compose) h3 { margin: 0; font-weight: 700; }
:is(.landing, .detail, .compose) p { margin: 0; }
:is(.landing, .detail, .compose) ::selection { background: var(--l-blue); color: #FFFFFF; }
:is(.landing, .detail, .compose) :focus-visible { outline: 2px solid var(--l-blue-hi); outline-offset: 2px; }

:is(.landing, .detail, .compose)::-webkit-scrollbar,
:is(.landing, .detail, .compose) ::-webkit-scrollbar { width: 8px; height: 8px; }
:is(.landing, .detail, .compose)::-webkit-scrollbar-track,
:is(.landing, .detail, .compose) ::-webkit-scrollbar-track { background: transparent; }
:is(.landing, .detail, .compose)::-webkit-scrollbar-thumb,
:is(.landing, .detail, .compose) ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
:is(.landing, .detail, .compose)::-webkit-scrollbar-thumb:hover,
:is(.landing, .detail, .compose) ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }

/* Icon marks. Sized off the font-size of whatever holds them, so a button
   that sets 18px gets an 18px glyph without a second declaration. */
.ph {
  display: inline-block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  fill: currentColor;
}
.ph-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Buttons that carry both an outline and a filled mark swap on press. The
   :not() pairs keep single-mark buttons — the view toggle — untouched. */
[aria-pressed] > .ph:not(:first-of-type) { display: none; }
[aria-pressed="true"] > .ph:not(:last-of-type) { display: none; }
[aria-pressed="true"] > .ph:not(:first-of-type) { display: inline-block; }

/* Applied by home.js, so the page still shows everything without it. */
:is(.landing, .detail, .compose) .rise { opacity: 0; transform: translateY(20px); }
:is(.landing, .detail, .compose) .rise.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--l-ease), transform .6s var(--l-ease);
}

/* -------------------------------------------------------------
   Header — sticky glass over the page, not over the hero
   ------------------------------------------------------------- */

:is(.landing, .detail, .compose) .gheader {
  position: sticky;
  height: var(--l-header);
  gap: 40px;
  padding: 0 var(--l-gutter);
  background: rgba(8, 10, 15, .8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--l-edge);
  box-shadow: none;
}
:is(.landing, .detail, .compose) .gheader::before,
:is(.landing, .detail, .compose) .gheader::after { content: none; }

:is(.landing, .detail, .compose) .brand { min-width: 0; gap: 0; color: #FFFFFF; }
:is(.landing, .detail, .compose) .brand-glyph { display: none; }
:is(.landing, .detail, .compose) .brand-sub {
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .06em;
  margin-bottom: 2px;
  color: var(--l-muted);
  transition: color .18s var(--l-ease);
}
:is(.landing, .detail, .compose) .brand-name {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  font-stretch: normal;
  letter-spacing: .08em;
  color: #FFFFFF;
}
:is(.landing, .detail, .compose) .brand-name em { color: inherit; }
:is(.landing, .detail, .compose) .brand-tri {
  display: inline-block;
  font-size: 18px;
  margin-left: 5px;
  vertical-align: -3px;
  transition: color .18s var(--l-ease);
}
:is(.landing, .detail, .compose) .brand:hover .brand-sub { color: #FFFFFF; }
:is(.landing, .detail, .compose) .brand:hover .brand-tri { color: var(--l-blue); }

:is(.landing, .detail, .compose) .gnav {
  margin-left: 0;
  gap: 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}
:is(.landing, .detail, .compose) .gnav a {
  padding: 0 0 4px;
  border-bottom: 2px solid transparent;
  color: var(--l-muted);
  transition: color .18s var(--l-ease);
}
:is(.landing, .detail, .compose) .gnav a:hover { color: #FFFFFF; }
:is(.landing, .detail, .compose) .gheader .gnav a::after { content: none; }
:is(.landing, .detail, .compose) .gheader[data-nav="explore"] [data-nav-id="explore"],
:is(.landing, .detail, .compose) .gheader[data-nav="concepts"] [data-nav-id="concepts"],
:is(.landing, .detail, .compose) .gheader[data-nav="demos"] [data-nav-id="demos"],
:is(.landing, .detail, .compose) .gheader[data-nav="questions"] [data-nav-id="questions"],
:is(.landing, .detail, .compose) .gheader[data-nav="directions"] [data-nav-id="directions"],
:is(.landing, .detail, .compose) .gheader[data-nav="about"] [data-nav-id="about"] {
  color: #FFFFFF;
  border-bottom-color: var(--l-blue);
}

/* The header scrolls with the page here, so nothing needs clearing.
   site.css already owns .concept, so the body class is .detail. */
.detail { padding: 0; }

:is(.landing, .detail, .compose) .gtools { gap: 20px; }
:is(.landing, .detail, .compose) .gtools-sep { display: none; }

:is(.landing, .detail, .compose) .gsearch {
  width: 256px;
  height: 33px;
  gap: 8px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  border-color: var(--l-edge);
  background: var(--l-panel);
  color: var(--l-muted);
  transition: border-color .18s var(--l-ease);
}
:is(.landing, .detail, .compose) .gsearch:focus-within { border-color: rgba(37, 99, 235, .5); }
:is(.landing, .detail, .compose) .gsearch input { font-family: inherit; font-size: 14px; color: #FFFFFF; }
:is(.landing, .detail, .compose) .gsearch input::placeholder { color: var(--l-muted); }
:is(.landing, .detail, .compose) .gsearch kbd { display: none; }

:is(.landing, .detail, .compose) .gicon {
  position: relative;
  width: auto;
  height: auto;
  color: var(--l-muted);
}
:is(.landing, .detail, .compose) .gicon:hover { color: #FFFFFF; background: none; }
:is(.landing, .detail, .compose) .gicon .i { width: 20px; height: 20px; }
:is(.landing, .detail, .compose) .gdot {
  display: block;
  position: absolute;
  top: -2px; right: -2px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--l-blue);
}

:is(.landing, .detail, .compose) .guser .i { display: none; }
:is(.landing, .detail, .compose) .guser-avatar {
  width: 36px; height: 36px;
  border-color: var(--l-edge);
  background: linear-gradient(to top right, #3B82F6, #A855F7);
  transition: border-color .18s var(--l-ease);
}
:is(.landing, .detail, .compose) .guser:hover .guser-avatar { border-color: rgba(255,255,255,.4); }

/* -------------------------------------------------------------
   Page frame
   ------------------------------------------------------------- */

.home {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px var(--l-gutter);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* -------------------------------------------------------------
   Hero
   ------------------------------------------------------------- */

.home .hhero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 400px;
  overflow: hidden;
  border: 1px solid var(--l-edge);
  border-radius: 16px;
  background: var(--l-bg);
}
.home .hhero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/media/hero/frontier.jpg?v=8") no-repeat 50% 50% / cover;
  opacity: .6;
  mix-blend-mode: screen;
  transition: transform 2s var(--l-ease);
}
.home .hhero:hover .hhero-art { transform: scale(1.05); }
.home .hhero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #080A0F 0%, rgba(8,10,15,.7) 50%, rgba(8,10,15,0) 100%);
}

.home .hhero-inner { position: relative; padding: 40px; max-width: 672px; }

.home .hhero-title {
  margin-bottom: 24px;
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.15;
  color: #FFFFFF;
}
.home .hhero-desc {
  margin-bottom: 40px;
  padding-right: 32px;
  font-size: 18px;
  color: var(--l-muted);
}
.home .hhero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.home .hhero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.home .hstat-value {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 500;
  color: #FFFFFF;
}
.home .hstat-value .ph { color: var(--l-blue); }
.home .hstat-label {
  font-size: 12px;
  letter-spacing: .025em;
  text-transform: uppercase;
  color: var(--l-muted);
}

/* --- buttons -------------------------------------------------- */

:is(.landing, .detail, .compose) .hbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #FFFFFF;
  cursor: pointer;
  transition: background .18s var(--l-ease), border-color .18s var(--l-ease);
}
:is(.landing, .detail, .compose) .hbtn:hover { color: #FFFFFF; }
:is(.landing, .detail, .compose) .hbtn-primary { background: var(--l-blue); box-shadow: var(--l-glow); }
:is(.landing, .detail, .compose) .hbtn-primary:hover { background: var(--l-blue-hi); }
:is(.landing, .detail, .compose) .hbtn-ghost {
  border-color: var(--l-edge);
  background: rgba(12, 14, 20, .5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
:is(.landing, .detail, .compose) .hbtn-ghost:hover { background: var(--l-panel); }
:is(.landing, .detail, .compose) .hbtn-lg { padding: 16px 32px; }

/* -------------------------------------------------------------
   Category toolbar
   ------------------------------------------------------------- */

.home .toolbar {
  position: sticky;
  top: var(--l-header);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 16px 0;
  background: rgba(8, 10, 15, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
@media (min-width: 768px) {
  .home .toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
}

.home .filters-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.home .filters-row::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .home .filters-row { padding-bottom: 0; } }

.home .fbtn {
  flex: 0 0 auto;
  padding: 8px 20px;
  border: 1px solid var(--l-edge);
  border-radius: 6px;
  background: var(--l-card);
  color: var(--l-muted);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s var(--l-ease), color .18s var(--l-ease);
}
.home .fbtn:hover { background: var(--l-card-hi); color: #FFFFFF; }
.home .fbtn[aria-pressed="true"] {
  background: var(--l-blue);
  border-color: transparent;
  color: #FFFFFF;
  font-weight: 500;
  box-shadow: none;
}

.home .toolbar-right { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.home .sortbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: auto;
  padding: 8px 16px;
  border: 1px solid var(--l-edge);
  border-radius: 6px;
  background: var(--l-card);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.5;
  cursor: pointer;
  transition: background .18s var(--l-ease);
}
.home .sortbtn:hover { background: var(--l-card-hi); border-color: var(--l-edge); color: #FFFFFF; }

.home .viewtoggle {
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--l-edge);
  border-radius: 6px;
  background: var(--l-card);
  overflow: visible;
}
.home .viewtoggle button {
  width: auto;
  height: auto;
  padding: 6px;
  border-radius: 4px;
  color: var(--l-muted);
  font-size: 16px;
}
.home .viewtoggle button:hover { background: rgba(255,255,255,.05); color: var(--l-muted); }
.home .viewtoggle button[aria-pressed="true"] {
  background: rgba(255,255,255,.1);
  color: #FFFFFF;
  box-shadow: none;
}

/* -------------------------------------------------------------
   Sections
   ------------------------------------------------------------- */

.home .sec { display: flex; flex-direction: column; gap: 24px; }
.home .sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}
.home .sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
}
.home .sec-title .ph { color: var(--l-blue); font-size: 20px; }
.home .sec-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--l-blue);
  transition: color .18s var(--l-ease);
}
.home .sec-link:hover { color: var(--l-blue-hi); }
.home .sec-note { font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: var(--l-muted); }

/* -------------------------------------------------------------
   Concept cards
   The first card leads at double width and height; the rest sit
   beside it at a fixed 280px.
   ------------------------------------------------------------- */

.home .cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px)  { .home .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .home .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.home .ccard {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--l-edge);
  border-radius: 12px;
  background: var(--l-card);
}
.home .ccard-small { height: 280px; }
.home .ccard-lead  { min-height: 420px; }
@media (min-width: 768px) {
  .home .ccard-lead { grid-column: span 2; grid-row: span 2; }
}

.home .ccard-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.home .ccard-small .ccard-media { opacity: .4; mix-blend-mode: overlay; }
.home .ccard-img {
  position: absolute;
  inset: 0;
  background: var(--img) no-repeat 50% 50% / cover;
  transition: transform .7s var(--l-ease);
}
.home .ccard:hover .ccard-img { transform: scale(1.05); }
.home .ccard-wash {
  position: absolute;
  inset: 0;
  opacity: .2;
  background: radial-gradient(ellipse at top right, rgba(30,58,138,.4), var(--l-bg) 60%);
}

.home .ccard-scrim { position: absolute; inset: 0; z-index: -1; }
.home .ccard-lead .ccard-scrim {
  opacity: .9;
  background: linear-gradient(0deg,
    #0C0E14 0%, #0C0E14 28%, rgba(12,14,20,.55) 55%, rgba(12,14,20,0) 100%);
}
.home .ccard-small .ccard-scrim {
  background: linear-gradient(0deg,
    #0C0E14 0%, rgba(12,14,20,.8) 50%, rgba(12,14,20,.2) 100%);
}

.home .badge {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 2;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.home .ccard-lead .badge {
  padding: 4px 10px;
  background: color-mix(in srgb, var(--accent) 80%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #FFFFFF;
}
.home .ccard-small .badge {
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: color-mix(in srgb, var(--accent) 76%, #FFFFFF);
}

.home .bookmark {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  cursor: pointer;
  transition: background .18s var(--l-ease), transform .18s var(--l-ease);
}
.home .bookmark:hover { background: rgba(255,255,255,.2); }
.home .ccard-lead .bookmark  { width: 40px; height: 40px; font-size: 18px; }
.home .ccard-lead .bookmark:hover { transform: scale(1.1); }
.home .ccard-small .bookmark { width: 32px; height: 32px; font-size: 16px; }
.home .bookmark[aria-pressed="true"] { color: var(--l-blue-hi); }

.home .ccard-body {
  position: relative;
  margin-top: auto;
  display: flex;
  flex-direction: column;
}
.home .ccard-lead .ccard-body  { padding: 24px; }
.home .ccard-small .ccard-body { padding: 20px; }

.home .ccard-title { color: #FFFFFF; transition: color .18s var(--l-ease); }
.home .ccard:hover .ccard-title { color: var(--l-blue-hi); }
.home .ccard-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.home .ccard-lead .ccard-title  { font-size: 24px; margin-bottom: 8px; }
.home .ccard-small .ccard-title { font-size: 18px; margin-bottom: 8px; }

.home .ccard-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home .ccard-lead .ccard-desc {
  max-width: 512px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--l-ink-dim);
}
.home .ccard-small .ccard-desc {
  margin-bottom: 16px;
  font-size: 12px;
  color: #9CA3AF;
}

.home .ccard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.home .ccard-lead .ccard-foot  { padding-top: 16px; font-size: 14px; }
.home .ccard-small .ccard-foot { padding-top: 12px; font-size: 12px; }

.home .ccard-author { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.home .ccard-author > span {
  font-weight: 500;
  color: var(--l-ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home .ccard-author .ph { color: var(--l-blue); font-size: 14px; }

.home .metrics { display: inline-flex; align-items: center; flex: 0 0 auto; color: var(--l-muted); }
.home .ccard-lead .metrics  { gap: 20px; }
.home .ccard-small .metrics { gap: 12px; }
.home .metric { display: inline-flex; align-items: center; gap: 6px; }
.home .ccard-lead .metric .ph { font-size: 18px; }

.home .avatar {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: linear-gradient(150deg, var(--a1, #4B2E7A), var(--a2, #24173F));
}
.home .ccard-lead .avatar { width: 32px; height: 32px; }

/* -------------------------------------------------------------
   Open questions
   ------------------------------------------------------------- */

.home .qgrid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px)  { .home .qgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .home .qgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.home .qcard {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--l-edge);
  border-radius: 12px;
  background: var(--l-card);
  transition: border-color .18s var(--l-ease);
}
.home .qcard:hover { border-color: var(--l-edge-hi); }

.home .qblob {
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  filter: blur(48px);
  background: color-mix(in srgb, var(--tone) 5%, transparent);
  transition: background .18s var(--l-ease);
}
.home .qcard:hover .qblob { background: color-mix(in srgb, var(--tone) 10%, transparent); }

.home .qtop {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.home .qglyph {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: var(--l-muted);
  font-size: 18px;
  transition: color .18s var(--l-ease), background .18s var(--l-ease), border-color .18s var(--l-ease);
}
.home .qcard:hover .qglyph {
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 10%, transparent);
  border-color: color-mix(in srgb, var(--tone) 30%, transparent);
}
.home .qsave {
  padding: 0;
  border: 0;
  background: none;
  color: var(--l-muted);
  font-size: 18px;
  cursor: pointer;
  transition: color .18s var(--l-ease);
}
.home .qsave:hover { color: #FFFFFF; }
.home .qsave[aria-pressed="true"] { color: var(--tone); }

.home .qtext {
  min-height: 48px;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.375;
  color: #FFFFFF;
}
.home .qtext a::after { content: ""; position: absolute; inset: 0; }
.home .qmeta { position: relative; margin-bottom: 16px; font-size: 14px; color: var(--l-muted); }

.home .stack { position: relative; display: flex; }
.home .stack .avatar,
.home .stack-more {
  width: 32px; height: 32px;
  margin-left: -8px;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--l-bg);
}
.home .stack > :first-child { margin-left: 0; }
.home .stack-more {
  display: grid;
  place-items: center;
  background: #374151;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
}

/* -------------------------------------------------------------
   Contribution banner
   ------------------------------------------------------------- */

.home .cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  padding: 32px;
  border: 1px solid rgba(37, 99, 235, .3);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(30,58,138,.2), rgba(88,28,135,.1) 50%, rgba(8,10,15,0));
}
@media (min-width: 768px)  { .home .cta { flex-direction: row; } }
@media (min-width: 1024px) { .home .cta { padding: 48px; } }

.home .cta-wash {
  position: absolute;
  inset: 0;
  opacity: .12;
  mix-blend-mode: screen;
  pointer-events: none;
  background: url("/media/concepts/c5.jpg?v=8") no-repeat 50% 50% / cover;
}
.home .cta-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
@media (min-width: 768px) {
  .home .cta-copy { flex-direction: row; align-items: flex-start; text-align: left; }
}
.home .cta-art {
  flex: 0 0 auto;
  width: 80px; height: 80px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
  background: url("/media/concepts/c4.jpg?v=8") no-repeat 50% 45% / cover;
}
.home .cta-title { margin-bottom: 8px; font-size: 24px; color: #FFFFFF; }
.home .cta-desc { max-width: 576px; font-size: 16px; color: var(--l-muted); }
.home .cta .hbtn { position: relative; flex: 0 0 auto; white-space: nowrap; }

/* -------------------------------------------------------------
   Footer, carried into this screen's palette
   ------------------------------------------------------------- */

:is(.landing, .detail, .compose) .foot { padding-left: var(--l-gutter); padding-right: var(--l-gutter); border-top-color: var(--l-edge); }
:is(.landing, .detail, .compose) .foot p,
:is(.landing, .detail, .compose) .disclaimer { color: var(--l-muted); }
:is(.landing, .detail, .compose) .foot nav a {
  font-family: inherit;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--l-muted);
}
:is(.landing, .detail, .compose) .foot nav a:hover { color: var(--l-blue-hi); }
:is(.landing, .detail, .compose) .eyebrow { font-family: inherit; color: var(--l-muted); }
:is(.landing, .detail, .compose) .mark { background: var(--l-blue); box-shadow: 0 0 8px 1px rgba(37,99,235,.5); }

/* -------------------------------------------------------------
   Responsive
   ------------------------------------------------------------- */

@media (max-width: 1180px) { :is(.landing, .detail, .compose) .gsearch { width: 200px; } }
@media (max-width: 1023px) { :is(.landing, .detail, .compose) .gnav { display: none; } }
@media (max-width: 767px) {
  .home .hhero-inner { padding: 28px 24px; }
  .home .hhero-desc { padding-right: 0; font-size: 16px; }
  .home .hhero-actions .hbtn { flex: 1 1 100%; justify-content: center; }
  .home .hhero-stats { flex-wrap: wrap; gap: 20px 28px; }
  .home .cta { padding: 24px; }
  .home .cta .hbtn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  :is(.landing, .detail, .compose) .rise { opacity: 1; transform: none; }
  .home .hhero-art,
  .home .ccard-img,
  .home .bookmark { transition: none; }
  .home .hhero:hover .hhero-art,
  .home .ccard:hover .ccard-img,
  .home .ccard-lead .bookmark:hover { transform: none; }
}

/* =============================================================
   Concept detail
   The same dark board, read at one concept's depth: a header of
   claims, the media, then the argument beside its evidence.
   ============================================================= */

.detail {
  --l-bg:       #090A0F;
  --l-panel:    #11131A;
  --l-panel-hi: #1A1D27;
  --l-edge:     rgba(255, 255, 255, .10);
  --l-edge-hi:  rgba(255, 255, 255, .20);
  --l-blue:     #1D4ED8;
  --l-blue-hi:  #2563EB;
  --l-blue-ink: #60A5FA;
  --l-ink:      #F8FAFC;
}

.cd {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px var(--l-gutter) 72px;
}

.cd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--l-muted);
  transition: color .18s var(--l-ease);
}
.cd-back:hover { color: #FFFFFF; }

/* -------------------------------------------------------------
   Header
   ------------------------------------------------------------- */

/* The claim on the left, the evidence on the right. They stack under
   1024px, where a half-width video stops being worth reading. */
.cd-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
}
@media (min-width: 1024px) { .cd-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; } }

.cd-head { display: flex; flex-direction: column; gap: 16px; }
.cd-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.chip-cat,
.chip-tag {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
}
.chip-cat {
  border: 1px solid color-mix(in srgb, var(--l-blue) 40%, transparent);
  background: color-mix(in srgb, var(--l-blue) 20%, transparent);
  color: var(--l-blue-ink);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.chip-tag {
  border: 1px solid var(--l-edge);
  background: var(--l-panel);
  color: var(--l-muted);
}

.cd-title {
  margin: 0;
  font-size: clamp(30px, 2.9vw, 44px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--l-ink);
}
.cd-summary { max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--l-muted); }

.cd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }

.follow {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--l-edge);
  border-radius: 6px;
  background: var(--l-panel);
}
.follow-b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 0;
  background: var(--l-blue);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s var(--l-ease);
}
.follow-b:hover { background: var(--l-blue-hi); }
.follow-b[aria-pressed="true"] { background: var(--l-panel-hi); color: var(--l-blue-ink); }
.follow-count {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-left: 1px solid var(--l-edge);
  font-size: 14px;
  font-weight: 500;
}

.sq {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--l-edge);
  border-radius: 6px;
  background: var(--l-panel);
  color: var(--l-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s var(--l-ease), color .18s var(--l-ease);
}
.sq:hover { background: var(--l-panel-hi); }
.sq[aria-pressed="true"] { color: var(--l-blue-ink); }
.sq-icon { width: 40px; justify-content: center; padding: 8px 0; font-size: 18px; }

/* -------------------------------------------------------------
   Player
   ------------------------------------------------------------- */

.vp {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--l-edge);
  border-radius: 12px;
  background: #000000;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5);
}
.vp img,
.vp video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .8;
  transition: opacity .7s var(--l-ease);
}
.vp:hover img,
.vp:hover video { opacity: 1; }

.vp-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 80px; height: 80px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 30px;
  cursor: pointer;
  transition: background .3s var(--l-ease), transform .3s var(--l-ease), opacity .3s var(--l-ease);
}
.vp-play .ph { margin-left: 4px; }
.vp-play:hover { background: color-mix(in srgb, var(--l-blue) 80%, transparent); transform: scale(1.05); }
.vp.is-playing .vp-play { opacity: 0; pointer-events: none; }

.vp-bar {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,0));
}
.vp-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  cursor: pointer;
}
.vp-buffer,
.vp-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  border-radius: 999px;
}
.vp-buffer { background: rgba(255,255,255,.15); }
.vp-fill { background: var(--l-blue-hi); }
.vp-knob {
  position: absolute;
  top: 50%; left: 0;
  width: 12px; height: 12px;
  margin-left: -6px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}

.vp-row { display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.8); }
.vp-left, .vp-right { display: flex; align-items: center; gap: 16px; }
.vp-b {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  transition: color .18s var(--l-ease);
}
.vp-b:hover { color: #FFFFFF; }
.vp-time { font-size: 12px; font-weight: 500; letter-spacing: .05em; }

/* -------------------------------------------------------------
   Tabs
   ------------------------------------------------------------- */

.cd-tabs {
  position: sticky;
  top: var(--l-header);
  z-index: 30;
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  padding-top: 8px;
  border-bottom: 1px solid var(--l-edge);
  background: color-mix(in srgb, var(--l-bg) 95%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-x: auto;
  scrollbar-width: none;
}
.cd-tabs::-webkit-scrollbar { display: none; }

.cd-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--l-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s var(--l-ease);
}
.cd-tab:hover { color: #FFFFFF; }
.cd-tab[aria-selected="true"] { color: #FFFFFF; border-bottom-color: var(--l-blue-hi); }
.cd .cnt {
  padding: 1px 6px;
  border: 1px solid var(--l-edge);
  border-radius: 3px;
  background: var(--l-panel);
  font-size: 10px;
  font-weight: 500;
  color: var(--l-muted);
}

/* -------------------------------------------------------------
   Two columns
   ------------------------------------------------------------- */

.cd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
@media (min-width: 1280px) { .cd-grid { grid-template-columns: minmax(0, 1fr) 320px; } }

.cd-main { min-width: 0; }
.cd-side { display: flex; flex-direction: column; gap: 24px; }

.ov { display: flex; flex-direction: column; gap: 48px; }

.ov-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) { .ov-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); } }
.ov-col { min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.ov-h { margin-bottom: 16px; font-size: 20px; font-weight: 600; color: var(--l-ink); }
.ov-body p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: var(--l-muted); }
.ov-body p:last-child { margin-bottom: 0; }

.ov-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ov-bullets li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--l-muted); }
.ov-bullets li .ph { margin-top: 3px; font-size: 16px; }

.answering {
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--l-muted);
}
.answering a { color: var(--l-blue-ink); }

.pull {
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid color-mix(in srgb, var(--l-blue) 70%, transparent);
  font-size: 16px;
  line-height: 1.6;
  color: var(--l-ink);
}

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.timeline li { position: relative; padding-left: 20px; font-size: 14px; color: var(--l-muted); }
.timeline li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--l-blue-hi);
}

.ov-empty p { font-size: 14px; color: var(--l-muted); }

/* --- the flow ------------------------------------------------- */

.pflow {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
/* One rule behind the marks, tucked inside the outer two so it never
   runs past the first and last step. */
.pflow::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 12%; right: 12%;
  height: 1px;
  background: var(--l-edge);
}
.pflow li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pf-mark {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 12px;
  border: 1px solid var(--l-edge);
  border-radius: 50%;
  background: var(--l-panel);
  color: var(--l-muted);
  font-size: 20px;
}
.pf-end .pf-mark {
  border-color: rgba(255,255,255,.3);
  color: #FFFFFF;
  box-shadow: 0 0 18px -3px rgba(255,255,255,.35);
}
.pf-name { margin-bottom: 4px; font-size: 14px; font-weight: 500; color: var(--l-ink); }
.pf-detail { font-size: 12px; line-height: 1.5; color: var(--l-muted); }

@media (max-width: 640px) {
  .pflow { flex-wrap: wrap; gap: 24px 8px; }
  .pflow::before { display: none; }
  .pflow li { flex: 1 1 40%; }
}

/* --- key takeaways -------------------------------------------- */

.kt-card {
  max-width: 384px;
  padding: 20px;
  border: 1px solid var(--l-edge);
  border-radius: 12px;
  background: var(--l-panel);
}
.kt-h { margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--l-ink); }
.kt { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.kt li { display: flex; align-items: flex-start; gap: 12px; font-size: 12px; line-height: 1.5; color: var(--l-muted); }
.kt li .ph { margin-top: 1px; font-size: 16px; }

/* -------------------------------------------------------------
   Explorations
   ------------------------------------------------------------- */

.ov-xs { padding-top: 24px; border-top: 1px solid var(--l-edge); }
.ov-xs-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ov-xs-head .ov-h { margin-bottom: 0; }
.ov-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--l-blue-hi);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color .18s var(--l-ease);
}
.ov-more:hover { color: var(--l-blue-ink); }

.xgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 768px)  { .xgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .xgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.xc {
  overflow: hidden;
  border: 1px solid var(--l-edge);
  border-radius: 12px;
  background: var(--l-panel);
  transition: border-color .18s var(--l-ease);
}
.xc:hover { border-color: var(--l-edge-hi); }
.xc-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--l-panel-hi);
  cursor: pointer;
}
.xc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--l-ease); }
.xc:hover .xc-media img { transform: scale(1.05); }
.xc-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, color-mix(in srgb, var(--l-bg) 90%, transparent), color-mix(in srgb, var(--l-bg) 20%, transparent) 50%, transparent);
}
.xc-tag {
  position: absolute;
  top: 8px; left: 8px;
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 10px;
  font-weight: 500;
  color: #FFFFFF;
}
.xc-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  font-size: 28px;
  opacity: 0;
  transition: opacity .18s var(--l-ease);
}
.xc:hover .xc-hover { opacity: 1; }

.xc-text { padding: 12px; }
.xc-title {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--l-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--l-muted); }
.xc-by {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xc-by .avatar { width: 18px; height: 18px; }
.xc-stats { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.xc-stats span { display: inline-flex; align-items: center; gap: 4px; }

/* -------------------------------------------------------------
   References and citations
   ------------------------------------------------------------- */

.cd-related {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--l-edge);
}
@media (min-width: 1024px) { .cd-related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.rel-h { font-size: 18px; font-weight: 600; color: var(--l-ink); }
.rel-count { font-size: 12px; color: var(--l-muted); }

.rel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -8px;
  padding: 8px;
  border-radius: 8px;
  color: inherit;
  transition: background .18s var(--l-ease);
}
.rel-row:hover { background: var(--l-panel); color: inherit; }
.rel-thumb {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  overflow: hidden;
  border: 1px solid var(--l-edge);
  border-radius: 6px;
  background: var(--l-panel);
  color: var(--l-muted);
}
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rel-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--l-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rel-by { font-size: 12px; color: var(--l-muted); }
.rel-note {
  flex: 0 1 auto;
  max-width: 45%;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--l-blue) 30%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--l-blue) 12%, transparent);
  color: var(--l-blue-ink);
  font-size: 10px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rel-go { flex: 0 0 auto; color: var(--l-muted); opacity: 0; transition: opacity .18s var(--l-ease); }
.rel-row:hover .rel-go { opacity: 1; }
.rel-stats { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; font-size: 12px; color: var(--l-muted); }
.rel-stats span { display: inline-flex; align-items: center; gap: 4px; }

/* -------------------------------------------------------------
   Sidebar
   ------------------------------------------------------------- */

.sb {
  padding: 20px;
  border: 1px solid var(--l-edge);
  border-radius: 12px;
  background: var(--l-panel);
}
.sb-h { margin-bottom: 16px; font-size: 16px; font-weight: 600; color: var(--l-ink); }

.pill {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--l-blue) 25%, transparent);
  color: var(--l-blue-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sb-rows { margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.sb-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sb-rows dt { color: var(--l-muted); }
.sb-rows dd { margin: 0; color: var(--l-ink); }

.mat { margin-top: 20px; }
.mat-head { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12px; color: var(--l-muted); }
.mat-track { height: 4px; overflow: hidden; border-radius: 999px; background: var(--l-bg); }
.mat-track span { display: block; height: 100%; border-radius: 999px; background: var(--l-blue-hi); }

.cr { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.cd .avatar {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border: 1px solid var(--l-edge);
  border-radius: 50%;
  background: linear-gradient(150deg, var(--a1, #4B2E7A), var(--a2, #24173F));
}
.cr-name { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 16px; font-weight: 500; color: var(--l-ink); }
.cr-name .ph { color: var(--l-blue-hi); font-size: 14px; }
.cr-handle { margin: 0; font-size: 14px; color: var(--l-muted); }
.cr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cr-stats span { display: block; margin-bottom: 4px; font-size: 12px; color: var(--l-muted); }
.cr-stats b { font-size: 14px; font-weight: 500; color: var(--l-ink); }

.act { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.act::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 11px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--l-edge), transparent);
}
.act li { position: relative; display: flex; align-items: center; gap: 12px; }
.act-mark {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border: 1px solid var(--l-edge);
  border-radius: 50%;
  background: var(--l-bg);
  color: var(--l-muted);
  font-size: 12px;
}
.act-line { flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--l-muted); }
.act-line b { font-weight: 500; color: var(--l-ink); }
.act-time { flex: 0 0 auto; font-size: 12px; color: var(--l-muted); }

/* -------------------------------------------------------------
   Selected moments — explorations tab only
   ------------------------------------------------------------- */

.cd .section { margin-top: 40px; }
.cd .section-head { margin-bottom: 16px; }
.cd .section-title {
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--l-ink);
}
.cd .mark { background: var(--l-blue-hi); box-shadow: none; }
.cd .section-note { font-size: 14px; color: var(--l-muted); }
.cd .moments { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cd .moment {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--l-edge);
  border-radius: 12px;
  background: var(--l-panel);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.cd .moment:hover { border-color: var(--l-edge-hi); }
.cd .moment-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.cd .moment-media img { width: 100%; height: 100%; object-fit: cover; }
.cd .moment-time {
  position: absolute;
  right: 8px; bottom: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,.6);
  font-size: 10px;
  color: #FFFFFF;
}
.cd .moment-text { display: block; padding: 12px; }
.cd .moment-label { display: block; font-size: 14px; font-weight: 500; color: var(--l-ink); }
.cd .moment-from { display: block; margin-top: 4px; font-size: 12px; color: var(--l-muted); }

/* -------------------------------------------------------------
   Responsive
   ------------------------------------------------------------- */

@media (max-width: 640px) {
  .cd-actions { width: 100%; }
  .follow { flex: 1 1 100%; }
  .follow-b { flex: 1 1 auto; justify-content: center; }
  .kt-card { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vp-play, .xc-media img { transition: none; }
  .vp-play:hover, .xc:hover .xc-media img { transform: none; }
}


/* =============================================================
   Browse — every concept, with the controls to narrow it
   ============================================================= */

.browse-head { margin-bottom: 8px; }
.browse-title {
  margin-bottom: 8px;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #FFFFFF;
}
.browse-sub { font-size: 16px; color: var(--l-muted); }

.browse-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.browse-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px;
  min-width: 0;
  padding: 0 16px;
  height: 44px;
  border: 1px solid var(--l-edge);
  border-radius: 999px;
  background: var(--l-panel);
  color: var(--l-muted);
}
.browse-search:focus-within { border-color: color-mix(in srgb, var(--l-blue) 50%, transparent); }
.browse-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  color: #FFFFFF;
  font: inherit;
  font-size: 15px;
}
.browse-search input::placeholder { color: var(--l-muted); }
.browse-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }

.browse-sort select {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--l-edge);
  border-radius: 8px;
  background: var(--l-card);
  color: #FFFFFF;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.browse-facets { display: flex; flex-direction: column; gap: 10px; }
.facet-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.facet-row-type { padding-top: 2px; }
.facet-row-type .fbtn { font-size: 13px; padding: 6px 14px; }
.fbtn-n { opacity: .55; font-variant-numeric: tabular-nums; }

.browse-count {
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--l-muted);
}

/* Every card is the same size here — the lead card is a landing-page idea. */
.cards-flat { grid-auto-rows: 280px; }

.browse-empty { font-size: 15px; color: var(--l-muted); }
.linkish {
  padding: 0;
  border: 0;
  background: none;
  color: var(--l-blue-hi);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

/* Images sitting inside the writing on a concept page. */
.ov-fig { margin: 0; }
.ov-fig img {
  width: 100%;
  height: auto;
  border: 1px solid var(--l-edge);
  border-radius: 12px;
}
.ov-fig figcaption { margin-top: 8px; font-size: 13px; color: var(--l-muted); }

/* =============================================================
   Footer — running costs
   ============================================================= */

.foot-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 12px;
}
.donate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid color-mix(in srgb, var(--l-blue, #2563EB) 40%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--l-blue, #2563EB) 14%, transparent);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.donate:hover { background: color-mix(in srgb, var(--l-blue, #2563EB) 24%, transparent); color: #FFFFFF; }


/* An article-shaped concept reads as one column, so the page gives it a
   measure rather than the two-column split the block layout uses. */
.ov-article { max-width: 74ch; }
.ov-article .prose { font-size: 16px; line-height: 1.75; color: var(--l-ink-dim); }
.ov-article .prose h2 { margin: 1.6em 0 .5em; font-size: 24px; font-weight: 700; color: var(--l-ink); }
.ov-article .prose h3 { margin: 1.4em 0 .4em; font-size: 18px; font-weight: 600; color: var(--l-ink); }
.ov-article .prose > :first-child { margin-top: 0; }
.ov-article .prose p { margin: 0 0 1em; }
.ov-article .prose ul, .ov-article .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.ov-article .prose li { margin-bottom: .4em; }
.ov-article .prose blockquote {
  margin: 1.4em 0;
  padding-left: 18px;
  border-left: 2px solid var(--l-blue-hi);
  color: var(--l-ink);
}
.ov-article .prose a { color: var(--l-blue-hi); text-decoration: underline; }
.ov-article .prose figure { margin: 1.6em 0; }
.ov-article .prose img {
  width: 100%;
  height: auto;
  border: 1px solid var(--l-edge);
  border-radius: 12px;
}
.ov-article .prose figcaption { margin-top: 8px; font-size: 13px; color: var(--l-muted); }
.ov-article .prose code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--l-panel);
  font-size: .92em;
}
.ov-article .prose pre {
  padding: 16px;
  overflow-x: auto;
  border: 1px solid var(--l-edge);
  border-radius: 12px;
  background: var(--l-panel);
}

/* =============================================================
   Compose — sharing a concept
   ============================================================= */

.compose {
  --l-bg:       #090B10;
  --l-panel:    #0F131C;
  --l-panel-hi: #151A26;
  --l-input:    #0C0F17;
  --l-edge:     #1E293B;
  --l-edge-hi:  #334155;
  --l-blue:     #2563EB;
  --l-blue-hi:  #1D4ED8;
  --l-blue-ink: #60A5FA;
  --l-ink:      #E2E8F0;
  --l-ink-dim:  #CBD5E1;
  --l-muted:    #94A3B8;
  --l-dark:     #64748B;
}

.cw {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px var(--l-gutter) 72px;
}

.cw-head { margin-bottom: 32px; }
.cw-title {
  margin-bottom: 8px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #FFFFFF;
}
.cw-sub { max-width: 68ch; font-size: 14px; line-height: 1.7; color: var(--l-muted); }

.cw-layout { display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 1100px) { .cw-layout { flex-direction: row; align-items: flex-start; } }
.cw-main { flex: 1 1 auto; min-width: 0; }
.cw-side { width: 100%; flex: 0 0 auto; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1100px) { .cw-side { width: 360px; } }

.cw-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1280px) { .cw-cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.cw-fields { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.cw-cover { min-width: 0; }

/* --- fields ---------------------------------------------------------------- */

.fld { min-width: 0; }
.fld-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 720px) { .fld-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.fld-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--l-ink);
}
.fld-label .must { color: #EF4444; }
.fld-label .opt { font-weight: 400; color: var(--l-dark); }
.fld-hint { margin: -2px 0 8px; font-size: 12px; line-height: 1.6; color: var(--l-muted); }
.fld-count { margin: 6px 0 0; text-align: right; font-size: 12px; color: var(--l-dark); }

.compose input[type="text"],
.compose input:not([type]),
.compose input[type="search"],
.compose textarea,
.compose select {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--l-edge);
  border-radius: 8px;
  background: var(--l-input);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}
.compose textarea { resize: vertical; min-height: 84px; }
.compose input::placeholder, .compose textarea::placeholder { color: var(--l-dark); }
.compose input:focus, .compose textarea:focus, .compose select:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 1px #3B82F6;
}
.compose input[type="file"] {
  padding: 8px;
  font-size: 13px;
  color: var(--l-muted);
}

.sel { position: relative; }
.sel select { appearance: none; cursor: pointer; padding-right: 40px; }
.sel::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 7px; height: 7px;
  margin-top: -5px;
  border-right: 1.5px solid var(--l-dark);
  border-bottom: 1.5px solid var(--l-dark);
  transform: rotate(45deg);
  pointer-events: none;
}
.sel-sm select { padding: 7px 34px 7px 12px; font-size: 13px; }
.sel-sm::after { right: 12px; }

/* --- categories as chips --------------------------------------------------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--l-edge);
  border-radius: 8px;
  background: var(--l-input);
}
.tag {
  padding: 5px 12px;
  border: 1px solid var(--l-edge-hi);
  border-radius: 6px;
  background: var(--l-panel-hi);
  color: var(--l-ink);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s var(--l-ease), border-color .15s var(--l-ease);
}
.tag:hover:not(:disabled) { border-color: var(--l-muted); }
.tag[aria-pressed="true"] {
  border-color: transparent;
  background: var(--l-blue);
  color: #FFFFFF;
  font-weight: 500;
}
.tag:disabled { opacity: .4; cursor: not-allowed; }

/* --- editor ---------------------------------------------------------------- */

.compose .editor {
  border: 1px solid var(--l-edge);
  border-radius: 8px;
  background: var(--l-input);
  overflow: hidden;
}
.compose .ed-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--l-edge);
  background: color-mix(in srgb, var(--l-panel) 60%, transparent);
}
.compose .ed-block {
  width: auto;
  padding: 5px 10px;
  margin-right: 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  font-size: 13px;
  cursor: pointer;
}
.compose .ed-block:hover { background: var(--l-panel-hi); }
.compose .ed-btn {
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--l-ink);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.compose .ed-btn:hover { background: var(--l-panel-hi); }
.compose .ed-surface {
  min-height: 260px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--l-ink);
}
.compose .ed-surface:focus { outline: none; }
.compose .ed-surface > :first-child { margin-top: 0; }
.compose .ed-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 14px;
  border-top: 1px solid var(--l-edge);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--l-dark);
}
.compose .ed-note { text-transform: none; letter-spacing: normal; color: var(--l-muted); }

/* --- cover ----------------------------------------------------------------- */

.panel {
  padding: 20px;
  border: 1px solid var(--l-edge);
  border-radius: 12px;
  background: var(--l-panel);
}
.panel-lit { position: relative; overflow: hidden; isolation: isolate; }
.panel-lit::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, .35), transparent);
}
.panel-title { margin-bottom: 14px; font-size: 14px; font-weight: 600; color: #FFFFFF; }
.panel-opt { font-weight: 400; color: var(--l-dark); }
.panel-note { margin: 12px 0 0; font-size: 11px; line-height: 1.6; color: var(--l-dark); }

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 18px;
  border: 1px dashed var(--l-edge-hi);
  border-radius: 8px;
  background: var(--l-input);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s var(--l-ease), background .15s var(--l-ease);
}
.drop:hover, .drop.is-over, .drop:focus-visible {
  border-color: color-mix(in srgb, var(--l-blue) 60%, transparent);
  background: color-mix(in srgb, var(--l-blue) 6%, var(--l-input));
}
.drop-mark {
  width: 40px; height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--l-panel-hi);
  position: relative;
}
.drop-mark::before, .drop-mark::after {
  content: "";
  position: absolute;
  background: var(--l-muted);
}
.drop-mark::before { left: 19px; top: 12px; width: 2px; height: 16px; }
.drop-mark::after {
  left: 14px; top: 13px;
  width: 12px; height: 2px;
  transform: rotate(-45deg);
  transform-origin: 0 50%;
  box-shadow: 12px 0 0 var(--l-muted);
}
.drop-lead { font-size: 14px; line-height: 1.6; color: var(--l-ink); }
.drop-link { color: var(--l-blue-ink); font-weight: 500; }
.drop-note { margin-top: 8px; font-size: 12px; color: var(--l-dark); }

.cover-set { display: flex; flex-direction: column; gap: 10px; }
.cover-shot {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--l-edge);
  border-radius: 8px;
  background: var(--l-input) no-repeat center / cover;
}
.cover-shot.is-video { display: grid; place-items: center; }
.cover-shot.is-video::after { content: "Video"; font-size: 12px; color: var(--l-muted); }
.cover-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cover-name {
  font-size: 12px;
  color: var(--l-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- checklist ------------------------------------------------------------- */

.gate { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.gate li { display: flex; gap: 12px; align-items: flex-start; opacity: .65; }
.gate li.is-done { opacity: 1; }
.gate-mark {
  position: relative;
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 2px;
  border: 2px solid var(--l-dark);
  border-radius: 50%;
  transition: background .18s var(--l-ease), border-color .18s var(--l-ease);
}
.gate li.is-done .gate-mark { border-color: var(--l-blue); background: var(--l-blue); }
.gate li.is-done .gate-mark::after {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 4px; height: 8px;
  border-right: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: rotate(45deg);
}
.gate h3 { margin-bottom: 3px; font-size: 14px; font-weight: 500; color: #FFFFFF; }
.gate p { font-size: 12px; line-height: 1.6; color: var(--l-muted); }

.side-rule { height: 1px; margin: 20px 0; background: var(--l-edge); }
.cw-side .panel > .fld + .fld { margin-top: 0; }

/* --- references ------------------------------------------------------------ */

.refs { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ref {
  padding: 10px;
  border: 1px solid var(--l-edge);
  border-radius: 8px;
  background: var(--l-panel-hi);
}
.ref-top { display: flex; align-items: center; gap: 10px; }
.ref-face {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 6px;
  background: linear-gradient(150deg, #334155, #0F172A);
}
.ref-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ref-title {
  font-size: 13px;
  font-weight: 500;
  color: #FFFFFF;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ref-by { font-size: 11px; color: var(--l-muted); }
.ref-drop {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--l-dark);
  cursor: pointer;
}
.ref-drop:hover { background: var(--l-edge); color: #FFFFFF; }
.ref-more { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ref-more input { padding: 7px 12px; font-size: 13px; }

.info {
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--l-edge-hi) 60%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--l-panel-hi) 60%, transparent);
  font-size: 12px;
  line-height: 1.7;
  color: var(--l-muted);
}

/* --- more detail, actions, results ----------------------------------------- */

.more { border-top: 1px solid var(--l-edge); border-bottom: 1px solid var(--l-edge); }
.more-head {
  padding: 14px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--l-ink);
  cursor: pointer;
}
.more-hint { margin-left: 8px; font-weight: 400; font-size: 12px; color: var(--l-dark); }
.more-body { display: flex; flex-direction: column; gap: 24px; padding-bottom: 22px; }

.repeat { display: flex; flex-direction: column; gap: 14px; margin-bottom: 12px; }
.row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--l-edge);
  border-radius: 10px;
  background: var(--l-panel);
}
.row-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--l-dark);
}
.row-remove {
  position: absolute;
  top: 10px; right: 10px;
  width: 26px; height: 26px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--l-dark);
  cursor: pointer;
}
.row-remove:hover { background: var(--l-edge); color: #FFFFFF; }

.rights { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--l-muted); }
.rights input { width: auto; margin-top: 2px; }

.cw-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--l-edge);
}
.cw-actions-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.draft-state { font-size: 12px; color: var(--l-muted); }
.cw-note { font-size: 12px; line-height: 1.6; color: var(--l-muted); text-align: center; }

.problems {
  padding: 14px 16px;
  border: 1px solid rgba(239, 68, 68, .4);
  border-radius: 10px;
  background: rgba(239, 68, 68, .08);
}
.problems-title { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #FCA5A5; }
.problems ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.7; color: var(--l-ink-dim); }

.result { padding: 24px; border: 1px solid var(--l-edge); border-radius: 12px; background: var(--l-panel); }
.result h2 { margin-bottom: 10px; font-size: 20px; font-weight: 600; color: #FFFFFF; }
.result p { margin-bottom: 18px; font-size: 14px; line-height: 1.7; color: var(--l-muted); }

.compose .preview-stage { padding: 20px; border: 1px solid var(--l-edge); border-radius: 12px; background: #090A0F; }
.compose .preview-label {
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--l-dark);
}
