/* ===== billWright docs (CAM) — layout on top of app/styles.css =====
   styles.css provides tokens + .card / .btn / .pill / .tbl / .kbd.
   command-bar.css provides the live + static command bar. This file
   adds the documentation page chrome only. */

body { background: var(--cream); }

/* ---- top bar ---- */
.docnav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(236,234,227,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
}
.docnav .in { max-width: 1080px; margin: 0 auto; padding: 0 32px; height: 60px; display: flex; align-items: center; gap: 22px; }
.docnav .brand { display: flex; align-items: center; gap: 10px; }
.docnav .brand-logo { height: 24px; width: auto; display: block; }
.docnav .brand .tr { width: 28px; height: 21px; }
.docnav .brand .wm { font-size: 19px; }
.docnav .brand .wm .b { font-family: var(--serif); font-style: italic; color: var(--accent); }
.docnav .brand .wm .w { font-weight: 800; }
.docnav .brand .crumb { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--hair-strong); padding-left: 14px; margin-left: 4px; }
.docnav .sp { flex: 1; }
.docnav a.dl { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.docnav a.dl:hover { color: var(--accent-deep); }
@media (max-width: 720px) { .docnav a.dl.hide-sm { display: none; } .docnav .in { gap: 14px; padding: 0 18px; } }

/* ---- page shell ---- */
.doc { max-width: 1080px; margin: 0 auto; padding: 0 32px 120px; }
@media (max-width: 720px) { .doc { padding: 0 18px 90px; } }

/* ---- hero ---- */
.doc-hero { padding: 54px 0 10px; max-width: 760px; }
.doc-eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-deep); }
.doc-hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.025em; line-height: 1.04; margin: 14px 0 16px; font-weight: 800; }
.doc-hero h1 .accent { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-deep); }
.doc-hero p { font-size: 17px; color: var(--ink-soft); line-height: 1.6; text-wrap: pretty; }
.doc-hero .meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.doc-hero .meta .m { background: var(--surface); border: 1px solid var(--hair); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; color: var(--ink-soft); }
.doc-hero .meta .m b { color: var(--accent-deep); }

/* ---- sections ---- */
.doc-sec { margin-top: 56px; scroll-margin-top: 76px; }
.doc-sec-head { display: flex; align-items: baseline; gap: 13px; margin-bottom: 8px; }
.doc-sec-head .n { font-family: var(--mono); font-size: 12px; color: var(--hair-strong); font-weight: 600; }
.doc-sec-head h2 { font-size: 23px; letter-spacing: -.02em; }
.doc-sec-head h2 .accent { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-deep); }
.doc-sec > .lead { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; max-width: 72ch; line-height: 1.6; }

/* the static-bar stage (reused look from the review page) */
.doc-stage { background: var(--cream-deep); border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: 26px 22px; }
.doc-stage + .doc-stage { margin-top: 16px; }
.doc-hint { padding: 12px 4px 2px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--muted); }
.doc-hint b { color: var(--ink-soft); }

/* anatomy callouts */
.anat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.anat .a { display: flex; gap: 13px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 16px; }
.anat .a .num { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 7px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.anat .a h4 { font-size: 14px; margin-bottom: 3px; }
.anat .a p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) { .anat { grid-template-columns: 1fr; } }

/* command reference: group columns */
.cmdref { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cmdref .grp { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-lg); overflow: hidden; }
.cmdref .grp-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; background: var(--surface-2); border-bottom: 1px solid var(--hair); }
.cmdref .grp-head .tag { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 3px 9px; border-radius: 5px; }
.cmdref .grp-head .tag.go { background: var(--blue-soft); color: #1F4E9E; }
.cmdref .grp-head .tag.create { background: var(--accent-soft); color: var(--accent-deep); }
.cmdref .grp-head .tag.action { background: var(--amber-soft); color: #6E5314; }
.cmdref .grp-head .tag.query { background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--hair-strong); }
.cmdref .grp-head p { font-size: 12px; color: var(--muted); }
.cmdref .cr { display: flex; align-items: baseline; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--hair); }
.cmdref .cr:last-child { border-bottom: 0; }
.cmdref .cr .lab { flex: 1; font-size: 13.5px; font-weight: 500; }
.cmdref .cr .lab span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.cmdref .cr .al { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
@media (max-width: 720px) { .cmdref { grid-template-columns: 1fr; } }

/* keyboard flow */
.keys { display: flex; flex-wrap: wrap; gap: 10px; }
.keys .k { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 11px 14px; }
.keys .k kbd { font-family: var(--mono); font-size: 12px; font-weight: 600; background: var(--cream); border: 1px solid var(--hair-strong); border-bottom-width: 2px; border-radius: 6px; padding: 3px 8px; color: var(--ink); }
.keys .k span { font-size: 13px; color: var(--ink-soft); }

/* future-use guide cards */
.future { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.future .f { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: 22px; }
.future .f .st { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 3px 9px; border-radius: 999px; display: inline-block; margin-bottom: 12px; }
.future .f .st.next { background: var(--amber-soft); color: #6E5314; }
.future .f .st.later { background: var(--surface-2); color: var(--muted); border: 1px solid var(--hair); }
.future .f h4 { font-size: 16px; margin-bottom: 7px; }
.future .f p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 12px; }
.future .f .ex { font-family: var(--mono); font-size: 12px; background: var(--ink); color: #E6EFE7; border-radius: 8px; padding: 9px 12px; display: flex; align-items: center; gap: 8px; }
.future .f .ex .g { color: var(--accent); font-weight: 700; }
@media (max-width: 720px) { .future { grid-template-columns: 1fr; } }

/* try-it callout */
.tryit { display: flex; align-items: center; gap: 16px; background: var(--accent-soft); border: 1px solid rgba(31,122,61,.3); border-radius: var(--radius-lg); padding: 18px 22px; margin-top: 18px; flex-wrap: wrap; }
.tryit .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.tryit b { font-size: 15px; }
.tryit p { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.tryit .keyhint { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--accent-deep); display: flex; align-items: center; gap: 6px; }
.tryit .keyhint kbd { font-family: var(--mono); background: var(--surface); border: 1px solid var(--hair-strong); border-bottom-width: 2px; border-radius: 6px; padding: 3px 8px; font-weight: 600; }

/* note callout */
.doc-note { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--hair); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; margin-top: 20px; }
.doc-note .ct { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); display: block; margin-bottom: 4px; }
.doc-note p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

/* footer */
.doc-foot { max-width: 1080px; margin: 60px auto 0; padding: 26px 32px 0; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.doc-foot a { color: var(--accent-deep); font-weight: 600; }

/* give the page room above the docked live bar */
body { padding-bottom: 60px; }
/* the live command bar on this page has no sidebar — span full width */
.cmdbar:not(.cmdbar--static) { left: 0; }
