@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2?v=NLnFBMq3pz43") format("woff2-variations"), url("/fonts/inter-latin-ext.woff2?v=NLnFBMq3pz43") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2?v=MQDndehhbNJh") format("woff2-variations"), url("/fonts/inter-latin.woff2?v=MQDndehhbNJh") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-ext.woff2?v=eb_aubpGfibu") format("woff2-variations"), url("/fonts/jetbrains-mono-latin-ext.woff2?v=eb_aubpGfibu") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin.woff2?v=GL5FJyS_3CNs") format("woff2-variations"), url("/fonts/jetbrains-mono-latin.woff2?v=GL5FJyS_3CNs") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  --bg: #000000;
  --surface: #09090b;
  --surface-2: #111113;
  --surface-3: #18181b;
  --border: #232327;
  --border-2: #2e2e33;
  --border-3: #46464d;
  --divider: #18181b;

  --text: #fafafa;
  --text-2: #a1a1aa;
  --text-3: #71717a;

  --soft: #18181b;
  --edge: #52525b;
  --gradient: linear-gradient(120deg, #ffffff 0%, #e4e4e7 50%, #a1a1aa 100%);

  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.08);
  --ok-edge: rgba(74, 222, 128, 0.4);
  --ok-pulse: rgba(74, 222, 128, 0.55);
  --no: #f87171;
  --no-soft: rgba(248, 113, 113, 0.08);
  --no-edge: rgba(248, 113, 113, 0.5);

  --invert: #000000;
  --solid: #ffffff;
  --solid-hover: #d4d4d8;
  --appbar: rgba(0, 0, 0, 0.82);
  --scrim: rgba(0, 0, 0, 0.6);
  --panel-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  --menu-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  --sheen: rgba(250, 250, 250, 0.1);
  --flag-ring: rgba(250, 250, 250, 0.1);
  --foot-line: rgba(250, 250, 250, 0.22);
  --art-edge: #3f3f46;
  --logo-filter: none;
  --ring: 0 0 0 3px rgba(250, 250, 250, 0.16);
  --sheet: #09090b;
  --sheet-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --page: 1400px;
  --gut: 20px;
  --appbar-h: 66px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #ffffff;
  --surface: #fafafa;
  --surface-2: #f4f4f5;
  --surface-3: #e9e9ec;
  --border: #e4e4e7;
  --border-2: #d4d4d8;
  --border-3: #a1a1aa;
  --divider: #ececef;

  --text: #09090b;
  --text-2: #52525b;
  --text-3: #6b6b74;

  --soft: #f4f4f5;
  --edge: #a1a1aa;
  --gradient: linear-gradient(120deg, #09090b 0%, #3f3f46 50%, #71717a 100%);

  --ok: #15803d;
  --ok-soft: rgba(21, 128, 61, 0.07);
  --ok-edge: rgba(21, 128, 61, 0.35);
  --ok-pulse: rgba(21, 128, 61, 0.45);
  --no: #b91c1c;
  --no-soft: rgba(185, 28, 28, 0.06);
  --no-edge: rgba(185, 28, 28, 0.35);

  --invert: #ffffff;
  --solid: #09090b;
  --solid-hover: #3f3f46;
  --appbar: rgba(255, 255, 255, 0.86);
  --scrim: rgba(9, 9, 11, 0.28);
  --panel-shadow: 0 18px 48px rgba(9, 9, 11, 0.14);
  --menu-shadow: 0 18px 48px rgba(9, 9, 11, 0.14);
  --sheen: transparent;
  --flag-ring: rgba(9, 9, 11, 0.14);
  --foot-line: #a1a1aa;
  --art-edge: #a1a1aa;
  --logo-filter: invert(1);
  --ring: 0 0 0 3px rgba(9, 9, 11, 0.12);
  --sheet: #ffffff;
  --sheet-shadow: 0 18px 48px rgba(9, 9, 11, 0.14);
}

@media (max-width: 760px) {
  :root {
    --gut: 16px;
    --appbar-h: 60px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--surface-3) var(--bg);
  scroll-padding-top: calc(var(--appbar-h) + 1rem);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-feature-settings: "cv11", "ss01";
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}

a {
  color: inherit;
}

img {
  max-inline-size: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: var(--text);
  color: var(--invert);
}

:focus-visible {
  outline: 2px solid var(--solid);
  outline-offset: 3px;
  border-radius: 8px;
}

[hidden] {
  display: none !important;
}

.offscreen {
  position: fixed;
  top: -1000px;
  left: -1000px;
  opacity: 0;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--external {
  width: 0.85em;
  height: 0.85em;
  color: var(--text-3);
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--solid);
  color: var(--invert);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--solid);
  color: var(--invert);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.button:hover {
  background: var(--solid-hover);
}

.button .icon--external {
  color: inherit;
  opacity: 0.7;
}

.button--ghost {
  border-color: var(--border-2);
  background: transparent;
  color: var(--text);
}

.button--ghost:hover {
  border-color: var(--edge);
  background: var(--surface-3);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.icon-button:hover {
  color: var(--text);
  background: var(--soft);
  border-color: var(--edge);
}

.icon-button .icon {
  width: 18px;
  height: 18px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--appbar);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.appbar__in {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--appbar-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: 108px;
  filter: var(--logo-filter);
}

.nav {
  margin-left: 1.4rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 36px;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}

.nav__link:hover,
.nav__group.is-open > .nav__link {
  color: var(--text);
  background: var(--surface-2);
}

.nav__link[aria-current="page"],
.nav__link.is-current {
  color: var(--text);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--edge);
}

.nav__chevron {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--text-3);
  transition: transform 0.18s;
}

.nav__link--split {
  gap: 0;
  padding: 0;
}

.nav__link--split > a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 0.3rem 0 0.85rem;
  border-radius: 10px 0 0 10px;
  color: inherit;
  text-decoration: none;
}

.nav__toggle {
  display: inline-grid;
  place-items: center;
  height: 100%;
  padding: 0 0.7rem 0 0.2rem;
  border: 0;
  border-radius: 0 10px 10px 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav__group.is-open .nav__chevron {
  transform: rotate(180deg);
}

.nav__group {
  position: relative;
}

.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 50;
  display: grid;
  gap: 2px;
  min-width: 13rem;
  padding: 0.35rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  box-shadow: var(--menu-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s, transform 0.16s, visibility 0s linear 0.16s;
}

/* Bridges the gap below the button so the pointer can reach the menu. */
.nav__menu::before {
  content: "";
  position: absolute;
  inset: -11px 0 auto;
  height: 11px;
}

.nav__group.is-open > .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

@media (hover: hover) {
  .nav__group:hover > .nav__link {
    color: var(--text);
    background: var(--surface-2);
  }

  .nav__group:hover .nav__chevron {
    transform: rotate(180deg);
  }

  .nav__group:hover > .nav__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
}

.nav__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  padding: 0 0.8rem;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.nav__menu a:hover {
  color: var(--text);
  background: var(--surface-3);
}

.nav__menu a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.appbar__tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.theme-toggle__sun,
:root[data-theme="light"] .theme-toggle__moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle__sun {
  display: block;
}

.menu-button {
  display: none;
}

.drawer[popover] {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(88vw, 360px);
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0 1rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-right: 1px solid var(--border-2);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--panel-shadow);
  transition: transform 0.22s ease, overlay 0.22s allow-discrete, display 0.22s allow-discrete;
}

.drawer[popover]:not(:popover-open) {
  transform: translateX(-100%);
}

@starting-style {
  .drawer[popover]:popover-open {
    transform: translateX(-100%);
  }
}

.drawer::backdrop {
  background: var(--scrim);
}

.drawer__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--appbar-h);
  margin-bottom: 0.75rem;
  padding-left: 0.8rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.drawer__nav {
  display: grid;
  gap: 2px;
}

.drawer__nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 0.8rem;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
}

.drawer__nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.drawer__nav a[aria-current="page"] {
  color: var(--text);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--edge);
}

.drawer__group {
  display: grid;
  gap: 2px;
}

.drawer__group + .drawer__group {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.drawer__group .eyebrow {
  margin: 0 0 0.25rem 0.8rem;
}

.drawer__nav a.drawer__title {
  min-height: 32px;
  margin-bottom: 0.1rem;
  color: var(--text-3);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.drawer__nav a.drawer__title:hover {
  color: var(--text);
  background: transparent;
}

.drawer__arrow {
  width: 0.8rem;
  height: 0.8rem;
  transform: rotate(-90deg);
}

.site-foot {
  position: relative;
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.site-foot::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--foot-line) 50%, transparent 95%);
}

.site-foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.2rem;
  padding-block: 2rem 2.6rem;
}

.site-foot__logo {
  display: block;
  width: 180px;
  filter: var(--logo-filter);
}

.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
}

.site-foot__links a {
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s;
}

.site-foot__links a:hover {
  color: var(--text);
}

.site-foot__copy {
  margin-left: auto;
  color: var(--text-3);
  font-size: 0.85rem;
}

.lang {
  position: relative;
}

.lang__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 34px;
  padding: 0 0.45rem 0 0.7rem;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.lang__button::-webkit-details-marker {
  display: none;
}

.lang__button:hover,
.lang[open] > .lang__button {
  border-color: var(--edge);
  background: var(--surface-3);
  color: var(--text);
}

.lang__flag {
  flex: none;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--flag-ring);
}

.lang__chevron {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--text-3);
  transform: rotate(180deg);
}

.lang__list {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 200px;
  max-height: min(430px, calc(100dvh - 140px));
  overflow-y: auto;
  padding: 0.35rem;
  list-style: none;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  box-shadow: var(--menu-shadow);
}

.lang__option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 42px;
  padding: 0 0.75rem;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 0.9rem;
  text-decoration: none;
}

.lang__option:hover {
  background: var(--surface-3);
  color: var(--text);
}

.lang__option[aria-current="true"] {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 1120px) {
  .nav {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .appbar__in {
    gap: 0.75rem;
  }
}

@media (min-width: 1121px) {
  .drawer[popover] {
    display: none;
  }
}

@media (max-width: 760px) {
  .brand__logo {
    width: 92px;
  }

  .site-foot__logo {
    width: 160px;
  }

  .site-foot__in {
    padding-block: 1.6rem 2.2rem;
  }

  .site-foot__copy {
    flex-basis: 100%;
    margin: 0;
  }
}

/* TRAIDAG LIVE beside the theme switch, as in the explorer; on phones it moves into the menu. */
.appbar__tools .live-link {
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .appbar__tools .live-link {
    display: none;
  }
}

/* The privacy note in the bottom left corner, below the header and its menus. */
.notice {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: min(22rem, calc(100vw - 32px));
  padding: 0.55rem 0.5rem 0.55rem 0.95rem;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  background: var(--surface-2);
  box-shadow: var(--menu-shadow);
  color: var(--text-2);
  font-size: 0.84rem;
  line-height: 1.45;
}

.notice[hidden] {
  display: none;
}

.notice a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--border-3);
  text-underline-offset: 0.2em;
}

.notice a:hover {
  text-decoration-color: var(--text);
}

.notice__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-2);
  cursor: pointer;
}

.notice__close:hover {
  background: var(--soft);
  color: var(--text);
}

.notice__close svg {
  width: 16px;
  height: 16px;
}

@media print {
  .notice {
    display: none;
  }
}

.main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

.page {
  flex: 1 0 auto;
  padding-block: 2rem 5rem;
}

.lede {
  color: var(--text-2);
  font-size: 1.08rem;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.6rem;
}

.dag-cut {
  stroke: var(--border-2);
  stroke-width: 1;
  stroke-dasharray: 3 6;
}

.dag-edges path {
  fill: none;
  stroke: var(--art-edge);
  stroke-width: 1.4;
}

.dag-edges path.flow {
  stroke: var(--text-2);
  stroke-dasharray: 3 5;
  animation: dag-flow 1.2s linear infinite;
}

.dag-nodes rect {
  fill: var(--bg);
  stroke: var(--edge);
  stroke-width: 1.4;
}

.dag-nodes rect.recent {
  stroke: var(--text-2);
}

.dag-nodes rect.new {
  fill: var(--text);
  stroke: var(--text);
  animation: dag-glow 2.6s ease-in-out infinite;
}

@keyframes dag-flow {
  to {
    stroke-dashoffset: -16;
  }
}

@keyframes dag-glow {
  50% {
    opacity: 0.55;
  }
}

.section-title {
  display: flex;
  align-items: center;
  margin-bottom: 1.1rem;
}

.section-title h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.18rem;
  font-weight: 650;
  letter-spacing: -0.018em;
}

.section-title h2::before {
  content: "";
  width: 4px;
  height: 1.05em;
  border-radius: 4px;
  background: var(--text);
}


.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.3rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sheen), transparent);
  pointer-events: none;
}

.card:hover {
  border-color: var(--edge);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.3rem;
  border-radius: 10px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--border-2);
  color: var(--text);
}

.card__icon .icon {
  width: 18px;
  height: 18px;
}

.card__title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card__text {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.55;
}

.page-head {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  padding-block: 1.5rem 2.2rem;
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.032em;
}

.page-head__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 0.75rem;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-head--lone {
  border-bottom: 0;
  padding-block: clamp(2rem, 8vw, 5rem);
}

@media (max-width: 760px) {
  body {
    font-size: 14.5px;
  }

  .page {
    padding-block: 1.2rem 3.5rem;
  }

  .lede {
    font-size: 0.98rem;
  }

  .actions .button {
    flex: 1 1 auto;
  }
}

.hub-start {
  margin-top: 2.6rem;
}

.hub {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hub--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-card--fill {
  grid-column: 1 / -1;
}

.hub-card {
  min-height: 12rem;
  padding: 1.5rem 1.5rem 1.45rem;
  gap: 0.6rem;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.hub-card:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}

.hub-card .card__title {
  padding-right: 2rem;
  font-size: 1.12rem;
}

.hub-card .card__text {
  font-size: 0.92rem;
}

.hub-card__go {
  position: absolute;
  top: 1.45rem;
  right: 1.45rem;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-3);
  transition: color 0.18s, transform 0.18s;
}

.hub-card:hover .hub-card__go {
  color: var(--text);
  transform: translateX(3px);
}

.hub-card--research {
  border-style: dashed;
  border-color: var(--border-2);
  background: transparent;
}

.hub-card--featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 1.5rem;
}

.hub-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hub-card--featured .card__title {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.hub-card--featured .card__text {
  max-width: 30rem;
  font-size: 1rem;
}

.hub-card__art {
  justify-self: end;
  width: 100%;
  max-width: 340px;
  height: auto;
}

@media (max-width: 960px) {
  .hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hub,
  .hub--two {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-card--featured {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-card__art {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-card,
  .hub-card__go {
    transition: none;
  }

  .hub-card:hover,
  .hub-card:hover .hub-card__go {
    transform: none;
  }
}

.legal {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.legal section {
  display: grid;
  gap: 0.5rem;
  scroll-margin-top: 5rem;
}

.legal h2 {
  margin-top: 1.6rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal h3 {
  margin-top: 0.7rem;
  font-size: 1.02rem;
  font-weight: 650;
}

.legal > p,
.legal section p,
.legal li {
  color: var(--text-2);
  line-height: 1.7;
}

.legal > p.legal__updated {
  color: var(--text-3);
  font-size: 0.85rem;
}

.legal a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-3);
  text-underline-offset: 0.2em;
}

.legal a:hover {
  text-decoration-color: var(--text);
}

.legal__toc {
  display: grid;
  gap: 0.6rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
}

.legal__toc ul,
.legal__contact {
  display: grid;
  gap: 0.35rem;
  padding: 0;
  list-style: none;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.button:disabled:hover {
  background: var(--solid);
}

.apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.story-head + .apps {
  margin-top: 2.6rem;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.7rem 1.7rem 1.6rem;
}

.app-card--main {
  border-color: var(--edge);
}

.panel.app-card--planned {
  border-style: dashed;
  border-color: var(--border-2);
  background: transparent;
}

.app-card__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.app-card__head .card__icon {
  margin-bottom: 0;
}

.app-card h2,
.app-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-card h3 {
  font-size: 1.25rem;
}

.app-card__text {
  color: var(--text-2);
  line-height: 1.6;
}

.app-card__list {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  list-style: none;
}

.app-card__list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text);
  font-size: 0.92rem;
}

.app-card__list li::before {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 0.15rem;
  width: 0.75rem;
  height: 0.4rem;
  border-bottom: 2px solid var(--text-2);
  border-left: 2px solid var(--text-2);
  transform: rotate(-45deg);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.8rem;
  color: var(--text-3);
  font-size: 0.82rem;
}

.platforms__marks {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-2);
}

.platforms__marks .icon {
  width: 17px;
  height: 17px;
}

.app-connect {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.82rem;
}

.app-connect .icon {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--text-2);
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.3rem;
  margin-top: auto;
  padding-top: 0.6rem;
}

.app-actions__soon {
  color: var(--text-3);
  font-size: 0.82rem;
}

.news {
  display: grid;
  gap: 1rem;
  margin-top: 2.6rem;
}

.news-entry {
  display: grid;
  gap: 0.9rem;
  padding: 1.7rem 1.7rem 1.6rem;
}

.news-entry__date {
  color: var(--text-3);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.news-entry h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.news-entry p {
  color: var(--text-2);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.news-entry__image {
  margin: 0;
}

.news-entry__image img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.news__empty {
  margin-top: 2.6rem;
  color: var(--text-3);
}

.roadmap + .text-link {
  display: inline-block;
  margin-top: 1.4rem;
}

.roadmap--research .panel {
  border-style: dashed;
  border-color: var(--border-2);
  background: transparent;
}

.wallet-custody {
  margin-top: 1rem;
}

@media (max-width: 760px) {
  .apps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.home-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(30rem, 44vw, 38rem);
  margin-bottom: 1rem;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.3rem, 4vw, 3.4rem);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
}

.home-hero__dag {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

/* Fades the moving DAG out behind the text. */
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface) 45%, transparent 100%);
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface) 40%, color-mix(in srgb, var(--surface) 55%, transparent) 64%, transparent 100%);
  pointer-events: none;
}

.home-hero__copy {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
  max-width: 50rem;
}

.home-hero .lede {
  max-width: 35rem;
}

.home-hero__speed {
  margin-top: 0.5rem;
}

.home-hero__title {
  font-size: clamp(2.1rem, 4.7vw, 3.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.home-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 0.6rem;
  padding: 0;
  list-style: none;
  color: var(--text-3);
  font-size: 0.86rem;
}

.home-hero__proof li {
  position: relative;
  padding-left: 1.35rem;
}

.home-hero__proof li::before {
  content: "";
  position: absolute;
  top: 0.32em;
  left: 0.1rem;
  width: 0.7rem;
  height: 0.38rem;
  border-bottom: 2px solid var(--text-2);
  border-left: 2px solid var(--text-2);
  transform: rotate(-45deg);
}

/* Until mainnet starts: a short red line under the proof points. */
.home-hero__notice {
  position: relative;
  padding-left: 1.1rem;
  color: var(--no);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.5;
}

.home-hero__notice::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0.15rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 2rem 3rem;
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

.home-split__text {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.home-split__text h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.home-split__text p {
  color: var(--text-2);
  line-height: 1.65;
}

.home-split .figure__frame {
  padding: 0;
  border: 0;
  background: none;
}

.home-updates {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

.home-updates--one {
  grid-template-columns: minmax(0, 1fr);
}

.home-news,
.home-roadmap {
  display: grid;
  align-content: start;
  justify-items: start;
  padding: 1.5rem 1.6rem;
}

.home-news__item {
  display: grid;
  gap: 0.35rem;
  justify-self: stretch;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--divider);
}

.home-news__item time {
  color: var(--text-3);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.home-news__item h3 {
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.home-news__item h3 a {
  color: var(--text);
  text-decoration: none;
}

.home-news__item h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.home-news__item p {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.55;
}

.home-news .text-link,
.home-roadmap .text-link {
  margin-top: 1.1rem;
}

.home-roadmap dl {
  display: grid;
  justify-self: stretch;
}

.home-roadmap dl > div {
  display: grid;
  gap: 0.3rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--divider);
}

.home-roadmap dt {
  font-weight: 650;
}

.home-roadmap dd {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 1080px) {
  .home-split,
  .home-updates {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .home-hero {
    min-height: 0;
  }

  .home-hero::after {
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 84%, transparent);
  }
}

.home-panel {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: 1.6rem 1.7rem;
}

.home-panel > p {
  color: var(--text-2);
  line-height: 1.65;
}

.home-panel .actions {
  margin-top: 0.2rem;
}

/* The start page's feature cards. */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.bento__card {
  position: relative;
  display: flex;
  min-height: 13.5rem;
  padding: 1.6rem 1.6rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.bento__card:hover {
  border-color: var(--border-3);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.bento__card--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
}

.bento__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
}

.bento__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-right: 2rem;
}

.bento__head .card__icon {
  margin-bottom: 0;
}

.bento__pic {
  display: block;
  width: 100px;
  height: auto;
  margin-top: 1.2rem;
}

.pic-line,
.pic-faint,
.pic-strong,
.pic-invert {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pic-line {
  stroke: var(--text-3);
}

.pic-faint {
  stroke: var(--border-3);
}

.pic-strong {
  stroke: var(--text);
  stroke-width: 2.4;
}

.pic-invert {
  stroke: var(--surface);
}

.pic-box {
  fill: var(--surface-3);
  stroke: var(--border-3);
  stroke-width: 1.6;
}

.pic-dot,
.pic-solid {
  fill: var(--text);
}

.pic-ring {
  fill: var(--surface);
  stroke: var(--text);
  stroke-width: 2.2;
}

.pic-label {
  fill: var(--text-2);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.bento__value {
  margin-top: auto;
  padding-top: 1.1rem;
  color: var(--text);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.bento__card--wide .bento__value {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.bento__unit {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-2);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.bento__text {
  max-width: 30rem;
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.55;
}

.bento__go {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-3);
  transition: color 0.18s, transform 0.18s;
}

.bento__card:hover .bento__go {
  color: var(--text);
  transform: translateX(3px);
}

.bento__art {
  justify-self: end;
  width: 100%;
  max-width: 400px;
  height: auto;
}

.bento-dag__edge {
  fill: none;
  stroke: var(--art-edge);
  stroke-width: 1;
}

.bento-dag__node {
  stroke: var(--text-3);
  stroke-width: 1.3;
}

.bento-dag__node--open {
  fill: var(--surface);
}

.bento-dag__node--registered {
  fill: var(--text-3);
  fill: color-mix(in srgb, var(--text) 45%, var(--surface));
}

.bento-dag__node--final {
  fill: var(--text);
  stroke: var(--text);
}

@media (max-width: 960px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento__card {
    min-height: 0;
  }

  .bento__card--wide {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .bento__art {
    justify-self: stretch;
    max-width: none;
  }
}

.home-live__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 1.2rem;
}

.home-live__links .icon--external {
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.25em;
}

.faq__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.faq__topics a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.9rem;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.faq__topics a:hover {
  border-color: var(--border-3);
  color: var(--text);
}

.faq {
  scroll-margin-top: 5rem;
}

.faq__list {
  border-top: 1px solid var(--border);
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.25rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__chevron {
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--text-3);
  transition: transform 0.2s;
}

.faq__item[open] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  display: grid;
  gap: 0.7rem;
  padding: 0 0.25rem 1.2rem;
}

.faq__answer p {
  color: var(--text-2);
  line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  .faq__chevron {
    transition: none;
  }
}

.story-head {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding-block: 1.5rem 2.6rem;
}

.story-head h1 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.story-head h1.story-head__lines {
  max-width: none;
}

.story-head__lines span {
  display: block;
}

/* A page head with a mark on the right; the mark moves below the text on narrow screens. */
.story-head--mark {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
}

.story-head__text {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

/* The TRAIPAY mark: speed lines and a slanted wordmark, drawn in the text colour. */
.pay-logo {
  width: clamp(220px, 24vw, 320px);
  height: auto;
  margin-right: clamp(0rem, 3vw, 2.5rem);
  fill: var(--text);
}

.pay-logo text {
  font-family: var(--sans);
  font-size: 46px;
  letter-spacing: -1.5px;
}

.pay-logo__strong {
  font-weight: 900;
}

.pay-logo__light {
  font-weight: 300;
}

@media (max-width: 760px) {
  .story-head--mark {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }

  .pay-logo {
    width: 190px;
    margin-right: 0;
  }
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.fact,
.panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.4rem 1.35rem 1.3rem;
}

.fact__value {
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fact__label {
  font-size: 0.95rem;
  font-weight: 650;
}

.fact__text {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.55;
}

.section {
  margin-top: 4rem;
}

.section .section-title {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1rem;
}

.section__text {
  margin-bottom: 1.4rem;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.65;
}

.trio,
.pair {
  display: grid;
  gap: 1rem;
}

.trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* The messenger's features: icon and title, a small line picture, then the text. */
.chat-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.chat-feature {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color 0.18s, background 0.18s;
}

.chat-feature:hover {
  border-color: var(--border-3);
  background: var(--surface-2);
}

.chat-feature__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 1.05rem;
}

.chat-feature__head .card__icon {
  margin-bottom: 0;
}

.chat-feature__pic {
  display: block;
  width: 110px;
  height: auto;
}

.chat-feature p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .chat-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .chat-features {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card-text {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 1.5rem 1.6rem;
}

.card-text h3 {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.card-text p {
  color: var(--text-2);
  line-height: 1.6;
}

.cards-gap {
  margin-top: 1.4rem;
}

.cards-gap + .text-link {
  display: inline-block;
  margin-top: 1.4rem;
}

.figure + .section__text {
  margin-top: 1.4rem;
}

.figure + .text-link {
  display: inline-block;
  margin-top: 1.4rem;
}

.cards-gap + .figure {
  margin-top: 1.4rem;
}

.video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: #000;
}

.sources {
  display: grid;
  justify-items: start;
  gap: 0.45rem;
  margin-bottom: 1.8rem;
  color: var(--text-3);
  font-size: 0.9rem;
}

.paper {
  grid-template-rows: auto auto 1fr auto auto;
  align-content: stretch;
}

.paper .paper__meta {
  color: var(--text-3);
  font-size: 0.85rem;
}

.ready {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem 2rem;
  padding: 1.6rem 1.7rem;
  list-style: none;
}

.ready li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.3rem;
  padding-left: 1.7rem;
}

.ready li::before {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.2rem;
  width: 0.42rem;
  height: 0.78rem;
  border: solid var(--text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ready--open li::before {
  top: 0.3rem;
  left: 0.15rem;
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid var(--text-2);
  border-radius: 50%;
  transform: none;
}

.research-note {
  border-style: dashed;
}

.ready strong {
  font-weight: 650;
}

.ready span {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.55;
}

.why {
  display: grid;
  gap: 0.75rem;
  margin-block: 1.4rem 1rem;
  padding: 1.5rem 1.6rem;
}

.why h3 {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.why p {
  color: var(--text-2);
  line-height: 1.65;
}

.text-link {
  justify-self: start;
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--border-3);
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.15s;
}

.text-link:hover {
  text-decoration-color: var(--text);
}

.figure {
  margin: 0;
}

.figure__frame {
  overflow-x: auto;
  padding: 1.4rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
}

/* Below this width a figure scrolls sideways, so its text stays readable. */
.figure svg {
  display: block;
  width: 100%;
  min-width: 40rem;
  max-width: 60rem;
  height: auto;
  margin-inline: auto;
  font-family: var(--sans);
  -webkit-user-select: none;
  user-select: none;
}

.d-grow {
  transform-box: fill-box;
  transform-origin: left center;
}

.d-draw {
  stroke-dasharray: 1;
}

/* site.js marks figures below the first screen; each plays once when it scrolls into view. */
@media screen {
  .figure--pending svg,
  .figure--pending .d-late {
    opacity: 0;
  }

  .figure--pending .d-grow {
    transform: scaleX(0);
  }

  .figure--pending .d-draw {
    stroke-dashoffset: 1;
  }

  .figure--shown svg {
    animation: figure-in 0.6s ease-out both;
  }

  .figure--shown .d-grow {
    animation: d-grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
  }

  .figure--shown .d-grow--2 {
    animation-delay: 0.35s;
  }

  .figure--shown .d-grow--3 {
    animation-delay: 0.5s;
  }

  .figure--shown .d-draw {
    animation: d-draw 1.1s ease-in-out 0.3s both;
  }

  .figure--shown .d-late {
    animation: figure-in 0.4s ease-out 1s both;
  }
}

@keyframes figure-in {
  from {
    opacity: 0;
  }
}

@keyframes d-grow {
  from {
    transform: scaleX(0);
  }
}

@keyframes d-draw {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.figure__caption {
  margin-top: 0.6rem;
  color: var(--text-3);
  font-size: 0.85rem;
  line-height: 1.5;
}

.d-box {
  fill: var(--surface-2);
  stroke: var(--border-2);
}

.d-box--key {
  fill: var(--text);
  stroke: var(--text);
}

.d-band {
  fill: var(--surface-2);
  stroke: var(--border);
}

.d-box--ghost {
  fill: none;
  stroke: var(--border-3);
  stroke-dasharray: 4 4;
}

.d-bar--base {
  fill: var(--border-3);
}

.d-bar--rise {
  fill: var(--text-2);
}

.d-bar--top {
  fill: var(--text);
}

.d-line {
  fill: none;
  stroke: var(--edge);
  stroke-width: 1.5;
}

.d-line--dash {
  stroke-dasharray: 5 5;
}

.d-grid {
  fill: none;
  stroke: var(--border);
}

.d-tip,
.d-dot {
  fill: var(--edge);
}

.d-dot--key {
  fill: var(--text);
}

.d-curve {
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
}

.d-curve--soft {
  stroke: var(--text-3);
  stroke-dasharray: 6 5;
}

.d-title {
  fill: var(--text);
  font-size: 13.5px;
  font-weight: 600;
}

.d-text {
  fill: var(--text-2);
  font-size: 12px;
}

.d-eyebrow {
  fill: var(--text-3);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.d-on-key {
  fill: var(--invert);
}

.globe-sphere {
  fill: var(--surface-2);
  stroke: var(--border-2);
}

.globe-line {
  fill: none;
  stroke: var(--border-2);
  stroke-width: 0.8;
}

.globe-node {
  fill: var(--bg);
  stroke: var(--text-2);
  stroke-width: 1.5;
}

.globe-miner {
  fill: var(--text-2);
}

.globe-validator {
  fill: var(--text);
  animation: dag-glow 2.6s ease-in-out infinite;
}

/* Parts of a figure that a script shows step by step; they wait faint until their moment. */
.d-pending {
  opacity: 0.15;
}

.join {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem 2rem;
  padding: clamp(1.5rem, 4vw, 2.6rem) clamp(1.3rem, 4vw, 3rem);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.join h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.join p {
  max-width: 34rem;
  margin-top: 0.5rem;
  color: var(--text-2);
}

.join .actions {
  margin-top: 0;
}

.source {
  margin-top: 2rem;
  color: var(--text-3);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trio {
    grid-template-columns: minmax(0, 1fr);
  }

  .ready {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .story-head {
    padding-block: 0.8rem 1.8rem;
  }

  .story-head h1 {
    font-size: 2.1rem;
  }

  .section {
    margin-top: 3rem;
  }

  .facts {
    gap: 0.7rem;
  }

  .pair,
  .ready {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-head h1 {
    font-size: 1.85rem;
  }
}

.pill--live {
  gap: 0.45rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.live[data-state="live"] .pill--live {
  color: var(--ok);
  border-color: var(--ok-edge);
  background: var(--ok-soft);
}

.live[data-state="live"] .pill--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: live-pulse 2s ease-out infinite;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--ok-pulse);
  }

  70% {
    box-shadow: 0 0 0 7px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.live__unavailable {
  display: none;
  margin-bottom: 1rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-2);
}

.live[data-state="unavailable"] .live__unavailable {
  display: block;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  padding: 1.15rem 1.25rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
}

.stat__value {
  font-size: 1.45rem;
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.stat__detail {
  min-height: 1.3em;
  color: var(--text-2);
  font-size: 0.82rem;
}

.progress {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1.15rem 1.25rem 1.2rem;
}

.progress__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
}

.progress__value {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.progress__fill {
  fill: var(--text);
  transition: width 0.6s ease;
}

.progress__scale {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-3);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.split {
  display: grid;
  gap: 0.95rem;
  margin-block: 1rem;
  padding: 1.15rem 1.25rem 1.2rem;
}

.split__bar {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.split__part {
  transition: x 0.6s ease, width 0.6s ease;
}

.split__part--circulating,
.split__item--circulating::before {
  fill: var(--text);
  background: var(--text);
}

.split__part--staked,
.split__item--staked::before {
  fill: var(--text-2);
  background: var(--text-2);
}

.split__part--unbonding,
.split__item--unbonding::before {
  fill: var(--text-3);
  background: var(--text-3);
}

.split__part--payout,
.split__item--payout::before {
  fill: var(--border-3);
  background: var(--border-3);
}

.split__part--burned,
.split__item--burned::before {
  fill: var(--edge);
  background: repeating-linear-gradient(135deg, var(--text-2) 0 2px, transparent 2px 5px);
  box-shadow: inset 0 0 0 1px var(--text-3);
}

.split__legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.8rem 1.5rem;
  padding: 0;
  list-style: none;
}

.split__item {
  display: grid;
  grid-template-columns: 0.7rem 1fr;
  column-gap: 0.55rem;
  align-items: baseline;
}

.split__item > * {
  grid-column: 2;
}

.split__item::before {
  content: "";
  grid-row: 1 / span 3;
  align-self: start;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.25rem;
  border-radius: 3px;
}

.split__label {
  color: var(--text-2);
  font-size: 0.8rem;
}

.split__item strong {
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.split__item small {
  color: var(--text-3);
  font-size: 0.78rem;
}

.d-today circle {
  fill: var(--text);
}

.d-today .d-today__halo {
  opacity: 0.18;
  animation: today-halo 2.4s ease-in-out infinite;
}

@keyframes today-halo {
  50% {
    opacity: 0.04;
  }
}

.milestones {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
  padding: 0;
  list-style: none;
}

.milestone {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 2px solid var(--border-2);
}

.milestone strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.milestone span {
  font-size: 0.9rem;
  font-weight: 550;
}

.milestone small {
  color: var(--text-3);
  font-size: 0.8rem;
}

.milestone--last {
  border-left-color: var(--text);
}

@media (max-width: 1180px) {
  .milestones {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .stats {
    gap: 0.7rem;
  }

  .stat__value {
    font-size: 1.15rem;
  }

  .milestones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
}

.market-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.92rem;
}

.market-link + .stats--next {
  margin-top: 1.4rem;
}

.stats--next {
  margin-top: 1rem;
}

.price-status {
  margin-top: 0.8rem;
  color: var(--text-3);
  font-size: 0.85rem;
}

.price-chart {
  display: grid;
  gap: 1rem;
  padding: 1.3rem 1.5rem 1.2rem;
}

.price-chart__range {
  display: inline-flex;
  justify-self: end;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.price-chart__range button {
  padding: 0.35rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.price-chart__range button[aria-pressed="true"] {
  background: var(--solid);
  color: var(--invert);
}

.price-chart__svg {
  display: block;
  width: 100%;
  height: 260px;
}

.price-chart__line {
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
}

.price-chart__area {
  fill: var(--text);
  opacity: 0.06;
}

.price-chart__empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding-inline: 1rem;
  color: var(--text-3);
  text-align: center;
}

.price-chart__svg[hidden],
.price-chart__empty[hidden] {
  display: none;
}

.price-chart__scale {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-3);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .price-chart__svg {
    height: 200px;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.steps--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.4rem;
}

.step {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 1.4rem 1.35rem 1.35rem;
}

.step__number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.3rem;
  border-radius: 50%;
  background: var(--solid);
  color: var(--invert);
  font-size: 0.9rem;
  font-weight: 700;
}

.step--links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.step__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.3rem;
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.92rem;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.step p {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.6;
}

.d-cell {
  fill: none;
  stroke: var(--border-2);
  stroke-width: 1.2;
}

.d-cell--note {
  fill: var(--text-2);
  stroke: var(--text-2);
}

.d-cell--public {
  fill: var(--surface-3);
  stroke: var(--border-3);
}

.d-cell--key {
  fill: var(--text);
  stroke: var(--text);
}

.specs {
  display: grid;
  margin: 0;
  padding: 0.3rem 1.5rem;
}

.specs__row {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 0.4rem 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--divider);
}

.specs__row:last-child {
  border-bottom: 0;
}

.specs dt {
  color: var(--text-3);
  font-size: 0.9rem;
}

.specs dd {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 550;
}

@media (max-width: 1080px) {
  .steps,
  .steps--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .specs__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .steps,
  .steps--three {
    grid-template-columns: minmax(0, 1fr);
  }
}

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem 2.2rem;
  padding: 1.8rem;
}

.calc__inputs {
  display: grid;
  align-content: start;
  gap: 1.25rem;
}

.calc__field {
  display: grid;
  gap: 0.45rem;
}

.calc__label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.calc__label output {
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.calc__box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  transition: border-color 0.15s;
}

.calc__box:focus-within {
  border-color: var(--edge);
}

.calc__box input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 0.9rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.calc__box select {
  height: 46px;
  margin-right: 0.35rem;
  padding: 0 0.5rem;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.calc__unit {
  padding-right: 0.9rem;
  color: var(--text-3);
  font-size: 0.85rem;
  font-weight: 600;
}

.calc input[type="range"] {
  width: 100%;
  margin: 0.4rem 0 0.2rem;
  accent-color: var(--text);
}

.calc__hint {
  color: var(--text-3);
  font-size: 0.8rem;
}

.calc__hint a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.calc__hint a:hover {
  color: var(--text);
}

.calc__results {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
}

.calc__usd {
  margin-top: 0.3rem;
  color: var(--text-3);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.calc__values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.4rem;
}

.calc__value {
  margin-top: 0.45rem;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.calc__list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.calc__list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.calc__list dt {
  color: var(--text-2);
  font-size: 0.9rem;
}

.calc__list dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.calc__cta {
  align-self: flex-start;
  margin-top: auto;
}

.calc__note {
  grid-column: 1 / -1;
  color: var(--text-3);
  font-size: 0.82rem;
  line-height: 1.55;
}

.requirements {
  display: grid;
  gap: 1.4rem;
  padding: 1.6rem 1.7rem;
}

.requirements__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 2rem;
  padding: 0;
  list-style: none;
}

.requirements__list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.requirements__list li::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: 0.15rem;
  width: 0.75rem;
  height: 0.4rem;
  border-bottom: 2px solid var(--text-2);
  border-left: 2px solid var(--text-2);
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .calc {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.3rem;
  }

  .requirements__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .calc__values {
    grid-template-columns: minmax(0, 1fr);
  }
}

.compare {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
}

.compare__table {
  width: 100%;
  min-width: 1000px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.compare__table th,
.compare__table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  text-align: center;
  vertical-align: middle;
}

.compare__table tbody tr:last-child > * {
  border-bottom: 0;
}

.compare__table thead th {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.compare__table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 10.5rem;
  border-right: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-align: left;
}

.compare__table .compare__tenrai {
  min-width: 14rem;
  border-right: 1px solid var(--edge);
  border-left: 1px solid var(--edge);
  background: var(--soft);
  color: var(--text);
  font-weight: 600;
}

.compare__table thead .compare__tenrai {
  border-top: 2px solid var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.compare__line {
  display: block;
}

.compare__notes {
  margin-top: 1rem;
  color: var(--text-3);
  font-size: 0.82rem;
  line-height: 1.55;
}

.compare__notes p + p {
  margin-top: 0.25rem;
}

.speed__toggle {
  min-height: 34px;
  padding: 0 1rem;
  font-size: 0.85rem;
}

.speed {
  margin: 0;
}

.speed__frame {
  display: grid;
  gap: 1.1rem;
  padding: 1.4rem 1.6rem 1.5rem;
}

.speed__head,
.speed__row {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr) 4.5rem;
  align-items: center;
  gap: 0.45rem 1.6rem;
}

.speed__head {
  color: var(--text-3);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.speed__head span:last-child {
  grid-column: 3;
  text-align: right;
}

.speed__name {
  display: grid;
  gap: 0.15rem;
}

.speed__name strong {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.speed__name span {
  color: var(--text-3);
  font-size: 0.8rem;
}

.speed__track {
  display: block;
  height: 14px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--surface-3);
}

.speed__track svg {
  display: block;
  width: 100%;
  height: 100%;
}

.speed__fill {
  fill: var(--text-3);
}

.speed__row--key .speed__fill {
  fill: var(--text);
}

.speed__row--key .speed__name strong {
  font-weight: 700;
}

.speed__count {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.speed + .text-link {
  display: inline-block;
  margin-top: 1.2rem;
}

@media (max-width: 640px) {
  .speed__frame {
    padding: 1.1rem 1.1rem 1.2rem;
  }

  .speed__head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .speed__head span:last-child {
    grid-column: 2;
  }

  .speed__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name count"
      "bar bar";
  }

  .speed__name {
    grid-area: name;
  }

  .speed__count {
    grid-area: count;
  }

  .speed__track {
    grid-area: bar;
  }
}

.paper-tool {
  margin-top: 2.4rem;
}

.paper-tool .layout {
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
  gap: 2.75rem 1.5rem;
  align-items: start;
}

.paper-tool .side,
.paper-tool .part {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.paper-tool .section-title {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin: 0;
}

.paper-tool .section-title > .muted {
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.78rem;
}

.paper-tool .card {
  gap: 0;
  padding: 1.25rem;
}

.paper-tool .card:hover {
  border-color: var(--border);
}

.paper-tool .form {
  gap: 1.05rem;
}

.paper-tool .field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.paper-tool .field > label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}

.paper-tool .field-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0.9rem;
}

.paper-tool .input,
.paper-tool .select select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 0.85rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  font: inherit;
  font-size: 0.88rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.paper-tool textarea.input {
  height: auto;
  padding: 0.7rem 0.85rem;
  line-height: 1.6;
  resize: vertical;
}

.paper-tool .mono {
  font-family: var(--mono);
  font-variant-ligatures: none;
}

.paper-tool .input.mono {
  font-size: 0.82rem;
}

.paper-tool .input::placeholder {
  color: var(--text-3);
}

.paper-tool .input:hover,
.paper-tool .select select:hover {
  border-color: var(--border-3);
}

.paper-tool .input:focus,
.paper-tool .select select:focus {
  border-color: var(--edge);
  box-shadow: var(--ring);
  outline: none;
}

.paper-tool .select {
  position: relative;
  display: block;
}

.paper-tool .select select {
  padding-right: 2.2rem;
  appearance: none;
  cursor: pointer;
}

.paper-tool .select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 7px;
  height: 7px;
  margin-top: -6px;
  border-right: 1.6px solid var(--text-2);
  border-bottom: 1.6px solid var(--text-2);
  transform: rotate(45deg);
  pointer-events: none;
}

.paper-tool .select option {
  color: var(--text);
  background: var(--surface-2);
}

.paper-tool .segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
  padding: 0.3rem;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 12px;
}

.paper-tool .segmented label {
  position: relative;
  cursor: pointer;
}

.paper-tool .segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.paper-tool .segmented span {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}

.paper-tool .segmented input:checked + span {
  color: var(--text);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--edge);
}

.paper-tool .segmented input:focus-visible + span {
  outline: 2px solid var(--solid);
  outline-offset: 2px;
}

.paper-tool .check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-2);
  font-size: 0.86rem;
  cursor: pointer;
}

.paper-tool .check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--text);
}

.paper-tool #passphrase-fields > label + .input,
.paper-tool #passphrase-fields > .input + label {
  margin-top: 0.15rem;
}

.paper-tool .hint {
  color: var(--text-3);
  font-size: 0.78rem;
  line-height: 1.45;
}

.paper-tool .form-error {
  color: var(--no);
  font-size: 0.82rem;
}

.paper-tool .form-error:empty,
.paper-tool .hint:empty {
  display: none;
}

.paper-tool .button {
  border-color: var(--solid);
  font-weight: 650;
}

.paper-tool .button:hover:not(:disabled) {
  border-color: var(--solid-hover);
}

.paper-tool .button.ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border-3);
}

.paper-tool .button.ghost:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--edge);
}

.paper-tool .button.danger:hover:not(:disabled) {
  color: var(--no);
  border-color: var(--no-edge);
  background: var(--no-soft);
}

.paper-tool .button:disabled {
  opacity: 0.45;
  cursor: default;
}

.paper-tool .button:disabled:hover {
  background: var(--solid);
}

.paper-tool .button.ghost:disabled:hover {
  background: transparent;
}

.paper-tool .preview {
  align-items: center;
  padding: 1.5rem;
}

.paper-tool .sheet {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 44rem;
  aspect-ratio: 210 / 297;
  background: var(--sheet);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  box-shadow: var(--sheet-shadow);
  overflow: hidden;
}

.paper-tool .sheet__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.paper-tool .sheet__empty {
  padding: 2rem;
  color: var(--text-3);
  font-size: 0.9rem;
  text-align: center;
}

.paper-tool .actions {
  gap: 0.5rem;
  margin-top: 0;
}

.paper-tool .facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 1.5rem;
}

.paper-tool .facts dt,
.paper-tool .facts dd {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--divider);
}

.paper-tool .facts dt {
  padding-top: 0.9rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}

.paper-tool .facts dd {
  color: var(--text);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.paper-tool .facts dt:last-of-type,
.paper-tool .facts dd:last-of-type {
  border-bottom: 0;
}

.print-sheet {
  display: none;
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  body:has(> .print-sheet[src]) {
    display: block;
    min-height: 0;
    background: #ffffff;
  }

  body:has(> .print-sheet[src]) > :not(.print-sheet) {
    display: none !important;
  }

  .print-sheet[src] {
    display: block;
    width: 210mm;
    height: 297mm;
    max-inline-size: none;
  }
}

@media (max-width: 1080px) {
  .paper-tool .layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .paper-tool {
    margin-top: 1.6rem;
  }

  .paper-tool .layout,
  .paper-tool .side {
    row-gap: 2.1rem;
  }

  .paper-tool .card {
    padding: 1rem;
  }

  .paper-tool .preview {
    padding: 0.9rem;
  }

  .paper-tool .actions .button {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .paper-tool .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .paper-tool .facts dt {
    padding-bottom: 0.1rem;
    border-bottom: 0;
  }
}

@media (max-width: 440px) {
  .paper-tool .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
