/* Billet's three pages (privacy, terms, support) — the site's own design, plus the four things
 * site.css has no rule for.
 *
 * site.css is LINKED by these pages, not edited: it is shared with the home page, the product pages,
 * VeasDei, Tokyo Barber Shop and SlotFlow, so a rule added there could move a live page. What this
 * file adds is only:
 *   1. the app icon + title row (the site has an `.eyebrow` for product pages, not an app icon);
 *   2. the Privacy | Terms | Support switch (the site has no tabs);
 *   3. the Khmer note's face and its no-mid-word-break rule;
 *   4. nothing else — the header, the breadcrumb, the body type, the readable column and the footer
 *      all come from site.css, so these pages move with the home page when it changes.
 *
 * THE COLUMN: site.css's own `.prose` (max-width 42em). Measured on the live /veasdei/ page at 1440 px:
 * 674 px wide, Inter 17 px, 9.28 px per character — 73 characters to the line. That is the "~70
 * characters" the pages want, from the site's own rule, so no width is overridden here.
 */

/* Khmer, from the site's own font files: site.css ships Inter only. Kantumruy Pro is the face the
 * home page's Khmer switch uses (km.css), so the note matches the rest of the site. */
@font-face {
  font-family: 'Kantumruy Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/kantumruy-400-khmer.woff2) format('woff2');
  unicode-range: U+1780-17FF;
}
@font-face {
  font-family: 'Kantumruy Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/kantumruy-600-khmer.woff2) format('woff2');
  unicode-range: U+1780-17FF;
}

/* 1 · the app icon beside the page title, with the app's name and the date under it */
.lm-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 26px;
}
.lm-app {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--card);
}
.lm-title h1 {
  margin: 0 0 6px;
}
.lm-title .sub {
  margin: 0;
  /* at 393 px the date line would otherwise leave a bare "2026" on its own line */
  text-wrap: pretty;
}
/* the word "Billet" in the page's own date line, made to read as the app's name */
.lm-app-name {
  color: var(--ink);
  font-weight: 600;
}

/* 2 · Privacy | Terms | Support — one pill holding three tabs, the current one raised */
.lm-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  width: fit-content;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
}
.lm-tab {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.lm-tab:hover {
  color: var(--accent);
}
.lm-tab[aria-current] {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}

/* 3 · the Khmer note.
 *
 * `word-break: keep-all` alone is NOT enough: measured on this very page, Chrome applies it to CJK, not
 * to Khmer, and the note still broke inside ខាងក្រោម at desktop width. So every word also sits in its own
 * inline-block (`<span class="lm-w">`), which cannot break inside, and the U+200B between those spans is
 * the only break opportunity left. Nothing is added to the text: the marks are zero-width and the spans
 * wrap the page's own characters. */
.km {
  font-family: 'Kantumruy Pro', 'Inter', system-ui, sans-serif;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
  margin: 0 0 1.6rem;
}
.km .lm-w {
  display: inline-block;
}
