/* ==========================================================================
   Deets: bin day pages (bin-day/index.html + bin-day/<council id>.html).
   Loads after rates.css and reuses its page shell (.r-crumb, .r-main,
   .r-h1, .r-section, .r-faq-list, .r-pill, .r-product-card). This file adds
   the bin chips, the week rows, the four week strip, the town rows and the
   hub rows.
   ========================================================================== */

.b-main { max-width: 720px; }

/* ---- bin chips ----------------------------------------------------------- */

.b-bin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--fs-label);
  font-weight: 600;
}
.b-d {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  background: #71717A;
  flex: none;
}
.b-d-rubbish { background: #DC2626; }
.b-d-recycling { background: #EAB308; }
.b-d-glass { background: #2563EB; }
.b-d-food-scraps, .b-d-food-and-garden { background: #16A34A; }
.b-d-garden { background: #65A30D; }

/* ---- a zone block -------------------------------------------------------- */

.b-zone { margin: 0 0 26px; }
.b-zone-h { font-size: var(--fs-d1); color: var(--ink); margin: 0 0 4px; }
.b-zone-sub { font-size: var(--fs-body); color: var(--muted); margin: 0 0 10px; overflow-wrap: anywhere; }
.b-note { font-size: var(--fs-body); color: var(--ink-soft); margin: 0 0 10px; }

.b-weeks { border-top: 1px solid var(--line); margin: 0 0 14px; }
.b-wk {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.b-wl {
  flex: none;
  width: 132px;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--ink);
}
.b-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }

/* ---- the four week strip (filled in by js/bin-weeks.js) ------------------ */

.b-strip {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.b-strip:empty { display: none; }
.b-strip li {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px;
  text-align: center;
  font-size: var(--fs-label);
  color: var(--ink-soft);
  min-width: 0;
  overflow-wrap: anywhere;
}
.b-strip li b { display: block; font-size: var(--fs-body); color: var(--ink); margin-bottom: 2px; }
.b-strip li span { display: block; }
.b-strip li.b-now { border-color: var(--primary); background: var(--primary-l); }

/* ---- towns and their days ------------------------------------------------ */

.b-towns { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.b-towns li { border-bottom: 1px solid var(--line); }
.b-town {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  min-height: 44px;
  box-sizing: border-box;
  background: none;
  border: 0;
  font: inherit;
  font-size: var(--fs-body);
  color: var(--ink);
  text-align: left;
}
button.b-town { cursor: pointer; }
button.b-town[aria-pressed="true"] .b-town-n { color: var(--primary-d); font-weight: 800; }
.b-town-n { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.b-town-d { flex: none; color: var(--muted); font-weight: 600; }

/* ---- coming up, buttons, source ------------------------------------------ */

.b-soon { font-size: var(--fs-body); color: var(--ink-soft); margin: 0 0 18px; }
.b-soon b { color: var(--ink); margin-right: 4px; }

.b-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 12px; }
.b-actions .btn { white-space: normal; text-align: center; }
.b-source { font-size: var(--fs-label); color: var(--muted); margin: 0 0 28px; }
.b-source a { color: var(--muted); text-decoration: underline; }

/* ---- hub ------------------------------------------------------------------ */

.b-group { margin: 0 0 22px; }
.b-group-h {
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.b-hubrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--fs-body);
}
.b-hubrow-n { font-weight: 700; color: var(--primary-d); flex: none; }
.b-hubrow-p { color: var(--ink-soft); text-align: right; min-width: 0; }
@media (hover: hover) and (pointer: fine) {
  .b-hubrow:hover { background: var(--soft); }
}

@media (max-width: 640px) {
  .b-main { padding-left: 18px; padding-right: 18px; }
  .b-wk { flex-direction: column; align-items: flex-start; gap: 6px; }
  .b-wl { width: auto; }
  .b-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-hubrow { flex-direction: column; gap: 2px; }
  .b-hubrow-p { text-align: left; }
  .b-actions .btn { width: 100%; }
}

/* ---- what goes in, questions (bin guide, 12 Nov 2026) --------------------- */

.b-guide { margin: 0 0 8px; }
.b-guide-h { font-size: var(--fs-d1); color: var(--ink); margin: 0 0 4px; }
.b-guide .b-source { margin: 8px 0 22px; }
.b-guide .b-wl { display: inline-flex; align-items: center; gap: 8px; }
.b-gv { min-width: 0; overflow-wrap: anywhere; font-size: var(--fs-body); color: var(--ink-soft); }
.b-lid-red { background: #DC2626; }
.b-lid-yellow { background: #EAB308; }
.b-lid-green { background: #16A34A; }
.b-lid-lime { background: #65A30D; }
.b-lid-blue { background: #2563EB; }
.b-lid-black { background: #18181B; }
.b-lid-orange { background: #EA580C; }
.b-lid-maroon { background: #7F1D1D; }
a.b-ql { text-decoration: none; }
a.b-ql .b-town-n { color: var(--primary-d); text-decoration: underline; text-underline-offset: 2px; }
.b-tel { color: var(--primary-d); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.b-town-d { text-align: right; }

/* ---- Christmas (16 Nov 2026): chips, the rule, the guide page rows --------- */

.b-x {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  line-height: 1.35;
  font-weight: 700;
  white-space: nowrap;
}
.b-x-mv { background: var(--amber-l); color: var(--amber-ink); }
.b-x-no { background: var(--red-l); color: var(--red); }
.b-x-ok { background: var(--green-l); color: var(--green); }
.b-x-nyet { background: var(--soft2); color: var(--muted); border: 1px solid var(--line); }
.b-xmas .b-wl { width: 172px; }
.b-xrule { font-size: var(--fs-body); color: var(--ink-soft); margin: 10px 0 0; overflow-wrap: anywhere; }

.b-xlist { margin: 0 0 8px; }
.b-xrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-body);
}
.b-xlist { border-top: 1px solid var(--line); }
.b-xrow-n { font-weight: 700; color: var(--primary-d); flex: none; text-decoration: underline; text-underline-offset: 2px; }
.b-xrow-b { min-width: 0; text-align: right; }
.b-xrow-b .b-chips { justify-content: flex-end; }
.b-xrow-b .b-xrule { text-align: right; margin-top: 6px; }

@media (max-width: 640px) {
  .b-xmas .b-wl { width: auto; }
  .b-xrow { flex-direction: column; gap: 6px; }
  .b-xrow-b, .b-xrow-b .b-xrule { text-align: left; }
  .b-xrow-b .b-chips { justify-content: flex-start; }
  .b-x { white-space: normal; }
}
