/* Ordinance Builder, redesign of 11/22/2026 (Honeycomb with a one-at-a-time walk-through). Loaded after the page styles. */
.obr{max-width:1100px;--sf:var(--surface);--ln:var(--rule);--tx:var(--fg);--mu:var(--muted);--in:var(--surface-2);--soft:var(--surface-2);--ogreen:#0E7C3A;--oblue:#2F5FC4;padding-bottom:40px}
.obr *,.obr *::before,.obr *::after{box-sizing:border-box}
.obr svg{display:block}
.obr button{font-family:inherit;cursor:pointer}.obr button:disabled{cursor:default}
.obr .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* view switch and legal notice */
.obr .ob-top{display:flex;flex-direction:row;flex-wrap:wrap;gap:12px 18px;align-items:center;margin:16px 0 6px;padding:0}.obr .views{margin:0;align-self:center;box-shadow:none}
.obr .views{display:inline-flex;gap:4px;background:var(--surface);border:1.5px solid #FFB81C;border-radius:999px;padding:4px}
.obr .views button{font:800 14px var(--display);border:0;background:none;color:var(--fg);border-radius:999px;padding:8px 18px;min-height:40px}
.obr .views button[aria-pressed="true"]{background:#0B1B44;color:#fff}
.obr .legal{flex:1 1 320px;margin:0;font-size:13px;line-height:1.45;border-left:4px solid #FFB81C;padding:2px 0 2px 12px;color:var(--fg);max-width:80ch}
/* steps */
.ob-st{margin-top:22px}
.ob-h{font:800 23px/1.2 var(--display);margin:0 0 10px;display:flex;align-items:center;gap:12px;color:var(--fg)}
.ob-n{width:38px;height:38px;border-radius:50%;background:#FFB81C;color:#0B1B44;display:grid;place-items:center;font-size:18px;flex:none;border:2px solid #0B1B44}
.ob-h small{font:600 14px var(--body);color:var(--muted)}
.ob-bx{background:var(--surface);border:1.5px solid var(--rule);border-radius:12px;padding:16px}
.ob-f4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}
.obr .fl input,.obr .fl select{width:100%}
/* gap report */
.ob-gapc{margin-top:10px;background:var(--surface);border:2px solid #FFB81C;border-radius:12px;padding:16px}
.obr .gap{border:0;padding:0;margin:0;gap:8px}
.ob-gaph{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between}
.ob-gapn{display:flex;align-items:center;gap:10px;font-size:13px;margin:0}.ob-gapn span{background:var(--surface-2);border:1.5px solid var(--rule);border-radius:10px;padding:5px 12px}.ob-gapn b{font:800 22px var(--display)}.ob-gapn .to{background:#0B1B44;color:#fff;border-color:#FFB81C}.ob-gapn .to b{color:#FFB81C}.ob-gapn i{font-style:normal;font-size:20px}
.obr .gapl{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:4px 0}
.obr .gapl li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 10px;align-items:center;background:var(--surface-2);border:1px solid var(--rule);border-left:4px solid var(--oblue);border-radius:8px;padding:7px 10px}
.obr .gapl b{font:800 13.5px var(--display)}.obr .gapl .gw{grid-column:1;justify-self:start;margin:0;background:none;color:var(--muted);padding:0;font-weight:400;border:0}
.obr .gapl .btn{grid-column:2;grid-row:1/3;font:800 12.5px var(--display);background:none;color:var(--fg);border:1.5px solid #FFB81C;border-radius:999px;padding:5px 11px;min-height:34px}
.obr #gapdl,.ob-pri,.obr .exp .btn.primary{font:800 14px var(--display);background:#FFB81C;color:#0B1B44;border:1.5px solid #FFB81C;border-radius:999px;padding:10px 18px;min-height:44px;align-self:flex-start}
.obr .start{margin-top:8px;border:0;background:none;padding:0;font-size:13px;color:var(--muted)}.obr .gap[hidden]+.start{margin-top:0;font-size:15px;color:var(--fg)}
/* honeycomb band */
.ob-band{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:18px;align-items:center;background:#0B1B44 url(/media/textures/contour-dark.jpg) center/cover;color:#fff;border-radius:14px;padding:22px}
.ob-comb{display:grid;grid-template-columns:repeat(7,1fr);max-width:440px;margin:0 auto;width:100%}
.ob-hx{position:relative;aspect-ratio:1/1.1547;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);background:#FFB81C;color:#0B1B44;border:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:0 6%;text-align:center;transform:scale(.955);min-width:0;font-family:var(--body)}
.ob-hx:nth-child(3n+1){grid-column:1/3}.ob-hx:nth-child(3n+2){grid-column:3/5}.ob-hx:nth-child(3n){grid-column:5/7}.ob-hx:nth-child(4){grid-column:2/4}.ob-hx:nth-child(5){grid-column:4/6}.ob-hx:nth-child(6){grid-column:6/8}.ob-hx:nth-child(n+4){margin-top:-28.9%}
.ob-hx i{font-style:normal}.ob-hx i svg{width:24px;height:24px}.ob-hx b{font:800 12px/1.1 var(--display);letter-spacing:-.01em}.ob-hx>span{font-size:11.5px;font-weight:700}
.ob-hx:nth-child(odd):not(.ob-hc){background:#FFD46B}.ob-hx.on{background:#fff!important}.ob-hx:not(.ob-hc):not(:disabled):hover{filter:brightness(1.08)}
.ob-hx:focus-visible{outline:0;background:#DCE9FF!important}
.ob-hx.nil{opacity:.55}
.ob-hc{background:#0A1328!important;color:#fff}.ob-hc b{font:800 38px/1 var(--display);letter-spacing:0;color:#FFB81C}.ob-hc>span{font-size:10.5px}
.ob-hx.dn::after{content:"\2713";position:absolute;top:13%;right:24%;font:800 13px Arial,sans-serif;color:#0B1B44;background:#fff;width:18px;height:18px;border-radius:50%;display:grid;place-items:center}.ob-hx.on.dn::after{background:#0B1B44;color:#fff}
.ob-sps h3{font:800 15px var(--display);margin:0 0 8px;color:#fff}
.obr .spgrid{display:flex;flex-direction:column;gap:8px}
.obr .sp{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;text-align:left;background:rgba(255,255,255,.07);color:#fff;border:1.5px solid rgba(255,255,255,.35);border-radius:12px;padding:10px 12px;font-size:12.5px;line-height:1.4}
.obr .sp b{font:800 16px var(--display);color:#fff}.obr .sp b em{font:800 11px var(--display);font-style:normal;background:#7FA4F0;color:#0B1B44;border-radius:999px;padding:2px 8px}
.obr .sp>span:last-child{grid-column:2;color:#C9D4EA;font-size:12.5px}
.obr .sp[aria-pressed="true"]{border:3px solid #FFB81C;padding:8.5px 10.5px}
.ob-sh{grid-row:1/3;align-self:center;display:flex;gap:3px}.ob-sh i{width:18px;height:20px;background:rgba(255,255,255,.25);clip-path:polygon(50% 0,100% 16%,100% 52%,50% 100%,0 52%,0 16%)}.ob-sh i.on{background:#FFB81C}
.ob-gh{font:800 13.5px var(--display);background:none;color:var(--fg);border:1.5px solid var(--fg);border-radius:999px;padding:9px 16px;min-height:40px}
.ob-sps .ob-gh{margin-top:10px;color:#fff;border-color:#fff}
.ob-spn{margin:8px 0 0;font-size:12.5px;color:#C9D4EA;min-height:1em}
.ob-gs p{font-size:13px;color:#C9D4EA;margin:10px 0 0;line-height:1.45}.ob-gq{display:block;font:800 13.5px var(--display)}
.obr #gsq{display:block;width:100%;margin-top:6px;font:15px var(--body);padding:10px 12px;border:1.5px solid #FFB81C!important;border-radius:8px;background:#fff;color:#0B1B44;min-height:44px;color-scheme:light}
/* key line and toggles */
.ob-key{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center;justify-content:space-between;margin-top:10px}.ob-key p{margin:0;font-size:13px;color:var(--muted);flex:1 1 360px}
.ob-key .lm,.obr .opt .lm{font:800 11px var(--display);background:var(--oblue);color:#fff;border-radius:999px;padding:2px 8px;white-space:nowrap;margin-left:4px}
.ob-tg{display:flex;flex-wrap:wrap;gap:4px 18px}.obr .filt{min-height:40px;font-weight:700;font-size:14px;cursor:pointer}.obr .filt input{accent-color:#0B1B44;margin:0}
#buildview.walk #f-gaps-w,#buildview.walk .ob-k-list,#buildview.list .ob-k-walk{display:none}
/* progress bar and walk-through */
.ob-wk{margin-top:12px;scroll-margin-top:12px}
.ob-bar{display:flex;gap:6px}.ob-pg{min-width:0}.ob-segs{display:flex;gap:2px}
.ob-sg{flex:1;height:14px;min-width:0;border:0;border-radius:3px;background:var(--rule);padding:0}.ob-sg.done{background:#FFB81C}.ob-sg.cur{background:#0B1B44;box-shadow:0 0 0 2px var(--bg),0 0 0 4px #FFB81C;position:relative;z-index:1}
.ob-sg.skip{background:repeating-linear-gradient(135deg,var(--rule) 0 3px,transparent 3px 6px);opacity:.6}.ob-sg:not(.skip):hover{filter:brightness(.9)}.ob-sg:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.ob-pg small{display:block;font:700 10.5px/1.15 var(--display);color:var(--muted);margin-top:6px}.ob-pg.on small{color:var(--fg)}
.ob-wkh{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;margin:14px 0 8px}
.ob-wlab,.ob-lhead{display:flex;align-items:center;gap:10px;margin:0}.ob-wlab b,.ob-lhead b{font:800 17px var(--display)}.ob-wlab>span,.ob-lhead small{color:var(--muted);font-size:13.5px}
.ob-ci{width:34px;height:34px;border-radius:50%;background:#0B1B44;color:#FFB81C;display:grid;place-items:center;flex:none;font-style:normal}.ob-ci svg{width:19px;height:19px}
.ob-wsc{margin:0;font-size:13px;background:#0B1B44;color:#fff;border-radius:999px;padding:6px 14px;display:inline-flex;align-items:baseline;gap:5px}.ob-wsc b{font:800 16px var(--display);color:#FFB81C}.ob-wsc i{width:1px;height:14px;background:rgba(255,255,255,.4);margin:0 5px;align-self:center}
#buildview.list .ob-bar,#buildview.list .ob-wlab,#buildview.list .ob-nav,#buildview.walk .ob-lhead{display:none}
#buildview.list .ob-wkh{margin-top:0}#buildview.list .ob-lhead{margin:0 0 8px}
.obr #cats{position:relative}
.obr details.cat{background:none;border-radius:0}.obr details.cat>summary{display:none}.obr details.cat:not(.sel){display:none}.obr .crits{padding:0;gap:0}
.obr .cr{border:1.5px solid var(--rule);border-radius:10px;background:var(--surface-2);padding:10px 14px;margin-top:8px;gap:6px;scroll-margin-top:12px}
.obr .crh{align-items:center}.obr .crh>div{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;min-width:0}
.ob-crt0{margin:0;font-size:inherit}.obr .crt{background:none;border:0;padding:0;color:var(--fg);text-align:left}.obr .crt b{font:800 15.5px var(--display)}
.obr .crh .core{display:inline-block;margin:0;font:800 11.5px var(--display);background:#FFB81C;color:#0B1B44;border-radius:999px;padding:2px 9px}
.obr .sc{font:800 12px var(--display);border-radius:999px;padding:3px 10px}.obr .sc.s2{background:#0B1B44;color:#fff}
.obr .chz{margin:0;font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.obr .now{display:inline-block;align-self:flex-start;margin:0;font-size:13px;border:1.5px dashed var(--muted);border-radius:6px;padding:3px 9px}
.obr .asks{font-size:15px}
.obr .opt{position:relative;border:1.5px solid var(--rule);border-radius:12px;padding:11px 14px 11px 46px;margin-bottom:8px;background:var(--surface-2);line-height:1.4}
.obr .opt input{position:absolute;left:14px;top:11px;width:20px;height:20px;margin:0;accent-color:#0B1B44}
.obr .opt:has(input:checked){border:2.5px solid #FFB81C;background:rgba(255,184,28,.14);padding:10px 13px 10px 45px}.obr .opt:has(input:checked) input{left:13px;top:10px}
.obr [role="radiogroup"]{display:block}
.obr .params{flex-direction:column;gap:6px;font-weight:700;font-size:13.5px}.obr .params label{gap:4px 8px}.obr .params input{min-height:38px}.obr .params input[type=number]{width:96px}.obr .params input[type=text]{flex:1 1 280px;max-width:440px;min-width:0;width:auto}
.obr .lnote{margin:0 0 6px;font-size:13px;line-height:1.45;background:rgba(255,184,28,.16);border:1px solid #FFB81C;border-radius:8px;padding:9px 12px}
.obr .gdl{align-self:flex-start;background:none;border:0;padding:4px 0;font:700 14.5px var(--body);color:var(--fg);text-decoration:underline;text-decoration-color:#FFB81C;text-underline-offset:3px;min-height:32px}
/* walk-through: only the current criterion shows, as one large card */
#buildview.walk .cr{display:none}
#buildview.walk .cr.cur{display:flex;background:var(--surface);border:2px solid #FFB81C;border-radius:16px;padding:20px 22px;box-shadow:0 10px 26px rgba(11,27,68,.16);min-height:300px;margin-top:0;gap:8px}
#buildview.walk .cr.cur .crt{pointer-events:none}#buildview.walk .cr.cur .crt b{font-size:24px;line-height:1.2}#buildview.walk .chz{display:none}#buildview.walk .cr.cur .crh{align-items:flex-start}#buildview.walk .cr.cur .asks{font-size:15.5px;margin-bottom:6px}
.ob-nav{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-top:12px}.ob-hint{font-size:12.5px;color:var(--muted);flex:1;text-align:center}.ob-nav .ob-gh{padding:10px 18px;min-height:44px}.ob-nav .ob-gh:disabled{opacity:.35}.ob-nav .ob-pri{padding:12px 22px;font-size:15px}
/* list: the whole category, one criterion open at a time */
#buildview.list .cr:not(.open)>*:not(.crh):not(.chz){display:none}
#buildview.list .cr.open{border:2px solid #FFB81C;background:var(--surface)}#buildview.list .cr.open .chz{display:none}
#buildview.list .crt{display:flex;align-items:center;gap:10px;min-height:32px}#buildview.list .crt::before{content:"+";width:22px;height:22px;border-radius:50%;border:1.5px solid var(--rule);display:grid;place-items:center;font:800 14px Arial,sans-serif;flex:none}#buildview.list .cr.open .crt::before{content:"\2212"}
#buildview.list #cats{background:var(--surface);border:1.5px solid #FFB81C;border-radius:12px;padding:8px 16px 16px}
@keyframes obOutL{to{transform:translateX(-56px);opacity:0}}@keyframes obOutR{to{transform:translateX(56px);opacity:0}}@keyframes obInR{from{transform:translateX(56px);opacity:0}}@keyframes obInL{from{transform:translateX(-56px);opacity:0}}
#buildview.walk .cr.out.f{animation:obOutL .19s ease-in forwards}#buildview.walk .cr.out.b{animation:obOutR .19s ease-in forwards}#buildview.walk .cr.in.f{animation:obInR .3s cubic-bezier(.2,.8,.2,1)}#buildview.walk .cr.in.b{animation:obInL .3s cubic-bezier(.2,.8,.2,1)}
@media (prefers-reduced-motion:reduce){#buildview .cr{animation:none!important}}
/* draft */
.obr .score{border-radius:12px;margin-bottom:12px}
.ob-dtb{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:flex-end;justify-content:space-between;margin-bottom:8px}.ob-dtb .nmode{flex:1 1 280px;max-width:420px}.ob-dtb .nmode select{background:var(--surface-2);border:2px solid var(--rule);border-radius:8px;padding:7px 10px;min-height:42px;width:100%;font-weight:400}
.obr .exp .btn{font:800 14px var(--display);border:1.5px solid #FFB81C;border-radius:999px;padding:10px 16px;background:var(--surface);color:var(--fg)}
.obr .xmsg{margin:0 0 8px;min-height:1.2em}
.obr .doc{height:480px;max-height:none;overflow:auto}
/* guide */
.obr .gview{display:block;padding-bottom:0}.obr .gview[hidden]{display:none}
.ob-cp{background:var(--surface);border:1.5px solid #FFB81C;border-radius:12px;padding:16px;margin-top:12px}
.ob-cph{font:800 18px/1.2 var(--display);margin:0 0 12px;display:flex;align-items:center;gap:10px;color:var(--fg)}.ob-cph small{font:600 13px var(--body);color:var(--muted);margin-left:auto}
.ob-gi{border:1.5px solid var(--rule);border-radius:10px;margin-top:8px;background:var(--surface-2);scroll-margin-top:12px}.ob-gi.open{border:2px solid #FFB81C;background:var(--surface)}
.ob-gih0{margin:0;font-size:inherit}
.ob-gih{display:grid;grid-template-columns:36px minmax(0,1fr) 22px;gap:12px;align-items:center;width:100%;background:none;border:0;color:var(--fg);padding:10px 14px;text-align:left;border-radius:10px}
.ob-gih>i{font-style:normal;width:36px;height:36px;border-radius:50%;background:#0B1B44;color:#FFB81C;display:grid;place-items:center;font:800 14px var(--display)}.ob-gih>span{min-width:0}.ob-gih b{font:800 16px var(--display);margin-right:8px}
.ob-gih em{font:800 11.5px var(--display);font-style:normal;background:#FFB81C;color:#0B1B44;border-radius:999px;padding:2px 9px;display:inline-block}.ob-gih small{display:block;color:var(--muted);font-size:13.5px;margin-top:2px}
.ob-pm{width:22px;height:22px;border-radius:50%;border:1.5px solid var(--rule);position:relative;text-decoration:none}.ob-pm::before,.ob-pm::after{content:"";position:absolute;left:5px;right:5px;top:50%;height:2px;margin-top:-1px;background:currentColor}.ob-pm::after{transform:rotate(90deg)}.ob-gi.open .ob-pm::after{display:none}
.ob-gib{padding:2px 16px 16px 62px;display:flex;flex-direction:column;gap:12px}.ob-gib .why{font-size:15px}.ob-gib .ob-pri{margin-top:4px}
.ob-none{margin:0;color:var(--muted);font-style:italic}
.obr button:focus-visible,.obr input:focus-visible,.obr select:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
@media (max-width:900px){.ob-f4{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.ob-h{font-size:19px}.ob-f4{grid-template-columns:1fr}.ob-band{grid-template-columns:1fr;padding:14px}.ob-hx b{font-size:11px}.ob-hx i svg{width:18px;height:18px}.ob-hx>span{font-size:10px}.ob-hc b{font-size:28px}.ob-hc>span{font-size:9px}
 .obr .gapl{grid-template-columns:1fr}.ob-gib{padding-left:16px}.ob-pg small{display:none}.ob-bar{gap:4px}.ob-sg{height:12px}
 #buildview.walk .cr.cur{padding:16px}#buildview.walk .cr.cur .crt b{font-size:19px}.ob-hint{display:none}.ob-nav .ob-pri{flex:1;padding:12px 14px;font-size:14px}.ob-wsc{font-size:12px}.obr .doc{height:400px;padding:18px 16px}.obr .ex li{display:block}.obr .ex .who,.obr .ex .what{display:block}.obr .ex a{display:inline-block;margin:2px 0;white-space:normal}}
@media print{.ob-band,.ob-bar,.ob-nav,.ob-key,.obr .exp,.obr .views{display:none}.obr .doc{height:auto}}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .obr{--ogreen:#5FD08A;--oblue:#7FA4F0}:root:not([data-theme="light"]) .obr .views button[aria-pressed="true"]{background:#FFB81C;color:#0B1B44}:root:not([data-theme="light"]) .obr .filt input,.obr .opt input{accent-color:#FFB81C}:root:not([data-theme="light"]) .obr .sc.s2,.ob-ci,.ob-gih>i{background:#FFB81C;color:#0B1B44}:root:not([data-theme="light"]) .ob-key .lm,.obr .opt .lm{background:#7FA4F0;color:#0B1B44}:root:not([data-theme="light"]) .ob-sg.cur{background:#fff}:root:not([data-theme="light"]) #buildview.walk .cr.cur{box-shadow:0 10px 26px rgba(0,0,0,.45)}:root:not([data-theme="light"]) .ob-wsc{background:#0A1328;border:1px solid #FFB81C}:root:not([data-theme="light"]) .ob-gapn .to{background:#0A1328}}
:root[data-theme="dark"] .obr{--ogreen:#5FD08A;--oblue:#7FA4F0}:root[data-theme="dark"] .obr .views button[aria-pressed="true"]{background:#FFB81C;color:#0B1B44}:root[data-theme="dark"] .obr .filt input,.obr .opt input{accent-color:#FFB81C}:root[data-theme="dark"] .obr .sc.s2,.ob-ci,.ob-gih>i{background:#FFB81C;color:#0B1B44}:root[data-theme="dark"] .ob-key .lm,.obr .opt .lm{background:#7FA4F0;color:#0B1B44}:root[data-theme="dark"] .ob-sg.cur{background:#fff}:root[data-theme="dark"] #buildview.walk .cr.cur{box-shadow:0 10px 26px rgba(0,0,0,.45)}:root[data-theme="dark"] .ob-wsc{background:#0A1328;border:1px solid #FFB81C}:root[data-theme="dark"] .ob-gapn .to{background:#0A1328}
