/* tools/src/site/assets/site.css
   Black, gold and cream, matching the Word Studio app. System fonts only. */
:root {
  --black: #0b0b0b;
  --gold: #c9a227;
  --gold-deep: #7a5c00;
  --cream: #f7f1e1;
  --ink: #1a1a1a;
  --muted: #5a5448;
  --line: #d9cfb4;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: var(--gold-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 48px; }
main:focus { outline: none; }
h1 { font: 600 clamp(26px, 5vw, 38px)/1.15 var(--serif); margin: 0 0 8px; }
h2 { font: 600 20px/1.3 var(--serif); margin: 28px 0 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--black); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; top: 8px; }

/* header and banner */
.site-header { background: var(--black); color: var(--cream); }
.bar { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.brand { display: flex; gap: 10px; align-items: center; color: var(--cream); text-decoration: none; margin-right: auto; }
.brand img { border-radius: 8px; }
.brand strong { display: block; font: 600 17px/1.2 var(--serif); }
.brand small { color: var(--gold); font-size: 13px; }
.site-header nav { display: flex; gap: 14px; align-items: center; position: relative; }
.site-header nav > a { color: var(--cream); }
.picker summary, .lang { cursor: pointer; color: var(--gold); background: none; border: 1px solid var(--gold); border-radius: 6px; padding: 4px 10px; font: inherit; list-style: none; }
.picker summary::-webkit-details-marker { display: none; }
.picker-panel { position: absolute; right: 0; top: 38px; z-index: 20; background: var(--black); border: 1px solid var(--gold); border-radius: 8px; padding: 12px 14px; width: min(92vw, 440px); max-height: 70vh; overflow: auto; }
.picker-panel a { color: var(--cream); }
.picker-panel ul { list-style: none; margin: 0 0 8px; padding: 0; columns: 2; }
.picker-panel li { break-inside: avoid; padding: 2px 0; }
.picker-h { color: var(--gold); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0; }
.picker-chapters { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 2px 0 6px; padding: 0 0 0 8px; font-size: 14px; }
.banner { background: var(--gold); color: var(--black); font-size: 14px; text-align: center; padding: 6px 16px; }
.banner a { color: var(--black); font-weight: 600; }
html:not(.js) .lang { display: none; }

/* home */
.intro { max-width: 46rem; color: var(--muted); }
.progress { margin: 18px 0 8px; }
.progress-text { margin: 0 0 6px; }
.bar-track { position: relative; height: 14px; border-radius: 7px; background: var(--line); overflow: hidden; }
.seg { position: absolute; left: 0; top: 0; bottom: 0; }
.seg.drafted { background: var(--gold); }
.seg.reviewed { background: var(--gold-deep); }
.seg.released { background: var(--black); }
.progress-sub { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tile { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-bottom: 4px solid var(--gold); border-radius: 8px; background: #fffbf0; color: var(--ink); text-decoration: none; min-height: 72px; }
a.tile:hover { border-color: var(--gold-deep); }
.tile .name { font: 600 17px/1.2 var(--serif); }
.tile .count, .tile .stat { font-size: 13px; color: var(--muted); }
.tile.undrafted { background: transparent; border-bottom-color: var(--line); color: var(--muted); }

/* statuses */
.s-konsep { --st: var(--line); }
.s-getuienis { --st: #b9a46a; }
.s-hersiening { --st: var(--gold); }
.s-goedgekeur { --st: var(--gold-deep); }
.s-vrygestel { --st: var(--black); }
.tile[class*="s-"] { border-bottom-color: var(--st, var(--line)); }
.chapgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.ch { display: grid; place-items: center; height: 48px; border: 1px solid var(--line); border-bottom: 5px solid var(--st, var(--line)); border-radius: 6px; background: #fffbf0; color: var(--ink); text-decoration: none; font-weight: 600; }
.ch.s-none { background: transparent; color: var(--muted); border-bottom-color: transparent; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; font-size: 14px; }
.sw { display: inline-block; width: 22px; height: 6px; margin-right: 6px; vertical-align: middle; background: var(--st, var(--line)); border-radius: 3px; }
.meta { margin: 2px 0; color: var(--muted); }
.meta strong { color: var(--ink); }

/* chapter */
.back { margin: 0 0 4px; font-size: 14px; }
.tools { margin: 8px 0 16px; }
.switch { display: inline-block; border: 1px solid var(--gold-deep); border-radius: 6px; padding: 4px 12px; text-decoration: none; font-weight: 600; }
.switch[aria-pressed="true"] { background: var(--black); color: var(--gold); border-color: var(--black); }
.verses { font: 20px/1.75 var(--serif); max-width: 42rem; margin: 0 auto; }
.para { margin: 0 0 1em; }
.v { display: inline; }
.v.poetry { display: block; padding-left: 1.5em; }
/* Verse numbers are the way into each verse's panel (review and "propose a change"), so they look like buttons. */
.vn { display: inline-block; min-width: 1.6em; text-align: center; font: 700 .72em/1.7 var(--sans); vertical-align: .2em; color: var(--gold-deep); background: #efe3bf; border: 1px solid var(--gold); border-radius: 999px; padding: 0 .4em; margin-right: .35em; text-decoration: none; cursor: pointer; }
.vn:hover, .vn:focus-visible { background: var(--gold); color: var(--black); }
.propose-hint { font: 14px/1.4 var(--sans); color: var(--muted); margin: 4px 0 16px; }
.omitted-note { font: italic 15px var(--sans); color: var(--muted); }
.src, .en, .bron-head { display: none; }
.verses.bron-open { max-width: 74rem; }
.bron-open .bron-head { display: none; font: 600 13px var(--sans); color: var(--muted); }
.bron-open .v { display: grid; gap: 6px 24px; padding: 10px 0; border-top: 1px solid var(--line); }
.bron-open .v.poetry { padding-left: 0; }
.bron-open .src { display: block; color: var(--muted); font-size: .85em; }
/* Georgia has no polytonic Greek or pointed Hebrew; mixing fallback glyphs misplaces accents. */
:lang(grc) { font-family: "Gentium Plus", "SBL Greek", "Palatino Linotype", "Times New Roman", "Noto Serif", serif; }
:lang(he) { font-family: "SBL Hebrew", "Ezra SIL", "Noto Serif Hebrew", "Times New Roman", serif; }
.bron-open .en { display: block; font: 15px/1.5 var(--sans); color: var(--muted); }
.bron-open .para { margin: 0; }
@media (min-width: 900px) {
  .bron-open .bron-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 6px; }
  .bron-open .v { grid-template-columns: repeat(3, 1fr); align-items: start; }
}
.fn { display: inline; position: relative; }
.fn summary { display: inline; cursor: pointer; list-style: none; color: var(--gold-deep); font: 700 .65em var(--sans); vertical-align: super; padding: 0 2px; }
.fn summary::-webkit-details-marker { display: none; }
.fnote { position: absolute; z-index: 10; left: 0; top: 1.6em; width: min(80vw, 320px); background: var(--black); color: var(--cream); padding: 8px 10px; border-radius: 8px; font: 14px/1.4 var(--sans); }
.chapnav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 42rem; margin: 24px auto 0; font-weight: 600; }

/* verse drawer: works without script through :target, with script through .open */
.drawer { display: none; position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); overflow: auto; }
html:not(.js) .drawer:target, .drawer.open { display: block; }
.drawer-box { background: var(--cream); max-width: 560px; min-height: 100%; margin-left: auto; padding: 18px 20px 40px; position: relative; }
.drawer-box h2 { margin-top: 0; }
.close { position: absolute; top: 16px; right: 16px; border: 1px solid var(--gold-deep); border-radius: 6px; padding: 2px 10px; text-decoration: none; font-weight: 600; }
.dsec h3 { font: 600 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 4px; }
.dsec p, .dsec ul { margin: 0 0 6px; }
.dsec ul { padding-left: 18px; }
.drawer del { color: var(--muted); }
.drawer ins { text-decoration: none; background: #efe2a8; }
.escalation { font-weight: 600; }

/* method */
.method-body { display: flex; flex-direction: column; max-width: 46rem; }
html[data-lang="en"] .method-en { order: -1; }
.method-body section + section { margin-top: 28px; padding-top: 8px; border-top: 1px solid var(--line); }

/* footer */
.site-footer { background: var(--black); color: var(--cream); font-size: 14px; }
.foot { max-width: 1100px; margin: 0 auto; padding: 18px 16px 28px; }
.foot p { margin: 0 0 8px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* reader proposals: the drawer list, the propose button and the sign-in and proposal dialog */
.propose-btn { cursor: pointer; font: inherit; background: var(--black); color: var(--gold); border: 1px solid var(--gold); border-radius: 6px; padding: 6px 12px; }
html:not(.js) .propose-btn { display: none; }
.proposals { list-style: none; margin: 0 0 8px; padding: 0; }
.proposal { border-left: 3px solid var(--line); padding: 2px 0 2px 10px; margin: 0 0 12px; }
.proposal p { margin: 0 0 4px; }
.p-meta { color: var(--muted); font-size: 14px; }
.pdialog { border: 1px solid var(--gold); border-radius: 10px; padding: 16px 18px; width: min(94vw, 640px); background: var(--cream); color: var(--ink); max-height: 92vh; overflow: auto; }
.pdialog::backdrop { background: rgba(0, 0, 0, .6); }
.pdialog h2 { margin-top: 0; }
.pdialog label { display: block; font-weight: 600; margin: 12px 0 4px; }
.pdialog textarea, .pdialog input[type=text], .pdialog input[type=email], .pdialog input[type=password], .pdialog select { width: 100%; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.pdialog .help { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.pdialog .err, .mine .err { color: #8a1c1c; margin: 8px 0; }
.pdialog .refbox p { margin: 2px 0; font-size: 14px; color: var(--muted); }
.pdialog .row, .mine .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pdialog button, .mine button { cursor: pointer; font: inherit; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--black); background: var(--black); color: var(--cream); }
.pdialog button.plain, .mine button.plain { background: none; color: var(--ink); }
.mine-list { list-style: none; margin: 0 0 16px; padding: 0; }
.mine-item { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0 0 10px; }
.mine-item p { margin: 0 0 4px; }
.mine .danger { margin: 16px 0; }
