/* Dock & Pallet: site styles for the prototype. Colors and sizes come only from tokens.css. */
@layer base, layout, parts, print;

@layer base {
  *, *::before, *::after { box-sizing: border-box; min-width: 0; }
  html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
  body { margin: 0; background: var(--ground); color: var(--text); font: 400 var(--t-body)/1.6 var(--font); overflow-x: clip; }
  h1, h2, h3 { margin: 0; font-weight: 850; line-height: 1.08; letter-spacing: -.022em; text-wrap: balance; }
  h1 { font-size: var(--t-h1); } h2 { font-size: var(--t-h2); } h3 { font-size: var(--t-h3); letter-spacing: -.01em; line-height: 1.25; }
  p { margin: 0 0 1em; text-wrap: pretty; } p:last-child { margin-bottom: 0; }
  a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1.5px; } a:hover { text-decoration-thickness: 3px; }
  button, input, select { font: inherit; color: inherit; }
  button { cursor: pointer; } ul, ol { margin: 0; padding: 0; } li { list-style: none; }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  [hidden] { display: none !important; }
  svg { display: block; } svg text { font-family: var(--font); }
  .num { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .skip { position: absolute; left: 8px; top: -80px; z-index: 50; background: var(--action); color: var(--on-action); padding: 12px 16px; } .skip:focus { top: 8px; }
}

@layer layout {
  .wrap { max-width: 1320px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 52px); }
  .band { padding-block: var(--s-section); } .band.tint { background: var(--ground-2); }
  .head { display: grid; gap: var(--s-3); max-width: 46rem; margin-bottom: var(--s-6); }
  .read { max-width: 42rem; } .read > * + h2 { margin-top: var(--s-7); } .read h2 { margin-bottom: var(--s-3); font-size: var(--t-h3x); }
  .split { display: grid; gap: var(--s-6) var(--s-7); }
  @media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split.wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .split.wide-right { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
}

@layer parts {
  /* Header: one thin row */
  .top { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1.5px solid var(--line-strong); }
  .top .wrap { display: flex; align-items: center; gap: var(--s-2); min-height: 60px; }
  .logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 850; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; min-height: 44px; margin-right: auto; }
  .logo svg { width: 34px; height: 34px; }
  .nav { display: none; align-items: center; gap: 2px; }
  .nav a, .nav button, .menu-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--text); font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; border-radius: var(--r-control); }
  .nav a:hover, .nav button:hover, .menu-btn:hover { background: var(--ground-2); } .nav [aria-current] { background: linear-gradient(var(--text), var(--text)) 0 100% / 100% 3px no-repeat; border-radius: 0; }
  .nav button svg { width: 12px; height: 12px; } .nav button[aria-expanded=true] { background: var(--ground-2); }
  .units { min-height: 44px; padding: 0 8px; border: 1.5px solid var(--line-control); border-radius: var(--r-control); background: var(--paper); font-size: 15px; font-weight: 600; max-width: 11.5rem; }
  .mine { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-control); background: var(--copy); color: var(--on-copy); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; }
  .mine:hover { background: var(--copy-hover); text-decoration: underline; }
  .count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--text); color: var(--paper); font-size: 14px; }
  .mine .short { display: none; }
  .menu-btn { border: 1.5px solid var(--line-control); }
  .units-top, .lang { display: none; }
  .lang { position: relative; } .lang summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; border-radius: var(--r-control); } .lang summary::-webkit-details-marker { display: none; } .lang summary::before, .lang[open] summary::before { content: none; } .lang summary:hover, .lang[open] summary { background: var(--ground-2); } .lang summary svg { width: 12px; height: 12px; }
  .lang ul { position: absolute; right: 0; top: 100%; min-width: 11rem; background: var(--paper); border: 1.5px solid var(--line-strong); z-index: 30; } .lang li + li { border-top: 1px solid var(--line); } .lang li a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; color: var(--text); text-decoration: none; font-weight: 600; } .lang li a:hover { background: var(--ground-2); text-decoration: underline; } .lang li [aria-current] { font-weight: 850; box-shadow: inset 4px 0 0 var(--text); }
  .panel .langrow { display: grid; grid-template-columns: repeat(4, auto); gap: 6px; padding-block: 4px 22px; } .langrow a { display: flex; justify-content: center; align-items: center; min-height: 44px; padding: 0 4px; font-size: 15.5px; border: 1.5px solid var(--line-control); border-radius: var(--r-control); color: var(--text); text-decoration: none; font-weight: 650; } .langrow [aria-current] { background: var(--text); color: var(--paper); border-color: var(--text); } .foot nav [aria-current] { font-weight: 800; }
  .panel { position: absolute; inset: 100% 0 auto; background: var(--paper); border-block: 1.5px solid var(--line-strong); max-height: calc(100dvh - 60px); overflow: auto; overscroll-behavior: contain; }
  .panel .wrap { display: grid; gap: var(--s-5); padding-block: var(--s-5); min-height: 0; align-items: start; }
  .panel h2 { font-size: 15px; letter-spacing: 0; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
  .panel .all { margin-top: 6px; } .panel .all a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--text); }
  .panel .plain a { display: flex; align-items: center; min-height: 48px; color: var(--text); font-weight: 700; text-decoration: none; border-top: 1px solid var(--line); }
  @media (min-width: 980px) { .nav { display: flex; } .units-top { display: block; } .lang { display: block; } .menu-btn { display: none; } .panel .wrap { grid-template-columns: 5fr 4fr; } .panel .phone { display: none; } .calc2 { columns: 2; column-gap: 24px; } .calc2 li { break-inside: avoid; } }
  @media (min-width: 980px) and (max-width: 1240px) { .nav a, .nav button { padding: 0 9px; font-size: 15px; } }
  @media (max-width: 400px) { .logo { font-size: 17px; gap: 7px; } .logo svg { width: 28px; height: 28px; } .mine, .menu-btn { padding: 0 10px; font-size: 15px; } .top .wrap { padding-inline: 12px; gap: 6px; } .mine .long { display: none; } .mine .short { display: inline; } }

  /* Tool list */
  .tools a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 14px; align-items: center; padding: 12px 10px 12px 4px; min-height: 68px; color: var(--text); text-decoration: none; border-top: 1px solid var(--line); }
  .tools a:hover { background: var(--yours-soft); } .tools b { font-weight: 750; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; } .tools span { display: block; color: var(--text-2); font-size: 15.5px; line-height: 1.4; }
  .ico { width: 40px; height: 40px; color: var(--text); }

  /* Title row and the yellow field */
  .yours-field { background: var(--yours); color: var(--on-yours); }
  .title { display: grid; gap: var(--s-3) var(--s-6); align-items: end; padding-block: clamp(20px, 2.6vw, 36px) clamp(16px, 2vw, 26px); }
  .title h1 { font-size: var(--t-poster); letter-spacing: -.035em; } .title p { font-size: var(--t-lead); line-height: 1.4; max-width: 34rem; font-weight: 500; }
  @media (min-width: 1000px) { .title.home { grid-template-columns: auto minmax(0, 1fr); } .title.home p { justify-self: start; } }
  .crumb { font-size: 15px; margin-bottom: -4px; } .crumb a { color: inherit; display: inline-flex; min-height: 28px; align-items: center; }

  /* The shipment strip: a tear-off row of six fields */
  .strip { background: var(--paper); border-block: 1.5px solid var(--line-strong); position: relative; }
  .strip ol { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; max-width: 1320px; margin-inline: auto; padding-inline: clamp(0px, 4vw - 16px, 36px); } .strip ol::-webkit-scrollbar { display: none; }
  .strip li { flex: 1 0 auto; scroll-snap-align: center; border-left: 2px dashed var(--line-tear); } .strip li:first-child { border-left: 0; }
  .strip a { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: center; min-height: 68px; padding: 8px 16px; color: var(--text); text-decoration: none; height: 100%; }
  .strip a:hover { background: var(--ground-2); } .strip svg { width: 30px; height: 30px; grid-row: span 2; }
  .strip .k { font-size: 14px; color: var(--text-2); line-height: 1.2; align-self: end; } .strip .v { font-weight: 800; font-size: 17px; line-height: 1.25; align-self: start; white-space: nowrap; }
  .strip [aria-current] { background: var(--text); color: var(--paper); } .strip [aria-current] .k { color: inherit; } .strip [aria-current]:hover { background: var(--text); }
  .strip .empty .v { font-weight: 500; color: var(--text-2); } .strip .before .v::after { content: " ↳"; font-weight: 500; } .strip .changed { box-shadow: inset 0 -5px 0 var(--warn); } .strip .warning .v { color: var(--warn); }
  .strip :focus-visible { outline-offset: -4px; }

  /* The work area: yellow sheet (you) and white sheet (we) */
  .work { display: grid; container-type: inline-size; }
  .sheet-you { background: var(--yours); color: var(--on-yours); padding: clamp(18px, 2.2vw, 30px) clamp(16px, 4vw, 52px) clamp(22px, 2.4vw, 32px); }
  .sheet-we { background: var(--paper); padding: clamp(18px, 2.2vw, 30px) clamp(16px, 4vw, 52px) clamp(22px, 2.4vw, 32px); }
  @media (min-width: 900px) {
    .work { grid-template-columns: minmax(380px, 5fr) minmax(0, 8fr); }
    .sheet-you { padding-left: max(clamp(16px, 4vw, 52px), (100cqw - 1320px) / 2 + 52px); padding-right: 32px; } .stay { position: sticky; top: 78px; }
    .sheet-we { padding-right: max(clamp(16px, 4vw, 52px), (100cqw - 1320px) / 2 + 52px); padding-left: 36px; }
  }
  .sheet-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; margin-bottom: 10px; } .sheet-top h2 { font-size: 19px; letter-spacing: -.01em; } .sheet-top p { font-size: 15px; } .sheet-we .sheet-top { row-gap: 10px; align-items: center; }

  /* Form cells: the label sits inside the box, as on every freight paper */
  fieldset { border: 0; margin: 0 0 14px; padding: 0; } legend { padding: 0 0 6px; font-weight: 700; font-size: 16px; }
  .cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1.5px solid var(--line-yours); border-radius: var(--r-control); background: var(--line-yours); gap: 1.5px; }
  .cell { position: relative; grid-column: span 2; background: var(--yours-soft); display: grid; align-content: start; cursor: text; } .cell.w3 { grid-column: span 3; } .cell.w6 { grid-column: span 6; } .cell.w4 { grid-column: span 4; }
  .cell:first-child { border-radius: 3px 0 0 0; }
  .cell label { font-size: 14px; line-height: 1.2; padding: 8px 12px 0; color: var(--on-yours); font-weight: 500; }
  .cell input, .cell select { width: 100%; min-height: 40px; padding: 2px 44px 6px 12px; border: 0; background: transparent; color: var(--typed); font-weight: 750; font-size: 23px; letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums; border-radius: 3px; }
  .cell select { font-size: 18px; padding-right: 8px; padding-left: 8px; } .cell option { color: var(--text); background: var(--paper); font-weight: 500; }
  .cell input::placeholder { color: var(--text-ph); font-weight: 500; }
  .cell .u { position: absolute; right: 12px; bottom: 11px; font-size: 15px; pointer-events: none; }
  .cell:hover { background: var(--yours-hover); } .cell:focus-within { z-index: 2; outline: 3px solid var(--focus); outline-offset: 0; background: var(--paper); } .cell :focus-visible { outline: 0; }
  .cell.bad { outline: 2.5px solid var(--error); z-index: 1; } .cell.bad label::after { content: " !"; font-weight: 900; color: var(--error); }
  .cell.was::after { content: "from your box"; position: absolute; right: 10px; top: 8px; font-size: 13px; }
  .cell.off { background: color-mix(in srgb, var(--yours-soft) 35%, var(--yours)); cursor: not-allowed; } .cell.off > * { opacity: .6; }
  .err { color: var(--error); font-weight: 650; font-size: 15px; line-height: 1.35; padding-top: 6px; display: flex; gap: 7px; } .err::before { content: "!"; flex: none; width: 20px; height: 20px; border-radius: 99px; background: var(--error); color: var(--paper); font-weight: 900; font-size: 14px; display: grid; place-items: center; }
  details > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: 10px; list-style: none; } summary::-webkit-details-marker { display: none; }
  summary::before { content: "+"; font-weight: 500; font-size: 26px; width: 18px; line-height: 1; } [open] > summary::before { content: "–"; }
  .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }

  /* Buttons */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: var(--r-control); border: 1.5px solid var(--action); background: var(--action); color: var(--on-action); font-weight: 750; font-size: 17px; line-height: 1.2; text-decoration: none; transition: transform var(--d-fast) var(--ease); }
  .btn:hover { background: var(--action-hover); border-color: var(--action-hover); } .btn:active { transform: translateY(1px); }
  .btn.second { background: transparent; color: var(--text); border-color: var(--line-control); } .btn.second:hover { background: var(--ground-2); }
  .btn.quiet { min-height: 44px; padding: 8px 10px; border-color: transparent; background: transparent; color: inherit; font-weight: 650; font-size: 16px; text-decoration: underline; text-underline-offset: .2em; } .btn.quiet:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
  .btn[disabled] { opacity: .5; cursor: not-allowed; }

  /* Result */
  .answer { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: end; margin-bottom: 14px; }
  .big { font-size: var(--t-answer); font-weight: 900; line-height: .9; letter-spacing: -.045em; white-space: nowrap; }
  .answer p { font-size: 18px; line-height: 1.35; flex: 1 1 15rem; margin: 0; } .answer p b { font-weight: 800; }
  .figs { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 7fr); gap: 10px 26px; align-items: end; }
  .fig { margin: 0; } .fig figcaption { font-size: 14.5px; color: var(--text-2); line-height: 1.35; padding-top: 6px; }
  .fig .box { position: relative; } .fig svg { width: 100%; height: auto; overflow: visible; }
  .fig.truck { grid-column: 1 / -1; }
  .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); border-block: 1.5px solid var(--line-strong); margin-block: 16px; }
  .facts div { padding: 9px 12px 10px 0; } .facts dt { font-size: 14px; color: var(--text-2); line-height: 1.25; } .facts dd { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
  .hint { padding-left: 34px; position: relative; font-size: 16px; line-height: 1.45; max-width: 46rem; } .hint svg { position: absolute; left: 0; top: 1px; width: 24px; height: 24px; }
  .rule { font-size: 14.5px; color: var(--text-2); line-height: 1.45; max-width: 46rem; } .rule a { color: inherit; }
  .seg { display: inline-flex; border: 1.5px solid var(--line-control); border-radius: var(--r-control); overflow: hidden; } .seg label { position: relative; display: grid; align-content: center; text-align: center; min-height: 44px; padding: 4px 14px; font-weight: 650; font-size: 15.5px; line-height: 1.2; cursor: pointer; } .seg label + label { border-left: 1.5px solid var(--line-control); }
  .seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; } .seg label:hover { background: var(--ground-2); } .seg label:has(:checked) { background: var(--text); color: var(--paper); } .seg label:has(:focus-visible) { outline: 3px solid var(--focus); outline-offset: -5px; }
  .card-only { display: none; }
  .actions { margin-top: 16px; } .small-actions { margin-top: 6px; margin-left: -10px; }
  .noanswer .needs { opacity: .28; filter: grayscale(1); }
  .bar { position: fixed; inset: auto 0 0; z-index: 25; background: var(--text); color: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); text-decoration: none; min-height: 56px; font-size: 16px; } .bar b { font-size: 21px; letter-spacing: -.02em; margin-right: 8px; } .bar u { text-underline-offset: .2em; } .bar:focus-visible { outline-offset: -5px; }
  @media (min-width: 900px) { .bar { display: none; } }
  /* guides: "Read next" at the end, and on a phone or tablet a slim bar that says where you are in the order (assets/guide.js) */
  .more-h { font-size: var(--t-h3x); margin: 34px 0 6px; } .lines.more { max-width: 34rem; } .lines.more a { grid-template-columns: minmax(0, 1fr); gap: 2px; } .lines.more span { color: var(--text-2); font-size: 15px; } .order { scroll-margin-top: 76px; }
  .bar.where span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bar.where b { font-size: 17px; } .bar.where u { flex: none; }
  @media (min-width: 900px) and (max-width: 1079px) { .bar.where { display: flex; } }
  @media (min-width: 1080px) { .bar.where { display: none; } }
  .toast { position: fixed; left: 50%; bottom: 76px; translate: -50% 0; z-index: 40; background: var(--copy); color: var(--on-copy); padding: 12px 18px; font-weight: 700; width: max-content; max-width: calc(100vw - 32px); border: 1.5px solid var(--on-copy); }
  @media (prefers-reduced-motion: no-preference) { .play .bx { animation: lay var(--d-mid) var(--ease) both; animation-delay: calc(var(--i) * 16ms); } @keyframes lay { from { opacity: 0; transform: translateY(-9px); } } .toast { animation: lay var(--d-mid) var(--ease) both; } }

  /* Tables, notes, lists */
  .scroll { overflow-x: auto; } table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums lining-nums; } caption { text-align: left; font-weight: 750; padding-bottom: 8px; }
  th, td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; } thead th { font-size: 15px; font-weight: 600; color: var(--text-2); border-bottom: 1.5px solid var(--line-strong); } tbody th { font-weight: 600; } td.win { font-weight: 850; } .yes td, .yes th { background: var(--yours-soft); }
  .note { border: 1.5px solid var(--line-control); padding: 14px 16px 14px 48px; position: relative; } .note svg { position: absolute; left: 14px; top: 15px; width: 24px; height: 24px; } .note.careful { border-color: var(--warn); } .note.careful svg { color: var(--warn); } .note.good svg { color: var(--good); }
  .math { font-size: 16px; } .math div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 18px; border-bottom: 1px solid var(--line); padding: 9px 0; } .math dd { margin: 0; font-weight: 800; text-align: right; } .math dt span { display: block; color: var(--text-2); font-size: 15px; }
  .qa details { border-top: 1px solid var(--line); } .qa details:last-child { border-bottom: 1px solid var(--line); } .qa details p { padding: 0 0 16px 28px; } .qa summary { padding-block: 8px; min-height: 56px; }
  .lines a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; min-height: 56px; align-items: baseline; } .lines b { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; font-weight: 750; } .lines a:hover b { text-decoration-thickness: 3px; } .lines span { color: var(--text-2); font-size: 15.5px; } .lines .sub { grid-column: 1 / -1; margin-top: -2px; }
  .pair { display: grid; gap: var(--s-5) var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); } .pair h3 { margin-bottom: 8px; }
  .copy-band { background: var(--copy); color: var(--on-copy); position: relative; } .copy-band a:not(.btn) { color: inherit; } .copy-band .btn.second { color: inherit; border-color: currentColor; } .copy-band .btn.second:hover { background: var(--copy-hover); }
  .copy-band::before { content: ""; position: absolute; inset: -5px 0 auto; height: 10px; background: radial-gradient(circle at 10px 5px, var(--ground) 4px, transparent 4.6px) 0 0 / 20px 10px repeat-x; }
  .copy-list li { padding: 12px 0; border-top: 1.5px solid currentColor; } .copy-list b { display: block; }
  .copy-card { background: var(--copy); color: var(--on-copy); padding: 20px; margin-top: 16px; text-decoration: none; display: block; } .copy-card:hover { background: var(--copy-hover); } .copy-card b { text-decoration: underline; text-underline-offset: .2em; }

  .foot { background: var(--foot); color: var(--on-foot); padding-block: var(--s-7) var(--s-6); font-size: 16px; } .foot a { color: inherit; display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; } .foot a:hover { text-decoration: underline; }
  .foot .cols > * { min-width: 0; } .foot .cols a { overflow-wrap: anywhere; hyphens: auto; hyphenate-limit-chars: 14 5 5; } :lang(de) :is(h1, h2, h3, .big, main a b) { hyphens: auto; overflow-wrap: break-word; hyphenate-limit-chars: 16 6 6; }
  .foot .cols { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); } .foot h2 { font-size: 16px; letter-spacing: 0; margin-bottom: 6px; } .foot .legal { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid color-mix(in srgb, currentColor 35%, transparent); } .foot p { color: var(--on-foot-2); font-size: 15px; max-width: 46rem; margin-top: 10px; }
  @media (max-width: 560px) { .figs { grid-template-columns: minmax(0, 1fr); } .sheet-we .figs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sheet-we .fig.layer { grid-column: 1 / -1; } .sheet-we .fig.truck { grid-column: 1 / -1; } .sheet-we .fig.side { grid-column: 1 / -1; max-width: 15rem; } .cell input { font-size: 21px; padding-right: 32px; padding-left: 10px; } .cell select { padding-left: 6px; } .cell label { padding-left: 10px; } .cell .u { right: 9px; } .actions .btn { width: 100%; } .actions .btn.quiet { width: auto; } .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } th, td { padding-right: 10px; } .seg { width: 100%; } .seg label { flex: 1; } }
  @media (max-width: 350px) { .logo { font-size: 15px; gap: 5px; } .logo svg { width: 26px; height: 26px; } .mine, .menu-btn { padding: 0 7px; font-size: 14px; gap: 5px; } .top .wrap { padding-inline: 10px; gap: 5px; } .cell.w3:has(select), .cell.w3:has(select) + .cell { grid-column: span 6; } }
  @media (max-width: 340px) { .cell input { font-size: 18px; } .cell label { font-size: 13px; } }
}

/* Paper: always black on white, no menu */
/* freight class and trailer load (round 7) */
@layer parts {
  .scale { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 2px; }
  .scale li { display: grid; align-content: start; justify-items: center; gap: 2px; padding: 7px 1px 6px; border: 1.5px solid var(--line); border-radius: 3px; text-align: center; min-height: 58px; }
  .scale b { font-size: 15px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; } .scale span { font-size: 13px; color: var(--text-2); line-height: 1.1; white-space: nowrap; }
  .scale em { font-style: normal; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: 3px; }
  .scale i { font-style: normal; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--yours-soft); border: 1.5px solid var(--line-yours); color: var(--on-yours); font-size: 13px; font-weight: 800; }
  .scale .has { border: 2px solid var(--text); } .scale .on { background: var(--text); border-color: var(--text); color: var(--paper); } .scale .on span { color: inherit; opacity: .85; }
  .scale .on i.all, .scale i.all { background: var(--text); border-color: var(--text); color: var(--paper); } .scale .on i.all { background: var(--paper); color: var(--text); border-color: var(--paper); }
  .scale .nx { border-style: dashed; border-color: var(--text); }
  .big.cbig { white-space: normal; font-size: clamp(44px, 12vw, var(--t-answer)); line-height: .95; }
  .scalefig { margin: 4px 0 16px; } .scalefig figcaption { font-size: 14.5px; color: var(--text-2); padding-top: 6px; }
  .nextlist { list-style: none; margin: 0 0 14px; padding: 0; } .nextlist li { font-size: 16px; line-height: 1.45; padding: 8px 0; border-top: 1px solid var(--line); } .nextlist li:last-child { border-bottom: 1px solid var(--line); }
  .ctable { width: 100%; font-size: 16px; } .ctable tfoot th, .ctable tfoot td { border-top: 1.5px solid var(--line-strong); font-weight: 700; }
  .steps { width: 100%; max-width: 26rem; font-size: 16px; } .steps td:first-child { text-align: left; }
  .loadways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 92px), 1fr)); gap: 8px; margin: 4px 0 14px; }
  .way { position: relative; display: grid; gap: 6px; align-content: start; padding: 10px 10px 8px; border: 1.5px solid var(--line-control); border-radius: var(--r-control); cursor: pointer; }
  .way input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; } .way:hover { background: var(--ground-2); }
  .way:has(:checked) { outline: 2.5px solid var(--text); outline-offset: -1px; } .way:has(:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
  .way b { font-size: 16px; line-height: 1.2; } .way em { position: absolute; top: -10px; right: 8px; font-style: normal; font-size: 13px; font-weight: 700; padding: 1px 7px; border-radius: 3px; background: var(--text); color: var(--paper); }
  .mini svg, .planfig svg, .wayfig svg { width: 100%; height: auto; display: block; overflow: visible; }
  .planfig { margin: 0; } .planfig figcaption { font-size: 15px; color: var(--text-2); padding-top: 6px; } .planfig figcaption:empty { display: none; }
  .three { display: grid; gap: 30px; } .wayfig { margin: 0; } .wayfig h3 { font-size: var(--t-h3x); margin: 0 0 8px; } .wayfig h3 span { font-weight: 500; color: var(--text-2); } .wayfig figcaption { font-size: 15.5px; color: var(--text-2); margin-top: 6px; max-width: 40rem; }
  .tape-draw { width: 100%; max-width: 30rem; height: auto; display: block; overflow: visible; }
  .rerr:empty { display: none; } .crow .pick, .grp .pick { margin-bottom: 6px; }
  @media (max-width: 560px) { .scale { grid-template-columns: repeat(7, minmax(0, 1fr)); } .way { padding: 8px 6px 6px; } .way b { font-size: 14.5px; } }
  /* dimensional weight: every carrier in one table, one of them picked for the big number */
  .dtable { width: 100%; font-size: 16px; } .dtable td, .dtable th { padding-right: 10px; } .dtable td:last-child { padding-right: 0; }
  .dtable tr.grp th { font-size: 13.5px; font-weight: 700; color: var(--text-2); padding: 16px 0 6px; border-bottom: 1.5px solid var(--line-strong); }
  .dtable tbody th[scope=row] { font-weight: 500; } .dtable tr.on th[scope=row], .dtable tr.on td { background: var(--ground-2); } .dtable tr.on th[scope=row] span { font-weight: 800; }
  .pickc { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 2px 10px; align-items: start; cursor: pointer; min-height: 32px; } .pickc input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--text); cursor: pointer; } .pickc input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  .pickc small { grid-column: 2; font-size: 13.5px; line-height: 1.35; color: var(--text-2); } .pickc small a { color: inherit; }
  .dtable .by { display: block; font-size: 13px; color: var(--text-2); font-weight: 500; white-space: nowrap; } .dtable tr[data-old] span, .dtable tr[data-old] b { color: var(--text-2); }
  .dimfig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px 22px; align-items: center; margin: 2px 0 14px; } .dimfig figure { margin: 0; } .dimfig figcaption { font-size: 14.5px; color: var(--text-2); padding-top: 4px; }
  .boxfig svg, .cube svg { width: 100%; height: auto; display: block; overflow: visible; } .boxfig svg { max-width: 20rem; } .cube svg { max-width: 26rem; }
  .dimfig .facts { margin: 0; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
  @media (max-width: 560px) { .dimfig { grid-template-columns: minmax(0, 1fr); } }
  /* cubic metres: each container drawn to its length, as many as needed */
  .conts { margin: 0 0 14px; } .cont { padding: 10px 0 12px; border-top: 1px solid var(--line); } .cont:last-of-type { border-bottom: 1px solid var(--line); }
  .ch { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; } .ch b { font-size: 16px; } .ch span { font-size: 14.5px; color: var(--text-2); }
  .cbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; align-items: center; }
  .ct { position: relative; flex: 0 0 100%; height: 30px; border: 1.5px solid var(--draw); border-radius: 2px; overflow: hidden; background: repeating-linear-gradient(90deg, transparent 0 9px, var(--line) 9px 10.5px); }
  .c20 .ct { flex-basis: calc(49% - 3px); } .c40hc .ct { height: 34px; }
  .ct i { position: absolute; inset: 0 auto 0 0; background: var(--box); border-right: 1.5px solid var(--box-line); } .ct b { position: absolute; top: -2px; bottom: -2px; border-left: 2px dashed var(--draw); }
  .cbar .plus { font-weight: 800; font-size: 16px; } .cont p { margin: 0; font-size: 15.5px; white-space: normal; }
  .contfig { margin: 0; } .contfig figcaption { font-size: 14.5px; color: var(--text-2); padding-top: 2px; }
  .vrow .cell select { min-height: 40px; }
  .paste { margin: 2px 0 10px; } .paste textarea { width: 100%; min-height: 128px; padding: 10px 12px; border: 1.5px solid var(--line-yours); border-radius: var(--r-control); background: var(--yours-soft); color: var(--typed); font: 600 16px/1.45 ui-monospace, Menlo, Consolas, monospace; resize: vertical; }
  .paste textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; background: var(--paper); } .paste label { display: block; font-size: 14px; font-weight: 600; margin: 6px 0 4px; }
  .paste .pv { font-size: 15px; margin: 8px 0; min-height: 1.4em; } .paste .cells { margin-top: 8px; }
  .sz { display: block; font-size: 13.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
}
@layer print {
  @media print {
    :root { color-scheme: light; } @page { margin: 14mm; }
    body { background: #fff; color: #000; } .top, .strip, .bar, .toast, .sheet-you, .actions, .small-actions, .seg, .after, .foot, .crumb, .title p, .hint { display: none !important; }
    .work { display: block; } .sheet-we { padding: 0; } .yours-field { background: none; } .title { padding: 0 0 8pt; min-height: 0 !important; } .title-ph { display: none !important; } .title h1 { font-size: 20pt !important; } #card { font-size: 13pt; font-weight: 700; } .card-only { display: block !important; }
  }
}

/* wide reference tables on tool pages: cards on phones */
@media screen and (max-width:640px){.pstack,.pstack tbody,.pstack tr,.pstack th,.pstack td{display:block;width:auto}.pstack thead{display:none}.pstack tr{border-top:1.5px solid var(--line-strong);padding:12px 0 14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}.pstack th,.pstack td{border:0;padding:0;white-space:normal;min-width:0;text-align:left}.pstack th[scope=row]{grid-column:1/-1;font-size:18px;font-weight:800}.pstack td::before{content:attr(data-l);display:block;font-size:14px;color:var(--text-2);font-weight:400}.pstack tfoot{display:block}
.pstack caption:not(.sr){display:block;width:auto}}
/* phone tables that stay tables: words may wrap and split (hyphens follow the page language), tighter cells */
@media screen and (max-width:640px){.scroll table:not(.ctab):not(.pstack){hyphens:auto;-webkit-hyphens:auto}.scroll table:not(.ctab):not(.pstack) th[scope=row],.scroll table:not(.ctab):not(.pstack) td:not(.num){white-space:normal}.scroll table:not(.ctab):not(.pstack) th,.scroll table:not(.ctab):not(.pstack) td{padding-left:7px;padding-right:7px;font-size:15px}.scroll table:not(.ctab):not(.pstack) tr>:first-child{padding-left:0}.scroll table:not(.ctab):not(.pstack) tr>:last-child{padding-right:0}}
@media screen and (max-width:640px){.scroll thead th{white-space:normal;vertical-align:bottom}.ctable th,.ctable td,.dtable th,.dtable td{padding-left:6px;padding-right:6px}}
@media screen and (max-width:640px){.ctable .sz{white-space:normal}.ctable th[scope=row]{min-width:0}}@media screen and (max-width:400px){.ctable th,.ctable td{font-size:14px;padding-left:4px;padding-right:4px}}
/* one guide only: the big card takes the whole row */.split:has(>.gbig:only-child){grid-template-columns:minmax(0,1fr)}@media screen and (min-width:760px){.gbig:only-child{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:var(--s-7);grid-template-rows:auto auto;align-items:center}.gbig:only-child img{grid-row:1/3}.gbig:only-child b{padding-top:0;align-self:end}.gbig:only-child span{align-self:start;max-width:30rem}}
.inen{font-size:.72em;font-weight:500;color:var(--text-2);white-space:nowrap;display:inline-block;text-decoration:none}
.inen{color:inherit;font-weight:400}.gbig:only-child b{font-size:clamp(24px,2.4vw,32px);line-height:1.2}.gbig:only-child span{font-size:17px;padding-top:8px}
.inen{font-size:max(13px,.72em)}

/* Language flags: beside the name, never instead of it */
.flag { width: 21px; height: 14px; flex: none; display: inline-block; vertical-align: -2px; border-radius: 2px; overflow: hidden; }
.lang summary .flag { width: 22px; height: 15px; }
.lang li a { gap: 12px; }
.langrow a { gap: 7px; }
.foot nav a { display: inline-flex; align-items: center; gap: 9px; }
@media (max-width: 400px) { .langrow a { flex-direction: column; gap: 3px; padding-block: 6px; font-size: 14px; } }

/* newsletter sign-up at the top of the footer (trust-parts.js newsFoot); posts to /api/subscribe.php, no script */
.hp { display: none; }
.foot .news { display: grid; gap: 12px 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); align-items: start; padding-bottom: var(--s-6); margin-bottom: var(--s-6); border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.foot .news > * { min-width: 0; } .foot .news h2 { font-size: 20px; margin-bottom: 4px; } .foot .news p { margin-top: 6px; }
.foot .news label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; width: 100%; }
.foot .nrow { display: flex; flex-wrap: wrap; gap: 0 10px; align-items: end; } .foot .nrow input { flex: 1 1 14rem; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--on-foot); border-radius: var(--r-control); background: var(--on-foot); color: var(--foot); font-family: inherit; font-weight: 600; font-size: 17px; line-height: 1.3; }
.foot .nrow .btn { background: transparent; border-color: var(--on-foot); color: var(--on-foot); } .foot .nrow .btn:hover { background: color-mix(in srgb, var(--on-foot) 14%, transparent); }
.foot .nrow input:focus-visible, .foot .nrow .btn:focus-visible { outline: 3px solid var(--on-foot); outline-offset: 2px; }
.foot .news p a { display: inline; min-height: 0; text-decoration: underline; }
@media (max-width: 760px) { .foot .news { grid-template-columns: minmax(0, 1fr); } .foot .nrow .btn { margin-top: 10px; } }
/* the quote from the source under "Who checked this" on tool and chart pages (quotes.js, 6 Dec 2026) */
.srcq { margin: 18px 0 0; padding: 12px 14px 12px 16px; border-left: 4px solid var(--canary-300); background: var(--yours-soft); color: var(--text); }
.srcq p { margin: 0; font-size: 16px; line-height: 1.5; }
.srcq .srcq-h { font-size: 14px; font-weight: 700; color: var(--text-2); margin-bottom: 4px; }
.srcq footer { margin-top: 6px; font-size: 14px; color: var(--text-2); }
.srcq footer a { color: inherit; text-decoration: underline; }
@media print { .srcq { background: none; } }
