/* Kantor download site.
   Tokens follow the app (crates/kantor_ui/src/tokens.rs, metrics.rs): layered
   surfaces (bg, chrome, surface), radii 4/6/8/12, and the icon's app colours used
   only as small markers: Docs blue, Sheets green, Slides orange. */

:root {
  color-scheme: light dark;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", Inter, "Adwaita Sans", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;

  --docs: #4f8ff7;
  --sheets: #2fbf71;
  --slides: #f47a3a;

  /* light */
  --bg: #f6f7fa;
  --chrome: #eceef3;
  --surface: #ffffff;
  --fg: #141824;
  --fg-muted: #474e60;
  --border: #d6dae3;
  --border-strong: #7a8295;
  --accent: #2155cf;
  --accent-hover: #1a45ab;
  --accent-fg: #ffffff;
  --focus: #2155cf;
  --shadow: 0 1px 2px rgb(20 24 36 / 0.06), 0 12px 32px -8px rgb(20 24 36 / 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11141c;
    --chrome: #171b25;
    --surface: #1c212d;
    --fg: #e8ebf2;
    --fg-muted: #a9b1c2;
    --border: #2c3242;
    --border-strong: #6b7488;
    --accent: #8db6ff;
    --accent-hover: #b0ccff;
    --accent-fg: #0b1020;
    --focus: #8db6ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -10px rgb(0 0 0 / 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 4.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
section[tabindex="-1"]:focus { outline: none; } /* skip-link and anchor targets, not controls */

code { font-family: var(--mono); font-size: 0.92em; }

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
}
.skip:focus { top: 0.75rem; }

/* ---------- Top bar: Kantor's title row ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--chrome);
  border-bottom: 1px solid var(--border);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--fg);
  font-weight: 650;
  font-size: 1.05rem;
  text-decoration: none;
}
.brand:hover { color: var(--fg); }
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.7rem;
  border-radius: var(--r-md);
  color: var(--fg);
  font-size: 0.94rem;
  text-decoration: none;
}
.nav a:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); color: var(--fg); }
.nav .lang {
  border: 1px solid var(--border);
  margin-left: 0.35rem;
}
.lang-short { display: none; }

@media (max-width: 46rem) {
  .nav-gh, .nav-thesis, .nav-rel { display: none; }
}
@media (max-width: 30rem) {
  .nav-limits { display: none; }
  .lang-long { display: none; }
  .lang-short { display: inline; }
  .nav .lang { min-width: 44px; justify-content: center; }
}
@media (max-width: 22rem) {
  .nav a { padding-inline: 0.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.hero { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-text { max-width: 44rem; }
.hero-aside { margin-top: 1.5rem; max-width: 38rem; }
.shots { grid-column: 1 / -1; }
@media (min-width: 64rem) {
  .hero { grid-template-columns: minmax(0, 44rem) minmax(0, 1fr); column-gap: 3.5rem; }
  .hero-aside {
    margin-top: 0;
    align-self: end;
    padding: 1.25rem 0 0.25rem 1.5rem;
    border-left: 1px solid var(--border);
  }
}
h1 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.lede {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 40rem;
}

.cta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}
.cta-meta {
  flex-basis: 100%;
  color: var(--fg-muted);
  font-size: 0.9rem;
}
.cta-meta:empty { display: none; }
.cta-other {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 550;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 1.15rem;
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-fg); }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--border-strong); }
.btn-secondary:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, var(--surface)); }
.btn-meta { font-weight: 450; font-size: 0.82rem; opacity: 0.9; }

.facts {
  list-style: none;
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.preview {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
  max-width: 38rem;
}

/* Screenshots: the one elevated element on the page, because it is a window. */
.shots { margin: clamp(2.25rem, 5vw, 3.5rem) 0 0; }
.tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--chrome);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 1rem;
}
.tab {
  position: relative;
  min-height: 44px;
  min-width: 5.5rem;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--fg-muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  cursor: pointer;
}
.tab:hover { color: var(--fg); }
/* Each tab carries its app's colour as the short bar from Kantor's Home screen. */
.tab::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 1.25rem;
  height: 3px;
  margin-left: -0.625rem;
  border-radius: 2px;
  background: var(--app);
  opacity: 0.45;
}
.tab-sheets { --app: var(--sheets); }
.tab-docs { --app: var(--docs); }
.tab-slides { --app: var(--slides); }
.tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 0 0 1px var(--border);
}
.tab[aria-selected="true"]::before { opacity: 1; }

.window {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--chrome);
}
.caption {
  margin-top: 0.85rem;
  color: var(--fg);
  font-size: 0.95rem;
}
.shots-note {
  margin-top: 0.25rem;
  color: var(--fg-muted);
  font-size: 0.85rem;
}

/* ---------- What it does ---------- */
.what {
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--border);
}
h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.apps {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.app {
  padding: 0.25rem 1.75rem 0.5rem;
  border-left: 1px solid var(--border);
}
.app:first-child { padding-left: 0; border-left: 0; }
.app h3 {
  font-size: 1.2rem;
  font-weight: 650;
}
.app h3::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 3px;
  margin-bottom: 0.75rem;
  border-radius: 2px;
  background: var(--app);
}
.app-sheets { --app: var(--sheets); }
.app-docs { --app: var(--docs); }
.app-slides { --app: var(--slides); }
.app-qual { --app: #c2621b; }
.formats { margin: 0.6rem 0 0.75rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
/* Keycap chips, as Kantor shows "Ctrl K". */
.kbd {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--fg);
  white-space: nowrap;
}
.nowrap { white-space: nowrap; }
.app p:last-child { color: var(--fg-muted); }

.keep {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 50rem;
}
.keep h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -0.015em;
}
.keep p {
  margin-top: 0.75rem;
  font-size: 1.08rem;
  color: var(--fg-muted);
}

.more {
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 3rem;
}
.more dt { font-weight: 650; }
.more dd { margin: 0.3rem 0 0; color: var(--fg-muted); }

/* ---------- Download ---------- */
.download {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--chrome);
  border-block: 1px solid var(--border);
}
.dl-head p { margin-top: 0.5rem; color: var(--fg-muted); }
.dl-head .version { color: var(--fg); min-height: 1.55em; }
.licence { margin-top: clamp(2rem, 5vw, 3rem); }
.licence h3 { font-size: 1.2rem; font-weight: 650; }
.licence .more { margin-top: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 52rem) { .licence .more { grid-template-columns: minmax(0, 1fr); } }

.platforms {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.platform {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5rem;
}
.platform.is-yours { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.yours {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.platform h3 { font-size: 1.35rem; font-weight: 650; }
.platform .req { margin: 0.35rem 0 1.25rem; color: var(--fg-muted); font-size: 0.95rem; }
.platform-off {
  grid-column: 1 / -1;
  background: transparent;
  border-style: dashed;
  border-color: var(--border-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding-block: 1rem;
}
.platform-off .yours { flex-basis: 100%; margin: 0; }
.platform-off h3 { font-size: 1.1rem; }
.platform-off p { color: var(--fg-muted); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.asset-note { margin-top: 0.75rem; font-size: 0.9rem; color: var(--fg); }

.steps {
  margin-top: 1.4rem;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.55rem;
}
.steps li::marker { color: var(--fg-muted); font-weight: 600; }

.term {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.term h4 { font-size: 1rem; font-weight: 650; }
.term > p { margin-top: 0.35rem; color: var(--fg-muted); font-size: 0.93rem; }
.cmd {
  margin-top: 0.75rem;
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.35rem 0.35rem 0.35rem 0.85rem;
}
.cmd code {
  flex: 1;
  min-width: 0;
  align-self: center;
  padding-block: 0.4rem;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 0.85rem;
}
.copy {
  flex: none;
  align-self: center;
  min-height: 44px;
  min-width: 4.5rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.copy:hover { background: color-mix(in srgb, var(--fg) 6%, var(--surface)); }
.copy-status { margin-top: 0.4rem; font-size: 0.88rem; color: var(--fg-muted); min-height: 1.4em; }

/* ---------- Thesis: PLS-SEM and citations ----------
   Sits before the downloads on the chrome band's opposite (plain bg), reusing the Paparan
   head and shot styles. Each half carries its app's colour bar (Sheets green, Docs blue),
   the same marker the app cards use. */
.thesis { padding-block: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--border); }
.thesis-grid {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem 4rem;
}
.thesis-stats { margin-top: clamp(2rem, 5vw, 3rem); margin-bottom: clamp(1rem, 3vw, 1.5rem); }
.thesis-grid h3, .thesis-stats h3 { font-size: 1.2rem; font-weight: 650; }
.thesis-grid h3::before, .thesis-stats h3::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 3px;
  margin-bottom: 0.75rem;
  border-radius: 2px;
  background: var(--app);
}
.thesis-list { margin: 1rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; }
.thesis-list dt { font-weight: 650; }
.thesis-list dd { margin: 0.3rem 0 0; color: var(--fg-muted); }
.thesis-check {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}
.thesis-cite p { margin-top: 0.75rem; color: var(--fg-muted); }
.thesis-cite p:first-of-type { margin-top: 1rem; color: var(--fg); }
.thesis-eq { margin-top: 2.25rem; }
@media (min-width: 52rem) {
  .thesis-list-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 52rem) {
  .thesis-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
}
@media (max-width: 36rem) {
  .thesis-list, .thesis-list-wide { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Paparan AI ----------
   The paid AI gets its own section after the downloads, so Kantor stays the lead. Requests
   are drawn as the chat panel draws a sent message (surface bubble, large radius), each
   marked with its app's colour bar; the rest reuses the page's type and rules. */
.paparan { padding-block: clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--border); }
.pap-head { max-width: 48rem; }
.pap-lede {
  margin-top: 0.9rem;
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  color: var(--fg-muted);
}
.pap-shot { margin: 2rem 0 0; }
.pap-grid {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.5rem 4rem;
}
.pap-col { display: grid; align-content: start; gap: 2.5rem; }
.pap-grid h3 { font-size: 1.2rem; font-weight: 650; }
.pap-start .steps { margin-top: 1rem; }

.asks { list-style: none; margin-top: 1rem; display: grid; gap: 1.25rem; }
.ask-q {
  position: relative;
  padding: 0.7rem 1rem 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  font-weight: 550;
}
.ask-q::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 3px;
  margin-bottom: 0.5rem;
  border-radius: 2px;
  background: var(--app);
}
.ask-a { margin: 0.45rem 0 0 1rem; color: var(--fg-muted); font-size: 0.95rem; }

.pap-price > p { margin-top: 0.6rem; color: var(--fg-muted); }
.packs {
  margin-top: 1.1rem;
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.packs caption {
  text-align: left;
  font-weight: 650;
  font-size: 0.95rem;
  padding-bottom: 0.4rem;
}
.packs th, .packs td {
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
  text-align: right;
  font-weight: 450;
}
.packs th { text-align: left; font-weight: 600; }
.packs tr:last-child > * { border-bottom: 1px solid var(--border); }
.packs td:last-child { color: var(--fg-muted); padding-left: 1rem; width: 5.5rem; }
.pap-note { margin-top: 0.6rem; font-size: 0.9rem; color: var(--fg-muted); }

.pap-trust p { color: var(--fg-muted); }
.pap-trust p + p { margin-top: 0.75rem; }
.pap-trust .btn { margin-top: 1.25rem; }

@media (max-width: 52rem) {
  .pap-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  /* One column: the steps and price come before the privacy note. */
  .pap-col { display: contents; }
  .pap-asks { order: 1; }
  .pap-start { order: 2; }
  .pap-price { order: 3; }
  .pap-trust { order: 4; }
}

/* ---------- Limits ---------- */
.limits { padding-block: clamp(3rem, 7vw, 5rem); }
.limits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 1.5rem 4rem;
}
.limits-grid > div:first-child p { margin-top: 0.75rem; color: var(--fg-muted); }
.gaps { list-style: none; display: grid; gap: 0; }
.gaps li {
  padding: 0.8rem 0;
  border-top: 1px solid var(--border);
}
.gaps li:last-child { border-bottom: 1px solid var(--border); }
.report { grid-column: 2; margin-top: 1rem; }
.report h3 { font-size: 1.15rem; font-weight: 650; }
.report p { margin: 0.35rem 0 1rem; color: var(--fg-muted); }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--border);
  background: var(--chrome);
  font-size: 0.92rem;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
}
.foot-brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 650; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0 0.25rem; }
.foot-links a, .by a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.5rem;
}
.by { margin-left: auto; color: var(--fg-muted); }

/* ---------- Narrower screens ---------- */
@media (max-width: 52rem) {
  .apps { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .app, .app:first-child { padding: 0; border-left: 0; }
  .more { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .limits-grid { grid-template-columns: minmax(0, 1fr); }
  .report { grid-column: 1; }
}
@media (max-width: 44rem) {
  .platforms { grid-template-columns: minmax(0, 1fr); }
  .platform { padding: 1.25rem; }
  .by { margin-left: 0; }
}
@media (max-width: 30rem) {
  .wrap { padding-inline: 1rem; }
  .tabs { display: flex; }
  .tab { flex: 1; min-width: 0; padding: 0 0.5rem; }
  .btn-row .btn, .hero .btn-primary { width: 100%; }
}

@media (forced-colors: active) {
  .tab[aria-selected="true"] { outline: 2px solid CanvasText; }
  .platform.is-yours { outline: 2px solid CanvasText; }
}

/* ---------- 404 ---------- */
.notfound { padding-block: 4rem; display: grid; gap: 1rem; }
.notfound h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }

/* Privacy page */
.prose { padding-block: 3rem 4rem; max-width: 46rem; display: grid; gap: 1rem; line-height: 1.6; }
.prose h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.prose ol, .prose ul { padding-inline-start: 1.4rem; display: grid; gap: 0.6rem; }
.prose ul { margin-block-start: 0.6rem; list-style: disc; }
.prose ol { list-style: decimal; }
.prose code { font-size: 0.92em; overflow-wrap: anywhere; }
.prose a { overflow-wrap: anywhere; }
.prose .foot-brand a { display: inline-flex; align-items: center; gap: 0.5rem; color: inherit; text-decoration: none; }

/* ---------- Releases (/releases/) ---------- */
.releases { padding-block: 3rem 4rem; max-width: 52rem; display: grid; gap: 2rem; }
.rel-intro { display: grid; gap: 0.75rem; }
.rel-intro h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.rel-dev { color: var(--fg-muted); font-size: 0.94rem; }
.rel-list { list-style: none; display: grid; gap: 1.25rem; }
.rel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  display: grid;
  gap: 1.1rem;
  scroll-margin-top: 4.5rem;
}
.rel:first-child { border-color: var(--border-strong); }
.rel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.rel-head h2 { font-size: 1.3rem; font-weight: 650; display: inline-flex; align-items: center; gap: 0.6rem; }
.rel-head h2 a { color: var(--fg); text-decoration: none; }
.rel-head h2 a:hover { text-decoration: underline; }
.rel-head time { color: var(--fg-muted); font-size: 0.94rem; }
.rel-latest {
  font-size: 0.75rem;
  font-weight: 650;
  padding: 0.1rem 0.5rem;
  border-radius: var(--r-sm);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.rel-app { --app: var(--accent); border-top: 1px solid var(--border); padding-top: 1rem; display: grid; gap: 0.75rem; }
.rel-app h3 { font-size: 1rem; font-weight: 650; display: inline-flex; align-items: center; gap: 0.5rem; }
.rel-app h3::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--app); }
.rel-app-docs { --app: var(--docs); }
.rel-app-sheets { --app: var(--sheets); }
.rel-app-slides { --app: var(--slides); }
.rel-app-pdf { --app: #d64545; }
.rel-app-notes { --app: #8a63d2; }
.rel-app-paparan { --app: #c98a12; }
.rel-notes { list-style: none; display: grid; gap: 0.7rem; }
.rel-note { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.25rem 1rem; align-items: start; line-height: 1.55; }
.rel-type {
  justify-self: start;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.05rem 0.45rem;
  margin-top: 0.15rem;
  border-radius: var(--r-sm);
  border: 1px solid currentColor;
  white-space: nowrap;
}
.rel-type-breaking { color: #c03636; }
.rel-type-feat { color: #1f8a50; }
.rel-type-fix { color: var(--fg-muted); }
@media (prefers-color-scheme: dark) {
  .rel-type-breaking { color: #ff8a8a; }
  .rel-type-feat { color: #6fdc9e; }
}
@media (max-width: 30rem) {
  .rel { padding: 1.1rem; }
  .rel-note { grid-template-columns: minmax(0, 1fr); }
}
