:root { --bg: #fff; --text: #1d1d1b; --muted: #75756f; --line: #e4e4df; --soft: #f4f4f1; --bar: #3d5a80; --bar2: #9fb3c8; --no: #b42318; --yes: #2f6f4f; --code: #3b6ea8; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 780px; margin: 0 auto; padding: 32px 16px 64px; }
[data-page="reeglid"] > h2 { font-size: 14px; font-weight: 600; color: var(--muted); margin: 36px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
[data-page="reeglid"] > h2:first-of-type { margin-top: 0; }
p { margin: 0 0 12px; }
a { color: inherit; }
.muted { color: var(--muted); }
details.rule { border-bottom: 1px solid var(--line); }
details.rule > summary { cursor: pointer; list-style: none; padding: 14px 0; display: grid; grid-template-columns: 1fr auto 16px; gap: 16px; align-items: baseline; }
details.rule > summary::-webkit-details-marker { display: none; }
details.rule > summary::after { content: "+"; color: var(--muted); }
details.rule[open] > summary::after { content: "\2212"; }
details.rule[open] { border: 1px solid var(--text); border-radius: 10px; padding: 0 20px; margin: 12px 0; }
details.rule[open] > summary { background: var(--soft); margin: 0 -20px 16px; padding: 14px 20px; border-radius: 9px 9px 0 0; }
details.rule:has(+ details.rule[open]), h2:has(+ details.rule[open]) { border-bottom: 0; }
details.rule[open] .body { padding-bottom: 20px; }
.t b { display: block; font-size: 17px; }
.t .d { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.id { color: var(--muted); font-size: 13px; white-space: nowrap; }
.body { padding: 0 0 24px; }
.body ul { margin: 0 0 12px; padding-left: 20px; }
.body li { margin-bottom: 6px; }
.ex { background: var(--soft); border-radius: 8px; padding: 16px; margin: 0 0 16px; }
.ex p:last-child { margin-bottom: 0; }
/* calendar strip */
.cal { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 8px 0; font-size: 13px; text-align: center; }
.cal div { border-radius: 4px; padding: 6px 2px; background: var(--bg); border: 1px solid var(--line); }
.cal .h { border-color: var(--bar); box-shadow: inset 0 -4px 0 var(--bar); }
.cal .o { border-color: var(--bar2); box-shadow: inset 0 -4px 0 var(--bar2); }
.cal .c { background: var(--text); color: var(--bg); border-color: var(--text); }
.key { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.key span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.key .kh::before { background: var(--bar); }
.key .ko::before { background: var(--bar2); }
/* steps */
.steps { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 8px 0; font-size: 14px; }
.steps div { border: 1px solid var(--line); background: var(--bg); border-radius: 6px; padding: 8px 10px; }
.steps i { font-style: normal; color: var(--muted); }
/* sums */
.sum { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.sum div { border: 1px solid var(--line); background: var(--bg); border-radius: 6px; padding: 8px 12px; text-align: center; }
.sum b { display: block; font-size: 20px; }
.sum small { color: var(--muted); }
.was { color: var(--no); }
.now { font-weight: 600; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }
@media (max-width: 640px) {
  details.rule > summary { grid-template-columns: 1fr 16px; }
  .id { grid-column: 1; grid-row: 2; }
  .cal { grid-template-columns: repeat(4, 1fr); }
}
.git { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.hash { color: var(--muted); font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
li.code { color: var(--code); }
li.was.code { color: var(--no); }

:root { --bg: #fff; --text: #1d1d1b; --muted: #75756f; --line: #e4e4df; --soft: #f4f4f1; --bar: #3d5a80; --bar2: #9fb3c8; --no: #b42318; --yes: #2f6f4f; --code: #3b6ea8; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 780px; margin: 0 auto; padding: 32px 16px 64px; }
[data-q] { padding: 8px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
[data-q]:last-child { border-bottom: 0; }
[data-q] h2 { font-size: 20px; margin: 0 0 12px; }
[data-q] h2 a { color: inherit; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.lead b { font-weight: 600; }
.ex { margin: 20px 0; }
/* bars */
.row { display: grid; grid-template-columns: 260px 1fr; gap: 12px; align-items: center; padding: 5px 0; }
.track { display: flex; align-items: center; gap: 8px; }
.fill { height: 14px; background: var(--bar); border-radius: 3px; }
.fill.open { background: repeating-linear-gradient(90deg, var(--bar) 0 10px, transparent 10px 16px); width: 100%; }
.years { white-space: nowrap; color: var(--muted); font-size: 14px; }
/* periods */
.period { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; padding: 8px 0; }
.span { display: flex; align-items: center; gap: 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.span i { flex: 1; height: 10px; border-radius: 3px; background: var(--bar); }
.span.b i { background: var(--bar2); }
.span b { font-size: 16px; }
/* split bars */
.split { display: flex; height: 26px; border-radius: 4px; overflow: hidden; margin: 8px 0 4px; font-size: 13px; color: #fff; }
.split span { display: flex; align-items: center; justify-content: center; }
.split .l1 { background: var(--bar); }
.split .l2 { background: var(--bar2); }
/* matrix */
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
td.c, th.c { text-align: center; }
.y { color: var(--yes); font-weight: 600; }
.n { color: var(--no); font-weight: 600; }
/* popup mock */
.mock { border: 1px solid var(--line); border-radius: 10px; max-width: 420px; padding: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.08); background: var(--bg); }
.mock .f { border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; margin: 4px 0 10px; }
.mock .lbl { font-size: 13px; color: var(--muted); }
.mock .err { color: var(--no); font-size: 14px; margin-top: 4px; }
.mock .btn { display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: 4px 12px; margin: 2px 0 8px; }
.opt table { margin-top: 8px; font-size: 14px; }
.opt td { padding: 4px 8px 4px 0; }
/* timeline */
.tl { position: relative; height: 120px; margin: 8px 0; }
.tl .axis { position: absolute; left: 0; right: 0; top: 60px; height: 2px; background: var(--line); }
.tl .m { position: absolute; top: 0; height: 120px; transform: translateX(-50%); text-align: center; font-size: 13px; width: 150px; }
.tl .m > div { position: absolute; left: 0; right: 0; }
.tl .m > div:first-child { top: 26px; }
.tl .m > div:last-child { top: 74px; }
.tl .m .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bar); top: 55px; left: 50%; right: auto; transform: translateX(-50%); }
.tl .m.cut .dot { background: var(--text); width: 3px; height: 36px; border-radius: 2px; top: 43px; }
.tl .m.cut > div:first-child { top: 18px; font-weight: 600; }
.tl .m.cut > div:last-child { top: 82px; }
/* options */
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.opts.three { grid-template-columns: 1fr 1fr 1fr; }
.opt { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.opt.rec { border: 2px solid var(--text); }
.opt > b { display: block; margin-bottom: 4px; }
.big { font-size: 22px; font-weight: 600; }
details.ev { background: var(--soft); border-radius: 8px; }
details.ev summary { cursor: pointer; padding: 12px 16px; list-style: none; display: flex; justify-content: space-between; }
details.ev summary::-webkit-details-marker { display: none; }
details.ev summary::after { content: "+"; color: var(--muted); }
details.ev[open] summary::after { content: "\2212"; }
details.ev ul { margin: 0; padding: 0 16px 14px 34px; font-size: 15px; }
details.ev li { margin-bottom: 6px; }
@media (max-width: 640px) {
  .row, .period { grid-template-columns: 1fr; gap: 4px; }
  .opts, .opts.three { grid-template-columns: 1fr; }
  .tl .m { width: 100px; font-size: 12px; }
}
.git { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.hash { color: var(--muted); font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
li.code { color: var(--code); }
li.was.code { color: var(--no); }

