/* Guides (build-guides.py): concept figures, highlight boxes, the app menu, the index cards, embed mode.
   The figures are HTML/CSS DRAWINGS of app ideas, never screenshots of the app (Dan's rule: they must
   survive a reskin). Linked after theme.css + page-feature.css; uses only theme tokens. Thai never in mono. */

/* ---------- figure: a rounded room holding one drawing ---------- */
.gfig{margin:24px 0;border-radius:var(--r);background:var(--paper-2);padding:20px 16px 18px}
.room .gfig{background:var(--paper)}
.gfig__cap{display:flex;align-items:center;gap:8px;margin:0 0 14px;font-family:var(--mono);font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--teal-deep)}
.gfig__cap::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--teal);flex:none}
body[data-lang="th"] .gfig__cap,body[data-lang="zh"] .gfig__cap{font-family:var(--font);letter-spacing:.02em;font-size:13px;text-transform:none}

/* flow: the steps of one thing, left to right (top to bottom on a phone) */
.gflow{display:flex;flex-direction:column;align-items:stretch;gap:6px}
.gflow__step{min-width:0;border-radius:var(--r-sm);background:var(--paper);box-shadow:inset 0 0 0 1.5px var(--hair);padding:14px}
.room .gflow__step{background:var(--paper-2)}
.gflow__step--done,.room .gflow__step--done{background:var(--teal-soft);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--teal) 55%,transparent)}
.gflow__t{display:flex;align-items:center;gap:8px;margin:0 0 4px;font-weight:700;font-size:15px;line-height:1.45;color:var(--tx)}
.gflow__d{margin:0;font-size:14px;line-height:1.6;color:var(--tx-2)}
.gflow__arrow{align-self:center;display:grid;place-items:center;width:28px;height:20px;color:var(--teal-deep)}
.gflow__arrow svg.i{transform:rotate(90deg)}
.gtick{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--teal-deep);color:#fff;flex:none}
.gtick svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
.gtick--empty{background:transparent;border:1.5px dashed var(--tx-3)}

/* views: day / week / month as little calendars */
.gviews{display:grid;gap:10px}
.gview{display:flex;flex-direction:column;border-radius:var(--r-sm);background:var(--paper);padding:14px}
.room .gview{background:var(--paper-2)}
.gview__grid{display:grid;gap:4px;margin:auto 0 12px;max-width:200px}
.gview__grid--day{grid-template-columns:1fr}
.gview__grid--week,.gview__grid--month{grid-template-columns:repeat(7,1fr)}
.gcell{display:block;aspect-ratio:1;border-radius:5px;background:var(--paper-3)}
.gcell--on{background:var(--teal)}

/* chat: roughly what lands in the employee's LINE (drawn, not a capture) */
.gchat{display:flex;align-items:flex-start;gap:10px;max-width:380px;margin:0 auto}
.gchat__av{flex:none;width:34px;height:34px}
.gchat__av svg{width:34px;height:34px;display:block}
.gbubble{flex:1;min-width:0;background:#fff;border-radius:18px;border-top-left-radius:6px;padding:14px 16px;box-shadow:0 1px 0 var(--hair-2),0 8px 22px rgba(15,17,21,.06)}
.gbubble__hd{margin:0 0 8px;font-weight:700;font-size:15px;color:var(--tx)}
.gbubble__row{display:flex;justify-content:space-between;gap:12px;font-size:14px;line-height:1.7;color:var(--tx-2);border-top:1px solid var(--hair);padding-top:6px;margin-top:6px}
.gbubble__row:first-of-type{border-top:0;margin-top:0;padding-top:0}
.gbubble__who{font-weight:600;color:var(--tx)}
.gbubble__row em{font-style:normal;font-variant-numeric:tabular-nums}
.gbubble__note{margin:10px 0 0;padding-top:9px;border-top:1px solid var(--hair);font-size:13px;color:var(--tx-3)}

/* ---------- highlight box: the one thing an owner must not miss ---------- */
.gkey{display:flex;gap:14px;align-items:flex-start;margin:20px 0;border-radius:var(--r);background:var(--teal-soft);padding:18px 16px}
.room .gkey{background:var(--paper);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--teal) 40%,transparent)}
.gkey__ic{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--teal-deep);color:#fff}
.gkey__ic svg.i{width:20px;height:20px}
.gkey__in{min-width:0}
.gkey__k{margin:0 0 4px;font-family:var(--mono);font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--teal-deep)}
body[data-lang="th"] .gkey__k,body[data-lang="zh"] .gkey__k{font-family:var(--font);letter-spacing:.02em;font-size:13px;text-transform:none}
.gkey__h{margin:0 0 8px;font-weight:700;font-size:19px;line-height:1.35;color:var(--tx);text-wrap:balance}
.gkey__b{margin:0;font-size:15.5px;line-height:1.7;color:var(--tx-2);max-width:48em}
.gkey__b a{color:var(--teal-deep);font-weight:700;text-underline-offset:3px}
.gkey__cta{margin:14px 0 0}

/* ---------- the app menu inside a guide (rows, same order as the phone) ---------- */
.gmenu{display:grid;gap:8px;margin:20px 0 0}
.gmenu__row{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 14px;border-radius:14px;background:var(--paper);text-decoration:none;box-shadow:inset 0 0 0 1.5px var(--hair);transition:transform .18s var(--ease),box-shadow .18s var(--ease)}
a.gmenu__row:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1.5px var(--ink),0 3px 0 var(--ink)}
.gmenu__row.is-here{background:var(--teal-soft);box-shadow:inset 0 0 0 1.5px var(--teal);cursor:default;transform:none}
.gmenu__ico{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--teal-soft);color:var(--teal-deep)}
.gmenu__row.is-here .gmenu__ico{background:var(--teal-deep);color:#fff}
.gmenu__tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.gmenu__lb{font-weight:700;font-size:15.5px;line-height:1.4;color:var(--tx)}
.gmenu__bl{font-size:13.5px;line-height:1.5;color:var(--tx-3)}
.gmenu__go{flex:none;color:var(--tx-3);display:grid}
.gmenu__row.is-here .gmenu__go{visibility:hidden}

/* ---------- the guides index: one card per tab ---------- */
.gcards{margin-top:4px}
a.gcard{display:flex;flex-direction:column;min-height:100%}
.gcard .ic{background:var(--teal-soft)}
.gcard .ic svg.i{width:22px;height:22px}
@media (max-width:639px){
  a.gcard{display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:14px;align-content:start;padding:16px}
  .gcard .ic{grid-row:span 3;margin:0}
  .gcard .go{margin-top:6px;min-height:0}
}
.gcard p{flex:1}
.gcard .go svg.i{transition:transform .2s var(--ease)}
.gcard:hover .go svg.i{transform:translateX(3px)}

/* ---------- inside the WorkCo app's Guides tab (?embed=1) ----------
   theme.css hides the header, footer, dock, last call and play bubble; with no sticky header
   there is nothing to clear, so the hero sits close to the top and anchors land flush. */
html.embed{scroll-padding-top:12px}
html.embed .phero{padding-top:12px}

/* ---------- tablet and desktop ---------- */
@media (min-width:640px){
  .gfig{padding:24px 22px 22px}
  .gviews{grid-template-columns:repeat(3,1fr)}
  .gkey{padding:22px 24px;gap:16px}
  .gkey__h{font-size:21px}
  .gmenu{grid-template-columns:1fr 1fr}
}
@media (min-width:760px){
  .gflow{flex-direction:row}
  .gflow__step{flex:1 1 0}
  .gflow__arrow{width:18px;height:auto}
  .gflow__arrow svg.i{transform:none}
}
@media (min-width:900px){
  .gfig{padding:28px 28px 26px}
  .gmenu{grid-template-columns:repeat(3,1fr)}
}

/* hero tags: bp.shero() writes <ul class="tags">; theme.css .tags has no list reset (proposed shared fix) */
.phero ul.tags{list-style:none;padding:0;margin-bottom:0}

/* design check 2026-10-20: reading measure + item 9 (steps and key tips as rows, not boxes in a box) */
.gkey__b{max-width:36em}
.gflow__step,.room .gflow__step{background:none;box-shadow:none;border-radius:0;border-top:2px solid var(--hair-2);padding:12px 2px 4px}
.gflow__step--done,.room .gflow__step--done{background:none;box-shadow:none;border-top-color:var(--teal)}
.room .gkey{background:none;box-shadow:none;border-radius:0;border-top:2px solid color-mix(in srgb,var(--teal) 40%,transparent);padding-left:0;padding-right:0}
/* guides index cards follow the site's card pattern: icon beside the heading, text below */
a.gcard{display:block}
@media (min-width:640px){a.gcard{display:block;padding:20px 18px}.gcard .ic{grid-row:auto;margin:.15em 10px 0 0}}
