/* Ruam Help Center (help.ruam.ai, KRA-753). Static, served from public/help.
   Matches the approved prototype (ruam-prototypes/pages/help-center, v8).
   No inline styles anywhere: the help pages' CSP allows this file only. */
@font-face { font-family: "DM Sans"; src: url("/help/fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/help/fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Syne"; src: url("/help/fonts/syne.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

/* Layout: help.ruam.ai on the stock help-desk template (founder's request): white top bar,
   a painted meadow banner on home, then a sticky left collections sidebar beside the content;
   collection, sub-collection and article pages with a sticky "On this page" rail.
   Ruam's own logo, fonts, colors and art. */
:root {
  --canvas: #f7f7f5; --white: #ffffff; --well: #f2f2f0; --soft: #ececea; --tint: #f4f6f4;
  --hairline: #e3e3e0; --hairline-2: #d6d6d2; --line-mid: #bbbbb8;
  --ink: #1d1b16; --ink-2: #4d4b46; --ink-3: #6c6964; --ink-hover: #34322c;
  --accent: #5f7a68; --accent-soft: #e9efea; --amber: #b07a2a;
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --label: "Syne", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 15.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
svg.i { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gut { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; height: 60px; background: var(--white); border-bottom: 1px solid var(--hairline); display: flex; align-items: center; gap: 22px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--white); }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.logo b { font: 600 20px/1 var(--label); letter-spacing: -.025em; }
.logo span { font-size: 14px; color: var(--ink-3); padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--hairline); }
.top .sp { flex: 1; }
.top nav { display: flex; align-items: center; gap: 20px; font-size: 14.5px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--well); border: 1px solid var(--hairline); color: var(--ink-3); font-size: 14px; min-width: 190px; }
.pill:hover { border-color: var(--hairline-2); }
.pill svg { width: 16px; height: 16px; }
.pill kbd { margin-left: auto; font: 12px var(--sans); color: var(--ink-3); background: var(--white); border: 1px solid var(--hairline); border-radius: 5px; padding: 0 5px; }

/* Hero (home only): a painted meadow under an open sky, swallows gliding over it */
.hero { position: relative; height: 280px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; background: #a9bfc2; border-bottom: 1px solid var(--hairline); }
.hero svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero h1 { position: relative; font: 400 46px/1.08 var(--serif); margin: -18px 0 0; letter-spacing: -.015em; color: #ffffff; text-shadow: 0 1px 2px rgba(24,36,32,.28), 0 4px 22px rgba(24,36,32,.32); }
.hero h1 span { display: block; }
.hsearch { position: relative; width: min(560px, 100%); }
.hsearch svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.hsearch input { width: 100%; height: 50px; border: 1px solid rgba(255,255,255,.7); border-radius: 10px; background: var(--white); padding: 0 56px 0 42px; font: inherit; font-size: 15.5px; color: var(--ink); box-shadow: 0 10px 30px rgba(24,36,32,.16); }
.hsearch input:focus { outline: none; border-color: var(--accent); }
.hsearch kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 12px var(--sans); color: var(--ink-3); background: var(--well); border: 1px solid var(--hairline); border-radius: 5px; padding: 1px 6px; }
.drift { animation: drift 46s ease-in-out infinite alternate; }
.drift.slow { animation-duration: 70s; }
.glide { animation: glide 16s ease-in-out infinite alternate; }
.glide.b { animation-duration: 21s; animation-delay: -6s; }
.glide.c { animation-duration: 25s; animation-delay: -11s; }
@keyframes drift { from { transform: translateX(-18px) } to { transform: translateX(26px) } }
@keyframes glide { 0% { transform: translate(0, 0) } 50% { transform: translate(22px, -7px) } 100% { transform: translate(40px, 4px) } }

/* Shell: sidebar + content */
.shell { display: grid; grid-template-columns: 275px minmax(0, 1fr); max-width: 1320px; margin: 0 auto; }
.side { position: sticky; top: 60px; align-self: start; max-height: calc(100vh - 60px); overflow: auto; border-right: 1px solid var(--hairline); padding: 22px 14px 40px 4px; }
.side .lbl { font: 600 11px/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 0 10px 10px; display: block; }
.srow { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 500; }
.srow:hover { background: var(--well); }
.srow .sq { width: 22px; height: 22px; border-radius: 5px; background: var(--ink); color: var(--white); display: grid; place-items: center; flex-shrink: 0; }
.srow .sq svg { width: 13px; height: 13px; stroke-width: 2.2; }
.srow .nm { flex: 1; min-width: 0; }
.srow > svg { width: 15px; height: 15px; color: var(--ink-3); transition: transform .15s; }
.srow.open > svg { transform: rotate(90deg); }
.srow.cur, .sub.cur, .sart.cur { color: var(--accent); }
.sub { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 42px; border-radius: 6px; text-decoration: none; color: var(--ink-2); font-size: 14px; }
.sub:hover, .sart:hover { background: var(--well); }
.sub > svg { width: 14px; height: 14px; color: var(--ink-3); margin-left: auto; transition: transform .15s; }
.sub.open > svg { transform: rotate(90deg); }
.sart { display: block; padding: 5px 10px 5px 42px; border-radius: 6px; text-decoration: none; color: var(--ink-3); font-size: 13.5px; line-height: 1.4; }
.arts.deep .sart { padding-left: 56px; }
.sart.cur { font-weight: 500; }
.colbtn { display: none; }

.content { min-width: 0; padding: 30px 40px 56px; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--ink-3); flex-wrap: wrap; margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: var(--ink-3); }
.crumbs a:hover { color: var(--accent); }
.crumbs svg { width: 13px; height: 13px; }

/* Home grid */
.content h2.h { font: 400 28px/1.2 var(--serif); margin: 0 0 18px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 980px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: 6px; text-decoration: none; background: var(--white); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.card:hover { border-color: var(--hairline-2); box-shadow: 0 6px 18px rgba(29,27,22,.06); }
.card .tb { padding: 18px 18px 16px; }
.card .sq { width: 34px; height: 34px; border-radius: 7px; background: var(--ink); color: var(--white); display: grid; place-items: center; }
.card .sq svg { width: 18px; height: 18px; stroke-width: 2; }
.card .bb { border-top: 1px solid var(--hairline); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card b { font: 400 21px/1.2 var(--serif); }
.card span { color: var(--ink-3); font-size: 14px; }
.card .cauth { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--ink-3); }
.card .cauth .av { width: 24px; height: 24px; }
.card small { color: var(--accent); font-size: 13px; margin-top: auto; padding-top: 6px; font-weight: 500; }

/* Collection pages */
.ptitle { font: 400 40px/1.1 var(--serif); margin: 0 0 8px; letter-spacing: -.015em; }
.pdesc { color: var(--ink-3); margin: 0 0 16px; font-size: 16px; max-width: 62ch; }
.author { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-3); }
.av { width: 30px; height: 30px; border-radius: 15px; background: #dfe7e1; border: 1px solid #cfdad2; overflow: hidden; display: block; flex-shrink: 0; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author b { color: var(--ink); font-weight: 500; }
.secl { font: 400 22px/1.2 var(--serif); margin: 34px 0 6px; }
.rows { max-width: 820px; border-top: 1px solid var(--hairline); margin-top: 26px; }
.secl + .rows { margin-top: 10px; }
.crow { display: flex; align-items: center; gap: 16px; padding: 16px 12px; border-bottom: 1px solid var(--hairline); text-decoration: none; }
.crow:hover { background: var(--tint); }
.crow .t { flex: 1; min-width: 0; }
.crow b { display: block; font-weight: 500; font-size: 16px; }
.crow small { display: block; color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.crow .n { color: var(--accent); font-size: 14px; font-weight: 500; white-space: nowrap; }
.crow > svg { color: var(--ink-3); }
.crow mark { background: var(--accent-soft); color: var(--ink); border-radius: 3px; padding: 0 2px; }

/* Article */
.art { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 56px; max-width: 1040px; }
.doc { min-width: 0; max-width: 68ch; }
.doc .ptitle { font-size: 38px; text-wrap: balance; }
.ahead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--hairline); margin-bottom: 24px; }
.ahead .author { flex: 1; min-width: 220px; }
.ahead .author span { display: block; line-height: 1.35; }
.copy { height: 32px; padding: 0 11px; border-radius: 7px; border: 1px solid var(--hairline-2); background: var(--white); display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.copy:hover { background: var(--well); }
.copy svg { width: 15px; height: 15px; }
.doc h2 { font: 400 26px/1.2 var(--serif); margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 5px; }
.doc li::marker { color: var(--ink-3); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--accent); text-underline-offset: 3px; text-decoration-color: rgba(95,122,104,.45); }
.doc a:hover { text-decoration-color: var(--accent); }
code.ui { font: 500 13.5px var(--sans); background: var(--well); border: 1px solid var(--hairline); border-radius: 5px; padding: 1px 6px; color: var(--ink); white-space: nowrap; }
.note { display: flex; gap: 12px; background: var(--tint); border: 1px solid #dde5df; border-radius: 8px; padding: 13px 15px; margin: 18px 0; }
.note svg { color: var(--accent); margin-top: 3px; }
.note p { margin: 0; }
.tablewrap { overflow-x: auto; margin: 6px 0 18px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; border: 1px solid var(--hairline); }
.table th, .table td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--hairline); vertical-align: top; }
.table th { background: var(--well); font-weight: 600; font-size: 13px; color: var(--ink-2); border-top: 0; }
.table td { color: var(--ink-2); }
.table td:first-child { color: var(--ink); font-weight: 500; }

/* Screenshots framed like the app */
figure.shot { margin: 18px 0 24px; }
.frame { border: 1px solid var(--hairline-2); border-radius: 10px; overflow: hidden; background: var(--canvas); box-shadow: 0 6px 20px rgba(29,27,22,.06); }
.chrome { height: 28px; background: var(--white); border-bottom: 1px solid var(--hairline); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.chrome i { width: 9px; height: 9px; border-radius: 5px; background: var(--hairline-2); }
.chrome span { margin-left: 10px; font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage { padding: 18px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.mcard { background: var(--white); border: 1px solid var(--hairline); border-radius: 10px; padding: 14px 16px; width: 100%; max-width: 520px; font-size: 13px; }
.mcard.narrow { max-width: 300px; }
.mcard .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mcard .big { font: 600 24px/1.1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mcard .big span { font: 400 15px var(--serif); color: var(--ink-3); margin-left: 4px; }
.mcard .muted { color: var(--ink-3); font-size: 12px; }
.btnm { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--ink); color: var(--white); font-size: 12.5px; font-weight: 500; }
.btnm.out { background: var(--white); color: var(--ink); border: 1px solid var(--hairline-2); }
.mcard .fld { border: 1px solid var(--hairline-2); border-radius: 8px; padding: 7px 10px; color: var(--ink-2); margin-top: 6px; }
.mcard .chip { display: inline-block; background: var(--well); border: 1px solid var(--hairline); border-radius: 6px; padding: 1px 7px; margin: 0 4px 4px 0; font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 4px; background: var(--accent); flex-shrink: 0; display: inline-block; }
.dot.amber { background: var(--amber); }
.track { position: relative; height: 12px; border-radius: 6px; background: #e8e8e5; margin-top: 12px; overflow: hidden; }
.track b { position: absolute; top: 0; bottom: 0; background: #2f7a52; border-radius: 6px; }
.track b.brk { background: #d9c7a0; }
.axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 5px; font-variant-numeric: tabular-nums; }
.menubar { width: 100%; height: 26px; background: #e9e9e6; border-radius: 6px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 0 10px; font-size: 12px; color: var(--ink-2); }
.menubar .on { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border-radius: 5px; padding: 1px 7px; color: var(--ink); font-weight: 500; }
figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

/* On this page */
.toc { position: sticky; top: 84px; align-self: start; font-size: 13.5px; }
.toc .lbl { font: 600 11px/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 10px; }
.toc a { display: block; text-decoration: none; color: var(--ink-3); padding: 5px 0 5px 13px; border-left: 2px solid var(--hairline); line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--accent); border-left-color: var(--accent); font-weight: 500; }

/* Bottom of article */
.react { margin: 44px 0 30px; padding: 22px; border: 1px solid var(--hairline); border-radius: 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; background: var(--white); }
.react p { margin: 0; font-weight: 500; color: var(--ink); }
.faces { display: flex; gap: 10px; }
.face { width: 46px; height: 46px; border-radius: 23px; border: 1px solid var(--hairline-2); background: var(--white); display: grid; place-items: center; color: var(--ink-2); transition: transform .12s; }
.face:hover { transform: scale(1.08); border-color: var(--ink-3); }
.face[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.face svg { width: 26px; height: 26px; stroke-width: 1.6; }
.react .thanks { font-size: 14px; color: var(--ink-3); }
.react .thanks a { color: var(--accent); }
.relh { font: 400 22px/1.2 var(--serif); margin: 0 0 4px; }

/* Article pages: no top bar, no sidebar; a short banner, one centered 1000px container */
html.artmode { scroll-padding-top: 20px; }
.aband { position: relative; height: 168px; overflow: hidden; background: #a9bfc2; border-bottom: 1px solid var(--hairline); }
.aband svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.aband .in { position: relative; max-width: 1000px; margin: 0 auto; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.aband .row1 { display: flex; align-items: center; gap: 14px; }
.aband .logo { background: rgba(255,255,255,.82); border-radius: 10px; padding: 6px 12px 6px 8px; }
.aband .logo b { color: var(--ink); }
.aband .logo span { color: var(--ink-2); border-left-color: var(--hairline-2); }
.aband .go { margin-left: auto; color: var(--ink); background: rgba(255,255,255,.82); border-radius: 10px; padding: 7px 12px; text-decoration: none; font-size: 14.5px; font-weight: 500; }
.aband .go:hover { text-decoration: underline; text-underline-offset: 3px; }
.aband .hsearch { width: 100%; max-width: 620px; }
.aband .hsearch input { height: 46px; }
.awrap { max-width: 1000px; margin: 0 auto; padding-block: 30px 80px; display: grid; grid-template-columns: minmax(0, 620px) 260px; gap: 120px; justify-content: space-between; }
.acrumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.acrumbs a { color: var(--ink-3); text-decoration: none; }
.acrumbs a:hover { color: var(--accent); }
.acrumbs i { font-style: normal; color: var(--line-mid); }
.gdoc { min-width: 0; font-size: 16px; line-height: 1.75; }
.ttl { display: flex; gap: 14px; align-items: flex-start; }
.ttl h1 { flex: 1; font: 400 38px/1.15 var(--serif); margin: 0; letter-spacing: -.015em; text-wrap: balance; }
.iconb { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--hairline-2); background: var(--white); display: grid; place-items: center; color: var(--ink-2); flex-shrink: 0; margin-top: 4px; }
.iconb:hover { background: var(--well); }
.iconb svg { width: 17px; height: 17px; }
.lead { color: var(--ink-3); font-size: 17px; line-height: 1.6; margin: 12px 0 18px; }
.by { display: flex; align-items: center; gap: 11px; padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.by .av { width: 36px; height: 36px; border-radius: 18px; }
.by b { display: block; font-weight: 500; color: var(--ink); line-height: 1.3; }
.by span { display: block; color: var(--ink-3); font-size: 13px; line-height: 1.3; }
.gdoc h2 { font: 400 27px/1.25 var(--serif); margin: 40px 0 10px; }
.gdoc p, .gdoc li { color: var(--ink-2); }
.gdoc p { margin: 0 0 16px; }
.gdoc ul, .gdoc ol { padding-left: 22px; margin: 0 0 18px; }
.gdoc li { margin-bottom: 6px; }
.gdoc strong { color: var(--ink); font-weight: 600; }
.gdoc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(95,122,104,.55); }
.gdoc a:hover { text-decoration-color: var(--accent); }
.important { margin: 18px 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.important b { color: var(--ink); }
.gdoc pre { margin: 6px 0 20px; background: var(--well); border: 1px solid var(--hairline); border-radius: 8px; padding: 14px 16px; font: 13.5px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); overflow-x: auto; white-space: pre; }
.gdoc figure.shot { margin: 18px 0 26px; }
.gdoc .frame { box-shadow: none; border: 1px solid var(--hairline-2); }
.otp { position: sticky; top: 24px; align-self: start; border: 1px solid var(--hairline); border-radius: 10px; padding: 14px 10px 10px; font-size: 14px; background: var(--white); }
.otp .lbl { font: 600 11px/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: block; margin: 0 8px 10px; }
.otp a { display: block; text-decoration: none; color: var(--ink-2); padding: 6px 10px; border-radius: 7px; line-height: 1.35; }
.otp a:hover { background: var(--well); color: var(--ink); }
.otp a.on { background: var(--accent-soft); color: #3f5747; font-weight: 500; }
.otp a.step { padding-left: 22px; font-size: 13.5px; }
/* Time Clock look */
.clock { width: 100%; max-width: 560px; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; padding: 18px 20px; font-size: 13px; }
.clock .st { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--ink); }
.clock .time { font: 600 40px/1 var(--sans); letter-spacing: -.03em; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.clock .time span { font: 400 16px var(--serif); color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }
.clock .acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.clock .ledger { margin-top: 16px; border-top: 1px solid var(--hairline); }
.clock .ledger div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--hairline); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.clock .ledger div:last-child { border-bottom: 0; }

.gdoc h3 { font: 600 18px/1.4 var(--sans); margin: 28px 0 8px; color: var(--ink); }
.gdoc ol { padding-left: 24px; }
.gdoc .q { margin: 20px 0 4px; }
.gdoc .q + p { margin-bottom: 8px; }
.needhelp { margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--hairline); }
.seg { display: inline-flex; border: 1px solid var(--hairline-2); border-radius: 8px; overflow: hidden; font-size: 12px; }
.seg > * { padding: 3px 10px; }
.seg b { background: var(--ink); color: var(--white); font-weight: 500; }
.mcard u { text-decoration-color: var(--line-mid); text-underline-offset: 2px; }
.opt { border: 1px solid var(--hairline-2); border-radius: 8px; padding: 6px 14px; font-weight: 500; }
.opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ledger2 { margin-top: 10px; border-top: 1px solid var(--hairline); }
.ledger2 div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--hairline); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ledger2 .tot { border-bottom: 0; color: var(--ink); font-weight: 600; }
.li2 { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--hairline); margin-top: 10px; flex-wrap: wrap; }
.li2 > span:first-child { min-width: 0; }
.li2 b { display: block; }
.li2 .muted { display: block; }
.appicon { display: block; width: 34px; height: 34px; flex-shrink: 0; }
.appicon.sm { width: 22px; height: 22px; }
.pin, .mcard .pin { font-size: 12px; background: var(--accent-soft); color: #3f5747; border-radius: 6px; padding: 2px 8px; font-weight: 500; }
.pinic { width: 16px; height: 16px; color: var(--ink); }
.sbstat { display: flex; gap: 9px; align-items: flex-start; background: var(--well); border: 1px solid var(--hairline); border-radius: 10px; padding: 8px 10px; }
.sbstat .dot { margin-top: 6px; }
.sbstat b { display: block; font-weight: 500; }
.sbstat .muted { display: block; }
.split { position: relative; display: inline-flex; flex-shrink: 0; margin-top: 6px; }
.split > button { height: 34px; border: 1px solid var(--hairline-2); background: var(--white); display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.split > button:hover { background: var(--well); color: var(--ink); }
.sb-main { padding: 0 11px; border-radius: 8px 0 0 8px; }
.sb-chev { padding: 0 8px; border-radius: 0 8px 8px 0; border-left: 0 !important; }
.split svg { width: 15px; height: 15px; }
.sb-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 290px; background: var(--white); border: 1px solid var(--hairline); border-radius: 10px; box-shadow: 0 12px 32px rgba(29,27,22,.12); padding: 5px; }
.mi { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 7px; text-align: left; text-decoration: none; color: var(--ink); }
.gdoc a.mi, .gdoc a.mi * { color: var(--ink); text-decoration: none; }
.gdoc a.mi small { color: var(--ink-3); }
.mi:hover, .mi:focus-visible { background: var(--well); }
.mi svg { margin-top: 3px; color: var(--ink-3); }
.mi b { display: block; font-weight: 500; font-size: 14px; }
.mi small { display: block; color: var(--ink-3); font-size: 12.5px; }
.mdscrim { position: fixed; inset: 0; z-index: 90; background: rgba(29,27,22,.3); display: grid; place-items: center; padding: 16px; }
.mdpanel { width: min(760px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; box-shadow: 0 20px 50px rgba(29,27,22,.18); overflow: hidden; }
.mdh { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
.mdh > span { flex: 1; min-width: 0; }
.mdh b { display: block; font-weight: 600; }
.mdh small { display: block; color: var(--ink-3); font-size: 12.5px; overflow-wrap: anywhere; }
.mdpanel pre { margin: 0; padding: 16px; overflow: auto; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); white-space: pre-wrap; background: var(--well); }
/* Search page */
.sbox { position: relative; max-width: 820px; margin: 0 0 8px; }
.sbox svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.sbox input { width: 100%; height: 46px; border: 1px solid var(--hairline-2); border-radius: 10px; padding: 0 14px 0 42px; font: inherit; color: var(--ink); }
.sbox input:focus { outline: none; border-color: var(--accent); }
.count { color: var(--ink-3); font-size: 14px; margin: 14px 0 0; }
.empty { max-width: 820px; border: 1px solid var(--hairline); border-radius: 8px; padding: 26px; text-align: center; margin-top: 18px; }
.empty b { font: 400 22px/1.2 var(--serif); display: block; margin-bottom: 6px; }
.empty p { margin: 0; color: var(--ink-3); }
.addr { color: var(--ink); user-select: all; font-weight: 500; }

.toast { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 9px 16px; border-radius: 9px; font-size: 14px; z-index: 80; max-width: calc(100vw - 32px); }

/* KRA-767: the Ruam AI chat. The frame (ruam.ai) draws the bubble and the
   panel; this page only sizes it. Invisible until the chat says it's ready.
   Above the toast, below the Copy page dialog. Under 640px the open chat is
   full screen and the page behind it holds still. */
.ruam-chat-frame { visibility: hidden; position: fixed; right: 0; bottom: 0; z-index: 85; border: 0; background: transparent; color-scheme: normal; width: 88px; height: 88px; margin-bottom: env(safe-area-inset-bottom, 0px); }
.ruam-chat-frame[data-state="open"] { width: 400px; height: 640px; max-height: calc(100dvh - 48px); right: 24px; bottom: 24px; border-radius: 20px; box-shadow: 0 24px 70px -18px rgba(29,27,22,.5); }
.ruam-chat-frame[data-ready] { visibility: visible; }
@media (max-width: 639px) { html.chat-open, html.chat-open body { overflow: hidden; } .ruam-chat-frame[data-state="open"] { inset: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; box-shadow: none; margin: 0; } }

@media (max-width: 1100px) { .art { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .top nav a.wide { display: none; }
  .logo span { display: none; }
  .pill { min-width: 0; }
  .pill .w, .pill kbd { display: none; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; max-height: none; border-right: 0; border-bottom: 1px solid var(--hairline); padding: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); }
  .side .lbl { display: none; }
  .side .tree { display: none; padding-bottom: 14px; }
  .side.openm .tree { display: block; }
  .colbtn { display: flex; align-items: center; gap: 8px; width: 100%; height: 48px; border: 0; background: none; font-weight: 500; font-size: 15px; padding: 0 4px; }
  .colbtn svg:last-child { margin-left: auto; transition: transform .15s; }
  .side.openm .colbtn svg:last-child { transform: rotate(90deg); }
  .content { padding: 22px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
  .hero { height: 250px; }
  .hero h1 { font-size: 33px; }
  .hsearch kbd { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .ptitle, .doc .ptitle { font-size: 30px; }
  .awrap { grid-template-columns: minmax(0, 1fr); padding: 22px max(16px, env(safe-area-inset-right, 0px)) 110px max(16px, env(safe-area-inset-left, 0px)); }
  .otp { display: none; }
  .aband .in { padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
  .ttl h1 { font-size: 30px; }
}
@media (min-width: 821px) and (max-width: 1060px) { .awrap { gap: 40px; padding-left: 20px; padding-right: 20px; } .aband .in { padding: 0 20px; } }
@media (prefers-reduced-motion: reduce) { .card, .face, .srow > svg, .sub > svg { transition: none; } .drift, .glide { animation: none; } }

/* Small helpers (the prototype's inline styles, as classes) */
.mcard.w560 { max-width: 560px; }
.mcard.w420 { max-width: 420px; }
.mt4 { margin-top: 4px; }
.mt10 { margin-top: 10px; }
.mt12 { margin-top: 12px; }
.f15 { font-size: 15px; }
.push { margin-left: auto; }
.row.around { justify-content: space-around; }
.track b.tk1 { left: 2%; width: 38%; }
.track b.tk2 { left: 40.5%; width: 6%; }
.track b.tk3 { left: 47%; width: 51%; }
.relh.first { margin-top: 0; }
.rows.tight { margin-top: 8px; }
.rows.res { margin-top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.nf { max-width: 620px; margin: 0 auto; padding: 72px 20px 96px; text-align: center; }
.nf p { color: var(--ink-3); margin: 0 0 22px; }
.nf .go-home { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 9px; background: var(--ink); color: var(--white); text-decoration: none; font-weight: 500; }
.nf .go-home:hover { background: var(--ink-hover); }
.gdoc .acrumbs a { color: var(--ink-3); text-decoration: none; }
.gdoc .acrumbs a:hover { color: var(--accent); }
.gdoc a.crow, .gdoc a.crow * { text-decoration: none; color: var(--ink); }
.gdoc a.crow small { color: var(--ink-3); }
/* A soft shade behind the headline so the white words read on the light sky */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 40% 50% at 50% 40%, rgba(24,36,32,.42), rgba(24,36,32,0) 75%); }
.hero h1, .hero .hsearch { z-index: 1; }

/* KRA-965: the article template (approved help pilot, 2026-11-12) */
.avail { margin: 0 0 22px; padding: 12px 14px; border-radius: 10px; background: var(--well); border: 1px solid var(--hairline); display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.arow { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.ak { font: 600 11px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.avail .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.avail .chip { display: inline-block; background: var(--white); border: 1px solid var(--hairline-2); border-radius: 6px; padding: 1px 8px; font-size: 13px; color: var(--ink); font-weight: 500; }
.av2 { color: var(--ink-2); }
.gdoc p.answer { font-size: 17px; line-height: 1.6; color: var(--ink); margin: 0 0 8px; }
.gdoc figure.media { margin: 18px 0 30px; }
figure.media img { display: block; width: 100%; height: auto; border-radius: 10px; }
figure.media figcaption { font-size: 13.5px; color: var(--ink-3); margin-top: 9px; line-height: 1.5; }
.diff { margin: 26px 0 8px; padding: 2px 0 2px 16px; border-left: 3px solid var(--hairline-2); font-size: 15px; }
.gdoc .diff p { margin: 0 0 8px; }
.gdoc .diff .dh { font-weight: 600; color: var(--ink); margin-bottom: 6px; }

/* The chat opens only when asked (KRA-965): no request leaves the page before. */
.chat-ask { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 84; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 22px; border: 0; background: var(--ink); color: var(--white); font-size: 14.5px; font-weight: 500; box-shadow: 0 10px 28px -10px rgba(29,27,22,.5); }
/* Room under the page for the fixed Chat with us button, so it never covers the last line (help audit 2026-11-12). */
@media (max-width: 640px) { body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); } }
.chat-ask:hover { background: var(--ink-hover); }
.chat-ask[aria-busy="true"] { opacity: .75; cursor: progress; }
a.chat-ask { text-decoration: none; max-width: calc(100vw - 40px); height: auto; min-height: 44px; padding: 10px 18px; line-height: 1.35; }
.chat-ask[hidden] { display: none; }
