/* Take My Clutter hub and list pages: only what pages.css and national.css lack. Written by the hubs build (build/build_hubs.py). */

/* a grid of plain link rows: every child of a hub, most searched first */
.hb-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 34px}
.hb-links .lrow{border-top:1px solid var(--line);border-bottom:0;min-height:48px;padding:11px 0;line-height:1.3}
.hb-links .lrow span{min-width:0;overflow-wrap:anywhere}
.hb-links .lrow .arr{flex:none}

/* a group inside a list section: a council, a region, a job */
.hb-towns .sec-head{margin-bottom:30px}
.hb-group{margin-top:38px}
.hb-group:first-of-type{margin-top:0}
.hb-gh{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 30px;margin-bottom:12px}
.hb-gh h3{font:900 23px/1.2 var(--head);color:var(--deep);margin:0}
.hb-gh h3 a{color:inherit;text-decoration:none}
.hb-gh h3 a:hover{color:var(--blue);text-decoration:underline;text-underline-offset:4px}
.hb-gl{display:flex;flex-wrap:wrap;gap:4px 26px;margin:0;font-size:15px;color:var(--muted)}
.hb-gl .lnk{white-space:normal;padding:6px 0}
.hb-cream{background:var(--cream)}
.hb-first{margin:0 0 30px}
.hb-svc .hb-group h3{font:800 12.5px var(--body);letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin:0 0 12px}
.hb-svc .hb-group{margin-top:30px}
.hb-svc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;align-items:start}
.hb-svc-row .hb-gl{margin-top:4px;padding-left:4px}
.hb-desc{margin:8px 4px 0;font-size:14.5px;color:var(--muted)}
.hb-places .pl-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.hb-places .pl-col li a{padding:6px 0}
.near .hb-links{margin-top:0}
.near .n-col .lrow{min-height:48px}

/* the plain head of an index page: no hero */
/* the site header is fixed over the page, so the head starts below it, as the hero does */
.hb-top{background:var(--night);color:var(--ondark);padding:112px 0 52px}
.hb-top h1{font:900 clamp(34px,4.4vw,56px)/1.05 var(--head);color:#fff;margin:0 0 14px;letter-spacing:-.01em}
.hb-lede{margin:0;max-width:64ch;font-size:18.5px;line-height:1.5;color:var(--ondark)}
.hb-cta{margin:24px 0 0}

/* council fee blocks on the tip fees page */
.hb-fee{margin-top:46px;padding-top:34px;border-top:1px solid var(--line)}
.hb-fee:first-of-type{margin-top:0;padding-top:0;border-top:0}
.hb-fee-in{margin:0 0 18px;max-width:80ch;color:var(--muted);font-size:16.5px}
.hb-fees .t-card{overflow-x:auto}
.hb-fees .t-card table{width:100%;border-collapse:collapse}
.hb-fees .t-grid.n1{grid-template-columns:minmax(0,1fr)}
.hb-fees .t-grid > *{min-width:0}

/* fact tables on a hub: the rule column reads as text, the source column stays narrow */
.permits .pm-table td:last-child{min-width:170px}

@media (max-width:1180px){
  .hb-links{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hb-places .pl-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:980px){
  .hb-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}
  .hb-places .pl-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 22px}
  .hb-svc-grid{grid-template-columns:minmax(0,1fr)}
  .hb-gh h3{font-size:21px}
  .hb-top{padding:96px 0 38px}
  .hb-lede{font-size:17px}
  .hb-fees .t-grid,.hb-fees .t-grid.n2,.hb-fees .t-grid.n3{grid-template-columns:minmax(0,1fr)}
  .hb-fees .t-card th,.hb-fees .t-card td{padding:11px 14px;font-size:14.5px}
  .n-grid.nx-two,.n-grid.nx-two .lrows{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:560px){
  .hb-links{grid-template-columns:minmax(0,1fr)}
  .hb-places .pl-grid{grid-template-columns:minmax(0,1fr)}
}

/* the council name tag on a hub card needs room above the card title */
.lo-card > .lo-tag{margin-bottom:12px}

/* a long state name in the button of the 'also' block must wrap on a phone, not push the block wider than the screen */
.also-grid > *{min-width:0}
.also .btn{white-space:normal;text-align:left;max-width:100%}

/* Your rights and rules (lead-engine ADR-0380): one section, cards of tick points */
.i-grid.rr-grid{grid-template-columns:1fr 1fr}
.i-grid.rr-grid.n1{grid-template-columns:1fr}
.rr-card h3{margin-bottom:4px}
.rr-ticks li{display:grid;grid-template-columns:18px 1fr;gap:10px;padding:8px 0;font-size:15.5px;line-height:1.45}
.rr-ticks li svg{width:14px;height:14px;margin-top:5px;color:var(--blue)}
.rr-card .lnk-row{margin-top:14px}
.rr-foot{margin:16px 0 0;font-size:14px;color:var(--muted)}
/* a page below the state page: its few state rule points end with the link to the state page's full list (SOP run 65) */
.rr-foot.rr-state{margin:22px 0 0;font-size:16px;color:var(--text)}
.rr-state a{font-weight:700;color:var(--blue)}
@media (max-width:980px){
  .i-grid.rr-grid{grid-template-columns:1fr}
}
