@charset "UTF-8";
/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  color-scheme: light dark;
  /* Neutrals: warm-leaning stone greys, so the red sits on them without
     the clash a cool grey would give it. */
  --bg: #fafaf9;
  --card: #ffffff;
  --ink: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  /* --accent, --accent-soft and --accent-ink come from _themes.scss. */
  --radius: 10px;
  --gap: .75rem;
  /* Anything interactive is at least this tall, for thumbs. */
  --tap: 2.75rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a09;
    --card: #1c1917;
    --ink: #fafaf9;
    --muted: #a1a1aa;
    --line: #292524;
  }
}
/* ==========================================================================
   Themes

   A theme is a named set of tokens, one set per colour scheme. Each emits
   [data-theme="<key>"], which base.html.twig puts on <html>; the default also
   claims :root. The keys must match app.themes in config/services.yaml.

   Today a theme sets only the accent, but a set may hold any token in
   _tokens.scss — a theme that also changes --bg, --card, --ink, --line and
   --muted needs no change here, only more entries.

   Every pair is held to WCAG AA (4.5:1): --accent as text on --bg and --card,
   --accent-ink on --accent, and --accent on --accent-soft (the active badge
   option). --accent-ink cannot be a fixed white: a dark scheme's accent is
   light, where white falls to ~2.8:1.
   ========================================================================== */
:root, [data-theme=red] {
  --accent: #dc2626;
  --accent-soft: #fff6f6;
  --accent-ink: #ffffff;
}

[data-theme=blue] {
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --accent-ink: #ffffff;
}

[data-theme=green] {
  --accent: #304c3c;
  --accent-soft: #f0f4f2;
  --accent-ink: #ffffff;
}

[data-theme=orange] {
  --accent: #c2410c;
  --accent-soft: #fff7ed;
  --accent-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root, [data-theme=red] {
    --accent: #f87171;
    --accent-soft: #2d1414;
    --accent-ink: #1c1917;
  }
  [data-theme=blue] {
    --accent: #60a5fa;
    --accent-soft: #0f1e36;
    --accent-ink: #0c0a09;
  }
  [data-theme=green] {
    --accent: #7cab91;
    --accent-soft: #18251e;
    --accent-ink: #0c0a09;
  }
  [data-theme=orange] {
    --accent: #fb923c;
    --accent-soft: #2e1a0b;
    --accent-ink: #0c0a09;
  }
}
/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: clamp(1rem, 4vw, 2rem) clamp(0.75rem, 3vw, 1rem) 4rem;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Long words (URLs, big numbers) must never widen the page. */
  overflow-wrap: break-word;
}

main {
  max-width: 72rem;
  margin-inline: auto;
}

h1 {
  font-size: clamp(1.45rem, 5.5vw, 1.8rem);
  margin: 0 0 0.3rem;
  letter-spacing: -0.02em;
}

.lede {
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 46rem;
}

/* Labels a column whose content is purely visual, for screen readers. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==========================================================================
   Site head — the robot and "klod.ch", then the site menu, on every page
   ========================================================================== */
/* Outside <main>, like the tab menu, so it re-applies the page width. The
   site menu sits right after the brand, not pushed to the far edge. */
.site-head {
  max-width: 72rem;
  margin: 0 auto 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 0.25rem;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav__link:hover {
  color: var(--ink);
}

.site-nav__link.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.site-nav__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Theme and language, at the right end of the head. On a phone, where they
   may wrap below the brand, their dropdowns open at the full width of the
   head (it is their containing block) rather than of their own small group. */
.site-head {
  position: relative;
}

.site-head .site-head__badges {
  position: static;
  margin-left: auto;
}

@media (min-width: 34rem) {
  .site-head {
    position: static;
  }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: var(--tap);
  color: var(--ink);
  text-decoration: none;
}

.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Capitals by CSS only: the text stays "klod.ch", the domain as written,
   for the page title, search and screen readers. Capitals want a little
   air where lowercase wanted tightening. */
.brand__name {
  font-size: 1.35rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* The logo draws with these three: the hard hat and the eyes take the
   theme's accent; the head is steel, a shade darker in dark mode so it does
   not glare; the outlines, visor and stripes stay dark in both schemes. */
.logo {
  --logo-accent: var(--accent);
  --logo-metal: #d6d3d1;
  --logo-dark: #1c1917;
  flex: none;
  /* Large enough for the screwdriver and the sleeve patch to read. */
  width: 3.5rem;
  height: 3.5rem;
}

@media (prefers-color-scheme: dark) {
  .logo {
    --logo-metal: #a8a29e;
  }
}
/* The menu lives in base.html.twig, outside <main>, so it carries main's
   own width rather than inheriting it.

   It holds the tabs and the badges. wrap-reverse stacks overflow lines
   upwards, so whenever the two do not fit on one row — always on a phone —
   the badges move above the tabs and the active tab still meets the rule.
   The cross axis is reversed with it: flex-start is the bottom edge. */
.menu {
  max-width: 72rem;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  gap: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Tabs — full-width targets on phones, natural width from tablet up
   ========================================================================== */
/* On a phone the tabs fill the row, each as wide as its label asks rather
   than an equal share: "Feuille de triche" is twice "Vitesse", and equal
   shares broke it onto three lines. */
.tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: auto;
  gap: 0.25rem;
  flex: 1 0 100%;
  align-self: flex-start;
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.3rem 0.6rem;
  text-align: center;
  line-height: 1.25;
  text-wrap: balance;
  text-decoration: none;
  color: var(--muted);
  font-weight: 550;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  border-radius: 6px 6px 0 0;
}

.tab:hover {
  color: var(--ink);
  background: var(--card);
}

.tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

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

@media (min-width: 34rem) {
  .tabs {
    justify-content: start;
    flex: 0 1 auto;
  }
  .tab {
    padding-inline: 1rem;
  }
  .menu .badges {
    margin-left: auto;
  }
  .menu {
    position: static;
  }
}
/* On a phone the scale and direction dropdowns open at the full width of
   the menu, not of their own two-badge group, as the header's do. */
.menu {
  position: relative;
}

.menu .badges {
  position: static;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.25rem) clamp(1rem, 3vw, 1.4rem);
  margin-bottom: var(--gap);
}

.card h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 1rem;
  font-weight: 600;
}

/* The calculator: the form's card and the result card. Side by side once
   both fit at $card-min, stacked below that — auto-fit, so no breakpoint.
   With no result yet the form is alone and takes the full width. */
.calc {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  margin-bottom: var(--gap);
}

.calc > * {
  min-width: 0;
}

.calc .card {
  margin-bottom: 0;
}

/* The form is a grid too, only so its card stretches to the row height and
   both cards end level. */
.calc > form {
  display: grid;
}

/* ==========================================================================
   Form grid

   minmax(min(100%, 12rem), 1fr) is the whole trick: below ~12rem of space a
   column is allowed to be the full width, so tracks collapse to one column
   instead of overflowing. No media query needed.
   ========================================================================== */
.row {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  align-items: end;
}

/* Grid and flex children default to min-width:auto, which is what let the
   long <select> labels push the layout wider than the screen. */
.row > * {
  min-width: 0;
}

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

.field label {
  font-size: 0.8rem;
  color: var(--muted);
}

input, select, button {
  font: inherit;
  /* Below 16px iOS Safari zooms the viewport on focus. */
  font-size: max(16px, 1rem);
  width: 100%;
  min-width: 0;
  min-height: var(--tap);
  padding: 0.5rem 0.7rem;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

select {
  max-width: 100%;
}

input:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

button {
  font-weight: 600;
  cursor: pointer;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

/* ==========================================================================
   Input with a unit suffix
   ========================================================================== */
.suffix {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.suffix input {
  flex: 1 1 auto;
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* The unit picker sits flush against the input, sharing its border. */
.suffix select {
  flex: 0 0 auto;
  width: auto;
  padding-inline: 0.5rem;
  color: var(--muted);
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* ==========================================================================
   Badges — the scale and direction, beside the tabs

   Each is a <details>: the <summary> is the badge, the list is its dropdown.
   Opening and closing is the browser's own, so this works with no JavaScript.
   The shared name="menu-badge" makes them exclusive, so opening one closes the
   other. Picking an option is a link, which reloads and so closes it too.
   ========================================================================== */
.badges {
  /* On a phone the dropdowns are positioned against the whole badge block
     (see .badge__menu), so it is their containing block. */
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-width: 0;
}

.badge {
  min-width: 0;
}

.badge__face {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-height: calc(var(--tap) - 0.5rem);
  /* Three badges have to share a 390px phone on one row, so they start
     tight and loosen from tablet up. */
  padding: 0.2rem 0.5rem 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.85rem;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

/* Hide the disclosure triangle; the chevron below replaces it. */
.badge__face::-webkit-details-marker {
  display: none;
}

.badge__face::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin: -0.2rem 0.1rem 0 0.1rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  color: var(--muted);
  transition: transform 0.15s;
}

.badge[open] > .badge__face::after {
  transform: translateY(0.2rem) rotate(-135deg);
}

.badge__face:hover,
.badge[open] > .badge__face {
  border-color: var(--accent);
}

.badge__face:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* On a phone the two badges only fit on one row without their labels, so the
   labels are hidden there — visually only, screen readers still get them. */
.badge__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.badge__value {
  font-weight: 650;
}

/* On a phone the badges may wrap onto two rows, and a dropdown anchored to
   its own badge would then run off the screen. So below $bp-wide each one
   opens at the full width of the badge block, just beneath it; from tablet up
   it sits under its own badge. */
.badge__menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.badge__opt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.05rem;
  min-height: var(--tap);
  padding: 0.35rem 0.75rem;
  border-radius: 7px;
  color: var(--ink);
  text-decoration: none;
}

.badge__opt:hover {
  background: var(--bg);
}

.badge__opt.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

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

.badge__opt-main {
  font-weight: 650;
}

.badge__opt-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

/* A theme's colour, painted by the theme itself: each swatch carries its own
   data-theme, so var(--accent) here is that theme's accent. */
.swatch {
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.badge__opt--theme {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
}

/* On a phone the theme badge shows its swatch alone, so four badges still
   share one row; the name stays for screen readers. */
.badge__value--theme {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 34rem) {
  .badge {
    position: relative;
  }
  .badge__menu {
    right: auto;
    width: max-content;
    min-width: 100%;
  }
  /* The last badge sits at the right edge of the row, so its dropdown opens
     leftwards to stay on screen. */
  .badge:last-child .badge__menu {
    left: auto;
    right: 0;
  }
  .badges {
    position: static;
    gap: 0.4rem;
  }
  .badge__face {
    gap: 0.45rem;
    padding-inline: 0.75rem 0.6rem;
    font-size: 0.9rem;
  }
  .badge__label,
  .badge__value--theme {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
}
/* ==========================================================================
   Results
   ========================================================================== */
.error {
  color: var(--accent);
  font-size: 0.8rem;
  margin: 0.35rem 0 0;
}

.headline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: clamp(1.9rem, 9vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.15;
}

/* Styled as a control, not as text — it needs to look changeable. */
.headline__unit {
  width: auto;
  min-width: 4.5rem;
  font-size: clamp(1rem, 4vw, 1.2rem);
  font-weight: 500;
  color: var(--muted);
}

.from {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.4rem 0 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  margin-top: 0.9rem;
}

td {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  color: var(--muted);
  padding-right: 0.75rem;
}

td:last-child {
  text-align: right;
  white-space: nowrap;
}

.note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 2rem 0 0;
  max-width: 46rem;
}

/* ==========================================================================
   Error pages — 404 and 400 share this layout (error/_page.html.twig)
   ========================================================================== */
/* Centred under the robot, which is the page's picture. */
.error-page {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-top: clamp(0.5rem, 4vw, 2rem);
}

.error-page .lede {
  margin-inline: auto;
}

/* The same inline robot as the header, sized up: the SVG scales cleanly. */
.error-page__robot .logo {
  width: clamp(10rem, 45vw, 16rem);
  height: auto;
}

.error-page__code {
  margin: 0;
  font-size: clamp(3.5rem, 18vw, 6rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}

/* A link dressed as the site's button: it leaves the page, so it is not a
   <button>. */
.error-page__back {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.5rem 1.1rem;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.error-page__back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   Projects — the home page's cards
   ========================================================================== */
.projects__list {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
  margin-bottom: 0;
}

/* Not the cards' small uppercase label: here the title is the content. */
.card h2.project__title {
  margin: 0;
  font-size: 1.15rem;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 700;
}

.project__text {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

/* A link dressed as the site's button: it leaves the page. */
.project__open {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.5rem 1.1rem;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

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

/* ==========================================================================
   Reference sheet

   A printable table of prototype dimensions. The point of the page is the
   "Barre 1:1" column: bars sized in real millimetres, so a sheet printed at
   100% can be laid against a cut part. Everything here is therefore built to
   survive the print stylesheet below.
   ========================================================================== */
.ref {
  /* Swiss postbox yellow. Page-local: two icons need it and nothing else
     on the site does. */
  --post: #f1c40f;
}

.ref__head {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  align-items: end;
  margin-bottom: 1.25rem;
}

.ref__head > * {
  min-width: 0;
}

.ref__head .lede {
  margin-bottom: 0;
}

/* The conversion itself, stated once at the top of the sheet. */
.ref__rule {
  margin: 0;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
}

.ref__rule b {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: 700;
}

.ref__rule span {
  font-size: 0.8rem;
  opacity: 0.85;
}

.ref__lead {
  margin: 1.25rem 0;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--card);
  color: var(--muted);
  font-size: 0.85rem;
}

.ref__section {
  margin-bottom: 1.75rem;
  break-inside: avoid;
}

.ref__section h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.4rem;
  font-weight: 650;
}

/* The table has a floor width — below it the page scrolls this box, not
   itself. Paired with min-width:0 so the box may shrink inside the grid. */
.ref__scroll {
  overflow-x: auto;
  min-width: 0;
}

/* Fixed layout, so every section's table has the same columns rather than
   each sizing its own to its content. The label column takes what is left. */
.ref table {
  width: 100%;
  table-layout: fixed;
  /* The fixed columns, plus 10rem for the labels. */
  min-width: calc(38.75rem + var(--bar-col, 40mm) + 1.2rem);
  margin: 0;
  background: var(--card);
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.ref table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.4rem 0.6rem;
  border-bottom: 2px solid var(--ink);
  background: var(--accent-soft);
}

/* Qualified past `td:last-child` in _results.scss, which right-aligns. */
.ref table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.ref table tr:last-child td {
  border-bottom: 0;
}

.ref__ico {
  padding-right: 0 !important;
}

.ref__ico svg {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--ink);
}

.ref__real {
  white-space: nowrap;
  color: var(--muted);
}

.ref__model {
  white-space: nowrap;
  font-weight: 600;
}

/* --bar-col is the longest bar on the sheet (set by the controller), plus the
   cell padding. */
.ref__col-ico {
  width: 2.75rem;
}

.ref__col-figure {
  width: 13rem;
}

.ref__col-bar {
  width: calc(var(--bar-col, 40mm) + 1.2rem);
}

.ref__bar {
  height: 3mm;
  background: var(--accent);
  border-inline: 1px solid var(--ink);
}

/* Sub-millimetre parts get a hairline: a 3 mm tall bar 0.2 mm wide reads as
   a dot rather than a length. No end borders either — two 1px borders are
   wider than the bar, and border-box would print it that much too long. */
.ref__bar--fine {
  height: 1.2mm;
  margin: 0.9mm 0;
  border-inline: 0;
}

/* In place of a bar too long for the printed sheet. */
.ref__off {
  color: var(--muted);
  font-size: 0.75rem;
  font-style: italic;
}

.ref__tip {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.5rem 0 0;
}

/* ==========================================================================
   Print — the whole reason the bars exist
   ========================================================================== */
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  body {
    background: #fff;
    padding: 0;
    font-size: 11px;
  }
  .ref {
    max-width: none;
  }
  /* Screen-only chrome. */
  .site-head,
  .menu,
  .ref__lead {
    display: none;
  }
  .ref__section {
    margin-bottom: 0.9rem;
  }
  /* Nothing may be wider than the 186 mm between the margins: the browser
     would shrink the whole sheet to fit, and every bar would print short. */
  .ref table {
    min-width: 0;
  }
  .ref__col-ico {
    width: 9mm;
  }
  .ref__col-figure {
    width: 32mm;
  }
  .ref__col-bar {
    width: calc(var(--bar-col, 40mm) + 4mm);
  }
  /* At O the bar column alone takes 100 mm (.ref--long-bars, over 80 mm). The icons go and the figures
     may wrap, so the columns still fit — and still line up. */
  .ref--long-bars .ref__col-ico {
    width: 0;
  }
  .ref--long-bars th:first-child,
  .ref--long-bars .ref__ico {
    padding: 0 !important;
  }
  .ref--long-bars .ref__ico svg {
    display: none;
  }
  .ref--long-bars .ref__col-figure {
    width: 26mm;
  }
  .ref--long-bars .ref__real,
  .ref--long-bars .ref__model {
    white-space: normal;
  }
  .ref table td {
    padding: 0.15rem 0.45rem;
  }
  .ref__ico svg {
    width: 1.3rem;
    height: 1.3rem;
  }
  /* Browsers drop backgrounds by default, which would take the bars with
     them — and an unprinted bar is an unusable sheet. */
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/*# sourceMappingURL=app-7d1043473d.output.css.map */
