/* /tema/<slug>: on top of production app.css (tokens, bar, btn, chips, map cells, footer) */
.tema .crumb { display: flex; gap: 8px; font-size: 14px; color: var(--ink-mute); padding-top: 20px; flex-wrap: wrap; }
.tema .crumb a { color: var(--ink-soft); text-decoration: none; }
.tema .crumb a:hover { color: var(--ink); text-decoration: underline; }
.tema .eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.tema .tick { font: 600 12px var(--mono); letter-spacing: .02em; background: var(--ink); color: var(--yellow); padding: 3px 8px; border-radius: 5px; }
.tema .ic { width: 16px; height: 16px; flex: none; }

.tl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-top: 20px; padding-bottom: 64px; align-items: start; }

/* hero */
.t-hero h1 { font-size: clamp(32px, 4.6vw, 54px); margin: 14px 0 14px; max-width: 18ch; }
.t-hero .lead { font-size: 18px; color: var(--ink-soft); max-width: 62ch; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 14px 16px 14px 0; }
.stats div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.stats dt { font-size: 12px; color: var(--ink-mute); order: 2; }
.stats dd { font-size: 24px; font-weight: 500; margin: 0 0 2px; letter-spacing: -0.02em; }
.stats div { display: flex; flex-direction: column-reverse; }

/* mention map: dark panel like the archive */
.mapcard { margin-top: 48px; background: var(--ink); color: var(--on-ink); border-radius: 14px; padding: 22px 24px 20px; }
.map-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.map-h h2 { font-size: 18px; letter-spacing: -0.01em; }
.map-h a { font-size: 14px; color: var(--yellow); text-decoration: none; }
.map-h a:hover { text-decoration: underline; }
.mapcard .legend { color: var(--on-ink-soft); font-size: 12px; gap: 12px; }
.mapcard .legend .k1 { background: var(--yellow); }
.mapcard .legend .k2 { background: var(--yellow-deep); }
.mapcard .legend .k3 { background: var(--paper); }
.mapcard .years { margin-top: 14px; }
.mapcard .yr > span { color: var(--on-ink-soft); display: grid; line-height: 1.2; }
.mapcard .yr > span small { font-size: 10px; color: color-mix(in oklab, var(--on-ink-soft) 70%, transparent); }
.mapcard .cells i { background: rgba(241, 230, 207, .04); }
.mapcard .cells a { background: rgba(241, 230, 207, .1); }
.mapcard .cells a.l1 { background: var(--yellow); }
.mapcard .cells a.l2 { background: var(--yellow-deep); }
.mapcard .cells a.l3 { background: var(--paper); }
.mapcard .cells a:hover { box-shadow: 0 0 0 2px var(--red); }
.mapcard .more-yrs { color: var(--on-ink-soft); font-size: 13px; }
.mapcard .more-yrs:hover { color: var(--on-ink); }

/* filters */
.filters { position: sticky; top: 64px; z-index: 20; background: color-mix(in oklab, var(--paper) 94%, transparent); backdrop-filter: blur(10px); margin-top: 32px; padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.filters .chip { cursor: pointer; }
.filters .chip.on { background: var(--ink); color: var(--paper); box-shadow: none; }
.filters .chip.on small { color: var(--on-ink-soft); }
.filters .yrs .chip { height: 28px; font-size: 13px; font-family: var(--mono); font-weight: 500; }

/* timeline */
.tl { margin-top: 8px; display: grid; gap: 14px; position: relative; padding-left: 22px; }
.tl::before { content: ''; position: absolute; left: 4px; top: 24px; bottom: 12px; width: 2px; background: var(--line); }
.mh { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 2px -22px; padding-left: 22px; position: relative; }
.mh::before { content: ''; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--ink); }
.mh h2 { font-size: 18px; text-transform: capitalize; letter-spacing: -0.01em; }
.mh span { font: 12px var(--mono); color: var(--ink-mute); }
.mh[hidden], .ev[hidden] { display: none; }
.evc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; background: var(--paper-hi); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); padding: 12px; transition: box-shadow .2s var(--ease); }
.evc:hover { box-shadow: inset 0 0 0 1px var(--line-strong), 0 10px 28px -18px rgba(20, 18, 17, .45); }
.shot { position: relative; display: block; border-radius: 8px; overflow: hidden; background: var(--ink); align-self: start; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .45s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.shot .ts { position: absolute; right: 8px; bottom: 8px; font: 500 12px var(--mono); background: rgba(20, 18, 17, .86); color: var(--yellow); padding: 4px 8px; border-radius: 4px; }
.evb { min-width: 0; padding: 2px 4px 2px 0; }
.evb .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.evb time { font: 12px var(--mono); color: var(--ink-soft); }
.evb .tag { font-size: 12px; padding: 1px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-soft); }
.evb h3 { font-size: 20px; margin: 6px 0 10px; letter-spacing: -0.02em; }
.evb h3 a { text-decoration: none; }
.evb h3 a:hover { text-decoration: underline; }
.snip { font-size: 17px; line-height: 1.6; color: var(--ink); margin-top: 4px; }
.snip .lbl { display: block; width: max-content; margin-bottom: 6px; }
.snip .lbl { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; background: var(--paper-lo); color: var(--ink-mute); padding: 2px 6px; border-radius: 4px; margin-right: 8px; vertical-align: 1px; }
.more-ch { margin-top: 10px; display: grid; gap: 4px; }
.more-ch a { display: flex; gap: 10px; font-size: 14px; text-decoration: none; }
.more-ch a:hover { text-decoration: underline; }
.more-ch .tc { font: 12px var(--mono); background: var(--yellow); padding: 1px 6px; border-radius: 4px; flex: none; }
.from { margin-top: 10px; font-size: 12px; color: var(--ink-mute); }
.from a { color: var(--ink-soft); }
.tl-more { margin: 20px 0 0 22px; }
.tl-more [hidden] { display: none; }
.tl-none { margin: 20px 0 0 22px; color: var(--ink-mute); }

/* FAQ */
.tfaq { margin-top: 56px; }
.tfaq h2 { font-size: 24px; margin-bottom: 8px; }
.tfaq details { border-top: 1px solid var(--line); padding: 14px 0; }
.tfaq summary { font-weight: 600; font-size: 16px; cursor: pointer; }
.tfaq details p { margin-top: 8px; color: var(--ink-soft); max-width: 70ch; }

/* sidebar */
.side-in { position: sticky; top: 88px; display: grid; gap: 14px; }
.sbox { background: var(--paper-hi); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); padding: 16px; display: grid; gap: 10px; }
.sbox .chips { gap: 6px; }
.sbox .chip { height: 30px; font-size: 13px; }
.latest .lt { font-weight: 600; font-size: 15px; line-height: 1.3; }
.acts { background: transparent; box-shadow: none; padding: 0; }
.acts .btn { justify-content: center; width: 100%; }

@media (max-width: 1000px) {
  .tl-layout { grid-template-columns: 1fr; gap: 32px; }
  .side-in { position: static; }
  .tl-side { order: 2; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats dd { font-size: 20px; }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .mapcard { padding: 16px; margin-inline: calc(var(--gut) * -1); border-radius: 0; }
  .evc { grid-template-columns: 1fr; }
  .filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .filters .chip { flex: none; }
  .evb h3 { font-size: 18px; }
  .snip { font-size: 16px; }
}

/* discord thread card */
.dc { grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 4px 12px; text-decoration: none; background: #5865f2; color: #fff; box-shadow: none; transition: background .2s var(--ease); }
.dc:hover { background: #4752c4; }
.dc-ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; grid-row: span 2; }
.dc-ic .ic { width: 22px; height: 22px; }
.dc b { display: block; font-size: 16px; }
.dc small { display: block; font-size: 13px; opacity: .85; line-height: 1.35; margin-top: 2px; }
.dc-go { grid-column: 2; font-size: 13px; font-weight: 600; }

/* /tema index */
.tidx { padding-top: 20px; padding-bottom: 64px; }
.tidx h1 { font-size: clamp(36px, 5vw, 56px); margin: 12px 0; }
.tidx .lead { font-size: 18px; color: var(--ink-soft); max-width: 60ch; }
.tgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 32px; }
.tcard { display: grid; gap: 8px; text-decoration: none; background: var(--paper-hi); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); padding: 20px; height: 100%; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.tcard:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 10px 28px -18px rgba(20, 18, 17, .45); }
.tcard { grid-template-rows: auto auto 1fr auto; }  /* logo, name, sub grows, date pinned to the bottom */
.tcard h2 { font-size: 26px; }
.tcard .sub { font-size: 14px; color: var(--ink-soft); }
.tcard dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.tcard dl div { display: flex; flex-direction: column-reverse; }
.tcard dt { font-size: 12px; color: var(--ink-mute); }
.tcard dd { font-size: 16px; margin: 0; white-space: nowrap; }
.tcard dl { gap: 14px; }

/* Brycht Terminal card (brand: #1a9c49 green on #f0f1f3, from brycht.app/favicon.svg) */
.bt { grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 4px 12px; text-decoration: none; background: #1a9c49; color: #fff; box-shadow: none; transition: background .2s var(--ease); }
.bt:hover { background: #158040; }
.bt-ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; grid-row: span 2; }
.bt-ic .ic { width: 26px; height: 26px; }
.bt b { display: block; font-size: 16px; }
.bt small { display: block; font-size: 13px; opacity: .88; line-height: 1.35; margin-top: 2px; }
.bt-go { grid-column: 2; font-size: 13px; font-weight: 600; }

/* company logo (public/assets/logos/<slug>.svg) */
.t-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-tile { display: inline-flex; align-items: center; justify-content: center; height: 72px; min-width: 72px; padding: 12px; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.logo-tile img { height: 48px; width: auto; max-width: 168px; object-fit: contain; display: block; }
.logo-tile.sm { height: 48px; min-width: 48px; padding: 8px; border-radius: 10px; }
.logo-tile.sm img { height: 32px; max-width: 112px; }
.tcard .tc-top { display: flex; align-items: center; min-height: 48px; justify-content: space-between; gap: 10px; }
