/* oakvilleleo.com/restaurant-phone-desk: built on sheridan.css (same type, ink, bands, cards, buttons, lightbox);
   this file adds the desk diagram, tables, the guest/desk exchanges and the dark "when it fails" section.
   Status colours follow /data-analytics: green = handled, amber = waiting for a person. */
:root { --ok: #1baf7a; --wait: #eda100; --ok-d: #12805a; --wait-d: #a86f00; }
.cap { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; letter-spacing: .3px; }
.hero .kicker { margin-bottom: 18px; }
.hero-sub { max-width: 46ch; }

/* the desk, drawn in on first view */
.desk { margin: 0; padding: clamp(24px, 4vw, 48px) clamp(12px, 3vw, 40px); background: #fbfaf8; }
.desk svg { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto; font-family: Outfit, sans-serif; }
.desk .dl { fill: none; stroke: var(--ink-3); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.desk .dc { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }
.desk text { fill: var(--ink); font-size: 11.5px; font-weight: 300; }
.desk .ok { fill: var(--ok); }
.desk .wait { fill: var(--wait); }
.desk .run { opacity: 0; }
.desk.is-drawn .run { opacity: 1; transition: opacity .4s 1.6s; }

/* facts about the business */
.facts { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.facts div { padding: 18px 18px 0 0; }
.facts dt { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 8px 0 0; font-size: 17px; line-height: 1.45; max-width: 24ch; }
.intro .stats b { font-size: clamp(36px, 4.4vw, 56px); }

/* ledgers */
.ledger { width: 100%; border-collapse: collapse; margin-top: clamp(28px, 4vw, 44px); font-size: 16px; line-height: 1.5; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 13px 18px 13px 0; border-bottom: 1px solid var(--band); }
.ledger thead th { font-size: 12px; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; border-bottom: 1px solid var(--ink); }
.ledger tbody th { font-weight: 400; width: 36%; }
.ledger td { color: var(--ink-3); }
.ledger-3 tbody th { width: 28%; }
.ledger-3 td:nth-child(2) { width: 1%; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); }
.tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1.3px solid var(--ink-3); }
.tag.ai { color: var(--accent); }
.tag.ai::before { background: var(--accent); border-color: var(--accent); }
.dash { list-style: none; padding: 0; margin: 0; }
.dash li { position: relative; padding: 0 0 12px 26px; }
.dash li::before { content: ''; position: absolute; left: 0; top: .8em; width: 14px; height: 1px; background: var(--accent); }
.dash b { font-weight: 600; }

/* screenshots: shown whole on white, opened full size in the lightbox */
.gallery { margin-top: clamp(28px, 4vw, 44px); }
.gallery .shot + .shot { margin-top: clamp(28px, 4vw, 44px); }
.grid2.gallery { align-items: start; row-gap: clamp(28px, 4vw, 44px); }
.shot { background: transparent; }
.shot img { background: #fff; outline: 1px solid var(--band); }
.shot .tile-cap { text-transform: none; letter-spacing: .2px; font-size: 14px; color: var(--ink-3); }
.stack .shot + .shot { margin-top: 18px; }

/* guest and desk, one exchange */
.talk { margin: 0; }
.talk ol { list-style: none; margin: 0; padding: 22px 24px 18px; background: #fff; outline: 1px solid var(--band); }
.talk li { display: grid; grid-template-columns: 4.2em 14px 1fr; align-items: baseline; padding: 8px 0; font-size: 16px; line-height: 1.5; }
.talk li + li { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 14px; }
.talk em { font-style: normal; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-3); }
.talk i { width: 8px; height: 8px; border-radius: 50%; border: 1.3px solid var(--ink-3); transform: translateY(-1px); }
.talk .is-done i { background: var(--ok); border-color: var(--ok); }
.talk .is-flag i { background: var(--wait); border-color: var(--wait); }
.talk .is-done span, .talk .is-flag span { color: var(--ink); }
.talk figcaption { font-size: 14px; color: var(--ink-3); padding-top: 12px; }
.talk .run { color: var(--accent); text-decoration: none; white-space: nowrap; border-bottom: 1px solid transparent; margin-left: 6px; cursor: zoom-in; }
.talk .run:hover { border-color: var(--accent); }

/* when it fails, on ink (as the "side by side" section of /data-analytics) */
.ink { background: var(--ink); color: #fff; padding: clamp(64px, 9vw, 120px) 0; }
.ink .kicker { color: #fff; }
.ink h2 { color: #fff; }
.pull { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; font-weight: 300; color: #fff; margin: 0; }
.rules { list-style: none; padding: 0; margin: clamp(48px, 7vw, 80px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #4d4b4f; }
.rules li { padding: 24px 24px 28px 0; border-bottom: 1px solid #2f2d33; }
.rules li:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid #2f2d33; }
.rules em { font-style: normal; font-size: 12px; letter-spacing: 1.5px; color: #8fb4e8; }
.rules h4 { margin: 10px 0; color: #fff; }
.rules p { font-size: 16px; color: #c9c7cd; margin: 0; }
.ink .talks { margin-top: clamp(48px, 7vw, 72px); }
.ink .talk ol { background: #1f1e22; outline-color: #2f2d33; }
.ink .talk li + li { border-top-color: #3a383e; }
.ink .talk em, .ink .talk figcaption { color: #a9a7ae; }
.ink .talk span { color: #e7e5ea; }
.ink .talk .is-flag span { color: #fff; }
.ink .talk .run { color: #8fb4e8; }
.ink .talk .run:hover { border-color: #8fb4e8; }

.refs { margin: 24px 0 0; padding-left: 1.3em; font-size: 15px; color: var(--ink-3); }
.refs li { padding: 3px 0; }
.method p { font-size: 16px; }
sup a { text-decoration: none; color: var(--accent); font-size: .75em; }

@media (max-width: 960px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(n+3) { padding-top: 22px; }
  .rules { grid-template-columns: 1fr 1fr; }
  .rules li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .rules li:nth-child(even) { padding-left: 24px; border-left: 1px solid #2f2d33; }
}
@media (max-width: 640px) {
  .facts, .rules { grid-template-columns: 1fr; }
  .rules li:nth-child(even) { padding-left: 0; border-left: 0; }
  .desk { margin: 0 calc(-1 * var(--gut)); padding: 18px var(--gut); overflow-x: auto; }
  .desk svg { min-width: 600px; }
  .ledger, .ledger thead, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; width: auto !important; }
  .ledger thead { display: none; }
  .ledger tr { padding: 12px 0; border-bottom: 1px solid var(--band); }
  .ledger th, .ledger td { border: 0; padding: 2px 0; white-space: normal !important; }
  .talk ol { padding: 16px 16px 12px; }
  .talk li { grid-template-columns: 1fr; gap: 2px; }
  .talk i { display: none; }
}
