/* css/guides.css: /guides only (7 Nov 2026, the five-block template). Linked from guides.html after styles.css, so the
   library's rules stay out of the stylesheet every page blocks on (check_budgets.py). Hand-written, like tools.css.
   Topic tiles with a real count; one "Start with these" card; a topic or a search shows its guides as rows. */
html body .gl .gl-h{font:700 var(--fs-title)/1.27 var(--font);margin:20px 0 12px;color:var(--text)}
html body .gl-tiles{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
@media (min-width:768px){html body .gl-tiles{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
html body .gl-tile{background:var(--bg-raised)!important;border:0!important;border-radius:var(--r-card)!important;padding:16px!important;min-height:112px;
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:space-between;gap:12px;text-align:left;color:var(--text)!important;box-shadow:none!important;cursor:pointer;font:inherit}
html body .gl-tile:hover{box-shadow:inset 0 0 0 2px var(--line)!important}
html body .gl .gl-ic,html body .gl-start .gl-ic{width:40px;height:40px;border-radius:12px;background:var(--brand-tint-2);display:grid;place-items:center;flex:none}
html body .gl .gl-ic svg,html body .gl-start .gl-ic svg{width:22px;height:22px;fill:none;stroke:var(--brand-text);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html body .gl-tx{display:flex;flex-direction:column;gap:2px}
html body .gl-tx b{font:700 var(--fs-body)/1.25 var(--font);color:var(--text)}
html body .gl-tx small{font:400 var(--fs-sub)/1.35 var(--font);color:var(--text-2)}
html body .gl-start{background:var(--bg-raised);border-radius:var(--r-card);overflow:hidden;margin:20px 0}
html body .gl-start h2{padding:18px 16px 6px;margin:0;font:700 var(--fs-title)/1.27 var(--font);color:var(--text)}
html body .gl-row{display:flex;align-items:center;gap:14px;padding:12px 16px;min-height:64px;color:var(--text)!important;text-decoration:none!important;border-top:1px solid var(--line)}
html body .gl-start h2+.gl-row{border-top:0}
html body .gl-rt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
html body .gl-rt b{font:600 var(--fs-body)/1.3 var(--font)}
html body .gl-rt small{font:400 var(--fs-sub)/1.35 var(--font);color:var(--text-2)}
html body .gl-start .gl-all{display:flex;align-items:center;width:100%;min-height:52px;padding:0 16px;border:0;border-top:1px solid var(--line);background:none;color:var(--brand-text);font:600 var(--fs-callout)/1.3 var(--font);cursor:pointer;text-align:left}
/* a topic or a search: the guides as rows in one white card, not big cards */
html body.gl-filtered .guide-hub-grid{display:block!important;background:var(--bg-raised);border-radius:var(--r-card);overflow:hidden;padding:0!important}
html body.gl-filtered .guide-hub-grid .g-card{border:0!important;border-radius:0!important;box-shadow:none!important;border-top:1px solid var(--line)!important;margin:0!important;background:transparent!important;min-height:0!important;transform:none!important}
html body.gl-filtered .guide-hub-grid .g-card:first-child{border-top:0!important}
html body.gl-filtered .guide-hub-grid .g-top,html body.gl-filtered .guide-hub-grid .g-cat,html body.gl-filtered .guide-hub-grid .g-meta{display:none!important}
html body.gl-filtered .guide-hub-grid .g-pad{padding:12px 16px!important}
html body.gl-filtered .guide-hub-grid h3{font:600 var(--fs-body)/1.3 var(--font)!important;margin:0 0 2px!important;color:var(--text)!important}
html body.gl-filtered .guide-hub-grid p{font:400 var(--fs-sub)/1.35 var(--font)!important;color:var(--text-2)!important;margin:0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* the featured guide's big picture on a phone */
@media (max-width:767px){html body.gl-on .featured-guide{display:none!important}}
html body .gl-tiles .gl-tile[hidden]{display:none!important}
/* the top of the page on a phone: title, search, where you live, situations on one scrolling line (was a full screen) */
@media (max-width:767px){
  html body .gh-hero .gh-sub{display:none}
  html body .gh-hero .gh-sits{display:flex!important;flex-wrap:nowrap!important;gap:8px;overflow-x:auto!important;scrollbar-width:none}
  html body .gh-hero .gh-sits::-webkit-scrollbar{display:none}
  html body .gh-hero .gh-sits>*{flex:none}
}
/* in a topic, the fourteen topic chips are one scrolling line on a phone, so the guides start on the first screen */
@media (max-width:767px){
  html body .cat-filter{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;overflow-x:auto!important;scrollbar-width:none;justify-content:flex-start!important}
  html body .cat-filter::-webkit-scrollbar{display:none}
  html body .cat-filter>*{flex:none!important}
}
