/* The Linux Cast forge — signed-out homepage ("On Air").
   Tokens follow tlc-motion brand.md; the sunburst world is confined to the hero. */
@font-face { font-family: "Russo One"; src: url("fonts/russo-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

.tlc-home {
  --ground: #2a2a2a;
  --pane: #1e1e1e;
  --raised: #262626;
  --cell-off: #353535;
  --rule: #3a3a3a;
  --navy: #01243a;
  --blue: #25a7ea;
  --blue-lt: #4fb5ec;
  --prompt: #2fa6e6;
  --orange: #f7ab28;
  --fg: #ececec;
  --fg-dim: #b3b3b3;
  --ink: #04060a;
  --display: "Russo One", "Chakra Petch", sans-serif;
  --ui: "Chakra Petch", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --edge: clamp(20px, 4.5vw, 64px);
  --measure: 1360px;
  --inset: max(var(--edge), calc((100% - var(--measure)) / 2));
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  margin: 0 !important;
  padding: 0 0 clamp(36px, 5vh, 56px) !important;
  background: var(--ground);
  color: var(--fg);
  font-family: var(--ui);
  font-weight: 500;
  overflow-x: clip;
}
.tlc-home ::selection { background: var(--orange); color: var(--ink); }
.tlc-home :focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.tlc-home a { color: inherit; text-decoration: none; }
.tlc-home svg { width: 1em; height: 1em; flex: none; }
.tlc-sr, .tlc-find__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── the distro field: brand ground, marks bleed off the edges, never under text ── */
.tlc-home { position: relative; }
.tlc-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.tlc-field i {
  position: absolute;
  top: var(--y);
  left: calc(var(--x) + var(--inset) - 64px);
  width: var(--s);
  aspect-ratio: 1;
  background: var(--c);
  opacity: .22;
  -webkit-mask: var(--d) center / contain no-repeat;
  mask: var(--d) center / contain no-repeat;
}
.tlc-field i.r { left: auto; right: calc(var(--x) + var(--inset) - 64px); }
.tlc-hero, .tlc-board, .tlc-elsewhere { position: relative; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.tlc-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  min-height: min(780px, calc(100svh - 150px));
  padding: clamp(36px, 6vh, 80px) var(--inset) clamp(48px, 7vh, 88px);
}
.tlc-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.45rem, 4.4vw + .55rem, 5.4rem);
  line-height: .98;
  letter-spacing: -.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.tlc-title__line { display: block; }
.tlc-title__line--mark {
  margin-top: .08em;
  color: var(--blue);
  -webkit-text-stroke: .1em var(--navy);
  paint-order: stroke fill;
}
.tlc-lede {
  max-width: 50ch;
  margin: 1.4rem 0 2.2rem;
  color: var(--fg-dim);
  font-size: clamp(1.06rem, .45vw + .95rem, 1.32rem);
  line-height: 1.5;
}

/* search: a prompt you type into */
.tlc-find { max-width: 700px; }
.tlc-find__field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 70px;
  padding: 0 10px 0 22px;
  background: var(--pane);
  border: 2px solid var(--blue);
  border-radius: 14px;
  transition: border-color .2s;
}
.tlc-find__field:focus-within { border-color: var(--orange); }
.tlc-find__prompt { font: 700 1.05rem/1 var(--mono); color: var(--prompt); white-space: nowrap; }
.tlc-find__input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  color: var(--fg) !important;
  font: 400 1.18rem/1 var(--mono) !important;
  caret-color: var(--orange);
  caret-shape: block;
}
.tlc-find__wrap { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; }
.tlc-find__input { padding-left: .85em !important; }
.tlc-find__input::placeholder { color: #8c8c8c; opacity: 1; }
/* the brand's orange block cursor, painted while the prompt waits; the native caret takes over on focus */
.tlc-find__cursor {
  position: absolute;
  left: 0;
  top: 50%;
  width: .58em;
  height: 1.25em;
  background: var(--orange);
  font-size: 1.18rem;
  transform: translateY(-50%);
  animation: tlc-blink 1.06s steps(1) 1.15s infinite both;
  pointer-events: none;
}
.tlc-find__field:focus-within .tlc-find__cursor,
.tlc-find__input:not(:placeholder-shown) + .tlc-find__cursor { display: none; }
@keyframes tlc-blink { 0% { opacity: 0; } 50% { opacity: 1; } }
.tlc-find__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.tlc-find__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: var(--ink);
  font: 700 1rem/1 var(--ui);
  cursor: pointer;
  transition: background .15s;
}
.tlc-find__go:hover { background: var(--blue-lt); }
.tlc-find__go svg { width: 18px; height: 18px; }
.tlc-match {
  min-height: 1.7em;
  margin: .9rem 0 .6rem;
  color: var(--fg-dim);
  font: 400 .95rem/1.7 var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tlc-match b { color: var(--fg); font-weight: 700; }
.tlc-match kbd { margin-right: .5ch; padding: 1px 6px; border: 1px solid var(--rule); border-radius: 5px; background: var(--raised); color: var(--fg); font: inherit; }
.tlc-echo span {
  color: var(--blue-lt);
  animation: tlc-type .01s steps(1) both, tlc-echo .9s var(--ease-out) both;
  animation-delay: calc(var(--i) * 24ms), calc(var(--i) * 24ms + .2s);
}
@keyframes tlc-type { from { opacity: 0; } to { opacity: 1; } }
@keyframes tlc-echo { from { color: var(--orange); } to { color: var(--blue-lt); } }

.tlc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tlc-chips button {
  padding: 7px 13px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--raised);
  color: var(--fg-dim);
  font: 400 .88rem/1 var(--mono);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.tlc-chips button:hover { color: var(--fg); border-color: var(--blue); }
.tlc-chips button[aria-pressed="true"] { color: var(--fg); border-color: var(--orange); }

/* the set: stripes that run off the edge, the badge on its sun disc */
.tlc-stage {
  position: relative;
  justify-self: center;
  width: min(100%, 540px);
  aspect-ratio: 1;
}
.tlc-stage__stripes {
  position: absolute;
  top: 31%;
  left: 4%;
  right: calc(-1 * var(--inset) - 2px);
  height: 34%;
  background: repeating-linear-gradient(118deg,
    var(--navy) 0 30px, var(--blue) 30px 58px, #ececec 58px 66px, var(--blue) 66px 94px);
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
  animation: tlc-sweep .8s var(--ease-out) .05s both;
}
.tlc-stage__badge {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .5));
  animation: tlc-rise 1s var(--ease-out) .2s both;
}
@keyframes tlc-sweep {
  from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
  to { clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); }
}
@keyframes tlc-rise {
  0% { transform: translateY(40px) scale(.94); opacity: 0; }
  55% { transform: translateY(-8px) scale(1.012); opacity: 1; }
  100% { transform: none; opacity: 1; }
}

/* ── board: btop panes ────────────────────────────────────────────────── */
.tlc-board, .tlc-elsewhere {
  width: min(var(--measure), 100% - 2 * var(--edge));
  margin-inline: auto;
}
.tlc-board {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr);
  gap: 34px 28px;
  align-items: start;
}
.tlc-pane, .tlc-elsewhere {
  position: relative;
  padding: 30px 22px 22px;
  background: var(--pane);
  border: 2px solid var(--blue);
  border-radius: 14px;
}
.tlc-pane__title {
  position: absolute;
  top: 0;
  left: 18px;
  margin: 0;
  padding: 0 10px;
  transform: translateY(-50%);
  background: linear-gradient(var(--ground) 50%, var(--pane) 50%);
  color: var(--fg);
  font: 600 1.02rem/1.5 var(--ui);
  letter-spacing: .01em;
}
.tlc-idx { margin-right: .45ch; color: var(--orange); font: 700 .78em/1 var(--mono); vertical-align: .32em; }
.tlc-pane__meta {
  position: absolute;
  top: 0;
  right: 18px;
  margin: 0;
  padding: 0 10px;
  transform: translateY(-50%);
  background: linear-gradient(var(--ground) 50%, var(--pane) 50%);
  color: var(--fg-dim);
  font: 400 .85rem/1.6 var(--mono);
  font-variant-numeric: tabular-nums;
}

.tlc-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(8.5rem, 1.15fr) minmax(0, 3fr) 6.5rem 7.2rem 1.5rem;
  gap: 18px;
  align-items: center;
  min-height: 46px;
  padding: 8px 12px 8px 22px;
  border-bottom: 1px solid var(--cell-off);
}
.tlc-row--head {
  min-height: 0;
  padding-block: 0 10px;
  color: var(--fg-dim);
  font: 400 .74rem/1 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.tlc-row--note { display: block; color: var(--fg-dim); font: 400 .95rem/1.6 var(--mono); border-bottom: 0; }
#tlc-rows .tlc-row:last-child { border-bottom: 0; }
.tlc-row__name {
  overflow: hidden;
  color: var(--blue-lt);
  font: 700 .98rem/1.3 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tlc-row__name::after { content: ""; position: absolute; inset: 0; }
.tlc-row__desc { overflow: hidden; color: var(--fg-dim); font-size: .98rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.tlc-row__desc:empty::before { content: "No description yet"; color: #8c8c8c; }
.tlc-row__lang, .tlc-row__when { color: var(--fg-dim); font: 400 .86rem/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tlc-row__when { color: var(--fg); }
.tlc-row__mirror { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--fg-dim); }
.tlc-row__mirror:hover { color: var(--fg); background: var(--rule); }
.tlc-row__mirror svg { width: 16px; height: 16px; }
.tlc-row:not(.tlc-row--head):not(.tlc-row--note):hover,
.tlc-row:focus-within { background: var(--raised); }
.tlc-row:not(.tlc-row--head):not(.tlc-row--note)::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: .52em;
  height: 1.05em;
  background: var(--orange);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  transition: transform .18s var(--ease-out);
}
.tlc-row:hover::before, .tlc-row:focus-within::before, .tlc-row.is-top::before { transform: translateY(-50%) scaleX(1); }
.tlc-row.is-top .tlc-row__name { color: var(--orange); }
.tlc-row mark { background: none; color: var(--orange); }

.tlc-more {
  display: block;
  margin: 14px 0 0 22px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--blue-lt);
  font: 400 .92rem/1.4 var(--mono);
  cursor: pointer;
}
.tlc-more:hover { color: var(--fg); }
.tlc-noscript a { color: var(--blue-lt); }

.tlc-side { display: grid; gap: 34px; }
.tlc-air { display: grid; gap: 4px; padding-block: 4px 16px; }
.tlc-air + .tlc-air { padding-top: 16px; border-top: 1px solid var(--cell-off); }
.tlc-air__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--raised) center / cover no-repeat;
}
.tlc-air__title { color: var(--fg); font-weight: 600; font-size: 1.08rem; line-height: 1.3; text-wrap: pretty; }
.tlc-air:hover .tlc-air__title { color: var(--blue-lt); }
.tlc-air__when { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-dim); font: 400 .84rem/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.tlc-air__when svg { width: 15px; height: 15px; color: var(--fg); }

.tlc-pane--call p { margin: 0 0 14px; color: #cfcfcf; line-height: 1.5; }
.tlc-providers { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 18px; padding: 0; list-style: none; color: var(--fg-dim); font: 400 .86rem/1 var(--mono); }
.tlc-providers li { display: inline-flex; align-items: center; gap: 8px; }
.tlc-providers svg { width: 17px; height: 17px; color: var(--fg); }
.tlc-btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 9px;
  background: var(--blue);
  color: var(--ink) !important;
  font: 700 1rem/1 var(--ui);
  transition: background .15s;
}
.tlc-btn:hover { background: var(--blue-lt); }

.tlc-elsewhere { margin-top: 34px; }
.tlc-elsewhere ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.tlc-elsewhere a { display: grid; grid-template-columns: 26px 1fr; align-items: center; column-gap: 12px; padding: 10px 10px; border-radius: 8px; }
.tlc-elsewhere a:hover { background: var(--raised); }
.tlc-elsewhere a:hover span { color: var(--blue-lt); }
.tlc-elsewhere svg { grid-row: span 2; width: 22px; height: 22px; color: var(--fg); }
.tlc-elsewhere span { font-weight: 600; font-size: 1.02rem; }
.tlc-elsewhere small { overflow: hidden; color: var(--fg-dim); font: 400 .8rem/1.4 var(--mono); text-overflow: ellipsis; white-space: nowrap; }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .tlc-board { grid-template-columns: minmax(0, 1fr); }
  .tlc-side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
  .tlc-row { grid-template-columns: minmax(8rem, 1fr) minmax(0, 2.4fr) 6rem 6.6rem 1.5rem; }
}
@media (max-width: 820px) {
  .tlc-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 20px; gap: 8px; }
  .tlc-field { display: none; }
  .tlc-stage { order: -1; justify-self: end; width: min(46vw, 230px); margin: 0 -6px -18px 0; }
  .tlc-stage__stripes { left: -40%; right: calc(-1 * var(--edge) - 2px); }
  .tlc-find__field { height: 60px; padding-left: 16px; }
  .tlc-find__prompt { display: none; }
  .tlc-find__input { font-size: 1.04rem !important; }
  .tlc-find__go span { display: none; }
  .tlc-find__go { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .tlc-row--head { display: none; }
  .tlc-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "name when mirror" "desc desc desc";
    gap: 4px 12px;
    padding: 12px 10px 12px 22px;
  }
  .tlc-row__name { grid-area: name; }
  .tlc-row__desc { grid-area: desc; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .tlc-row__lang { display: none; }
  .tlc-row__when { grid-area: when; }
  .tlc-row__mirror { grid-area: mirror; }
  .tlc-pane, .tlc-elsewhere { padding: 28px 14px 16px; }
}
@media (pointer: coarse) {
  .tlc-match .tlc-keys { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tlc-home *, .tlc-home *::before { animation: none !important; transition: none !important; }
}
