/* ROUX knowledge base. Same paper, ink and copper as rouxpos.com. Reading column with a topic list beside it;
   print.html and @media print turn it into clean pages. */
:root {
  --paper: #f5efe4; --paper-2: #ece3d3; --ink: #1b1714; --ink-2: #4a423b; --muted: #7b7168;
  --roux: #b4531c; --roux-dark: #8f3f12; --roux-soft: #f0d9c6; --green: #1f3a32; --line: #dccfbb; --white: #fffaf2;
  --ok: #1c7f52; --ok-soft: #dcefe4; --wait: #8a6400; --wait-soft: #f4e7bf; --key: #0e7fa3;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--roux-dark); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--roux); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-in { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.mark { font-weight: 800; font-size: 22px; letter-spacing: .14em; text-decoration: none; color: var(--ink); padding-bottom: 3px; border-bottom: 4px solid var(--roux); line-height: 1; }
.where { color: var(--muted); font-weight: 600; }
.nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--ink-2); } .nav a:hover { color: var(--roux-dark); }

.hero { padding: 56px 0 36px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--roux-dark); margin-bottom: 10px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); }
.lede { color: var(--ink-2); font-size: 19px; max-width: 60ch; margin-top: 12px; }
.search { display: block; margin-top: 24px; max-width: 640px; }
.search input { width: 100%; font: inherit; font-size: 18px; padding: 16px 18px; border-radius: 14px; border: 2px solid var(--line); background: var(--white); color: var(--ink); }
.search input:focus { border-color: var(--roux); outline: none; }
.results { max-width: 640px; margin-top: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.results a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.results a:first-child { border-top: 0; } .results a:hover { background: var(--roux-soft); }
.results small { color: var(--muted); } .results span { grid-column: 1 / -1; color: var(--ink-2); font-size: 14px; }
.results p { padding: 14px 16px; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; padding-bottom: 28px; }
.cat { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; scroll-margin-top: 16px; }
.cat h2 { font-size: 24px; } .cat p { font-size: 15px; margin: 4px 0 10px; }
.cat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cat a { text-decoration: none; font-weight: 600; } .cat a:hover { text-decoration: underline; }
.printline { padding: 6px 0 48px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--ink-2); }

.btn { display: inline-block; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; background: var(--roux); color: var(--white); border: 2px solid var(--roux); border-radius: 999px; padding: 9px 18px; }
.btn:hover { background: var(--roux-dark); border-color: var(--roux-dark); }
.btn.ghost { background: transparent; color: var(--roux-dark); border-color: var(--line); } .btn.ghost:hover { border-color: var(--roux); }

.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; padding-top: 32px; padding-bottom: 56px; align-items: start; }
.side { position: sticky; top: 16px; font-size: 15px; }
.side h2 { font-family: var(--text); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.side ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 2px; }
.side li a { display: block; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); }
.side li a:hover { background: var(--paper-2); } .side li.here a { background: var(--roux-soft); color: var(--ink); font-weight: 700; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; } .crumbs a { color: var(--muted); }

.how { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.how > p { max-width: 68ch; }
.titlebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.titlebar h1 { font-size: clamp(30px, 4vw, 42px); flex: 1 1 320px; } .titlebar .btn { margin-left: auto; }
.how h2 { font-family: var(--text); font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--roux-dark); margin-top: 12px; }
.how ol, .how ul { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; max-width: 68ch; }
.how li::marker { color: var(--roux); font-weight: 800; }
b.ui { font-weight: 600; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; white-space: nowrap; }
b.k { display: inline-block; min-width: 1.55em; height: 1.55em; line-height: 1.55em; border-radius: 999px; background: #22d3ff; color: #001018; text-align: center; font-weight: 800; font-size: .8rem; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.wait { background: var(--wait-soft); color: var(--wait); }
figure { margin: 4px 0; display: grid; gap: 6px; }
figure img { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #121214; }
figure.phone img { max-width: 300px; }
figcaption { color: var(--ink-2); font-size: 14px; line-height: 1.9; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tablebox { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: 15px; } th, td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; } thead th { border-top: 0; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.pager a { text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-weight: 700; color: var(--ink); }
.pager a:hover { border-color: var(--roux); } .pager small { display: block; color: var(--muted); font-weight: 600; } .pager .next { text-align: right; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 22px 0 36px; }

/* everything on one page */
.printdoc { max-width: 900px; padding-top: 24px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 28px; }
.printbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--roux-soft); border-radius: 14px; padding: 14px 18px; }
.cover h1 { font-size: clamp(34px, 5vw, 52px); }
.toc { columns: 2 260px; column-gap: 32px; margin: 22px 0 0; padding-left: 1.2em; font-size: 15px; } .toc > li { break-inside: avoid; margin-bottom: 12px; } .toc ol { padding-left: 1.2em; font-weight: 400; } .toc a { color: var(--ink); text-decoration: none; }
.pgroup { display: flex; flex-direction: column; gap: 26px; border-top: 4px solid var(--roux); padding-top: 22px; }
.gtitle { font-size: 34px; }
.atitle { font-size: 26px; flex: 1 1 300px; } .pgroup .how { border-top: 1px solid var(--line); padding-top: 18px; }
.pgroup .how h3 { font-family: var(--text); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--roux-dark); margin-top: 8px; }

@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 20px; } .side { position: static; order: 2; border-top: 1px solid var(--line); padding-top: 18px; } .nav { margin-left: 0; width: 100%; } .pager { grid-template-columns: 1fr; } .pager .next { text-align: left; } }

@media print {
  @page { margin: 14mm 14mm 16mm; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.45; }
  .top, .foot, .side, .noprint, .crumbs, .pager, .printbar { display: none !important; }
  .wrap, .doc, .printdoc { max-width: none; padding: 0; margin: 0; display: block; }
  a { color: #000; text-decoration: none; }
  .how { gap: 8pt; } .how > * + * { margin-top: 8pt; }
  .how ol, .how ul, .how > p { max-width: none; }
  h1, h2, h3 { break-after: avoid; }
  figure, li, .tablebox, tr { break-inside: avoid; }
  figure img { max-height: 95mm; width: auto; max-width: 100%; margin: 0 auto; border-color: #999; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  figure.phone img { max-height: 110mm; }
  b.k, .pill, b.ui { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cover { break-after: page; } .pgroup { break-before: page; border-top: 0; padding-top: 0; }
  .pgroup .how { break-inside: auto; margin-top: 14pt; }
  .toc { columns: 2; }
}
