/* HallDiary Help Centre (halldiary.in/help), built by scripts/build-help.mjs. Same "Modern Heritage" tokens as the
   legal pages (css/legal.css), light and dark; Noto Sans Devanagari for Hindi reading. */
:root {
  --bg: #FAF7F2; --card: #FFFFFF; --ink: #1F1A17; --muted: #6B625B; --line: #EAE3DA;
  --brand: #7C2D3A; --brand-2: #96394A; --brand-soft: #F4E6E8; --brand-ink: #7C2D3A; --gold: #C9973A; --gold-soft: #F7EDD9;
  --head-bg: #7C2D3A; --head-ink: #FFFFFF; --head-muted: #F0D9DD;
  --r: 14px; --r-s: 10px; --shadow: 0 1px 2px rgba(31,26,23,.06), 0 4px 14px rgba(31,26,23,.05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #17120F; --card: #221B18; --ink: #EDE6DF; --muted: #A89D94; --line: #352B26;
  --brand: #F0B8C0; --brand-2: #E39AA5; --brand-soft: #3A2227; --brand-ink: #F0B8C0; --gold: #E3B964; --gold-soft: #342A18;
  --head-bg: #221B18; --head-ink: #EDE6DF; --head-muted: #A89D94;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.28);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #17120F; --card: #221B18; --ink: #EDE6DF; --muted: #A89D94; --line: #352B26;
  --brand: #F0B8C0; --brand-2: #E39AA5; --brand-soft: #3A2227; --brand-ink: #F0B8C0; --gold: #E3B964; --gold-soft: #342A18;
  --head-bg: #221B18; --head-ink: #EDE6DF; --head-muted: #A89D94;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.28);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Noto Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 1.0625rem; line-height: 1.65; -webkit-text-size-adjust: 100%; }
html[lang="hi"] body { font-family: "Noto Sans Devanagari", "Noto Sans", system-ui, sans-serif; line-height: 1.75; }
a { color: var(--brand-ink); text-decoration: underline; text-decoration-color: var(--brand-soft); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--brand); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip, .vh { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; color: #1F1A17; padding: 8px 12px; border-radius: 8px; }

.site-head { background: var(--head-bg); color: var(--head-ink); padding: 10px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-head .inner { max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.site-head .logo { display: inline-flex; align-items: center; gap: 10px; color: var(--head-ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.site-head .logo .mark { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; background: #FFFFFF; display: grid; place-items: center; }
.site-head .logo .mark img { width: 100%; height: 100%; display: block; }
.site-head nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .92rem; }
.site-head nav a { color: var(--head-muted); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.site-head nav a:hover { color: var(--head-ink); text-decoration: underline; }
.site-head nav a.lang { border: 1px solid currentColor; border-radius: 999px; padding: 0 12px; font-weight: 600; }
.site-head nav a.open { background: var(--gold); color: #1F1A17; border-radius: 10px; padding: 0 14px; font-weight: 700; }
.site-head nav a.open:hover { color: #1F1A17; text-decoration: none; }

main { max-width: 760px; margin: 0 auto; padding: 18px 16px 40px; }
.crumbs { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
article, .hub-head, .group, .stuck, .related { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 18px; margin: 0 0 16px; }
@media (min-width: 600px) { article, .hub-head { padding: 28px 32px; } .group, .stuck, .related { padding: 20px 32px; } }
h1 { margin: 0 0 6px; font-size: 1.6rem; line-height: 1.25; }
h2 { margin: 1.4em 0 .4em; font-size: 1.15rem; line-height: 1.35; }
h3 { margin: 1.1em 0 .3em; font-size: 1.02rem; }
.group h2, .stuck h2, .related h2 { margin-top: 0; }
p { margin: .55em 0; }
.lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 1em; }
ul, ol { margin: .5em 0; padding-left: 1.4em; }
li { margin: .35em 0; }
ol.steps { list-style: none; counter-reset: s; padding-left: 0; }
ol.steps > li { counter-increment: s; position: relative; padding-left: 2.4em; margin: .7em 0; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: .1em; width: 1.75em; height: 1.75em; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: .9em; display: grid; place-items: center; }
b { color: var(--ink); font-weight: 700; }
code { font: .92em ui-monospace, Consolas, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.note, .warn { display: flow-root; border-radius: var(--r-s); padding: 10px 14px; margin: 1em 0; font-size: .97rem; } /* flow-root: ends beside a screenshot, not under it */
.note { background: var(--gold-soft); border-left: 4px solid var(--gold); }
.warn { background: var(--brand-soft); border-left: 4px solid var(--brand-2); }
/* Screenshots: under their step on a phone; beside the text on a wider screen, stacked down the right side. */
figure { margin: 1em auto; width: min(62%, 280px); }
figure img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
figcaption { color: var(--muted); font-size: .85rem; margin-top: 6px; text-align: center; line-height: 1.4; }
@media (min-width: 900px) {
  body:not(.hub) main, body:not(.hub) .site-head .inner, body:not(.hub) .site-foot { max-width: 980px; }
  article.has-figs figure { float: right; clear: right; width: 280px; margin: .3em 0 1.2em 32px; }
  article.has-figs::after { content: ''; display: block; clear: both; }
}
details { border-top: 1px solid var(--line); padding: 10px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; min-height: 32px; }
details > div { padding-top: 4px; }

.search input { width: 100%; min-height: 50px; padding: 10px 16px; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 12px; }
.search input:focus { border-color: var(--gold); outline: none; }
.results { margin-top: 12px; }
.results a, .group li a { display: block; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.results a:last-child, .group li:last-child a { border-bottom: 0; }
.results b, .group li b { display: block; color: var(--brand-ink); }
.results span, .group li span { display: block; color: var(--muted); font-size: .93rem; }
.results small { color: var(--muted); font-size: .82rem; }
.group ul { list-style: none; padding: 0; margin: 0; }
.none { color: var(--muted); margin-top: 12px; }
.stuck { background: var(--gold-soft); box-shadow: none; }

.site-foot { max-width: 760px; margin: 0 auto; padding: 0 16px 32px; color: var(--muted); font-size: .85rem; text-align: center; }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-bottom: 6px; }
.site-foot a { color: var(--muted); }

/* Video card under an article's lead (opens the how-to on YouTube), and the playlist link on the hub. */
a.video { display: flex; align-items: center; gap: 14px; margin: 0 0 1.2em; padding: 8px; max-width: 520px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--brand-soft); color: var(--ink); text-decoration: none; }
a.video img { width: 168px; height: auto; flex: none; border-radius: 8px; display: block; }
a.video .vtext { display: flex; flex-direction: column; gap: 2px; }
a.video b { color: var(--brand-ink); }
a.video small, a.videos span { color: var(--muted); }
a.video:hover, a.videos:hover { border-color: var(--brand); }
a.videos { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; margin: 0 0 16px; color: var(--ink); text-decoration: none; }
a.videos b { color: var(--brand-ink); font-size: 1.05rem; }
a.videos .more { color: var(--brand-ink); font-weight: 600; }
@media (max-width: 420px) { a.video img { width: 120px; } }
a.video b, a.videos b { display: inline-flex; align-items: center; gap: 8px; }
.yt { flex: none; }
