@font-face {
  font-family: "Kp Programmer";
  src: url("../assets/fonts/kp-programmer/KpProgrammerNbp.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.updates-page {
  min-height: 100vh;
}
html[data-theme="dark"] .updates-page {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(80, 43, 253, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 10%, rgba(213, 79, 40, 0.14), transparent 50%),
    #08080c;
}
html[data-theme="light"] .updates-page {
  background: #ededed;
}
.updates-hero {
  min-height: min(52vh, 520px);
  margin-bottom: 0;
}
.updates-hero .hero-inner,
.updates-hero-inner {
  min-height: min(52vh, 520px);
  padding-top: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.updates-hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0.35rem 0 0.75rem;
  letter-spacing: 0.04em;
  color: #f4f4f5;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}
html[data-theme="light"] .updates-hero h1 {
  color: var(--text);
  text-shadow: 0 1px 12px rgba(237, 237, 237, 0.85);
}
.updates-feed {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.25rem clamp(0.85rem, 3vw, 2rem) 3rem;
}
.updates-lead {
  font-family: "Kp Programmer", ui-monospace, monospace, system-ui, sans-serif;
  max-width: 46rem;
  line-height: 1.6;
  color: rgba(235, 235, 240, 0.88);
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}
html[data-theme="light"] .updates-lead {
  color: var(--text-muted);
  text-shadow: 0 1px 10px rgba(237, 237, 237, 0.75);
}
.updates-lead a { color: var(--accent); }
.updates-meta {
  font-family: "Kp Programmer", ui-monospace, monospace, system-ui, sans-serif;
  font-size: 0.88rem;
  color: rgba(235, 235, 240, 0.62);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.42);
  color: rgba(235, 235, 240, 0.82);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
html[data-theme="light"] .filter-chip {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-muted);
  border-color: rgba(0, 0, 0, 0.1);
}
.filter-chip.is-active, .filter-chip:hover { border-color: var(--accent); color: #fff; background: rgba(0,0,0,0.5); }
.day-block { margin-bottom: 2rem; }
.day-heading {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  padding: 0 0.25rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.forum-grid { display: grid; gap: 1.1rem; }
.forum-super-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(6, 6, 10, 0.68);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.forum-super-card-what_is { box-shadow: 0 18px 50px rgba(80, 43, 253, 0.12); }
.forum-super-card-spotlight { box-shadow: 0 18px 50px rgba(213, 79, 40, 0.12); }
.forum-super-media {
  position: relative;
  min-height: 200px;
  max-height: 320px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}
.forum-super-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 200px;
}
.forum-super-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.72) 100%);
  pointer-events: none;
}
.forum-super-body {
  padding: 1.15rem 1.25rem 1rem;
  color: #f2f2f4;
}
.forum-card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 0.65rem; }
.forum-kind {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}
.forum-card-head time { font-size: 0.82rem; color: rgba(235, 235, 240, 0.58); }
.forum-card-title { margin: 0 0 0.85rem; font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.25; color: #fff; }
.forum-intro {
  margin: 0 0 0.85rem;
  line-height: 1.6;
  color: rgba(242, 242, 244, 0.92);
  font-family: "Kp Programmer", ui-monospace, monospace, system-ui, sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.callout {
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
}
.callout-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.callout p {
  margin: 0;
  line-height: 1.55;
  color: rgba(242, 242, 244, 0.9);
  font-family: "Kp Programmer", ui-monospace, monospace, system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.callout-definition { border-color: rgba(80,43,253,0.45); background: rgba(80,43,253,0.12); }
.callout-term { border-color: rgba(6,182,212,0.45); background: rgba(6,182,212,0.1); }
.callout-spotlight { border-color: rgba(213,79,40,0.45); background: rgba(213,79,40,0.1); }
.callout-tip { border-color: rgba(34,197,94,0.45); background: rgba(34,197,94,0.1); }
.callout-lab { border-color: rgba(168,85,247,0.45); background: rgba(168,85,247,0.1); }
.callout-uses, .callout-research { border-style: dashed; }
.callout-note { border-color: rgba(255,255,255,0.16); font-style: italic; }
.post-bullets {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  line-height: 1.55;
  color: rgba(242,242,244,0.92);
  font-family: "Kp Programmer", ui-monospace, monospace, system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.post-bullets li { margin: 0.35rem 0; }
.diagram-wrap {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0, 0, 0, 0.42);
  overflow-x: auto;
}
.x-voices {
  margin: 0.85rem 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.48);
}
.x-voices-title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(235, 235, 240, 0.72);
}
.x-voices-kw {
  margin: 0 0 0.55rem;
  font-size: 0.86rem;
  color: rgba(235,235,240,0.7);
  font-family: "Kp Programmer", ui-monospace, monospace, system-ui, sans-serif;
  letter-spacing: 0.02em;
}
.x-quote {
  margin: 0;
  padding: 0;
  border: 0;
}
.x-quote p {
  margin: 0 0 0.45rem;
  line-height: 1.55;
  color: rgba(242, 242, 244, 0.94);
  font-size: 0.95rem;
  font-family: "Kp Programmer", ui-monospace, monospace, system-ui, sans-serif;
  letter-spacing: 0.02em;
}
.x-quote footer {
  font-size: 0.82rem;
  color: rgba(235,235,240,0.62);
  font-family: "Kp Programmer", ui-monospace, monospace, system-ui, sans-serif;
}
.x-quote a { color: var(--accent); }
.x-link-row { display: flex; flex-wrap: wrap; gap: 0.65rem 1rem; margin-top: 0.55rem; }
.x-link {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.x-link:hover { text-decoration: underline; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }
.tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(235,235,240,0.62);
  background: rgba(0,0,0,0.25);
}
.forum-card-foot {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-family: "Kp Programmer", ui-monospace, monospace, system-ui, sans-serif;
  letter-spacing: 0.02em;
}
.forum-card-foot a { color: var(--accent); text-decoration: none; }
.forum-card-foot a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .forum-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .forum-super-card-what_is,
  .forum-super-card-spotlight,
  .forum-super-card-science_term {
    grid-column: 1 / -1;
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.35fr);
  }
  .forum-super-card-what_is .forum-super-media,
  .forum-super-card-spotlight .forum-super-media,
  .forum-super-card-science_term .forum-super-media {
    min-height: 100%;
    max-height: none;
  }
}
