/* Teal Lemur components: the Paper room direction (founder pick, 2026-10-17).
   Built only from tokens in tokens.css. Each family has a page in
   components/<family>.html showing its variants and states.

   Phones are below 768px wide; every family states its phone behaviour next
   to its desktop rules. The teal accent appears only for the selected state,
   the primary action and the focus ring. */

/* =================================================================== base */

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

body {
  margin: 0;
  background: var(--color-ground);
  color: var(--color-ink);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

:focus-visible,
.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Text helpers */
.text-display {
  font-family: var(--font-display);
  font-weight: 450;
  letter-spacing: -0.012em;
  font-optical-sizing: auto;
}

.text-mono { font-family: var(--font-mono); font-size: 12px; }
.text-num { font-variant-numeric: tabular-nums; }
.text-soft { color: var(--color-ink-soft); }
.text-faint { color: var(--color-ink-faint); }

/* Viewport helpers: show a piece only on desktop, or only on phones. */
@media (min-width: 768px) { .phone-only { display: none !important; } }
@media (max-width: 767px) { .desktop-only { display: none !important; } }

/* Page container (preview, hub) */
.container { max-width: 1440px; margin: 0 auto; padding: 0 56px; }

@media (max-width: 767px) {
  .container { padding: 0 16px; }
}

/* ======================================================= mark and lockup */

/* The mark: a teal rounded square with two amber eyes and ink pupils, set a
   little above centre so it reads as a face (founder pick L3, 2026-10-18).
   Inline it on the 32 grid and colour it with the part classes, never with
   colour literals:

   <svg class="mark" viewBox="0 0 32 32" aria-hidden="true">
     <rect class="mark__tile" width="32" height="32" rx="8"/>
     <circle class="mark__eye" cx="9.8" cy="14.5" r="5.4"/>
     <circle class="mark__eye" cx="22.2" cy="14.5" r="5.4"/>
     <circle class="mark__pupil" cx="9.8" cy="14.5" r="2.4"/>
     <circle class="mark__pupil" cx="22.2" cy="14.5" r="2.4"/>
   </svg>

   The one-colour mark (assets/teallemur-mark-mono.svg) has no part classes,
   so it takes the text colour. Amber is for the mark only. */
.mark { display: block; flex: none; fill: currentColor; }
.mark__tile { fill: var(--color-mark-tile); }
.mark__eye { fill: var(--color-mark-eye); }
.mark__pupil { fill: var(--color-mark-pupil); }

/* In the lockup the mark is a square 0.88 of the type size, standing on the
   wordmark's baseline and rising a little above the capitals; the gap is
   0.36 of the type size. */
.lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 0.36em;
  color: var(--color-ink);
  text-decoration: none;
  font-size: 21px;
  line-height: 1;
}

.lockup .mark { width: 0.88em; height: 0.88em; margin-bottom: -0.11em; }

/* "Teal Lemur" is two words: the name never breaks onto two lines. */
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
  line-height: 0.8;
  white-space: nowrap;
}

/* On phones, keep only the mark, a 28 px square (the board, focus view and
   preview, where the product name needs the room). The link stays a 44 px
   tap target without moving anything around it. */
@media (max-width: 767px) {
  .lockup--mark-on-phone { position: relative; }
  .lockup--mark-on-phone .wordmark { display: none; }
  .lockup--mark-on-phone .mark { width: 28px; height: 28px; margin-bottom: 0; }
  .lockup--mark-on-phone::after { content: ""; position: absolute; inset: -8px; }
}

/* ================================================================= icons */

.icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================================== top bar */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 60px;
  padding: 0 24px 0 22px;
  background: var(--color-ground);
  border-bottom: 1px solid var(--color-rule);
}

/* Three columns with the size switcher centred (board, focus view). */
.top-bar--centered { display: grid; grid-template-columns: 1fr auto 1fr; }

.top-bar__start { display: flex; align-items: center; gap: 18px; min-width: 0; }
.top-bar__end { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.top-bar__spacer { flex: 1; }
.top-bar__divider { width: 1px; height: 22px; flex: none; background: var(--color-rule); }

.top-bar__product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 22px;
  padding-left: 18px;
  border-left: 1px solid var(--color-rule);
  white-space: nowrap;
}

.top-bar__product strong { font-weight: 600; font-size: 14px; }
.top-bar__product span { overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: var(--color-ink-faint); }
.top-bar__meta { font-size: 13px; color: var(--color-ink-faint); white-space: nowrap; }

/* Breadcrumb and state stepper (focus view) */
.crumb { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 14px; color: var(--color-ink-soft); white-space: nowrap; }
.crumb b { overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--color-ink); }
.crumb__sep { color: var(--color-rule-strong); }

.stepper { display: flex; align-items: center; gap: 2px; }
.stepper__count { padding: 0 8px; font-size: 13px; color: var(--color-ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Focus view: Close on the far left, tighter groups. */
.top-bar--focus { gap: 16px; padding-left: 14px; }
.top-bar--focus .top-bar__start { gap: 14px; }
.top-bar--focus .top-bar__end { gap: 6px; }
.top-bar--focus .stepper { margin-left: 6px; }
.top-bar__close { gap: 8px; padding-left: 10px; }

/* In the app: another page frames the viewer under its own bar, which
   already shows the name, so the viewer's bar leaves out the lockup and sits
   slimmer. Works on the board's bar and on plain page bars. */
.top-bar--in-app { gap: 16px; height: 52px; padding-left: 20px; }
.top-bar--in-app .top-bar__start { gap: 14px; }
.top-bar--in-app .top-bar__product:first-child { padding-left: 0; border-left: 0; }

@media (max-width: 767px) {
  .top-bar { gap: 10px; height: 56px; padding: 0 12px 0 16px; }
  .top-bar--centered { display: flex; }
  .top-bar__start { gap: 12px; }
  .top-bar__end { gap: 4px; }
  .top-bar__product { gap: 8px; padding-left: 12px; }
  .stepper__count { padding: 0 6px 0 4px; }

  /* Focus view: Close becomes an icon, the stepper moves to the right. */
  .top-bar--focus { gap: 6px; padding-left: 8px; }
  .top-bar--focus .top-bar__start { flex: 1; gap: 4px; }
  .top-bar--focus .stepper { margin-left: auto; }
  .top-bar__close { width: 38px; padding: 0; }

  /* Board: the size switcher drops to a second row, full width. */
  .top-bar--board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "start end" "center center";
    height: auto;
    padding-bottom: 12px;
    row-gap: 0;
  }

  .top-bar--board .top-bar__start { grid-area: start; height: 56px; }
  .top-bar--board .top-bar__end { grid-area: end; }
  .top-bar--board .top-bar__center { grid-area: center; }

  /* In the app: a 48 px first row. Buttons keep a 44 px tap target past
     their 38 px edge, and the sizes keep 44 px of height to tap. */
  .top-bar--in-app { height: 48px; }
  .top-bar--in-app.top-bar--board { height: auto; padding-bottom: 10px; }
  .top-bar--in-app.top-bar--board .top-bar__start { height: 48px; }
  .top-bar--in-app .top-bar__end { gap: 8px; }
  .top-bar--in-app .button,
  .top-bar--in-app .switcher button { position: relative; }
  .top-bar--in-app .button::after { content: ""; position: absolute; inset: -4px; }
  .top-bar--in-app .switcher button::after { content: ""; position: absolute; inset: -5px 0; }
}

/* Bottom bar: holds the size switcher in the focus view on phones. */
.bottom-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 14px;
  background: var(--color-ground);
  border-top: 1px solid var(--color-rule);
}

@media (max-width: 767px) {
  .bottom-bar--fixed { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; }
}

/* ========================================================= size switcher */

.switcher {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-control);
}

.switcher button {
  height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-inner);
  background: transparent;
  color: var(--color-ink-soft);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.switcher button[aria-pressed="true"] {
  background: var(--color-accent-tint);
  color: var(--color-accent-strong);
  font-weight: 600;
}

.switcher button:disabled { color: var(--color-rule-strong); cursor: default; }

/* Small: the side by side / overlay toggle in the preview. */
.switcher--small button { height: 24px; padding: 0 10px; font-size: 12.5px; }

/* Fill: equal segments across the width (phones). */
.switcher--fill { display: flex; width: 100%; }
.switcher--fill button { flex: 1; min-width: 0; padding: 0 6px; }

@media (max-width: 767px) {
  .top-bar--board .switcher { display: flex; width: 100%; }
  .top-bar--board .switcher button,
  .switcher--fill button { flex: 1; height: 34px; padding: 0 6px; font-size: 14px; }
}

/* ========================================================== search field */

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 248px;
  height: 34px;
  padding: 0 7px 0 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-control);
  color: var(--color-ink-faint);
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-ink);
  font-size: 13.5px;
}

.search-field input::placeholder { color: var(--color-ink-faint); }
.search-field:focus-within,
.search-field.is-focus { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.search-field__count { flex: none; font-size: 12px; color: var(--color-ink-faint); font-variant-numeric: tabular-nums; }
.search-field--fill { width: 100%; }

@media (max-width: 767px) {
  .search-field { height: 40px; }
  .search-field input { font-size: 16px; }
}

/* ============================================================== key caps */

.kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule-strong);
  border-bottom-width: 2px;
  border-radius: var(--radius-inner);
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1;
}

.kbd .icon { width: 14px; height: 14px; stroke-width: 1.6; }
.kbd--large { min-width: 30px; height: 28px; font-size: 13px; }
.kbd--small { min-width: 0; height: 20px; font-size: 10.5px; color: var(--color-ink-faint); }

/* =============================================================== buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-control);
  color: var(--color-ink);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

.button--quiet { background: transparent; border-color: transparent; color: var(--color-ink-soft); }
.button--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
.button--icon { width: 34px; padding: 0; }
.button--small { height: 28px; padding: 0 10px; font-size: 12.5px; }
.button--small.button--icon { width: 28px; padding: 0; }
/* Large: the website only, for its few main actions. */
.button--large { height: 46px; padding: 0 20px; font-size: 15px; }
/* Icon on phones: a labelled button that keeps only its icon below 768px.
   Put the words in a .desktop-only span and an aria-label on the button. */

.button:disabled,
.button.is-disabled { color: var(--color-rule-strong); cursor: default; }

.button[aria-pressed="true"] {
  background: var(--color-accent-tint);
  border-color: color-mix(in srgb, var(--color-accent) 45%, transparent);
  color: var(--color-accent-strong);
}

.button__count { font-weight: 400; color: var(--color-ink-faint); font-variant-numeric: tabular-nums; }

@media (max-width: 767px) {
  /* Bigger tap targets; the small size stays for dense rows. */
  .button { height: 38px; }
  .button--icon,
  .button--icon-on-phone { width: 38px; padding: 0; }
  .button--small { height: 32px; }
  .button--small.button--icon { width: 32px; }
  .button--large { height: 48px; padding: 0 18px; }
}

/* ========================================================= tags and hashes */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-pill);
  color: var(--color-ink-soft);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.tag .icon { width: 13px; height: 13px; }
/* Large: the website only, where a tag stands in a large button's place,
   such as the hosted plan's Coming soon. */
.tag--large { height: 32px; gap: 7px; padding: 0 13px; font-size: 14px; }
.tag--large .icon { width: 15px; height: 15px; }

.sha {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-ink-soft);
}

/* ========================================================== sidebar tree */

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  padding: 20px 12px 16px;
  background: var(--color-ground);
  border-right: 1px solid var(--color-rule);
}

.sidebar__head { display: flex; align-items: center; justify-content: space-between; min-height: 28px; padding: 0 6px 12px 10px; }
.sidebar__head h2 { font-size: 13px; font-weight: 600; }
.sidebar__head h2 span { margin-left: 6px; font-weight: 400; color: var(--color-ink-faint); }

.tree { display: flex; flex-direction: column; gap: 1px; }

.tree-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 30px;
  padding: 0 10px 0 6px;
  border: 0;
  border-radius: var(--radius-inner);
  background: transparent;
  color: var(--color-ink);
  font-size: 13.5px;
  text-align: left;
  text-decoration: none;
}

.tree-row .icon { width: 14px; height: 14px; color: var(--color-ink-faint); }
.tree-row__count { margin-left: auto; font-size: 12px; color: var(--color-ink-faint); font-variant-numeric: tabular-nums; }
.tree-row--flow { font-weight: 500; }
.tree-row--screen { padding-left: 24px; }
.tree-row--state { height: 28px; padding-left: 46px; color: var(--color-ink-soft); font-size: 13px; }
.tree-row--state::before { content: ""; width: 5px; height: 5px; margin-right: 4px; flex: none; border-radius: var(--radius-pill); background: var(--color-rule-strong); }
.tree-row--quiet { color: var(--color-ink-soft); font-weight: 400; }

.tree-row.is-hover { background: color-mix(in srgb, var(--color-ink) 5%, transparent); }
.tree-row.is-selected { background: var(--color-accent-tint); color: var(--color-accent-strong); font-weight: 600; }
.tree-row.is-selected::before { background: var(--color-accent); }

.tree-sep { height: 1px; margin: 14px 8px; background: var(--color-rule); }

.sidebar__foot {
  margin-top: auto;
  padding: 14px 10px 0;
  border-top: 1px solid var(--color-rule);
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-ink-faint);
}

.sidebar__foot .sha { font-size: 11.5px; }

@media (max-width: 767px) {
  .sidebar { padding: 14px 12px 18px; }
  .sidebar__head { padding: 0 0 10px 10px; }
  .sidebar__head h2 { font-size: 15px; }
  .tree-row { height: 36px; font-size: 15px; }
  .tree-row--state { height: 34px; font-size: 14.5px; }
  .tree-row__count { font-size: 13px; }

  /* Drawer: the board's sidebar slides in from the left, behind the
     "Screens" button in the top bar. */
  .sidebar--drawer {
    position: fixed;
    z-index: 40;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(320px, 86vw);
    border-right: 0;
    border-radius: 0 var(--radius-panel) var(--radius-panel) 0;
    box-shadow: var(--shadow-raised);
    transform: translateX(-104%);
    visibility: hidden;
  }

  .sidebar--drawer.is-open { transform: none; visibility: visible; }
}

.drawer-scrim { display: none; }

@media (max-width: 767px) {
  .drawer-scrim.is-open { position: fixed; z-index: 35; inset: 0; display: block; background: var(--color-scrim); }
}

/* ======================================================= section heading */

.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 450;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.section-head__meta { font-size: 13px; color: var(--color-ink-soft); }
.section-head__aside { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--color-ink-faint); }
/* The section's one button, on the right, such as Manage in Stripe. */
.section-head__action { flex: none; align-self: center; margin-left: auto; }

@media (max-width: 767px) {
  .section-head { flex-wrap: wrap; gap: 4px 10px; margin-bottom: 16px; }
  .section-head h2 { font-size: 26px; }
  .section-head__aside { flex-basis: 100%; margin-left: 0; }
  .section-head__action { flex-basis: 100%; margin: 10px 0 0; }
}

/* ================================================================ frames */

.frame { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; }

.frame__shot {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1440 / 900;
  overflow: hidden;
  background: var(--color-surface);
  border-radius: var(--radius-frame);
  box-shadow: 0 0 0 1px var(--color-frame-edge), var(--shadow-frame);
}

.frame__shot--phone { aspect-ratio: 390 / 844; }

.frame__shot.is-selected {
  box-shadow: 0 0 0 1px var(--color-frame-edge), 0 0 0 4px var(--color-ground), 0 0 0 6px var(--color-accent), var(--shadow-frame);
}

.frame__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.frame__label {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--color-ink-soft);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.frame__label b { font-weight: 500; color: var(--color-ink); }
.frame__label i { font-style: normal; color: var(--color-ink-faint); }

.copy-link,
.download-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--color-ink-soft);
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--color-rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.copy-link .icon,
.download-link .icon { width: 13px; height: 13px; }
.copy-link.is-copied { color: var(--color-ink); text-decoration: none; }

/* A frame whose page names a ready file: Download PNG, then Copy link. */
.frame__links { display: inline-flex; flex: none; align-items: center; gap: 16px; }

/* Card: a frame on paper with its caption on top (added screens). */
.frame--card {
  padding: 18px 20px 20px;
  background: var(--color-ground);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
}

.frame--card .frame__caption { order: -1; margin-bottom: 4px; }

/* Grid of frames on the wall */
.frame-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 28px; }
.frame-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

@media (max-width: 767px) {
  .frame-grid,
  .frame-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .frame--card { padding: 14px 14px 16px; }
  .copy-link,
  .download-link { padding: 6px 0; font-size: 13px; }
}

/* ============================================================= PR banner */

.pr-banner { padding: 40px 0 34px; border-bottom: 1px solid var(--color-rule); }
.pr-banner__layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }

.pr-banner__eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; color: var(--color-ink-faint); }
.pr-banner__eyebrow .icon { width: 15px; height: 15px; }

.pr-banner__title {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.022em;
}

.pr-banner__note { margin-top: 14px; font-size: 13.5px; color: var(--color-ink-soft); }

.commits { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 13.5px; color: var(--color-ink-soft); }
.commits__arrow { width: 14px; height: 14px; color: var(--color-ink-faint); }

.commit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  height: 30px;
  padding: 0 11px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-control);
  white-space: nowrap;
}

.commit b { font-size: 12.5px; font-weight: 600; color: var(--color-ink); }
.commit .sha { color: var(--color-ink); }
.commit__branch { overflow: hidden; text-overflow: ellipsis; font-family: var(--font-mono); font-size: 12px; color: var(--color-ink-faint); }

/* Change counts, linking to each section */
.change-summary { display: flex; border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-surface); }

.change-summary a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 112px;
  padding: 12px 18px 13px;
  color: var(--color-ink-soft);
  font-size: 12.5px;
  text-decoration: none;
}

.change-summary a + a { border-left: 1px solid var(--color-rule); }
.change-summary b { font-family: var(--font-display); font-size: 30px; font-weight: 450; line-height: 1.05; color: var(--color-ink); }

@media (max-width: 767px) {
  .pr-banner { padding: 26px 0 24px; }
  .pr-banner__layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pr-banner__title { margin-bottom: 16px; font-size: 32px; line-height: 1.1; }
  .commits { flex-direction: column; align-items: flex-start; gap: 6px; }
  .commits__arrow { margin-left: 14px; transform: rotate(90deg); }
  .change-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .change-summary a { min-width: 0; padding: 10px 10px 11px 12px; font-size: 12px; line-height: 1.3; }
  .change-summary b { font-size: 26px; }
}

/* ===================================== before/after compare and overlay */

.change {
  padding: 18px 20px 22px;
  margin-bottom: 20px;
  background: var(--color-ground);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
}

.change__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.change__head .frame__label { flex: 1; font-size: 12.5px; }

.compare-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-side { min-width: 0; }
.compare-side__label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.compare-side__label .sha { font-weight: 400; color: var(--color-ink-faint); font-size: 11.5px; }

/* Overlay: before on the left of the line, after on the right. Put the
   after sample first and the before sample second inside the frame shot;
   --reveal sets where the line sits. */
.overlay { --reveal: 54%; display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 28px; align-items: start; }
.overlay .frame__shot .s + .s { clip-path: inset(0 calc(100% - var(--reveal)) 0 0); }

.overlay__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--reveal);
  width: 2px;
  margin-left: -1px;
  background: var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-frame-edge);
}

.overlay__knob {
  position: absolute;
  top: 50%;
  left: var(--reveal);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: 0 0 0 1px var(--color-frame-edge), 0 0 0 4px color-mix(in srgb, var(--color-accent) 35%, transparent), var(--shadow-frame);
}

.overlay__knob .icon { width: 14px; height: 14px; margin: 0 -2px; }

.overlay__tag {
  position: absolute;
  top: 14px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-frame-edge);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink);
}

.overlay__tag--before { left: 14px; }
.overlay__tag--after { right: 14px; }

.overlay__notes { padding-top: 2px; font-size: 13.5px; line-height: 1.6; color: var(--color-ink-soft); }
.overlay__notes h3 { margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--color-ink); }
.overlay__notes p + h3 { margin-top: 20px; }
.overlay__notes ul { display: grid; gap: 4px; }
.overlay__notes li::before { content: "–  "; color: var(--color-ink-faint); }

/* Archived: a dimmed thumbnail with where the file went. */
.archived-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  background: var(--color-ground);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
}

.archived-row .frame__shot { opacity: 0.72; }
.archived-row__text { min-width: 0; }
.archived-row__text h3 { margin-bottom: 4px; font-size: 15px; font-weight: 600; }
.archived-row__text p { font-size: 13.5px; color: var(--color-ink-soft); }
.archived-row__text .frame__label { display: block; margin-top: 8px; }

@media (max-width: 767px) {
  .change { padding: 14px 14px 16px; margin-bottom: 16px; }
  .change__head { flex-wrap: wrap; gap: 10px 12px; margin-bottom: 14px; }
  .change__head .frame__label { flex-basis: 100%; }
  .change__head .switcher { margin-right: auto; }
  .compare-pair { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .overlay { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .overlay__knob { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .overlay__tag { top: 8px; padding: 2px 8px; font-size: 11.5px; }
  .overlay__tag--before { left: 8px; }
  .overlay__tag--after { right: 8px; }
  .archived-row { grid-template-columns: 104px minmax(0, 1fr); align-items: start; gap: 8px 14px; padding: 14px; }
  .archived-row__text .frame__label { white-space: normal; overflow-wrap: break-word; }
  .archived-row > .tag { grid-column: 2; justify-self: start; }
}

/* ========================================================== product card */

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

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
  color: inherit;
  text-decoration: none;
}

.product-card.is-focus { outline-offset: 3px; }
.product-card.is-hover { border-color: var(--color-rule-strong); }

.product-card__wall { padding: 34px 40px 36px; background: var(--color-wall); border-bottom: 1px solid var(--color-rule); }

.product-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 16px; padding: 20px 22px; }
.product-card__name { font-family: var(--font-display); font-size: 28px; font-weight: 450; line-height: 1.1; letter-spacing: -0.015em; }
.product-card__count { font-size: 14px; color: var(--color-ink-soft); text-align: right; font-variant-numeric: tabular-nums; }

.product-card__meta {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--color-rule);
  font-size: 13px;
  color: var(--color-ink-faint);
}

.product-card__open { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 500; color: var(--color-ink); white-space: nowrap; }
.product-card__open .icon { width: 14px; height: 14px; }

/* A build that failed the check: the wall shows the first problem. */
.product-card__problem {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 1440 / 900;
  padding: 0 28px;
  border: 1px dashed var(--color-rule-strong);
  border-radius: var(--radius-frame);
  color: var(--color-ink-soft);
  font-size: 13.5px;
}

.product-card__problem b { font-weight: 600; color: var(--color-ink); }
.product-card__problem code { overflow: hidden; font-family: var(--font-mono); font-size: 11.5px; color: var(--color-ink-faint); white-space: nowrap; text-overflow: ellipsis; }

/* A board being built for the first time: where the screen will hang. */
.product-card__pending {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 1440 / 900;
  padding: 0 28px;
  border: 1px dashed var(--color-rule-strong);
  border-radius: var(--radius-frame);
  color: var(--color-ink-soft);
  font-size: 13.5px;
}

.product-card__pending b { font-weight: 600; color: var(--color-ink); }
.product-card__pending code { font-family: var(--font-mono); font-size: 11.5px; color: var(--color-ink-faint); }

@media (max-width: 767px) {
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .product-card__wall { padding: 22px 26px 24px; }
  .product-card__body { padding: 16px 18px 16px; }
  .product-card__name { font-size: 26px; }
}

/* ========================================================= keyboard help */

.key-help {
  position: relative;
  width: 392px;
  max-width: 100%;
  padding: 22px 24px 18px;
  border-radius: var(--radius-panel);
  background: var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-frame-edge), var(--shadow-raised);
}

/* Anchored: a small arrow pointing at the "?" button above it. */
.key-help--anchored::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 15px;
  width: 11px;
  height: 11px;
  background: var(--color-surface);
  box-shadow: -1px -1px 0 0 var(--color-frame-edge);
  transform: rotate(45deg);
}

.key-help__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.key-help__head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 450; letter-spacing: -0.015em; line-height: 1.15; }
.key-help__head p { margin-top: 4px; font-size: 13px; color: var(--color-ink-soft); }
.key-help__foot { margin-top: 16px; font-size: 12.5px; line-height: 1.55; color: var(--color-ink-faint); }

.key-list { display: grid; }

.key-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  min-height: 42px;
  border-top: 1px solid var(--color-rule);
  font-size: 14px;
}

.key-list li:last-child { border-bottom: 1px solid var(--color-rule); }
.key-list__keys { display: flex; align-items: center; gap: 5px; }

/* ===================================================== collapsed section */

.collapsed { border-top: 1px solid var(--color-rule-strong); border-bottom: 1px solid var(--color-rule-strong); }

.collapsed > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  cursor: pointer;
  list-style: none;
}

.collapsed > summary::-webkit-details-marker { display: none; }
.collapsed > summary .icon { color: var(--color-ink-faint); }
.collapsed[open] > summary .icon { transform: rotate(90deg); }
.collapsed > summary h2 { font-family: var(--font-display); font-size: 24px; font-weight: 450; letter-spacing: -0.01em; }
.collapsed > summary h2 span { color: var(--color-ink-faint); }
.collapsed > summary p { margin-left: auto; font-size: 13.5px; color: var(--color-ink-soft); }
.collapsed__body { padding: 0 0 20px 28px; overflow-x: auto; }

/* Token changes, inside a collapsed section */
.token-table { border-collapse: collapse; font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; }
.token-table td { padding: 6px 16px 6px 0; }
.token-table__swatch { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border-radius: var(--radius-inner); box-shadow: inset 0 0 0 1px var(--color-frame-edge); }

@media (max-width: 767px) {
  .collapsed > summary { flex-wrap: wrap; gap: 2px 12px; padding: 16px 0; }
  .collapsed > summary h2 { font-size: 22px; }
  .collapsed > summary p { flex-basis: 100%; margin-left: 28px; }
  .collapsed__body { padding-left: 0; }
  .token-table { font-size: 12px; }
  .token-table td { padding-right: 10px; }
}

/* ============================================================ page footer */

.page-foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-rule);
  font-size: 13px;
  color: var(--color-ink-faint);
}

@media (max-width: 767px) {
  .page-foot { flex-direction: column; gap: 6px; }
}

/* ========================================================= overview card
   The first card in a board's Design system section. It opens the design
   system overview and shows the product's main colours and fonts, taken
   from its tokens.css. It is the size of a frame so the grid stays even,
   but it is Teal Lemur's own card: raised paper and a hairline, not a
   print. Set each chip's colour and each "Aa" font from the product's
   tokens. */

.overview-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  aspect-ratio: 1440 / 900;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-card);
  color: var(--color-ink);
  text-decoration: none;
}

.overview-card.is-hover { border-color: var(--color-ink-faint); }
.overview-card.is-focus { outline-offset: 3px; }

.overview-card__palette {
  position: relative;
  display: flex;
  margin: 12px 12px 0;
  overflow: hidden;
  border-radius: var(--radius-control);
}

.overview-card__palette::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--color-frame-edge);
}

.overview-card__palette i { flex: 1; }

.overview-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2px 16px;
  padding: 12px 16px 13px;
}

.overview-card__title { font-family: var(--font-display); font-size: 22px; font-weight: 450; line-height: 1.1; letter-spacing: -0.012em; }
.overview-card__meta { grid-column: 1; overflow: hidden; font-size: 12.5px; color: var(--color-ink-faint); white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

.overview-card__fonts {
  display: flex;
  grid-row: 1 / 3;
  grid-column: 2;
  align-items: baseline;
  gap: 10px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.01em;
}

@media (max-width: 767px) {
  .overview-card__title { font-size: 21px; }
}

/* ============================================================ option set
   Open options on the board: one exploration waiting for a pick. The
   question from its README, how long it has waited, then each option's
   frames. The dashed edge and the "Waiting for a pick" tag in the section
   heading say nothing is decided yet. */

.option-set {
  padding: 20px 22px 24px;
  background: var(--color-ground);
  border: 1px dashed var(--color-rule-strong);
  border-radius: var(--radius-card);
}

.option-set + .option-set { margin-top: 20px; }

.option-set__head { display: flex; align-items: baseline; gap: 6px 18px; margin-bottom: 20px; }
.option-set__question { font-family: var(--font-display); font-size: 24px; font-weight: 450; line-height: 1.2; letter-spacing: -0.012em; }
.option-set__meta { margin-left: auto; font-size: 13px; color: var(--color-ink-soft); white-space: nowrap; }
.option-set__meta .text-mono { color: var(--color-ink-faint); }

.option__label { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13.5px; color: var(--color-ink-soft); }
.option__label b { font-weight: 600; color: var(--color-ink); }

.option__letter {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-ink-faint);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink);
}

/* "Waiting for a pick" and other tags that sit in a section heading. */
.section-head .tag { align-self: center; }
.tag--strong { border-color: var(--color-ink-soft); color: var(--color-ink); }

@media (max-width: 767px) {
  .option-set { padding: 14px 14px 16px; }
  .option-set__head { flex-direction: column; gap: 6px; margin-bottom: 16px; }
  .option-set__question { font-size: 21px; }
  .option-set__meta { margin-left: 0; white-space: normal; }
}

/* =========================================================== review list
   Open pull requests waiting for review, each with its preview. On the hub
   home, a section that opens and closes (`.review-panel`): at most three rows
   at first, newest change first, then "Show all". On a product's board, a
   one-line strip above the first section that links to the previews.
   Waiting is said in words and with the dashed edge, never in colour: there
   is no sage here, and Preview is an outlined button, not the primary
   action. */

/* The section. data-open is "true" or "false" once the page knows the
   reader's choice; "auto" (no choice yet) means open on desktop and closed
   on phones. The heading row carries the Hide / Show button. */
.review-panel__head { margin-bottom: 22px; }
.review-panel[data-open="false"] .review-panel__head { margin-bottom: 0; }
.review-panel[data-open="false"] .review-panel__body { display: none; }

.review-panel__toggle {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 6px;
  height: 30px;
  margin-left: auto;
  padding: 0 8px 0 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  color: var(--color-ink-soft);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.review-panel__toggle:hover,
.review-panel__toggle.is-hover { background: color-mix(in srgb, var(--color-ink) 5%, transparent); color: var(--color-ink); }

.review-panel__chevron { width: 14px; height: 14px; color: var(--color-ink-faint); }
[aria-expanded="true"] > .review-panel__chevron { transform: rotate(180deg); }
[aria-expanded="true"] > .review-panel__show,
[aria-expanded="false"] > .review-panel__hide { display: none; }

/* The count the compact phone row shows instead of the heading. */
.review-panel__summary { display: none; }

/* The rows share one set of columns, so product, title, date and links
   line up from row to row. The product column is as wide as the longest
   name, up to 180 px. */
.review-list {
  display: grid;
  grid-template-columns: fit-content(180px) minmax(0, 1fr) auto auto;
  column-gap: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
}

.review-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  row-gap: 6px;
  min-height: 62px;
  padding: 12px 14px 12px 22px;
}

.review-row[hidden] { display: none; }
.review-row + .review-row { border-top: 1px solid var(--color-rule); }

.review-row__product { overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.review-row__title { min-width: 0; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.review-row__number { display: inline-block; min-width: 3.5em; margin-right: 8px; color: var(--color-ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.review-row__updated { font-size: 13px; color: var(--color-ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.review-row__actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.review-row__actions .icon { width: 14px; height: 14px; color: var(--color-ink-faint); }

/* More than three: the last row of the card opens the rest in place. */
.review-list__more { grid-column: 1 / -1; border-top: 1px solid var(--color-rule); }

.review-list__more button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  color: var(--color-ink-soft);
  font-size: 13px;
  font-weight: 500;
}

.review-list__more button:hover,
.review-list__more button.is-hover { background: color-mix(in srgb, var(--color-ink) 3%, transparent); color: var(--color-ink); }

/* Nothing waiting: one quiet line in the same card. */
.review-list__empty { grid-column: 1 / -1; padding: 18px 22px; font-size: 14px; color: var(--color-ink-soft); }

/* The board's strip: the count in a waiting tag, then each preview, on one
   line. Links that do not fit scroll sideways. */
.review-strip {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  min-width: 0;
  padding: 10px 16px 10px 12px;
  background: var(--color-ground);
  border: 1px dashed var(--color-rule-strong);
  border-radius: var(--radius-card);
}

.review-strip .tag { flex: none; }
.review-strip__list { display: flex; flex-wrap: nowrap; gap: 0 22px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.review-strip__list::-webkit-scrollbar { display: none; }
.review-strip__list li { display: flex; flex: none; max-width: 420px; }

.review-strip__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 3px 0;
  color: var(--color-ink);
  font-size: 13.5px;
  text-decoration: none;
}

.review-strip__link b { flex: none; font-weight: 400; color: var(--color-ink-faint); font-variant-numeric: tabular-nums; }
.review-strip__link span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-decoration: underline; text-decoration-color: var(--color-rule-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.review-strip__link .icon { flex: none; width: 13px; height: 13px; color: var(--color-ink-faint); }
.review-strip__link:hover span,
.review-strip__link.is-hover span { text-decoration-color: var(--color-ink-soft); }

@media (max-width: 767px) {
  /* Closed until the reader opens it, as one compact row: the count and
     Show. The heading stays for screen readers; the row says the same. */
  .review-panel[data-open="auto"] .review-panel__body { display: none; }
  .review-panel__head { margin-bottom: 8px; }
  .review-panel[data-open="auto"] .review-panel__head { margin-bottom: 0; }
  .review-panel__head h2,
  .review-panel__head .section-head__meta {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .review-panel__toggle {
    flex: 1 1 100%;
    height: 48px;
    margin: 0;
    padding: 0 12px 0 14px;
    background: var(--color-surface);
    border-color: var(--color-rule);
    border-radius: var(--radius-card);
    color: var(--color-ink-soft);
    font-size: 14px;
  }

  .review-panel__summary { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; color: var(--color-ink); font-weight: 600; }
  .review-panel__summary .icon { width: 15px; height: 15px; color: var(--color-ink-soft); }

  .review-list { display: block; }
  .review-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; min-height: 0; padding: 14px 14px 14px 16px; }
  .review-row__product { grid-row: 1; font-size: 13px; }
  .review-row__updated { grid-row: 1; grid-column: 2; font-size: 12.5px; }
  .review-row__title { grid-column: 1 / -1; font-size: 15px; }
  .review-row__number { min-width: 0; }
  .review-row__actions { grid-column: 1 / -1; justify-content: flex-start; gap: 8px; margin-top: 8px; }
  .review-row__actions .button { flex: 1; }
  .review-row__actions .button--quiet { border-color: var(--color-rule); }
  .review-list__more button { height: 46px; font-size: 14px; }
  .review-list__empty { padding: 16px; }

  /* Still one line: the tag, then the links, which scroll sideways and fade
     at the edge. */
  .review-strip { gap: 12px; padding: 7px 0 7px 10px; }
  .review-strip__list { padding-right: 24px; mask-image: linear-gradient(to right, var(--color-ink) calc(100% - 28px), transparent); }
  .review-strip__list li { max-width: 240px; }
  .review-strip__link { padding: 8px 0; font-size: 14px; }
}

/* ========================================================== token group
   The design system overview lists tokens in groups: the group's name and
   count on the left, its tokens on the right. On phones the name sits
   above. Used for every kind of token: colours, fonts, sizes, shapes and
   the linked pages. */

.token-group {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  padding: 26px 0 32px;
  border-top: 1px solid var(--color-rule);
}

.token-group__head h3 { font-size: 15px; font-weight: 600; line-height: 1.35; }
.token-group__head h3 span { margin-left: 6px; font-weight: 400; color: var(--color-ink-faint); font-variant-numeric: tabular-nums; }
.token-group__head p { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--color-ink-soft); }
.token-group__head code { font-family: var(--font-mono); font-size: 11.5px; overflow-wrap: anywhere; }

@media (max-width: 767px) {
  .token-group { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px 0 26px; }
}

/* ================================================================ swatch
   One colour token: a chip, the token's name and value, and what it is
   for when its name or a comment says so. Text colours show "Aa" in the
   colour on the ground they sit on, with the contrast. A scale (names
   that differ only by a number) shows as one ramp. Set the chip colours,
   and the "Aa" font, from the product's tokens. */

.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }

.swatch { min-width: 0; margin: 0; }

.swatch__chip {
  display: flex;
  align-items: flex-end;
  height: 64px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-control);
  box-shadow: inset 0 0 0 1px var(--color-frame-edge);
}

.swatch__name,
.swatch__value { display: block; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; }
.swatch__name { color: var(--color-ink); overflow-wrap: anywhere; }
.swatch__value { color: var(--color-ink-faint); }
.swatch__role { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--color-ink-soft); }

/* Text colours */
.swatch__sample { font-size: 30px; line-height: 1; letter-spacing: -0.01em; }
.swatch__contrast { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 7px; margin-top: 5px; font-size: 12.5px; line-height: 1.45; color: var(--color-ink-soft); }
.swatch__contrast b { font-weight: 600; color: var(--color-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.swatch__contrast i { font-style: normal; color: var(--color-ink-faint); }

/* Below AA: the words carry it, in ink, with a short rule under them. */
.swatch__contrast--low span { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-ink-faint); text-underline-offset: 3px; }

/* Scales */
.ramp + .ramp,
.swatch-grid + .ramp { margin-top: 26px; }
.ramp__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 9px; }
.ramp__head code { font-family: var(--font-mono); font-size: 11.5px; color: var(--color-ink); }
.ramp__head span { font-size: 12.5px; color: var(--color-ink-soft); }

.ramp__steps { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 10px 3px; }
.ramp__steps li { min-width: 0; }

.ramp__chip {
  display: block;
  height: 44px;
  margin-bottom: 7px;
  border-radius: var(--radius-inner);
  box-shadow: inset 0 0 0 1px var(--color-frame-edge);
}

.ramp__steps code,
.ramp__steps span { display: block; overflow: hidden; font-family: var(--font-mono); font-size: 11px; line-height: 1.45; white-space: nowrap; text-overflow: ellipsis; }
.ramp__steps code { color: var(--color-ink); }
.ramp__steps span { color: var(--color-ink-faint); }

@media (max-width: 767px) {
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .swatch__chip { height: 56px; }
  /* Long scales wrap to five steps a row; short sets stay on one row. */
  .ramp__steps:has(> :nth-child(7)) { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: row; }
  .ramp__chip { height: 36px; }
}

/* ========================================================= type specimen
   One font family token: its first family set in itself, the token and
   the full stack, then one sample line at four sizes. Set the font from
   the product's token. */

.type-specimens { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }

.type-specimen {
  min-width: 0;
  padding: 20px 24px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
}

.type-specimen__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-rule);
}

.type-specimen__name { font-size: 34px; font-weight: 400; line-height: 1.1; color: var(--color-ink); }
.type-specimen__token { font-family: var(--font-mono); font-size: 11.5px; color: var(--color-ink); }
.type-specimen__stack { flex-basis: 100%; font-family: var(--font-mono); font-size: 11px; color: var(--color-ink-faint); overflow-wrap: anywhere; }
.type-specimen__role { flex-basis: 100%; font-size: 12.5px; color: var(--color-ink-soft); }

.type-specimen__lines { display: grid; gap: 8px; }
.type-specimen__lines li { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: baseline; gap: 10px; }
.type-specimen__lines span { font-family: var(--font-mono); font-size: 11px; color: var(--color-ink-faint); font-variant-numeric: tabular-nums; }
.type-specimen__lines p { overflow: hidden; line-height: 1.25; color: var(--color-ink); white-space: nowrap; text-overflow: ellipsis; }

@media (max-width: 767px) {
  .type-specimens { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .type-specimen { padding: 16px 16px 18px; }
  .type-specimen__name { font-size: 30px; }
}

/* ============================================================= token row
   A size token in a list: its name, value and a sample. Type sizes show
   a line at that size, line heights two lines with that leading, spacing
   a bar as long as the space. Radii and shadows show as shapes. */

.token-rows { display: grid; }

.token-row {
  display: grid;
  grid-template-columns: minmax(0, 150px) 56px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 38px;
  padding: 6px 0;
  border-top: 1px solid var(--color-rule);
}

.token-row:last-child { border-bottom: 1px solid var(--color-rule); }
.token-row__name { font-family: var(--font-mono); font-size: 11.5px; color: var(--color-ink); overflow-wrap: anywhere; }
.token-row__value { font-family: var(--font-mono); font-size: 11.5px; color: var(--color-ink-faint); font-variant-numeric: tabular-nums; }
.token-row__sample { min-width: 0; overflow: hidden; line-height: 1.2; color: var(--color-ink); white-space: nowrap; text-overflow: ellipsis; }
.token-row__sample--lines { max-width: 420px; font-size: 13.5px; white-space: normal; }

.space-bar {
  display: block;
  height: 14px;
  border-radius: var(--radius-inner);
  background: color-mix(in srgb, var(--color-ink) 16%, transparent);
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--color-ink) 45%, transparent), inset -2px 0 0 color-mix(in srgb, var(--color-ink) 45%, transparent);
}

/* Shapes: radii and shadows */
.shapes { display: flex; flex-wrap: wrap; gap: 22px 22px; }
.shape { width: 124px; min-width: 0; }

.shape__box {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 10px;
  background: color-mix(in srgb, var(--color-ink) 5%, var(--color-surface));
  border: 1.5px solid color-mix(in srgb, var(--color-ink) 55%, transparent);
}

.shape--shadow { width: 136px; }
.shape--shadow .shape__box { width: 120px; height: 76px; margin: 6px 0 16px; background: var(--color-surface); border: 0; border-radius: var(--radius-card); }

.shape__name,
.shape__value { display: block; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; overflow-wrap: anywhere; }
.shape__name { color: var(--color-ink); }
.shape__value { color: var(--color-ink-faint); }

@media (max-width: 767px) {
  .token-row { grid-template-columns: minmax(0, 1fr) 52px; gap: 4px 12px; padding: 8px 0 10px; }
  .token-row__sample { grid-column: 1 / -1; }
  .shapes { gap: 18px 12px; }
  .shape { width: calc(33.33% - 8px); }
  .shape--shadow { width: calc(50% - 6px); }
  .shape--shadow .shape__box { width: 100%; }
}

/* ============================================================ page index
   The product's brand and component pages, listed on the design system
   overview: a small thumbnail of each page, its title and its file. Dense
   enough for a product with forty components. */

.page-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 22px 18px; }

.page-tile { display: flex; flex-direction: column; gap: 9px; min-width: 0; color: inherit; text-decoration: none; }
.page-tile__name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.page-tile__file { display: block; margin-top: 1px; overflow: hidden; font-family: var(--font-mono); font-size: 11px; color: var(--color-ink-faint); white-space: nowrap; text-overflow: ellipsis; }
.page-tile.is-hover .page-tile__name { text-decoration: underline; text-decoration-color: var(--color-rule-strong); text-underline-offset: 3px; }

@media (max-width: 767px) {
  .page-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
}

/* ======================================================= media templates
   A media image (a profile banner, a cover, a feed image) shown in context
   on the board: inside an outline of the page it will live on, at desktop
   and phone width, with what covers it and the safe area marked, and on its
   own at its upload size (founder pick A, "Marked plan", 2026-10-25).

   An outline is drawn at the page's real CSS pixel size and scaled to its
   frame with --u. Where each shape sits is template data, in
   screens/_shared/linkedin-templates.css; this family is how the shapes and
   marks look. The image inside is the team's own file at its upload size,
   scaled to the image area. The safe area is an SVG in upload pixels, so it
   lines up at any width. Labels stay at reading size: they are notes on the
   drawing, not part of the page.

   Shapes only, in paper, ink and hairlines: nothing of the site's own
   logo, colours, type or look. Marks are ink on a paper halo; never teal. */

/* The group: the image's name, its template and a key, then the frames. */
.media-group + .media-group { margin-top: 56px; }
.media-group__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; margin-bottom: 18px; }
.media-group__head > * { grid-column: 1; }

/* Download PNG, top right, when the page names its exported file. */
.media-group__download { grid-column: 2; grid-row: 1; align-self: start; }

.media-group__title h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -0.012em;
  font-optical-sizing: auto;
}

.media-group__title p { margin-top: 4px; font-size: 13px; color: var(--color-ink-soft); }
.media-group__title code { font-family: var(--font-mono); font-size: 12px; color: var(--color-ink); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; font-size: 12.5px; color: var(--color-ink-soft); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }

.key { display: inline-block; flex: none; width: 18px; height: 12px; border-radius: var(--radius-frame); }

.key--covered,
.cover {
  background: repeating-linear-gradient(135deg, var(--mark-hatch) 0 1px, transparent 1px 6px), var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-ink-soft);
}

.key--safe { border: 1px dashed var(--mark-ink); box-shadow: 0 0 0 1px var(--mark-halo); }
.key--cut { background: repeating-linear-gradient(135deg, var(--mark-hatch) 0 1px, transparent 1px 6px), var(--color-rule); border-bottom: 1px dashed var(--mark-ink); }

/* Frames share their row's height. Wide images put the phone on the left
   and the desktop above the image on its own; tall images sit in one row.
   Each template sets its columns (--media-columns). */
.media-grid { display: grid; grid-template-columns: var(--media-columns); gap: 28px; align-items: start; }
.media-grid--wide .frame--desktop { grid-column: 2; grid-row: 1; }
.media-grid--wide .frame--phone { grid-column: 1; grid-row: 1 / span 2; }
.media-grid--wide .frame--own { grid-column: 2; grid-row: 2; }

/* The outline: a page drawn in shapes. */
.outline { position: absolute; inset: 0; overflow: hidden; background: var(--color-ground); }

.outline__shape {
  position: absolute;
  left: calc(var(--u) * var(--x));
  top: calc(var(--u) * var(--y));
  width: calc(var(--u) * var(--w));
  height: calc(var(--u) * var(--h));
}

.shape-nav { background: var(--color-surface); box-shadow: inset 0 -1px 0 var(--color-rule); }
.shape-card { border-radius: calc(var(--u) * var(--outline-radius-card)); background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-rule); }
.shape-card--flat { border-radius: 0; box-shadow: inset 0 1px 0 var(--color-rule); }
.shape-bar { border-radius: calc(var(--u) * var(--outline-radius-bar)); background: var(--color-rule); }
.shape-bar--strong { background: var(--color-rule-strong); }
.shape-bar--faint { background: color-mix(in srgb, var(--color-rule) 65%, transparent); }
.shape-pill,
.shape-field { border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--color-rule-strong); }
.shape-pill--primary { background: var(--color-rule-strong); box-shadow: none; }
.shape-chip { border-radius: calc(var(--u) * var(--outline-radius-control)); box-shadow: inset 0 0 0 1px var(--color-rule-strong); }
.shape-dot { border-radius: 50%; box-shadow: inset 0 0 0 1px var(--color-rule-strong); }
.shape-rule { background: var(--color-rule); }
.shape-block { background: var(--color-wall); }

/* The image area. The image fills it; a tall feed image is centred on it
   and cut above and below. */
.outline__image { overflow: hidden; container-type: inline-size; }
.outline__image--card { border-radius: calc(var(--u) * var(--outline-radius-card)) calc(var(--u) * var(--outline-radius-card)) 0 0; }
.outline__image > .media { position: absolute; inset: 0; }
.outline__image--cut > .media { inset: auto 0; top: 50%; height: auto; transform: translateY(-50%); }

/* What covers the image: opaque and hatched, named in the middle. */
.cover--photo,
.cover--icon { border-radius: 50%; }
.cover--logo { border-radius: calc(var(--u) * var(--logo-radius, var(--outline-radius-logo))); }

/* Labels on the drawing. */
.mark-label {
  position: absolute;
  z-index: 2;
  padding: 1px 5px;
  border-radius: var(--radius-inner);
  background: var(--mark-halo);
  color: var(--mark-ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 15px;
  white-space: nowrap;
  box-shadow: 0 0 0 1px var(--color-frame-edge);
}

.cover .mark-label,
.outline__cut .mark-label { left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* The safe area: a dashed ink line on a paper halo. Its name sits just
   outside its left edge, so it never covers what is inside. On a phone
   outline, and on a phone screen where outlines are small, the key names
   it instead. */
.safe-area { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.safe-area * { fill: none; vector-effect: non-scaling-stroke; }
.safe-area__halo { stroke: var(--mark-halo); stroke-width: 3; }
.safe-area__line { stroke: var(--mark-ink); stroke-width: 1; stroke-dasharray: 5 4; }
.mark-label--safe { left: var(--safe-left); top: var(--safe-top); margin: 4px 0 0 -6px; transform: translateX(-100%); }
.outline--phone .mark-label--safe { display: none; }

/* Cut off: what a feed crops shows faint and hatched beyond the image
   area, with a dashed line where the cut falls. */
.outline__cut { overflow: hidden; container-type: inline-size; }
.outline__cut > .media { position: absolute; inset: 0; opacity: 0.4; }
.outline__cut::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, var(--mark-hatch) 0 1px, transparent 1px 6px); }
.outline__cut .mark-label--top { top: calc(var(--u) * var(--cut) / 2); }
.outline__cut .mark-label--bottom { top: calc(100% - var(--u) * var(--cut) / 2); }

.crop-edge { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--mark-ink); box-shadow: 0 0 0 1px var(--mark-halo); }
.crop-edge--top { top: 0; }
.crop-edge--bottom { bottom: 0; }

@media (max-width: 767px) {
  /* One column: desktop, phone, then the image on its own. */
  .media-group + .media-group { margin-top: 40px; }
  .media-group__title h3 { font-size: 21px; }
  .media-group__head { grid-template-columns: minmax(0, 1fr); }
  .media-group__download { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 14px; }
  .media-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .media-grid--wide .frame--desktop,
  .media-grid--wide .frame--phone,
  .media-grid--wide .frame--own { grid-column: auto; grid-row: auto; }
  .legend { gap: 6px 16px; }
  .mark-label--safe { display: none; }
}

/* ================================================================= files
   The Files page: every image under design-system/assets/ (marks, icons,
   exported PNGs) as it is on the commit the board was built from, each
   with its own Download. One raised card per folder; rows fill columns of
   about 300 px, so Download always sits next to its file. Fonts are not
   listed. The board links to it with the Files card, next to the
   Overview card. */

.file-list { display: grid; gap: 14px; }

.file-group { padding: 0 20px 8px; background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-card); }

.file-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 11px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--color-rule);
}

.file-group__path { overflow: hidden; font-family: var(--font-mono); font-size: 11.5px; color: var(--color-ink-soft); white-space: nowrap; text-overflow: ellipsis; }
.file-group__count { flex: none; font-size: 12px; color: var(--color-ink-faint); font-variant-numeric: tabular-nums; }

.file-group__rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 32px; }

.file-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-width: 0; padding: 8px 0; }

/* The image itself, scaled to fit, on the wall colour so white and
   transparent parts still show. */
.file-row__thumb { display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; background: var(--color-wall); border-radius: var(--radius-inner); }
.file-row__thumb > * { max-width: 44px; max-height: 44px; }

.file-row__body { min-width: 0; }
.file-row__name { display: block; overflow: hidden; font-size: 13.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.file-row__facts { display: block; margin-top: 2px; font-size: 12px; color: var(--color-ink-faint); font-variant-numeric: tabular-nums; }

@media (max-width: 767px) {
  /* One column; Download keeps only its icon, at a full tap size. */
  .file-group { padding: 0 14px 6px; }
  .file-group__rows { grid-template-columns: minmax(0, 1fr); }
  .file-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; }
  .file-row__thumb { width: 48px; height: 48px; }
  .file-row__thumb > * { max-width: 38px; max-height: 38px; }
  .file-row .button { width: 38px; height: 38px; padding: 0; }
}

/* ============================================================ files card
   Next to the Overview card in a board's Design system section. It opens
   the Files page and shows the first few images and how many there are.
   The same size and paper as the Overview card. Left out when the product
   has no images. */

.files-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  aspect-ratio: 1440 / 900;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-card);
  color: var(--color-ink);
  text-decoration: none;
}

.files-card.is-hover { border-color: var(--color-ink-faint); }
.files-card.is-focus { outline-offset: 3px; }

.files-card__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 12px 0; min-height: 0; }
.files-card__thumb { display: grid; place-items: center; min-height: 0; overflow: hidden; background: var(--color-wall); border-radius: var(--radius-inner); }
.files-card__thumb > * { max-width: 70%; max-height: 70%; }

.files-card__body { display: grid; gap: 2px; padding: 12px 16px 13px; }
.files-card__title { font-family: var(--font-display); font-size: 22px; font-weight: 450; line-height: 1.1; letter-spacing: -0.012em; }
.files-card__meta { overflow: hidden; font-size: 12.5px; color: var(--color-ink-faint); white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

/* ============================================================= size menu
   Takes the size switcher's place when a board has more than four sizes:
   one button naming the current size, opening a list of every size. The
   current size is the selected state (tint, deep teal). A board where every
   page has its own single size (media images) shows every page at once at
   its own size, and has neither. */

.size-menu { position: relative; display: inline-flex; }

.size-menu__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px 0 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-control);
  color: var(--color-ink);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.size-menu__label { font-weight: 400; color: var(--color-ink-soft); }
.size-menu__dims { font-family: var(--font-mono); font-size: 11.5px; color: var(--color-ink-faint); }
.size-menu__button .icon { width: 14px; height: 14px; color: var(--color-ink-faint); }
.size-menu__button[aria-expanded="true"] { border-color: var(--color-ink-faint); }

.size-menu__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  z-index: 30;
  width: max-content;
  min-width: 300px;
  max-height: min(440px, 70vh);
  padding: 6px;
  overflow: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-raised);
  transform: translateX(-50%);
}

.size-menu__option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-inner);
  background: transparent;
  color: var(--color-ink);
  font-size: 13.5px;
  text-align: left;
}

.size-menu__option:hover,
.size-menu__option.is-hover { background: color-mix(in srgb, var(--color-ink) 5%, transparent); }
.size-menu__option[aria-checked="true"] { background: var(--color-accent-tint); color: var(--color-accent-strong); }
.size-menu__option .icon { width: 14px; height: 14px; }
.size-menu__option-dims { font-family: var(--font-mono); font-size: 11.5px; color: var(--color-ink-faint); font-variant-numeric: tabular-nums; }
.size-menu__option[aria-checked="true"] .size-menu__option-dims { color: inherit; }

@media (max-width: 767px) {
  /* The menu takes the board's second row; the list opens full width. */
  .size-menu { display: flex; width: 100%; }
  .size-menu__button { width: 100%; height: 38px; }
  .size-menu__button .icon { margin-left: auto; }
  .size-menu__list { left: 0; right: 0; width: auto; min-width: 0; transform: none; }
  .size-menu__option { height: 40px; }
}

/* ============================================================== app bar
   The hosted app at app.teallemur.com: the name, the workspace you are in,
   Boards and Members, and your account. It is the top bar with three app
   pieces. The name goes to the workspace's boards. On phones Boards and
   Members move to a row of their own under the bar. A board or a preview
   has the slimmer bar above its frame (.top-bar--above-frame, below). Page:
   components/app-bar.html. */

.top-bar--app { gap: 14px; }
.top-bar__workspace,
.top-bar__account { position: relative; display: flex; align-items: center; min-width: 0; }
.top-bar--app .app-nav { margin-left: 10px; }

/* The workspace you are in. Opens the workspace menu. */
.workspace-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 280px;
  height: 34px;
  padding: 0 8px 0 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.workspace-button span { overflow: hidden; text-overflow: ellipsis; }
.workspace-button .icon { width: 14px; height: 14px; color: var(--color-ink-faint); }
.workspace-button:hover,
.workspace-button.is-hover { background: color-mix(in srgb, var(--color-ink) 5%, transparent); }
.workspace-button[aria-expanded="true"] { background: var(--color-surface); border-color: var(--color-rule-strong); }

/* Boards and Members. The page you are on is the selected state. */
.app-nav { display: flex; align-items: center; gap: 2px; }

.app-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-inner);
  color: var(--color-ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.app-nav a:hover,
.app-nav a.is-hover { background: color-mix(in srgb, var(--color-ink) 5%, transparent); color: var(--color-ink); }
.app-nav a[aria-current="page"] { background: var(--color-accent-tint); color: var(--color-accent-strong); font-weight: 600; }

/* Your account: your initials. Opens the account menu. */
.account-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
}

.account-button[aria-expanded="true"] .avatar { border-color: var(--color-ink-faint); background: var(--color-surface); }

/* Initials in a circle: the account button and the member list. Ink on
   the wall colour; never a colour per person. */
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  background: var(--color-wall);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-pill);
  color: var(--color-ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.avatar .icon { width: 15px; height: 15px; }
/* An invite link that nobody has used yet: a dashed circle with a link. */
.avatar--invite { background: transparent; border: 1px dashed var(--color-rule-strong); color: var(--color-ink-faint); }

@media (max-width: 767px) {
  .top-bar--app {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-rows: 56px auto;
    grid-template-areas: "name divider workspace account" "nav nav nav nav";
    column-gap: 10px;
    height: auto;
  }

  .top-bar--app > .lockup { grid-area: name; }
  .top-bar--app > .top-bar__divider { grid-area: divider; }
  .top-bar--app > .top-bar__workspace { grid-area: workspace; }
  .top-bar--app > .top-bar__account { grid-area: account; }
  .top-bar--app > .top-bar__spacer { display: none; }

  /* Menus open full width under the bar. */
  .top-bar--app .top-bar__workspace,
  .top-bar--app .top-bar__account { position: static; }

  .top-bar--app .app-nav {
    grid-area: nav;
    gap: 4px;
    margin: 0 -12px 0 -16px;
    padding: 6px 12px 8px 16px;
    border-top: 1px solid var(--color-rule);
  }

  .top-bar--app .app-nav a { flex: 1; height: 36px; }
  .workspace-button { height: 38px; max-width: 100%; }
  .account-button { width: 38px; height: 38px; }
}

/* On a board or a preview: the app's bar above a sealed frame. The frame
   holds the tool's page with its in-app bar, and nothing inside it can
   lead out, so every way back is in this bar. The bar is slimmer than the
   standalone viewer's, with a smaller name and no teal, and its lower edge,
   the stronger hairline, is the frame's edge. One row on phones too. Page:
   components/app-bar.html, section 05. */

/* The page: the bar, then the frame filling the rest of the window. */
.frame-page { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100vh; height: 100dvh; }

.top-bar--above-frame {
  gap: 12px;
  height: 48px;
  padding: 0 20px 0 22px;
  border-bottom-color: var(--color-rule-strong);
}

.top-bar--above-frame .lockup { font-size: 17px; }
.top-bar--above-frame .top-bar__divider { height: 18px; }
.top-bar--above-frame .top-bar__account { flex: none; margin-left: auto; }

/* Where you are: the workspace, the product and, on a preview, the pull
   request. Links are soft ink; the page you are on is ink, semibold. A long
   workspace name gives up its room first, then the product; the pull
   request's number never shortens. */
.app-crumb { display: flex; align-items: center; min-width: 0; font-size: 14px; white-space: nowrap; }
.app-crumb .crumb__sep { flex: none; padding: 0 2px; }

.app-crumb__item {
  display: block;
  flex: 0 1 auto;
  min-width: 4em;
  max-width: 320px;
  height: 32px;
  padding: 0 8px;
  overflow: hidden;
  border-radius: var(--radius-inner);
  color: var(--color-ink-soft);
  font-weight: 500;
  line-height: 32px;
  text-decoration: none;
  text-overflow: ellipsis;
}

.app-crumb__item--workspace { flex-shrink: 3; max-width: 240px; }
.app-crumb__item--pr { flex: none; min-width: 0; }
a.app-crumb__item:hover,
a.app-crumb__item.is-hover { background: color-mix(in srgb, var(--color-ink) 5%, transparent); color: var(--color-ink); }
.app-crumb__item[aria-current="page"] { color: var(--color-ink); font-weight: 600; }

/* The frame: the tool's page, edge to edge under the bar, so the viewer
   gets the whole window width. It scrolls on its own, and the viewer's
   drawer and menus stay inside it. */
.app-frame { position: relative; min-height: 0; overflow: auto; overscroll-behavior: contain; contain: layout paint; background: var(--color-ground); }

@media (max-width: 767px) {
  .top-bar--above-frame { gap: 10px; height: 48px; padding: 0 12px 0 16px; }
  .top-bar--above-frame .lockup--mark-on-phone .mark { width: 24px; height: 24px; }
  .top-bar--above-frame .top-bar__account { position: static; }
  .app-crumb { flex: 1 1 auto; }
  .app-crumb__item { max-width: none; height: 44px; padding: 0 6px; line-height: 44px; }
}

/* ================================================================= menus
   A short list that opens from a button: the workspace menu and the
   account menu. The current choice is the selected state. On phones a menu
   opens full width under the top bar, with taller rows. */

.menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  width: max-content;
  min-width: 264px;
  max-width: 340px;
  padding: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-raised);
}

.menu--end { right: 0; left: auto; }

/* Who is signed in, at the top of the account menu. */
.menu__head { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; }
.menu__head b { font-size: 14px; font-weight: 600; }
.menu__head span { overflow: hidden; font-size: 13px; color: var(--color-ink-faint); text-overflow: ellipsis; white-space: nowrap; }

.menu__label { padding: 8px 10px 6px; font-size: 12.5px; font-weight: 500; color: var(--color-ink-faint); }

.menu__item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-inner);
  color: var(--color-ink);
  font-size: 14px;
  text-align: left;
  text-decoration: none;
}

.menu__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu__item .icon { width: 14px; height: 14px; }
.menu__item:hover,
.menu__item.is-hover { background: color-mix(in srgb, var(--color-ink) 5%, transparent); }
.menu__item[aria-checked="true"] { background: var(--color-accent-tint); color: var(--color-accent-strong); font-weight: 600; }
.menu__meta { font-size: 12.5px; font-weight: 400; color: var(--color-ink-faint); }
.menu__item[aria-checked="true"] .menu__meta { color: inherit; }
.menu__sep { height: 1px; margin: 6px 4px; background: var(--color-rule); }

@media (max-width: 767px) {
  .menu { top: 56px; right: 8px; left: 8px; width: auto; min-width: 0; max-width: none; }
  .menu__item { min-height: 44px; font-size: 15px; }
}

/* =============================================================== fields
   Words a person types or picks: a label above, the box, then a hint or
   an error. An error says what is wrong in ink with an icon, never in a
   colour of its own. Phones: 44 px boxes and 16 px text, so phones do not
   zoom. Page: components/fields.html. */

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field__label { font-size: 13.5px; font-weight: 600; color: var(--color-ink); }
.field__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.field__input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-control);
  color: var(--color-ink);
  font-size: 15px;
}

.field__input::placeholder { color: var(--color-ink-faint); }
.field__input:focus-visible,
.field__input.is-focus { border-color: var(--color-accent); outline: 2px solid var(--color-accent); outline-offset: 1px; }
.field__input:disabled { background: var(--color-ground); color: var(--color-ink-faint); }
/* Something to copy, such as an invite link: mono on paper, wrapped so
   all of it shows, and selected whole with one click. */
.field__value {
  padding: 10px 12px;
  background: var(--color-ground);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-control);
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  user-select: all;
}

.field__hint { font-size: 13px; line-height: 1.5; color: var(--color-ink-soft); }

.field__error { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--color-ink); }
.field__error .icon { width: 15px; height: 15px; margin-top: 1px; }
.field.is-invalid .field__input { border-color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-ink); }

/* A box with a button inside it: show the password. */
.field__box { position: relative; display: flex; }
.field__box .field__input { padding-right: 44px; }
.field__box .button { position: absolute; top: 3px; right: 3px; width: 34px; height: 34px; }

/* A choice from a short list, such as a role. The chevron is drawn over
   the box, so the native list still opens. */
.select { position: relative; display: inline-flex; min-width: 0; }
.select .field__input { appearance: none; padding-right: 34px; cursor: pointer; }
.select .icon { position: absolute; top: 50%; right: 11px; width: 14px; height: 14px; color: var(--color-ink-faint); pointer-events: none; transform: translateY(-50%); }
.select--small .field__input { height: 32px; padding: 0 30px 0 10px; font-size: 13.5px; }
.select--small .icon { right: 9px; }
.select .field__input:disabled { cursor: default; }

@media (max-width: 767px) {
  .field__input { height: 44px; font-size: 16px; }
  .field__box .button { top: 3px; width: 38px; height: 38px; }
  .select--small .field__input { height: 38px; font-size: 16px; }
}

/* One of a few, such as a plan or who pays: every choice shows at once, as
   a row with its radio, its words and, on the right, its price. The whole
   row is the label, so it is one large target. The picked one is the
   selected state: tint behind, deep teal name. Page: components/fields.html,
   section 04. */
.choice-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-list > legend { margin-bottom: 7px; padding: 0; font-size: 13.5px; font-weight: 600; color: var(--color-ink); }

.choice {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 11px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-control);
  cursor: pointer;
}

/* The real radio stays in the page for the keyboard; the dot draws it. */
.choice__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }

.choice__dot {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-rule-strong);
  border-radius: var(--radius-pill);
}

.choice__dot::after { content: ""; width: 8px; height: 8px; border-radius: var(--radius-pill); }
.choice__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.choice__name { font-size: 14.5px; font-weight: 600; color: var(--color-ink); }
.choice__hint { font-size: 13px; line-height: 1.45; color: var(--color-ink-soft); }
.choice__price { font-size: 14px; font-weight: 500; color: var(--color-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

.choice:hover,
.choice.is-hover { border-color: var(--color-ink-faint); }

.choice:has(.choice__input:checked),
.choice.is-selected { background: var(--color-accent-tint); border-color: color-mix(in srgb, var(--color-accent) 45%, transparent); }
.choice:has(.choice__input:checked) .choice__dot,
.choice.is-selected .choice__dot { border-color: var(--color-accent); }
.choice:has(.choice__input:checked) .choice__dot::after,
.choice.is-selected .choice__dot::after { background: var(--color-accent); }
.choice:has(.choice__input:checked) .choice__name,
.choice.is-selected .choice__name { color: var(--color-accent-strong); }

.choice:has(.choice__input:focus-visible),
.choice.is-focus { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.choice:has(.choice__input:disabled),
.choice.is-disabled { background: var(--color-ground); cursor: default; }
.choice:has(.choice__input:disabled) .choice__name,
.choice:has(.choice__input:disabled) .choice__price,
.choice.is-disabled .choice__name,
.choice.is-disabled .choice__price { color: var(--color-ink-faint); }

@media (max-width: 767px) {
  .choice { min-height: 60px; padding: 12px 14px; }
  .choice__name { font-size: 15.5px; }
  .choice__price { font-size: 15px; }
}

/* =============================================================== dialog
   One question over the page, on the scrim: a title, what happens, then
   the actions, the main one last. On phones it rises from the bottom,
   full width, with the main action on top. Page:
   components/dialog.html. */

.dialog-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--color-scrim);
}

.dialog {
  width: 100%;
  max-width: 480px;
  max-height: 100%;
  overflow-y: auto;
  padding: 28px 28px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-raised);
}

.dialog h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

.dialog__body { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--color-ink-soft); }
.dialog__form { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 28px; }

@media (max-width: 767px) {
  .dialog-scrim { place-items: end stretch; padding: 0; }
  .dialog { max-width: none; padding: 24px 16px 20px; border-right: 0; border-bottom: 0; border-left: 0; border-radius: var(--radius-panel) var(--radius-panel) 0 0; }
  .dialog h2 { font-size: 25px; }
  .dialog__actions { flex-direction: column-reverse; margin-top: 24px; }
  .dialog__actions .button { width: 100%; }
}

/* ========================================================== member list
   The people in a workspace, then the invite links nobody has used yet.
   Each row: who, when they joined, their role and what you can do: give
   them a plan, and, for an owner, remove them. On phones the role, the
   date and the actions move under the name. Page:
   components/member-list.html. */

.member-list { background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-card); }

.member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px 128px 196px;
  grid-template-areas: "person joined role action";
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 12px 20px;
}

.member-row + .member-row { border-top: 1px solid var(--color-rule); }

.member-row__person { display: flex; grid-area: person; align-items: center; gap: 12px; min-width: 0; }
.member-row__who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
/* A tag after the name (You, a gift you gave) keeps its words; it moves
   under the name when both don't fit, and a long name gives way first. */
.member-row__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; font-size: 14px; font-weight: 600; }
.member-row__name span { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.member-row__name .tag { flex: none; }
.member-row__email { overflow: hidden; font-size: 13px; color: var(--color-ink-faint); text-overflow: ellipsis; white-space: nowrap; }
.member-row__joined { grid-area: joined; font-size: 13px; color: var(--color-ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.member-row__role { grid-area: role; font-size: 13.5px; color: var(--color-ink-soft); }
.member-row__role .select,
.member-row__role .field__input { width: 100%; }
.member-row__action { display: flex; grid-area: action; justify-content: flex-end; gap: 4px; }

@media (max-width: 767px) {
  /* Under the name, past the initials: the date, then the role and the
     action on one line. */
  .member-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "person person" "joined joined" "role action";
    gap: 0 12px;
    padding: 14px 16px 16px;
  }

  .member-row__joined { margin: 4px 0 0 44px; }
  .member-row__role,
  .member-row__action { margin-top: 12px; }
  .member-row__role { margin-left: 44px; }
  .member-row__role .select { width: 128px; }
  /* Two actions don't fit beside the role: they take their own line. */
  .member-row:has(.member-row__action > .button + .button) { grid-template-areas: "person person" "joined joined" "role role" "action action"; }
  .member-row:has(.member-row__action > .button + .button) .member-row__action { margin-top: 6px; }
}

/* ======================================================= notices and empty
   A notice: one fact about what just happened, at the top of a page, with
   at most one link. The empty wall: where boards will hang, before there
   are any, with the one thing to do. Page: components/notices.html. */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
  font-size: 14px;
  line-height: 1.5;
}

.notice > .icon { margin-top: 2px; color: var(--color-ink-soft); }
.notice__text { flex: 1; min-width: 0; color: var(--color-ink-soft); }
.notice__text b { font-weight: 600; color: var(--color-ink); }
.notice__action { flex: none; margin: -5px -6px -5px auto; }

.empty-wall {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 360px;
  padding: 56px;
  background: var(--color-wall);
  border: 1px dashed var(--color-rule-strong);
  border-radius: var(--radius-card);
}

.empty-wall h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

.empty-wall p { max-width: 520px; margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: var(--color-ink-soft); }
.empty-wall .button { margin-top: 28px; }

@media (max-width: 767px) {
  .notice { flex-wrap: wrap; padding: 14px; }
  .notice__text { flex-basis: calc(100% - 28px); }
  .notice__action { flex: 0 0 auto; margin: 6px 0 0 28px; }
  .empty-wall { min-height: 0; padding: 32px 20px 28px; }
  .empty-wall h2 { font-size: 28px; }
  .empty-wall p { font-size: 15px; }
  .empty-wall .button { width: 100%; }
}

/* ================================================================== plan
   Your plan, on Your account: what it is, what it costs or how long is
   left, and the one thing to do. Choosing a plan puts the choices in it;
   a paid plan leads to Stripe's own pages for every change. Waiting is
   said in words with the clock, never in colour. A plan a gift pays for
   names the gift in its own row. Page: components/plan.html. */

.plan { padding: 26px 28px 24px; background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-card); }
.plan__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; }

.plan__name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

.plan__status { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--color-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan__status .icon { width: 15px; height: 15px; color: var(--color-ink-soft); }
.plan__text { max-width: 560px; margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--color-ink-soft); }
.plan .choice-list { margin-top: 22px; }
.plan__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--color-rule); }
.plan__note { font-size: 13px; line-height: 1.5; color: var(--color-ink-faint); }
/* A gift that pays for the plan, in its own row: who gave it and until
   when, and Stop this gift for a monthly one. */
.plan__gift { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--color-rule); }
.plan__gift-text { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; line-height: 1.45; color: var(--color-ink); }
.plan__gift-text .icon { color: var(--color-ink-soft); }

@media (max-width: 767px) {
  .plan { padding: 20px 16px 18px; }
  .plan__name { font-size: 25px; }
  .plan__actions .button,
  .plan__gift .button { flex: 1 1 100%; }
}

/* ================================================================== gift
   A plan someone paid for as a gift, waiting for your answer, at the top of the
   boards page and of Your account: where it came from, what it is, what it
   means for your plan, then Accept, Decline and when it lapses. A gift
   adds time to a plan, never money. Raised paper like a plan, with no
   colour of its own; the gift icon marks it, here and on Gift a plan.
   Accept is the view's one teal button. Page: components/gift.html. */

.gift { padding: 22px 24px 20px; background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-card); }
.gift__from { display: flex; align-items: center; gap: 7px; font-size: 13.5px; line-height: 1.4; color: var(--color-ink-soft); }

.gift__title {
  max-width: 760px;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

.gift__text { max-width: 640px; margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--color-ink-soft); }
.gift__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; margin-top: 20px; }
.gift__note { margin-left: 8px; font-size: 13px; line-height: 1.5; color: var(--color-ink-faint); }

@media (max-width: 767px) {
  .gift { padding: 18px 16px 16px; }
  .gift__title { font-size: 24px; }
  .gift__actions .button { flex: 1 1 0; }
  .gift__note { flex-basis: 100%; margin-left: 0; }
}

/* ============================================================ app pages
   The app's pages under the bar. A page heading with what it holds and its
   one action; and a single task on its own (create a workspace, join one,
   no access, removed): one column in the middle of the page, its words
   aligned left, with who is signed in at the foot. Page:
   components/app-page.html. */

.app-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 40px; padding: 64px 0 40px; }

.app-head h1 {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.028em;
  font-optical-sizing: auto;
}

.app-head p { max-width: 560px; margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--color-ink-soft); }
.app-head__aside { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-left: auto; }
.app-head__count { font-size: 13.5px; color: var(--color-ink-faint); font-variant-numeric: tabular-nums; }
/* A second part of a page, under the first: the invite links under the members. */
.app-section { margin-top: 56px; }
.app-foot-note { margin-top: 20px; font-size: 13.5px; color: var(--color-ink-faint); }
.app-foot-note .sha { color: var(--color-ink-soft); }
/* A page of settings (Your account, a workspace's settings): one column at
   most 720 px wide, under its heading. What deletes the thing comes last,
   apart from the rest, after a hairline. */
.app-column { max-width: 720px; }
.app-section--end { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--color-rule); }

.app-page { max-width: 560px; margin: 0 auto; padding: 104px 0 120px; }

.app-page h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.026em;
  font-optical-sizing: auto;
}

.app-page__lede { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--color-ink-soft); }
.app-page__lede b { font-weight: 600; color: var(--color-ink); }
.app-page__form { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; }
.app-page__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.app-page__form + .app-page__actions { margin-top: 28px; }
/* Choosing a plan on a single task: the choices, then the action with the
   price note beside it. */
.app-page .choice-list { margin-top: 32px; }
.app-page .choice-list + .app-page__actions { margin-top: 24px; }
.app-page__note { align-self: center; font-size: 13px; color: var(--color-ink-faint); }

.app-page__foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--color-rule); font-size: 13.5px; line-height: 1.6; color: var(--color-ink-faint); }

.app-page__foot a,
.app-head p a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-rule-strong);
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .app-head { padding: 36px 0 24px; }
  .app-head h1 { font-size: 42px; }
  .app-head__aside { flex-basis: 100%; margin-left: 0; }
  .app-head__aside .button { flex: 1 1 100%; }
  .app-section { margin-top: 44px; }
  .app-section--end { margin-top: 48px; }
  .app-section--end .button { width: 100%; }
  .app-page { padding: 48px 0 64px; }
  .app-page h1 { font-size: 36px; }
  .app-page__lede { font-size: 15.5px; }
  .app-page__actions .button { flex: 1 1 100%; }
}

/* ============================================================== sign in
   The sign-in pages, served by our shared sign-in service (Keycloak). The
   theme inherits keycloak.v2 and changes only CSS, words, fonts and the
   mark (decision 0013), so these classes describe the look the theme's CSS
   gives Keycloak's own page: the name above one card, the fields, the main
   button, then Google and GitHub. Page: components/sign-in.html. */

.auth { display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: 88px 24px 64px; }
.auth .lockup { margin-bottom: 36px; font-size: 26px; }

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 36px 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-panel);
}

.auth-card h1 {
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -0.018em;
  font-optical-sizing: auto;
}

.auth-card .notice { margin: -6px 0 22px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.auth-link { align-self: flex-start; color: var(--color-ink-soft); font-size: 13.5px; text-decoration: underline; text-decoration-color: var(--color-rule-strong); text-underline-offset: 3px; }
/* The main button and the providers fill the card; the show-password
   button stays inside its box. */
.auth-form > .button,
.auth-providers .button { width: 100%; height: 40px; font-size: 14.5px; }
.auth-form > .button { margin-top: 4px; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; font-size: 13px; color: var(--color-ink-faint); }
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--color-rule); }

.auth-providers { display: flex; flex-direction: column; gap: 10px; }

.auth-foot { margin-top: 24px; font-size: 14px; color: var(--color-ink-soft); text-align: center; }
.auth-foot a { color: var(--color-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--color-rule-strong); text-underline-offset: 3px; }

@media (max-width: 767px) {
  .auth { padding: 40px 16px 48px; }
  .auth .lockup { margin-bottom: 28px; font-size: 24px; }
  .auth-card { padding: 28px 20px 24px; }
  .auth-card h1 { margin-bottom: 22px; font-size: 30px; }
  .auth-form > .button,
  .auth-providers .button { height: 44px; font-size: 15px; }
  .auth-form__pair { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* =========================================== documentation pages
   Brand and component pages only: a numbered section per topic, and
   labelled specimens. Never used on viewer screens. */

.doc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 60px;
  padding: 0 48px;
  border-bottom: 1px solid var(--color-rule);
}

.doc-bar__meta { overflow: hidden; font-family: var(--font-mono); font-size: 12px; color: var(--color-ink-faint); white-space: nowrap; text-overflow: ellipsis; }

.doc { max-width: 1248px; margin: 0 auto; padding: 0 48px 120px; }

.doc-head { padding: 80px 0 64px; }
.doc-kicker { margin-bottom: 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--color-ink-faint); }

.doc-head h1 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.028em;
}

.doc-head p { max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--color-ink-soft); }

.doc-section {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 64px;
  padding: 64px 0 72px;
  border-top: 1px solid var(--color-rule);
}

/* Wide: the heading sits above a full-width body (wide specimens). */
.doc-section--wide { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.doc-section--wide .doc-section__head { max-width: 640px; }

.doc-section__num { display: block; margin-bottom: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--color-ink-faint); }

.doc-section__head h2 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.doc-section__head p { font-size: 14px; line-height: 1.6; color: var(--color-ink-soft); }
.doc-section__head p + p { margin-top: 10px; }

.specimens { display: grid; gap: 28px 20px; }
.specimens--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.specimens--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.specimen { min-width: 0; margin: 0; }

.specimen__stage {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 112px;
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
}

.specimen__stage--ground { background: var(--color-ground); }
.specimen__stage--wall { background: var(--color-wall); border-color: transparent; }
.specimen__stage--start { align-items: flex-start; justify-content: flex-start; }
.specimen__stage--column { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.specimen__stage--flush { display: block; min-height: 0; padding: 0; overflow: hidden; }

.specimen__label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-ink-soft);
}

.specimen__label span:last-child:not(:first-child) { flex: none; font-family: var(--font-mono); font-size: 11.5px; color: var(--color-ink-faint); white-space: nowrap; }

@media (max-width: 767px) {
  .doc-bar { height: 56px; padding: 0 16px; }
  .doc { padding: 0 16px 72px; }
  .doc-head { padding: 40px 0 36px; }
  .doc-head h1 { font-size: 44px; }
  .doc-head p { font-size: 15px; }
  .doc-section { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 40px 0 48px; }
  .doc-section__num { margin-bottom: 10px; }
  .doc-section__head h2 { margin-bottom: 10px; font-size: 28px; }
  .specimens--2,
  .specimens--3 { grid-template-columns: minmax(0, 1fr); }
  .specimen__stage { padding: 22px 18px; }
  .specimen__stage--flush { padding: 0; }
  .specimen__label { flex-direction: column; gap: 2px; }
}

/* ================================================================ website
   teallemur.com (BET-1827): the public site. The same paper room as the
   viewer: paper, ink, hairlines and type, and one filled teal button per
   view. Pictures of Teal Lemur hang on the wall like the frames on a
   board. Page: components/website.html. */

.site { position: relative; display: flex; flex-direction: column; min-height: 100vh; }
.site-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 56px; }

/* The bar: the name, the sections, Sign in. */
.site-bar { border-bottom: 1px solid var(--color-rule); }
.site-bar__inner { display: flex; align-items: center; gap: 44px; height: 68px; }
.site-bar .lockup { font-size: 22px; }
/* The name is a link home; its tap target reaches 44 px without moving it. */
.site .lockup { position: relative; }
.site .lockup::after { content: ""; position: absolute; inset: -12px -4px; }
.site-bar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }

.site-link {
  color: var(--color-ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.site-link:hover,
.site-link.is-hover {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* The opening: the one heading, what it does, the two ways in. */
.site-hero { padding: 104px 0 80px; }

.site-hero h1 {
  max-width: 900px;
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.032em;
  font-optical-sizing: auto;
}

/* The line above the heading that names what Teal Lemur is, in the words people search for. */
.site-kicker { margin-bottom: 22px; font-family: var(--font-mono); font-size: 13px; color: var(--color-ink-soft); }
.site-lede { max-width: 640px; margin-top: 28px; font-size: 18px; line-height: 1.6; color: var(--color-ink-soft); }
.site-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 40px; }
.site-note { margin-top: 16px; font-size: 13.5px; color: var(--color-ink-faint); }

/* The wall: where pictures of Teal Lemur hang, like frames on a board. */
.site-wall { padding: 72px 0 80px; background: var(--color-wall); }

.site-print { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; }

.site-print__shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 900;
  background: var(--color-surface);
  border-radius: var(--radius-frame);
  box-shadow: 0 0 0 1px var(--color-frame-edge), var(--shadow-frame);
}

.site-print__label { font-family: var(--font-mono); font-size: 11.5px; color: var(--color-ink-soft); }
.site-print__label b { font-weight: 500; color: var(--color-ink); }
/* One line under the opening picture: whose design it is. */
.site-print__credit { font-size: 13.5px; color: var(--color-ink-soft); }
.site-print__credit a { color: var(--color-ink); text-decoration-color: var(--color-rule-strong); text-underline-offset: 3px; }

/* Sections: a heading, then their content. */
.site-section { padding: 104px 0; border-top: 1px solid var(--color-rule); }
.site-section--wall { background: var(--color-wall); border-top: 0; }
.site-section__head { max-width: 660px; margin-bottom: 56px; }

.site-section__head h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.022em;
  font-optical-sizing: auto;
}

.site-section__head p { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--color-ink-soft); }

/* A feature: its words beside its picture. */
.site-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 64px; align-items: center; }
.site-feature + .site-feature,
.site-steps + .site-feature { margin-top: 88px; }

.site-feature h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 450;
  line-height: 1.12;
  letter-spacing: -0.016em;
}

/* Stacked: the words above something too wide to sit beside them. */
.site-feature--stacked { grid-template-columns: minmax(0, 1fr); gap: 28px; }

.site-feature p { max-width: 440px; margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--color-ink-soft); }
.site-feature code { font-family: var(--font-mono); font-size: 0.88em; color: var(--color-ink); }

/* Code: what check prints, and the files in a design repo. */
.site-code {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre;
}

.site-code i { font-style: normal; color: var(--color-ink-faint); }

/* Steps: three in a row, each under an ink rule. */
.site-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-step { padding-top: 20px; border-top: 1px solid var(--color-ink); }
.site-step__num { font-family: var(--font-mono); font-size: 12px; color: var(--color-ink-faint); }
.site-step h3 { margin-top: 14px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.site-step p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--color-ink-soft); }

/* Prices: the hosted plan on raised paper, the free tool on plain paper. */
.price-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }

/* Each card's head, list and button share rows, so the two cards line up. */
.price-card {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  gap: 28px;
  padding: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
}

.price-card--plain { background: transparent; }
.price-card__name { font-size: 15px; font-weight: 600; }
.price-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 10px; }

.price-card__amount {
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
  font-optical-sizing: auto;
}

.price-card__per { font-size: 15px; color: var(--color-ink-soft); }
.price-card__alt { margin-top: 10px; font-size: 15px; color: var(--color-ink-soft); }

.price-list { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; border-top: 1px solid var(--color-rule); font-size: 15px; line-height: 1.5; }
.price-list li { position: relative; padding-left: 20px; }
.price-list li::before { content: ""; position: absolute; top: 0.62em; left: 2px; width: 6px; height: 6px; background: var(--color-ink-faint); border-radius: var(--radius-pill); }
/* Centred in its row, so a tag in one card sits level with the other card's button. */
.price-card__action { display: flex; flex-wrap: wrap; align-items: center; align-self: center; gap: 10px; }

/* The foot: the name, the links, and room for the corner endorsement. */
.site-foot { margin-top: auto; padding: 56px 0 104px; border-top: 1px solid var(--color-rule); }
.site-foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.site-foot .lockup { font-size: 20px; }
.site-foot__links { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.site-foot__group { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-foot__group h2 { margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--color-ink); }

/* A short page: one message and one way back. */
.site-message { padding: 120px 0; }
.site-message h1 { font-family: var(--font-display); font-size: 64px; font-weight: 400; line-height: 1.02; letter-spacing: -0.028em; font-optical-sizing: auto; }
.site-message .site-actions { margin-top: 32px; }

/* Legal text: the privacy policy and the terms of service. A title, the date
   they last changed, then the text at most 680 px wide. The words live in
   site-teallemur-com (site/privacy.md, site/terms.md), which renders them
   into these screens; the screens show an excerpt. */
.site-legal { padding: 88px 0 104px; }
.site-legal__head { max-width: 680px; margin-bottom: 48px; }

.site-legal__head h1 {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.026em;
  font-optical-sizing: auto;
}

.site-legal__updated { margin-top: 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--color-ink-faint); }

.site-prose { max-width: 680px; font-size: 16px; line-height: 1.7; color: var(--color-ink-soft); }
.site-prose > * + * { margin-top: 16px; }

/* Each heading has an id from its words, so /terms/#liability opens it. */
.site-prose h2 {
  margin-top: 56px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  font-optical-sizing: auto;
  scroll-margin-top: 24px;
}

.site-prose h3 { margin-top: 32px; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--color-ink); scroll-margin-top: 24px; }
.site-prose h2 + *,
.site-prose h3 + * { margin-top: 12px; }
.site-prose strong { font-weight: 600; color: var(--color-ink); }

.site-prose a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-prose a:hover,
.site-prose a.is-hover { text-decoration-color: var(--color-ink); text-decoration-thickness: 2px; }
.site-prose ul { padding-left: 20px; list-style: disc; }
.site-prose li + li { margin-top: 8px; }
.site-prose li::marker { color: var(--color-ink-faint); }
.site-prose code { font-family: var(--font-mono); font-size: 0.875em; }

/* A table sits in its own box, which scrolls sideways on phones instead of the page. */
.site-prose-table { overflow-x: auto; background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-card); }
.site-prose-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.site-prose-table th { padding: 12px 16px; text-align: left; font-weight: 600; color: var(--color-ink); white-space: nowrap; border-bottom: 1px solid var(--color-rule); }
.site-prose-table td { padding: 12px 16px; vertical-align: top; }
.site-prose-table tr + tr td { border-top: 1px solid var(--color-rule); }

@media (max-width: 1023px) {
  .site-feature { gap: 40px; }
  .site-feature--stacked { gap: 28px; }
  .price-card { padding: 32px; }
}

@media (max-width: 767px) {
  .site-wrap { padding: 0 16px; }
  .site-bar__inner { flex-wrap: wrap; gap: 0 16px; height: auto; padding-top: 10px; }
  .site-bar .lockup { font-size: 20px; }
  /* The sections move to a row under the name; each link is a 44 px target. */
  .site-nav { order: 3; flex-basis: 100%; gap: 22px; overflow-x: auto; }
  .site-nav .site-link { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
  .site-hero { padding: 48px 0 44px; }
  .site-hero h1 { font-size: 46px; letter-spacing: -0.028em; }
  .site-lede { margin-top: 20px; font-size: 16px; }
  .site-kicker { margin-bottom: 16px; font-size: 12.5px; }
  .site-actions { margin-top: 28px; }
  .site-actions .button { flex: 1 1 100%; }
  .site-wall { padding: 32px 0 40px; }
  .site-section { padding: 64px 0; }
  .site-section__head { margin-bottom: 36px; }
  .site-section__head h2 { font-size: 34px; }
  .site-feature { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .site-feature + .site-feature,
  .site-steps + .site-feature { margin-top: 56px; }
  .site-feature h3 { font-size: 26px; }
  .site-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-code { padding: 16px; font-size: 12px; }
  .price-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .price-card { gap: 24px; padding: 24px 20px; }
  .price-card__amount { font-size: 56px; }
  .price-card__action .button { flex: 1 1 100%; }
  .site-foot { padding: 40px 0 96px; }
  .site-foot__links { gap: 32px 48px; }
  .site-foot__group .site-link { display: inline-flex; align-items: center; min-height: 32px; }
  .site-message { padding: 64px 0; }
  .site-message h1 { font-size: 44px; }
  .site-legal { padding: 48px 0 64px; }
  .site-legal__head { margin-bottom: 32px; }
  .site-legal__head h1 { font-size: 40px; }
  .site-prose { font-size: 15.5px; }
  .site-prose h2 { margin-top: 44px; font-size: 26px; }
  .site-prose-table table { min-width: 520px; }
}

/* =========================================================== endorsement
   The Betalgo endorsement on the website (BET-1827). The endorsement line
   and the star are copied as they are from betalgo-system-design
   components.css at 685d13b, from its "endorsement" banner to the end of its
   "star" section. Do not edit these lines here: copy them again when Betalgo
   changes them. They use Betalgo's token names, from the Betalgo block at
   the end of tokens.css. The website places the animated line with the
   corner endorsement below. Page: components/endorsement.html. */

/* ============================================================= endorsement */

/* The line that says a product comes from Betalgo: one word, then the logo
   at its small size. It goes under a product's own name or in its footer,
   and is never bigger than the product's name. */
.endorsement { align-items: baseline; color: var(--color-text-soft); display: inline-flex; font-family: var(--font-text); font-size: var(--text-small); gap: var(--space-2); line-height: 1; }
.star-ground--inverse .endorsement, .star-ground--brand .endorsement { color: var(--color-text-inverse); }

/* Animated: only the star at rest. On hover or keyboard focus the star
   turns once and "by" and "betalgo" slide out of it; on leaving, the words
   slide back in while the star turns back. The star looks the same every
   quarter turn, so it always stops as it started. Use the still line above
   wherever nothing can move: print, email, video. */
.endorsement--animated { border-radius: var(--radius-control); cursor: pointer; gap: 0; padding: var(--space-2); text-decoration: none; }
.endorsement--animated .star-lockup { gap: 0; }
.endorsement__star { transition: transform 760ms var(--motion-ease); }
.endorsement__reveal { display: grid; grid-template-columns: 0fr; transition: grid-template-columns 420ms var(--motion-ease-in); }
/* The clipping box reaches past the line so the g keeps its tail. */
.endorsement__reveal > * { margin-block: -0.3em; min-width: 0; overflow: hidden; padding-block: 0.3em; white-space: nowrap; }
.endorsement__word { display: inline-block; opacity: 0; transform: translateX(-60%); transition: opacity 240ms var(--motion-ease-in), transform 420ms var(--motion-ease-in); }
.endorsement__word--by { padding-right: var(--space-2); transform: translateX(60%); }
.endorsement__word--name { padding-left: 0.28em; }
.endorsement--animated:hover .endorsement__star, .endorsement--animated:focus-visible .endorsement__star, .endorsement--animated.is-open .endorsement__star { transform: rotate(-360deg); }
.endorsement--animated:hover .endorsement__reveal, .endorsement--animated:focus-visible .endorsement__reveal, .endorsement--animated.is-open .endorsement__reveal { grid-template-columns: 1fr; transition: grid-template-columns 600ms var(--motion-ease-out) 140ms; }
.endorsement--animated:hover .endorsement__word, .endorsement--animated:focus-visible .endorsement__word, .endorsement--animated.is-open .endorsement__word { opacity: 1; transform: none; transition: opacity 420ms var(--motion-ease-out) 220ms, transform 600ms var(--motion-ease-out) 140ms; }
.endorsement--animated:focus-visible, .endorsement--animated.is-focus { background-color: var(--color-focus); outline: none; }
/* With motion turned off the star stays still and the words fade in place. */
@media (prefers-reduced-motion: reduce) {
  .endorsement__star, .endorsement__reveal { transition-delay: 0ms; transition-duration: 1ms; }
  .endorsement__word { transform: none; transition: opacity 200ms linear; }
  .endorsement--animated:hover .endorsement__star, .endorsement--animated:focus-visible .endorsement__star, .endorsement--animated.is-open .endorsement__star { transform: none; }
  .endorsement--animated:hover .endorsement__word, .endorsement--animated:focus-visible .endorsement__word, .endorsement--animated.is-open .endorsement__word { transition: opacity 200ms linear; }
}

/* ==================================================================== star */

/* The Selbu star, inlined from assets/betalgo-star.svg or
   assets/betalgo-star-one-colour.svg. Never redrawn. */
.star { display: block; flex-shrink: 0; }

/* Grounds. Light grounds show the star as drawn. On an inverse ground the
   diagonal points turn light and the axis points turn brand tint. On the
   brand ground the whole star is light. */
.star-ground--inverse { background-color: var(--color-ground-inverse); --star-point: var(--color-brand-tint); --star-point-alt: var(--color-text-inverse); --star-seam: var(--color-ground-inverse); }
.star-ground--brand { background-color: var(--color-brand); --star-point: var(--color-text-inverse); --star-point-alt: var(--color-text-inverse); --star-seed: var(--color-text-inverse); --star-seam: var(--color-brand); }
.star-ground--inverse .label, .star-ground--brand .label { color: var(--color-brand-tint); }

/* Lockup: the star, then the name. The star stands on the baseline and
   reaches the top of the b, so it is never taller than the name. Size a
   lockup with font-size, or with the s and l sizes. */
.star-lockup { align-items: baseline; display: flex; font-size: 46px; gap: 0.28em; }
.star-lockup--s { font-size: 24px; }
.star-lockup--l { font-size: 64px; }
.star-lockup__star { height: 0.76em; margin-bottom: -0.012em; width: 0.76em; }
.star-lockup__name { color: var(--color-text); font-family: var(--font-wordmark); font-weight: 600; letter-spacing: -0.025em; line-height: 1; white-space: nowrap; }
.star-lockup--stacked { align-items: center; flex-direction: column; gap: 0.3em; }
.star-lockup--stacked .star-lockup__star { height: 1.3em; margin-bottom: 0; width: 1.3em; }
.star-ground--inverse .star-lockup__name, .star-ground--brand .star-lockup__name { color: var(--color-text-inverse); }

/* Corner endorsement (BET-1827) --------------------------------------------- */
/* Where the website shows the Betalgo endorsement: once per page, in the
   bottom right corner of .site, 16 px from its bottom and right edges, in
   the foot's empty room after the content, so it never covers a link. On a
   page shorter than the screen that is the screen's corner; on a longer page
   it is the end of the page, and it does not float. It is the page's last
   child and wraps the copied animated line:
   <div class="corner-endorsement"><a class="endorsement
   endorsement--animated" href="...">...</a></div>. The link goes to
   www.betalgo.com (design files use "#"); its words, "by betalgo", are its
   name for screen readers.
   - Colours: the star as drawn, on Teal Lemur's paper.
   - Focus: Teal Lemur's 2 px teal ring, like every link here, in place of
     Betalgo's soft fill.
   - Room: the foot keeps 64 px clear under its links for it. */
.corner-endorsement { position: absolute; right: 16px; bottom: 16px; z-index: 5; }

.corner-endorsement .endorsement--animated:focus-visible,
.corner-endorsement .endorsement--animated.is-focus { outline: 2px solid var(--color-accent); outline-offset: 2px; }
