/* EDITED IN PLACE (10/11, docs/GRADES-ON-PAGES.md: generators are retired for built pages). This file is no longer
   generated: mocks/src/handbook/make_css.py made its first build and now refuses to overwrite it without --force.
   Edit the rules here; tools/css_lint.py guards them (a rule two pages share goes in core.css). The note below is history. */
/* TG handbook.css: Handbook ("Living in <Town>", /guide), merged direction. Part 1 is generated by
   mocks/src/handbook/make_css.py: the live TownTapestry app.css rules the handbook mocks use (tools/css_audit.py,
   @media wrappers kept), minus every selector core.css already has. Part 2 is this page's additions (additions.css). */
.hb-qs{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.hb-qs a{font-size:13.5px;font-weight:600;padding:6px 12px;border-radius:999px;background:var(--paper,#fff);border:1px solid var(--line);color:var(--ink-2)}
.hb-qs a:hover{border-color:var(--accent);color:var(--accent-ink)}

/* ===== Part 2: Handbook additions, styled like the live .ans cards (prefix hk-) ===== */
/* school path: live used <span class="g"> for the grade span, which core's grade mark .g turns into a gray badge */
@media (max-width:640px){#schools .pipe{grid-template-columns:1fr !important}#schools .pipe > div{border-left:0;border-top:1px solid var(--hair)}#schools .pipe > div:first-child{border-top:0}#schools .pipe > div:not(:last-child)::after{display:none}}
/* home services: power, water, internet cards */
.hk-svcs{display:grid;gap:14px}
.hk-svc{margin:0;padding:20px 22px}
.hk-svc p{margin:10px 0 0;font-size:15px;line-height:1.6;color:var(--ink-2)}
.hk-svc-h{display:flex;gap:12px;align-items:center}
.hk-svc-h > div{flex:1;min-width:0}
.hk-svc-h h3{margin:2px 0 0;font-size:19px;letter-spacing:-.01em}
.hk-pend-card{border-style:dashed;background:var(--surface)}
.hk-pend-card .hk-ic{background:var(--bg)}
.hk-contact{font-size:14px}
.hk-svc .sig-src,.hk-osm .sig-src{margin-top:12px}
/* the water record */
.hk-rec{margin-top:14px;padding:14px 16px;border-radius:var(--r);background:var(--surface)}
.hk-rec > p{margin:0}
.hk-lead{margin-top:14px;padding-top:14px;border-top:1px solid var(--hair)}
.hk-lead-h{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.hk-lead-h b{font-size:22px;letter-spacing:-.02em}
.hk-lbar{position:relative;height:10px;border-radius:999px;background:var(--bar);margin-top:10px}
.hk-lbar i{position:absolute;left:0;top:0;bottom:0;border-radius:999px;background:var(--ink-2);min-width:4px}
.hk-lbar em{position:absolute;top:-4px;bottom:-4px;width:2px;background:var(--bad)}
.hk-lbar-l{position:relative;height:18px;font-size:11.5px;color:var(--muted);margin-top:4px}
.hk-lbar-l span{position:absolute;top:0;white-space:nowrap}
.hk-lbar-l span:first-child{left:0}
.hk-lbar-l span:nth-child(2){transform:translateX(-50%);color:var(--bad)}
.hk-lbar-l span:last-child{right:0}
.hk-lead p{margin-top:8px;font-size:14px}
/* trash: the facility card */
.hk-osm{margin:0 0 14px;padding:20px 22px}
.hk-osm h3{margin:2px 0 0;font-size:19px}
.hk-osm p{margin:8px 0 0;font-size:14.5px;line-height:1.55;color:var(--ink-2)}
.hk-addr{color:var(--muted) !important}
.hk-hours{display:inline-flex;flex-direction:column;gap:2px;margin-top:12px;padding:10px 14px;border-radius:var(--r);background:var(--accent-tint)}
.hk-hours b{font-size:17px}
.hk-list{margin:10px 0 0;padding-left:18px;font-size:14.5px;line-height:1.7;color:var(--ink-2)}
.ans-grid.hk-two{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
/* schools: the one grade line, linking to the Schools page */
.hk-gl{display:inline-flex;align-items:center;gap:10px;margin-top:14px;padding:8px 14px 8px 8px;border-radius:var(--r);background:var(--surface);font-weight:600;font-size:14px;color:inherit}
.hk-gl:hover{background:var(--accent-tint)}
.hk-gl .gp{flex:none}
#schools > p{font-size:15px;line-height:1.6;color:var(--ink-2);margin:14px 0 0}
.hk-small{font-size:13.5px;color:var(--muted);line-height:1.55;margin:10px 0 0}
#zips .ans-grid{margin-top:14px}
.hk-src{margin:0;padding-left:18px}
.hk-cdp{margin:18px 0 0}
@media (max-width:640px){.hk-svc,.hk-osm{padding:16px}.hk-svc-h h3,.hk-osm h3{font-size:17px}}
/* community widgets: empty placeholders in the indexable HTML, filled after load from a robots-disallowed endpoint */
.hk-cm:empty{display:none}
.hk-fact{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;margin-top:14px;font-size:14px;color:var(--muted)}
/* community widgets as filled after load (live app.css .hb-search / .hb-ask, not in the mocks' static HTML) */
.hb-search{display:flex;gap:8px;max-width:720px;margin-top:14px}
.hb-search label{flex:1;position:relative}
.hb-search input{width:100%;height:52px;border:1px solid var(--line);border-radius:14px;padding:0 16px 0 46px;font:inherit;font-size:16px;background:#fff;color:var(--ink);box-shadow:0 2px 10px rgba(15,22,35,.05)}
.hb-search input:focus{outline:none;border-color:var(--accent)}
.hb-search .ic{position:absolute;left:16px;top:17px;color:var(--faint)}
.hb-search .btn{height:52px;padding:0 20px;font-size:15px}
.hk-find-miss{margin:8px 0 0;font-size:14px;color:var(--muted)}
.hk-hit{outline:2px solid var(--accent);outline-offset:3px;transition:outline-color .6s}
.hb-ask{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:44px;padding:20px 22px;border-radius:var(--r-lg);background:var(--ink);color:#fff}
.hb-ask b{display:block;font-size:18px}
.hb-ask span{color:#c4ccd8;font-size:14.5px}
@media (max-width:640px){.hb-search{flex-direction:column}.hb-search .btn{height:46px}}
/* trash: the town's own rules (10/22; app/modules/handbook/trash.php, from the approved mocks/trash-*.html): answer
   cards, the pickup calendar, the drop-off hours grid. New: four stream colors (trash ink, recycling blue, yard and bulk
   from the grade scale). */
.tr{--t-trash:var(--ink);--t-recycling:#2563eb;--t-yard:var(--gA);--t-bulk:var(--gC)}
.tr i[class^="p-"]{display:inline-block;width:9px;height:9px;border-radius:50%;flex:none}
.tr .p-trash{background:var(--t-trash)}.tr .p-recycling{background:var(--t-recycling)}
.tr .p-yard{background:var(--t-yard)}.tr .p-bulk{background:var(--t-bulk)}
.tr .ans-grid{margin:0 0 14px}
.tr .hk-svcs{margin:0 0 14px}
.tr-now:empty{display:none}
.tr-now.open{color:var(--accent-ink);font-weight:600}
.tr-note{margin:10px 0 0;font-size:13.5px;color:var(--muted);line-height:1.5}
/* the calendar card: month title and arrows sit in the card head */
.trc-nav{width:34px;height:34px;border-radius:10px;border:1px solid var(--line);background:#fff;font-size:19px;line-height:1;display:grid;place-items:center;flex:none;color:var(--ink-2)}
.trc-nav:hover{border-color:#c9ced7}
.trc-ctl{display:flex;align-items:center;gap:6px;margin-top:12px;flex-wrap:wrap}
.trc-ctl>span{font-size:13px;font-weight:600;color:var(--muted);margin-right:2px}
.trc-ctl button{height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:13.5px;font-weight:600;color:var(--ink-2)}
.trc-ctl button:hover{border-color:var(--accent);color:var(--accent-ink)}
.trc-ctl button.on{background:var(--ink);border-color:var(--ink);color:#fff}
.trc-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-top:14px}
.trc-grid>.dh{font-size:11.5px;font-weight:600;color:var(--faint);text-align:center}
.trc-grid>.dc{position:relative;min-height:48px;border-radius:10px;background:var(--surface);padding:5px 0 0;display:flex;flex-direction:column;align-items:center;gap:4px}
.trc-grid>.dc>span{font-size:12px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.trc-grid>.dc>div{display:flex;gap:2px;flex-wrap:wrap;justify-content:center}
.trc-grid>.dc.pk{background:#fff;box-shadow:inset 0 0 0 1.5px var(--ink-2)}
.trc-grid>.dc.pk>span{color:var(--ink)}
.trc-grid>.dc.ghost{background:#fff;outline:1.5px dashed #c9ced7;outline-offset:-1.5px}
.trc-grid>.dc.hol{background:#fff7e0;box-shadow:inset 0 0 0 1.5px #ecd28a}
.trc-grid>.dc.hol::after{content:attr(data-hol);position:absolute;bottom:3px;font-size:8.5px;font-weight:700;color:#9a6700;line-height:1;max-width:100%;overflow:hidden;white-space:nowrap}
.trc-grid>.dc.moved::before{content:"↷";position:absolute;top:3px;right:5px;font-size:11px;color:#9a6700;font-weight:700}
.trc-grid>.dc.skip{box-shadow:inset 0 0 0 1.5px var(--bad)}
.trc-grid>.dc.skip::before{content:"none";position:absolute;top:21px;font-size:9px;font-weight:700;color:var(--bad)}
.trc-grid>.dc.tr-today>span{background:var(--accent);color:#fff;border-radius:999px;padding:0 6px}
.trc-grid>.dc.pad{background:none}
.trc-leg{list-style:none;margin:14px 0 0;padding:12px 0 0;border-top:1px solid var(--hair);display:grid;gap:8px}
.trc-leg li{display:grid;grid-template-columns:10px auto 1fr;gap:10px;align-items:center;font-size:14px}
.trc-leg li>span{color:var(--ink-2);text-align:right}
.tr .hk-rec b{font-size:15px}
.tr .hk-rec p{margin:4px 0 0;font-size:14px;line-height:1.55;color:var(--ink-2)}
.trc-hn{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}
.trc-hn .tb::before{display:none}
.tr .hk-svc .btn{margin-top:14px;width:100%;height:44px}
/* the drop-off hours grid: Mon-Sun columns, an hour a row */
.trc-heat{margin-top:14px;display:grid;gap:2px;max-width:420px}
.trc-hr{display:grid;grid-template-columns:28px repeat(7,1fr);gap:3px;align-items:center}
.trc-hr>b{font-size:10.5px;color:var(--faint);font-weight:600;text-align:right;padding-right:4px;line-height:1;transform:translateY(-50%)}
.trc-hr>i{height:13px;border-radius:3px;background:var(--surface)}
.trc-hr>i.on{background:var(--accent)}
.trc-hr>i.tr-today{box-shadow:inset 0 0 0 1.5px var(--ink)}
.trc-hd span{font-size:11.5px;font-weight:600;color:var(--faint);text-align:center}
.trc-hd span.tr-today{color:var(--ink)}
.trc-hl{list-style:none;padding:0;margin:12px 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:4px 16px;font-size:14px;color:var(--ink-2)}
.trc-hl b{display:inline-block;width:38px;font-weight:600}
.trc-hl li.tr-today{color:var(--ink);font-weight:600}
.trc-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px;align-items:center}
@media (min-width:900px){.tr .hk-svcs{grid-template-columns:1fr 1fr;align-items:start}}
.tr .ans .d.tr-rule{font-size:15px;color:var(--ink-2);line-height:1.5}
.tr .sig-src button.link{border:0;background:none;padding:0;font:inherit;font-weight:600;cursor:pointer}
/* the pickup card (10/22, replaces the month calendar): one row per stream; the week strip only when the data knows the week */
.trs-rows{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:12px}
.trs-rows li{display:grid;grid-template-columns:10px 1fr;gap:12px;align-items:start}
.trs-rows li>i{width:10px;height:10px;border-radius:3px;margin-top:6px}
.trs-rows b{display:block;font-size:15px}
.trs-rows span{display:block;color:var(--ink-2);font-size:14.5px}
.trs-link{display:block;margin-top:4px;font-size:14px;font-weight:600;color:var(--accent-ink)}
.trs-go{margin-top:10px}
.trw-strip{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 0}
.trw{border:1px solid var(--hair);border-radius:var(--r);padding:12px 14px;min-width:0}
.trw.trw-now{border-color:var(--accent);background:var(--accent-tint)}
.trw-k{display:block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.trw.trw-now .trw-k{color:var(--accent-ink)}
.trw b{display:block;font-size:15px;margin:2px 0 8px}
.trw ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.trw li{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600}
.trw li i{width:10px;height:10px;border-radius:3px;flex:none}
.trw li.off{color:var(--muted);font-weight:500;text-decoration:line-through}
.trw li.off i{opacity:.35}
.trw-hol{margin:8px 0 0;font-size:13px;color:#9a3412}
a.tb.src:hover{background:#e2e8f0;text-decoration:underline}
.sig-src a{color:inherit;text-decoration:underline}
.trs-hols{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:6px;font-size:14px;color:var(--ink-2)}
.trs-hols b{color:var(--ink)}
.hk-svcs.tr-osm{grid-template-columns:minmax(0,1fr);max-width:640px}
/* recycling bin, recycling / compost drop-offs, guides (trash.php tr_bin, 10/25) */
.trb-items{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.trb-items li{border:1px solid var(--line);border-radius:12px;padding:5px 11px;font-size:14px;line-height:1.4;color:var(--ink)}
.trb-guides{margin-top:14px;padding-top:12px;border-top:1px solid var(--hair)}
.trb .trs-link{margin-top:6px}
.trb-host{font-weight:400;color:var(--muted)}
.trb-hours{margin:10px 0 0}
.trb-hours .kick{display:block;margin-bottom:2px}
.trb .trc-tags,.hk-svc[id^="trash-drop-"] .trc-tags:last-child{margin-top:12px}
