/*
 * ynotpdf.com — layout and type.
 *
 * Colours come ONLY from the four theme files in themes/, which are copied from the app by
 * tools/sync-themes.mjs and use the app's own token names. There is no colour literal in this
 * file, and nothing translucent: no alpha, no opacity below 1, no backdrop-filter.
 * tools/check.mjs enforces all of that, and measures every colour pair this file uses.
 *
 * How a theme is chosen: see the <link> elements in index.html and the note in theme.js.
 */

:root {
  /* The app's font stack (tokens.css --font-ui): nothing is downloaded. */
  --font-ui: system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Graphite's values; every theme file sets these again. */
  --fw-body: 400;
  --fw-heading: 600;
  --border-width: 1px;

  /* Shape, from the app's tokens.css. */
  --radius: 4px;
  --radius-lg: 8px;
  --focus-width: 2px;
  --focus-offset: 2px;
  /* Elevation is a solid offset border, never a blurred or translucent shadow. */
  --elevation: 0 0 0 var(--border-width) var(--border-strong), 3px 3px 0 0 var(--shadow);

  --wrap: 70rem;
  --measure: 42rem;
}

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

html {
  /*
   * 90% of the visitor's own text size setting (Tony, 2026-09-30: at 100% zoom the text looked a
   * size too big; 90% was right). Everything is in rem, so the whole site scales together, and a
   * visitor who has set larger text in their browser still gets it — 90% of their choice.
   */
  font-size: 90%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-app);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 1.125rem;
  font-weight: var(--fw-body);
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-weight: var(--fw-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

p,
ul,
dl {
  margin: 0 0 1em;
}

img {
  max-width: 100%;
  height: auto;
}

/* Links are told apart by their underline, not by colour. */
a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 4px;
}

/*
 * Focus: the app's two solid rings (tokens.css) — --focus outside on the surface, and
 * --focus-contrast inside against the control itself. Never removed.
 */
:focus-visible {
  outline: var(--focus-width) solid var(--focus);
  outline-offset: var(--focus-offset);
  box-shadow: 0 0 0 var(--focus-width) var(--focus-contrast);
}

/*
 * Selected text uses the selected-row pair, not the app's accent pair: black on Graphite's blue
 * accent is 6.70:1, under the 7:1 this site holds Graphite's text to.
 */
::selection {
  background: var(--bg-selected);
  color: var(--fg);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---- Skip link ---------------------------------------------------------------------------- */

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100vh;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--bg-panel);
  color: var(--fg);
  border: var(--border-width) solid var(--border-strong);
  border-radius: var(--radius);
}

.skip:focus {
  top: 1rem;
}

/* ---- Top bar, like the app's ribbon strip -------------------------------------------------- */

.topbar {
  background: var(--bg-ribbon);
  border-bottom: var(--border-width) solid var(--border);
  display: flex;
  align-items: flex-start;
}

/*
 * The bar stays in place while the page scrolls under it (Tony, 2026-09-30) — but only where there
 * is room. On a phone, or at high zoom, it wraps to two lines and would cover much of a small
 * screen, so there it scrolls away as before. It is opaque (--bg-ribbon), never see-through.
 * scroll-padding keeps links to #sections, and keyboard focus, from landing underneath it.
 */
@media (min-width: 48rem) and (min-height: 32rem) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 5;
  }

  html {
    scroll-padding-top: 6rem;
  }
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

/* The centred column keeps the logo and the nav; the picker is its flex sibling, at the window's
 * inline-end edge (MSG 166, Tony). flex:1 lets the column shrink so the picker never overlaps. */
.wrap.topbar-inner {
  flex: 1 1 auto;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.375rem;
  font-weight: var(--fw-heading);
  text-decoration: none;
}

.brand img {
  width: 3rem;
  height: 3rem;
}

.topnav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The topnav stays at the end of the centred column (inline-end, so right in left-to-right pages
 * and left in right-to-left ones). The picker is no longer part of this group: MSG 166 moved it to
 * the top right of the window itself — a flex child of .topbar, outside the centred column — with
 * the usual 1rem gutter; logical properties mirror it in right-to-left pages. Its top margin lines
 * the 2.75rem button up with the 3rem brand mark in the 0.625rem-padded row. */
.topnav {
  margin-inline-start: auto;
}

.langpick {
  position: relative;
  flex: none;
  margin-block-start: 0.75rem;
  margin-inline: 1rem;
}

.langpick[hidden] {
  display: none;
}

.langpick-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.125rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-input);
  color: var(--fg);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  cursor: pointer;
}

.langpick-button:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.langpick-button svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}

.langpick-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.375rem);
  z-index: 6;
  width: min(20rem, calc(100vw - 2rem));
  padding: 0.75rem;
  background: var(--bg-panel);
  border: var(--border-width) solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation);
}

.langpick-panel[hidden],
.langpick-none[hidden],
.langpick-list li[hidden] {
  display: none;
}

.langpick-label {
  margin: 0 0 0.375rem;
  font-weight: var(--fw-heading);
}

.langpick-search {
  display: block;
  width: 100%;
  margin: 0 0 0.5rem;
  padding: 0.5rem 0.625rem;
  background: var(--bg-input);
  color: var(--fg);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  font: inherit;
}

.langpick-list {
  max-height: 18rem;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.langpick-list a {
  display: block;
  min-height: 2.25rem;
  padding: 0.4375rem 0.625rem;
  border-radius: var(--radius);
}

.langpick-list a:hover {
  background: var(--bg-hover);
}

.langpick-list a[aria-current='true'] {
  background: var(--bg-selected);
  font-weight: var(--fw-heading);
}

.langpick-none {
  margin: 0.5rem 0 0;
  color: var(--fg-muted);
}

/* The borrowed page: /<code>/ before that language's pages are translated. */
.fallback {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--bg-panel);
  color: var(--fg);
  border-bottom: 2px solid var(--border-strong);
}

/* ---- Hero ---------------------------------------------------------------------------------- */

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

.hero-icon {
  width: 8rem;
  height: 8rem;
  flex: none;
}

.hero-text {
  flex: 1 1 20rem;
  max-width: var(--measure);
}

.lead {
  font-size: 1.375rem;
}

/* A status is a word and an icon, never a colour alone. */
.status {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 0;
  padding: 0.625rem 1rem;
  background: var(--bg-panel);
  color: var(--fg);
  border: var(--border-width) solid var(--border-strong);
  border-radius: var(--radius-lg);
}

.status svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.05rem;
  color: var(--info);
}

/* ---- Sections ------------------------------------------------------------------------------ */

.section {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  border-top: var(--border-width) solid var(--border);
}

.section-intro {
  max-width: var(--measure);
  color: var(--fg-muted);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  padding: 0;
  list-style: none;
}

.cards > .card {
  min-width: 0;
  padding: 1rem 1.25rem 0.5rem;
}

.cards > .card > ul > li + li {
  margin-top: 0.25rem;
}

.cards > .card > ul > li {
  overflow-wrap: anywhere;
}

.card h3 {
  overflow-wrap: anywhere;
}

.card {
  background: var(--bg-panel);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem 0.5rem;
}

.card ul {
  padding-inline-start: 1.25rem;
  list-style: disc;
}

.card li + li {
  margin-top: 0.375rem;
}

.note {
  max-width: var(--measure);
  color: var(--fg-muted);
}

/* ---- Themes -------------------------------------------------------------------------------- */

.theme-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 1rem 1.5rem;
  margin: 1.5rem 0;
}

.theme-list div {
  border-inline-start: 4px solid var(--accent);
  padding-inline-start: 1rem;
}

.theme-list dt {
  font-weight: var(--fw-heading);
}

.theme-list dd {
  margin: 0.25rem 0 0;
  color: var(--fg-muted);
}

/* The switcher: a real radio group, so arrow keys, Tab and screen readers all work natively. */
.switcher {
  max-width: 48rem;
  min-inline-size: 0;
  margin: 0 0 1rem;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--bg-panel);
  border: var(--border-width) solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation);
}

.switcher legend {
  padding: 0 0.5rem;
  font-weight: var(--fw-heading);
}

.switcher-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}

.option {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  background: var(--bg-input);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.option:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

/* The chosen one is shown by its filled dot and heavier words, and by its fill. */
.option:has(input:checked) {
  background: var(--bg-selected);
  border-color: var(--border-strong);
  font-weight: var(--fw-heading);
}

.option input {
  appearance: none;
  display: grid;
  place-content: center;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  background: var(--bg-input);
  border: 2px solid var(--icon);
  border-radius: 50%;
}

.option input::before {
  content: '';
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--icon);
  transform: scale(0);
}

.option input:checked::before {
  transform: scale(1);
}

.switcher-now {
  margin: 0;
}

/* Forced colours (Windows contrast themes): hand the radios back to the system. */
@media (forced-colors: active) {
  .option input {
    appearance: auto;
  }

  .option input::before {
    display: none;
  }
}

/* ---- Accessibility list -------------------------------------------------------------------- */

.checks {
  max-width: var(--measure);
  padding-inline-start: 1.25rem;
}

.checks li + li {
  margin-top: 0.5rem;
}

/* MSG 170: the work-in-progress heading carries the clock the site uses for "coming later",
 * so the list cannot be read as part of the built list above it. */
.working-title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  overflow-wrap: anywhere;
}

.working-title svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--info);
}

/* ---- Footer -------------------------------------------------------------------------------- */

.footer {
  margin-top: 2rem;
  background: var(--bg-ribbon);
  border-top: var(--border-width) solid var(--border);
}

.footer p {
  margin: 0;
  padding: 1.25rem 0;
  color: var(--fg-muted);
}

/* A language's name in the footer and language lists never breaks across lines: narrow screens
   were splitting "Norsk bokmål" and "繁體中文" in the middle of the name. */
.footer a[hreflang],
.langpick-list a {
  white-space: nowrap;
}

/* ---- Inside control panel (MSG 280) ------------------------------------------------------- */

/* The Inside home: large buttons, one per tool. Room for more without a redesign. */
.inside-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.inside-tile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-panel);
  color: var(--fg);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  text-decoration: none;
}

.inside-tile:hover {
  background: var(--bg-hover);
  border-width: 3px;
}

.inside-tile svg {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  color: var(--accent);
}

.inside-tile-name {
  font-weight: var(--fw-heading);
  font-size: 1.375rem;
}

.inside-tile-line {
  color: var(--fg-muted);
}

/* The Inside tables (support tickets, MSG 280): a scrolling body with a sticky heading row. */
.inside-table-wrap {
  max-height: 70vh;
  overflow: auto;
  margin: 1rem 0 2rem;
  border: var(--border-width) solid var(--border-strong);
  border-radius: var(--radius-lg);
}

.inside-table {
  width: 100%;
  border-collapse: collapse;
}

.inside-table th,
.inside-table td {
  padding: 0.5rem 0.75rem;
  text-align: start;
  vertical-align: top;
  border-bottom: var(--border-width) solid var(--border);
}

.inside-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-ribbon);
  box-shadow: 0 1px 0 var(--border-strong);
}

/* A ticket number or a category name never breaks across lines. */
.inside-table tbody th {
  white-space: nowrap;
}

/* The ticket table needs the page's full width: the narrow measure squeezes six columns. */
.narrow.inside-wide {
  max-width: var(--wrap);
}

/* A status is a word and a shape, never a colour alone. */
.inside-status {
  font-weight: var(--fw-heading);
  white-space: nowrap;
}

.inside-status::before {
  content: '';
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-inline-end: 0.4rem;
  border: 2px solid currentColor;
  vertical-align: -0.04em;
}

.inside-status--open::before {
  background: var(--success);
}

.inside-status--closed::before {
  background: none;
}

/* The filters: links, each the same page with one parameter changed. */
.inside-filters {
  margin: 0 0 0.75rem;
}

.inside-filters a {
  margin-inline-end: 0.75rem;
}

.inside-filters a[aria-current='page'] {
  padding: 0.1rem 0.4rem;
  background: var(--bg-selected);
  border-radius: var(--radius);
  font-weight: var(--fw-heading);
  text-decoration: none;
}

/* Summary counts above a table: compact, still a real table for a screen reader. */
.inside-counts {
  max-width: 40rem;
  margin: 1rem 0 1.5rem;
}

.inside-counts th,
.inside-counts td {
  padding: 0.35rem 0.75rem;
}

.inside-note {
    color: var(--fg-muted);
    }

/* MSG 288: the Suggestions reply preview, the person's words and the proposal textarea. */
.replies-preview {
    border: var(--border-width) solid var(--border-strong);
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.5rem;
    }

.replies-text {
    white-space: pre-line;
    }

.replies-words {
    max-width: 34rem;
    }

.replies-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.replies-inline-form {
    display: inline;
    margin: 0;
}

.inside-table textarea {
    width: 100%;
    max-width: 42rem;
    padding: 0.5rem 0.6rem;
    font: inherit;
    color: var(--fg);
    background: var(--bg);
    border: var(--border-width) solid var(--border-strong);
    border-radius: var(--radius);
    }


/* ---- Support page (/support, rendered by the helpdesk's support.php) ----------------------- */

.narrow {
  max-width: var(--measure);
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

/* ---- What's new (/whats-new/) ------------------------------------------------------------- */

.whats-new {
  padding-top: 0;
}

.release {
  padding-block-start: 1.5rem;
  border-block-start: var(--border-width) solid var(--border);
}

.release:first-child {
  padding-block-start: 0;
  border-block-start: 0;
}

.release h2 {
  margin-block-end: 0.25rem;
  overflow-wrap: anywhere;
}

.release-date {
  margin: 0 0 0.75rem;
  color: var(--fg-muted);
}

.release-notes {
  margin: 0;
  padding-inline-start: 1.25rem;
}

.release-notes li {
  overflow-wrap: anywhere;
}

.release-notes li + li {
  margin-block-start: 0.5rem;
}

.support-form {
  margin: 1.5rem 0 1rem;
}

.field {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}

.field > label,
.field > legend {
  display: block;
  margin: 0 0 0.25rem;
  padding: 0;
  font-weight: var(--fw-heading);
}

.optional,
.hint {
  color: var(--fg-muted);
  font-weight: var(--fw-body);
}

.hint {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.support-form input[type='text'],
.support-form input[type='email'],
.support-form textarea,
.support-form input[type='file'] {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: var(--bg-input);
  color: var(--fg);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  font: inherit;
}

.support-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.support-form [aria-invalid='true'] {
  border-width: 3px;
}

/* An error is a word and an icon, never a colour alone. */
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
}

.icon-error,
.icon-done {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.05rem;
}

.icon-error {
  color: var(--danger);
}

.icon-done {
  color: var(--success);
}

.error-summary {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--bg-panel);
  border: 3px solid var(--border-strong);
  border-radius: var(--radius-lg);
}

.error-summary h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
}

.error-summary ul {
  margin: 0;
  padding-inline-start: 1.25rem;
}

.button {
  padding: 0.75rem 2rem;
  background: var(--bg-selected);
  color: var(--fg);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  font: inherit;
  font-weight: var(--fw-heading);
  cursor: pointer;
}

.button:hover {
  border-width: 3px;
}

/* Platforms: plain words in outlined boxes (no vendor logos). */
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.platforms li {
  padding: 0.375rem 0.875rem;
  background: var(--bg-panel);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  font-weight: var(--fw-heading);
}

.platforms li span {
  display: block;
  color: var(--fg-muted);
  font-weight: var(--fw-body);
  font-size: 1rem;
}

.licence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 1rem;
}

.licence-grid .card ul {
  padding-inline-start: 1.25rem;
  list-style: disc;
}

.licence-grid .card ul.platforms {
  padding-inline-start: 0;
  list-style: none;
}

a.button {
  display: inline-block;
  text-decoration: none;
}

/* A licence key shown on the account page: large, fixed-width, easy to copy. */
.licence-key {
  display: inline-block;
  font-family: ui-monospace, Consolas, Menlo, monospace;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

.button-quiet {
  background: var(--bg-panel);
}

/* MSG 285 (Tony): the beta sentence sits on the same line as the hero's Download button, as plain
 * words - no box, no button styling, not focusable; it wraps below the button on narrow screens. */
.hero-download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.25rem;
}

.hero-beta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-beta svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--info);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.5rem;
  margin: 0 0 1.25rem;
}

/* MSG 168 (Tony): a small column header directly above each button; the two choices stay
 * side by side with room, and stack (each heading over its own button) at phone width. */
.action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.action-title {
  margin: 0;
  font-size: 1rem;
  font-weight: var(--fw-heading);
}

/* MSG 284 (Tony): the download page's four platforms sit on one row whenever the window is wide
 * enough; they wrap only on narrow windows and phones. Each label stays above its button, and the
 * buttons on a row share its width. */
.download-platforms {
  margin: 0 0 1.5rem;
}

.download-platforms .action {
  flex: 1 1 12rem;
  min-width: 10rem;
}

.download-platforms .button,
.download-platforms .button-quiet {
  display: block;
  width: 100%;
  text-align: center;
}

.download-note {
  max-width: var(--measure);
  margin: 0 0 2rem;
}

/* The honeypot: out of sight and out of the tab order; people never fill it in. */
.hp {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Prices page (/pricing/) ----------------------------------------------------------------- */

.page-head {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  max-width: var(--wrap);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 1rem;
  padding: 0;
  list-style: none;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  background: var(--bg-panel);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
}

.plan ul {
  padding-inline-start: 1.25rem;
  list-style: disc;
  flex: 1;
}

.plan li + li {
  margin-top: 0.375rem;
}

.price {
  margin: 0 0 0.25rem;
}

.price .amount {
  font-size: 2.5rem;
  font-weight: var(--fw-heading);
  line-height: 1.1;
}

.price .per,
.plan-note {
  color: var(--fg-muted);
}

.availability {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.5rem 0 0.5rem;
  padding-top: 0.75rem;
  border-top: var(--border-width) solid var(--border);
}

.availability svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--info);
}

.compare {
  width: 100%;
  margin: 1.5rem 0 1rem;
  border-collapse: collapse;
}

.compare caption {
  margin-bottom: 0.5rem;
  text-align: start;
  color: var(--fg-muted);
}

.compare th,
.compare td {
  padding: 0.625rem 0.75rem;
  text-align: start;
  vertical-align: top;
  border-bottom: var(--border-width) solid var(--border);
}

.compare thead th {
  background: var(--bg-ribbon);
  border-bottom: 2px solid var(--border-strong);
}

.compare tbody th {
  font-weight: var(--fw-body);
}

/* A table mark is a word and an icon, never a colour alone. */
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: var(--fw-heading);
}

.mark svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}

/* A cell holding two marks (e.g. included on one platform, coming on others) stacks them. */
td .mark + .mark {
  margin-top: 0.375rem;
}

td .mark {
  display: flex;
}

.mark-yes svg {
  color: var(--success);
}

.mark-no svg {
  color: var(--icon);
}

.mark-later svg {
  color: var(--info);
}

.terms {
  flex: 1;
  margin: 0.5rem 0 0.75rem;
}

.terms div + div {
  margin-top: 0.625rem;
}

.terms dt {
  font-weight: var(--fw-heading);
}

.terms dd {
  margin: 0;
}

.faq {
  max-width: var(--measure);
}

.faq h3 {
  margin-top: 1.5rem;
}

@media (max-width: 40rem) {
  .compare th,
  .compare td {
    padding: 0.5rem 0.375rem;
  }
}

/* The narrowest phones: the mark's icon sits above its word, so the table fits without scrolling. */
@media (max-width: 24rem) {
  .compare {
    font-size: 1rem;
  }

  .mark {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
  }
}

/* MSG 202: a topbar link. This stylesheet is public, so it names no address of the pages it
 * styles (deploy/inside/ explains them; Claude's review, 11 Oct 2026). */
.inside-link {
  flex: none;
  margin-inline-start: 0.75rem;
  border: var(--border-width) solid var(--border-strong);
  border-radius: var(--radius);
  padding-block: 0.25rem;
  padding-inline: 0.75rem;
  font-weight: var(--fw-heading);
  text-decoration: none;
}

.inside-link:hover {
  border-color: var(--accent);
}

/* ---- MSG 202: the update-feed page ----------------------------------------------------------- */

.updates-group {
  margin-block-start: 2.75rem;
}

.updates-note {
  color: var(--fg-muted);
}

.updates-row {
  border-inline-start: 4px solid var(--accent);
  margin-block: 1.5rem;
  padding-inline-start: 1rem;
}

.updates-files {
  margin-block: 0.5rem;
  padding-inline-start: 1.25rem;
}

.updates-files li {
  overflow-wrap: anywhere;
}

/* ---- MSG 202: the hub page ------------------------------------------------------------------- */

.inside-group {
  margin-block-start: 2.75rem;
}

.inside-where {
  color: var(--fg-muted);
}

.inside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.inside-list a {
  font-size: 1.3125rem;
  font-weight: var(--fw-heading);
}

.inside-list .inside-line,
.inside-list .inside-what {
  display: block;
  color: var(--fg-muted);
  font-size: 1.125rem;
  font-weight: var(--fw-body);
}

.inside-list .inside-what {
  color: var(--fg);
  font-weight: var(--fw-heading);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

/* The 35 home pages: two columns when the screen has room. */
@media (min-width: 44rem) {
  .inside-list--homes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- MSG 195: the counter page -------------------------------------------------------------- */

.visits-note {
  color: var(--fg-muted);
}

/* MSG 209: five columns of words cannot fit a narrow screen - the wrapper scrolls sideways
 * instead, so the table never overflows the page and no language name or number is broken. */
.visits-scroll {
  overflow-x: auto;
}

.visits-table {
  border-collapse: collapse;
  margin: 0 0 2rem;
  font-size: 1.25rem;
}

.visits-table th,
.visits-table td {
  border: var(--border-width) solid var(--border-strong);
  padding-block: 0.5rem;
  padding-inline: 0.75rem;
  text-align: start;
  vertical-align: top;
}

.visits-table tbody th {
  font-weight: var(--fw-body);
}

.visits-metric {
  display: block;
  white-space: nowrap;
}

/* ---- 404 ----------------------------------------------------------------------------------- */

.notfound {
  padding-top: 3rem;
  padding-bottom: 3rem;
  max-width: var(--measure);
}

/* ---- Narrow screens and high zoom ---------------------------------------------------------- */

@media (max-width: 40rem) {
  h1 {
    font-size: 2.25rem;
  }

  .lead {
    font-size: 1.25rem;
  }

  .hero-inner {
    padding-top: 2rem;
  }

  .hero-icon {
    width: 6rem;
    height: 6rem;
  }
}
