/* The Help centre (/help/): Tablepour's guides for cafes, one page per module. The Tablepour look (as site/): warm paper,
   espresso and ember; readable first: one column of text, numbered steps, screenshots in device frames. */
:root {
  color-scheme: light;
  --espresso: #1f1410; --roast: #3a2519; --crema: #f6efe6; --latte: #eadfce; --foam: #fffaf3;
  --ink: #241812; --muted: #6f5a4b; --line: #e2d4c1;
  --ember: #e2643a; --ember-dark: #c44f27; --sage: #5f8a68; --sky: #2563eb;
  --display: Fraunces, Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--crema); color: var(--ink); font: 400 17px/1.65 Jost, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--ember-dark); }
img { max-width: 100%; display: block; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(246, 239, 230, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-row { width: min(100% - 32px, 1180px); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 16px; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.25rem/1 var(--display); }
.mark svg { width: 30px; height: 30px; border-radius: 8px; }
.mark small { font: 500 .85rem/1 Jost, sans-serif; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
.top .grow { flex: 1; }
.top .menu-button { display: none; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--foam); font: inherit; font-weight: 600; }

/* Layout: guide list beside the text */
.layout { width: min(100% - 32px, 1180px); margin: 0 auto; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding: 32px 0 80px; }
.side { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.side h3 { margin: 0 0 10px; font: 600 .78rem/1 Jost, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.side nav { display: grid; gap: 2px; }
.side a { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.side a:hover { background: var(--latte); }
.side a.on { background: var(--espresso); color: var(--crema); }
.side a span { width: 22px; height: 22px; display: grid; place-items: center; }
.side a svg { width: 20px; height: 20px; }
.side .contact { margin-top: 22px; padding: 14px; border-radius: 14px; background: var(--foam); border: 1px solid var(--line); font-size: .9rem; color: var(--muted); }

/* Text */
main { min-width: 0; }
.crumb { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--muted); }
h1 { margin: 0 0 10px; font: 600 clamp(2rem, 4vw, 2.8rem)/1.1 var(--display); letter-spacing: -.01em; }
.lead { margin: 0 0 26px; font-size: 1.15rem; color: var(--muted); max-width: 46em; }
h2 { margin: 48px 0 12px; font: 600 1.6rem/1.2 var(--display); display: flex; align-items: center; gap: 10px; }
h3 { margin: 28px 0 8px; font: 600 1.15rem/1.3 Jost, sans-serif; }
p, li { max-width: 46em; }
.copy-link { opacity: 0; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; display: inline-grid; }
.copy-link svg { width: 18px; height: 18px; }
h2:hover .copy-link, .copy-link:focus { opacity: 1; }
.copy-link:hover { background: var(--latte); }
.toc { margin: 0 0 30px; padding: 16px 20px; border-radius: 16px; background: var(--foam); border: 1px solid var(--line); }
.toc b { display: block; margin-bottom: 6px; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--ember-dark); }

/* Steps, tips, keys */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 14px 0; display: grid; gap: 12px; }
ol.steps > li { counter-increment: step; position: relative; padding: 2px 0 0 46px; min-height: 34px; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--espresso); color: var(--crema); font: 600 .95rem/1 var(--display); }
.note, .tip, .warn { margin: 18px 0; padding: 14px 18px 14px 18px; border-radius: 14px; border-left: 5px solid; background: var(--foam); max-width: 46em; }
.tip { border-color: var(--sage); }
.note { border-color: var(--sky); }
.warn { border-color: var(--ember); }
.note b:first-child, .tip b:first-child, .warn b:first-child { display: block; margin-bottom: 2px; }
.key { display: inline-block; padding: 0 8px; border-radius: 7px; background: var(--foam); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line); font-weight: 600; font-size: .92em; white-space: nowrap; }
.chip { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .85em; font-weight: 600; color: #fff; }
.chip.free { background: #16a34a; } .chip.reserved { background: #7c3aed; } .chip.sent { background: #2563eb; }
.chip.preparing { background: #f59e0b; color: #1c1300; } .chip.ready { background: #db2777; } .chip.served { background: #14b8a6; color: #042f2e; }
table.facts { border-collapse: collapse; margin: 14px 0; width: 100%; max-width: 46em; font-size: .97rem; }
table.facts th, table.facts td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.facts th { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Screenshots in device frames */
.shots { display: flex; flex-wrap: wrap; gap: 22px; margin: 18px 0 8px; align-items: flex-start; }
figure { margin: 0; }
figure figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); max-width: 320px; }
.phone img { width: 260px; border: 9px solid var(--espresso); border-radius: 30px; background: #fff; box-shadow: 0 18px 40px -24px rgba(31, 20, 16, .6); }
.tablet img { width: min(100%, 620px); border: 12px solid var(--espresso); border-radius: 24px; background: #fff; box-shadow: 0 18px 40px -24px rgba(31, 20, 16, .6); }
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 40px -24px rgba(31, 20, 16, .5); max-width: 760px; }
.browser::before { content: ""; display: block; height: 26px; background: var(--latte) radial-gradient(circle at 16px 13px, #e2643a 4px, transparent 5px), var(--latte); border-bottom: 1px solid var(--line); }
.browser img { width: 100%; }

/* Guide cards (the index) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 22px 0; }
.card { display: grid; gap: 6px; padding: 20px; border-radius: 18px; background: var(--foam); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(31, 20, 16, .5); }
.card i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--latte); color: var(--ember-dark); }
.card i svg { width: 24px; height: 24px; }
.card b { font: 600 1.15rem/1.25 var(--display); }
.card span { color: var(--muted); font-size: .95rem; }

.next { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.next a { text-decoration: none; font-weight: 600; }
.foot { padding: 26px 16px; text-align: center; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 16px; border-radius: 12px; background: var(--espresso); color: var(--crema); font-weight: 500; }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 18px; }
  .side { position: static; max-height: none; display: none; margin-bottom: 18px; }
  .side.open { display: block; }
  .top .menu-button { display: inline-block; }
  .toc ol { columns: 1; }
  .mark small { display: none; }
  .copy-link { opacity: 1; }
}
@media print { .top, .side, .copy-link, .next { display: none !important; } .layout { display: block; } body { background: #fff; } }
