/* ═══════════════════════════════════════════════════════════════════════════
   BGW Hospital Bag Checklist — /tools/hospital-bag-checklist/
   ---------------------------------------------------------------------------
   Fifth distinct metaphor in the tool family:
     registry   → filter rail + ledger      size chart → range bars
     due date   → timeline                  gender quiz → step-through
     hospital bag → PACKING METER (tick what's in the bag, watch it fill)

   DARK CARD RECIPE (learned the hard way — the gender quiz shipped white text
   on a cream card and the names were invisible):
     · this scoped block sets the background AND an explicit `color`
     · every text element inside is given its own colour, never inherited
   ═══════════════════════════════════════════════════════════════════════════ */

.bgw-hospital {
	--ink:    #F7F2EA;
	--mint:   rgb(143, 179, 159);
	--mint-d: rgb(110, 150, 128);
	--void:   rgb(43, 42, 40);
	--line:   rgba(255, 255, 255, .10);
	--line-s: rgba(255, 255, 255, .06);
	--muted:  rgba(247, 242, 234, .62);
	--amber:  #E3D3A2;
	--rose:   #D98F9A;
}

.bgw-hospital .hbc-card {
	background: var(--void);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 24px;
	color: var(--ink);
}
.bgw-hospital .hbc-card * { color: inherit; }
.bgw-hospital .hbc-card h2,
.bgw-hospital .hbc-card h3,
.bgw-hospital .hbc-card strong { color: #fff; }

/* ── meter ──────────────────────────────────────────────────────────────── */
.bgw-hospital .hbc-meter {
	position: sticky; top: 0; z-index: 5;
	background: var(--void);
	border-bottom: 1px solid var(--line);
	padding: 14px 0 16px;
	margin: 0 0 18px;
}
.bgw-hospital .hbc-meter-top {
	display: flex; justify-content: space-between; align-items: baseline;
	gap: 14px; flex-wrap: wrap; margin: 0 0 10px;
}
.bgw-hospital .hbc-count {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.5rem; font-weight: 600; color: #fff;
}
.bgw-hospital .hbc-count b { color: var(--mint); font-weight: 600; }
.bgw-hospital .hbc-tools { display: flex; gap: 9px; align-items: center; }
.bgw-hospital .hbc-btn {
	appearance: none; font: inherit; font-size: .78rem; font-weight: 600;
	padding: 7px 13px; border-radius: 5px; cursor: pointer;
	background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.bgw-hospital .hbc-btn:hover { border-color: var(--mint); background: rgba(143,179,159,.12); }
.bgw-hospital .hbc-btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

.bgw-hospital .hbc-bar {
	height: 7px; border-radius: 999px; overflow: hidden;
	background: rgba(255,255,255,.10);
}
.bgw-hospital .hbc-bar i {
	display: block; height: 100%; width: 0;
	background: var(--mint); border-radius: 999px;
	transition: width .28s ease;
}
.bgw-hospital .hbc-hint {
	margin: 9px 0 0; font-size: .78rem; line-height: 1.5; color: var(--muted);
}

/* ── category ───────────────────────────────────────────────────────────── */
.bgw-hospital .hbc-cat { margin: 0 0 22px; }
.bgw-hospital .hbc-cat:last-child { margin-bottom: 0; }
.bgw-hospital .hbc-cathead {
	display: flex; justify-content: space-between; align-items: baseline;
	gap: 12px; padding: 0 0 9px; border-bottom: 1px solid var(--line);
	margin: 0 0 4px;
}
.bgw-hospital .hbc-cathead h3 {
	margin: 0; font-size: 1.02rem; font-weight: 700; color: #fff;
	letter-spacing: .01em;
}
.bgw-hospital .hbc-catn { font-size: .76rem; color: var(--muted); white-space: nowrap; }
.bgw-hospital .hbc-catdesc {
	margin: 7px 0 10px; font-size: .84rem; line-height: 1.55; color: var(--muted);
}

/* ── item row ───────────────────────────────────────────────────────────── */
.bgw-hospital .hbc-row {
	display: grid;
	grid-template-columns: 24px 1fr auto;
	gap: 12px; align-items: start;
	padding: 12px 12px 12px 4px;
	border-bottom: 1px solid var(--line-s);
	border-radius: 6px;
	cursor: pointer;
	transition: background .13s ease;
}
.bgw-hospital .hbc-row:last-child { border-bottom: 0; }
.bgw-hospital .hbc-row:hover { background: rgba(255,255,255,.035); }

.bgw-hospital .hbc-tick {
	width: 19px; height: 19px; margin-top: 2px;
	border: 1.5px solid rgba(255,255,255,.30); border-radius: 4px;
	display: flex; align-items: center; justify-content: center;
	background: transparent; flex: 0 0 auto;
}
.bgw-hospital .hbc-tick svg { width: 12px; height: 12px; opacity: 0; stroke: #fff; }
.bgw-hospital .hbc-row.packed .hbc-tick { background: var(--mint); border-color: var(--mint); }
.bgw-hospital .hbc-row.packed .hbc-tick svg { opacity: 1; }

.bgw-hospital .hbc-body { min-width: 0; }
.bgw-hospital .hbc-nm {
	display: block; font-size: .95rem; font-weight: 600; line-height: 1.35; color: #fff;
}
.bgw-hospital .hbc-desc {
	display: block; margin: 4px 0 0; font-size: .85rem; line-height: 1.55; color: var(--ink);
}
.bgw-hospital .hbc-tip {
	display: block; margin: 5px 0 0; font-size: .82rem; line-height: 1.5; color: var(--muted);
}
.bgw-hospital .hbc-tip b { color: var(--amber); font-weight: 700; }

.bgw-hospital .hbc-row.packed .hbc-nm { color: rgba(255,255,255,.55); text-decoration: line-through; }
.bgw-hospital .hbc-row.packed .hbc-desc,
.bgw-hospital .hbc-row.packed .hbc-tip { opacity: .45; }

.bgw-hospital .hbc-right {
	display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
	flex: 0 0 auto;
}
.bgw-hospital .hbc-qty {
	font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
	background: rgba(255,255,255,.09); color: var(--ink); white-space: nowrap;
}
.bgw-hospital .hbc-badge {
	font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
	padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.bgw-hospital .hbc-badge.essential   { background: var(--mint); color: #fff; }
.bgw-hospital .hbc-badge.recommended { background: var(--amber); color: #3A3733; }
.bgw-hospital .hbc-badge.nice        { background: rgba(255,255,255,.13); color: var(--ink); }

/* ── buy strip under each category ──────────────────────────────────────── */
.bgw-hospital .hbc-buy {
	display: flex; justify-content: space-between; align-items: center;
	gap: 16px; flex-wrap: wrap;
	margin: 12px 0 0; padding: 13px 16px;
	background: rgba(255,255,255,.05);
	border: 1px solid var(--line-s); border-radius: 8px;
}
.bgw-hospital .hbc-buy span { font-size: .87rem; line-height: 1.5; color: var(--ink); }
.bgw-hospital .hbc-buy strong { color: #fff; }
.bgw-hospital .fit-buy {
	display: inline-block; font-size: .84rem; font-weight: 700;
	padding: 9px 16px; border-radius: 5px; text-decoration: none;
	background: var(--mint); color: #fff; border: 1px solid var(--mint);
	white-space: nowrap;
	transition: background .15s ease, border-color .15s ease;
}
.bgw-hospital .fit-buy:hover,
.bgw-hospital .fit-buy:focus-visible {
	background: var(--mint-d); border-color: var(--mint-d); color: #fff; outline: none;
}

/* ── disclaimer ─────────────────────────────────────────────────────────── */
.bgw-hospital .hbc-note {
	margin: 18px 0 0; padding: 14px 17px;
	border-left: 3px solid var(--rose);
	background: rgba(217,143,154,.10);
	border-radius: 0 6px 6px 0;
}
.bgw-hospital .hbc-note p { margin: 0; font-size: .86rem; line-height: 1.6; color: var(--ink); }
.bgw-hospital .hbc-note strong { color: #fff; }

@media (max-width: 620px) {
	.bgw-hospital .hbc-row { grid-template-columns: 24px 1fr; }
	.bgw-hospital .hbc-right {
		grid-column: 2; flex-direction: row; align-items: center; margin-top: 4px;
	}
	.bgw-hospital .hbc-meter { position: static; }
}
@media print {
	.bgw-hospital .hbc-meter, .bgw-hospital .fit-buy { display: none !important; }
	.bgw-hospital .hbc-card { background: #fff !important; border-color: #ccc !important; }
	.bgw-hospital .hbc-card, .bgw-hospital .hbc-card * { color: #000 !important; }
	.bgw-hospital .hbc-qty, .bgw-hospital .hbc-badge { border: 1px solid #999; background: #eee !important; }
}

/* BGW-CONTRAST-FILL */
/* Brand mint rgb(143,179,159) with white text measures 2.30:1 — fails WCAG AA.
   Anything carrying WHITE text uses this darker green instead: 4.80:1.
   The light mint remains for accents, borders and dark-text fills. */
.bgw-gender .fit-buy,
.bgw-hospital .fit-buy,
.bgw-gender .gq-start,
.bgw-gender .gq-opt.chosen,
.bgw-gender .gq-badge,
.bgw-hospital .hbc-badge.essential,
.bgw-registry .fit-buy,
.bgw-sizechart .fit-buy,
.bgw-duedate .fit-buy,
.bgw-duedate .dd-chip.on,
a.fit-buy,
button.gq-start {
	background: rgb(86, 122, 102) !important;
	border-color: rgb(86, 122, 102) !important;
	color: #fff !important;
}
.bgw-gender .fit-buy:hover,
.bgw-hospital .fit-buy:hover,
.bgw-gender .gq-start:hover,
a.fit-buy:hover,
button.gq-start:hover {
	background: rgb(74, 106, 89) !important;
	border-color: rgb(74, 106, 89) !important;
}
