/* Find your child's size (home) + size banner (school page) */
.sizefinder { background: var(--bg-alt); }
.sf-head { max-width: 640px; margin-bottom: 22px; }
.sf-head h2 { font-size: 1.6rem; color: var(--brand); margin-bottom: 6px; }
.sf-head p { color: var(--muted); }
.sf-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.9fr; gap: 16px; align-items: start; }
.sf-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.sf-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--brand); margin-bottom: 12px; }
.sf-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.85rem; flex: none; }

.sf-ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.sf-age { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border: 2px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; transition: border-color 0.15s, background 0.15s; }
.sf-age b { font-size: 1.15rem; line-height: 1.1; }
.sf-age small { font-size: 0.68rem; color: var(--muted); }
.sf-age:hover { border-color: var(--brand); }
.sf-age.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.sf-age.on small { color: rgba(255, 255, 255, 0.85); }
.sf-age:focus-visible, .sf-build input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.sf-height { margin-top: 14px; font-size: 0.9rem; }
.sf-height summary { cursor: pointer; color: var(--brand); font-weight: 500; }
.sf-height-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.sf-height-row input { width: 110px; padding: 9px 12px; border: 2px solid var(--border); border-radius: 10px; font: inherit; outline: none; }
.sf-height-row input:focus { border-color: var(--brand); }
.sf-fine { color: var(--muted); font-size: 0.8rem; margin-top: 8px; }

.sf-builds { display: grid; gap: 8px; }
.sf-build { position: relative; display: block; cursor: pointer; }
.sf-build input { position: absolute; opacity: 0; inset: 0; }
.sf-build span { display: block; padding: 10px 14px; border: 2px solid var(--border); border-radius: 10px; }
.sf-build strong { display: block; font-size: 0.92rem; }
.sf-build small { color: var(--muted); font-size: 0.78rem; }
.sf-build input:checked + span { border-color: var(--brand); background: var(--brand-light); }
.sf-grow { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 0.88rem; cursor: pointer; }
.sf-grow input { margin-top: 3px; }
.sf-grow small { color: var(--muted); }

.sf-result { background: var(--brand-light); border-color: transparent; }
.sf-empty { color: var(--muted); font-size: 0.92rem; }
.sf-size { display: flex; align-items: baseline; gap: 10px; }
.sf-size span { color: var(--muted); font-size: 1rem; }
.sf-size b { font-size: 3.2rem; line-height: 1; color: var(--brand); }
.sf-why { font-size: 0.85rem; color: var(--muted); margin: 6px 0 8px; }
.sf-fits { font-size: 0.9rem; margin-bottom: 14px; }
.sf-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-saved { margin-top: 10px; font-size: 0.8rem; color: var(--brand); }

.sf-guide { margin-top: 18px; }
.sf-guide summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.sf-table-wrap { overflow-x: auto; margin-top: 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.sf-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.sf-table th, .sf-table td { padding: 8px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.sf-table tr.on td { background: var(--brand-light); font-weight: 600; }

@media (max-width: 980px) { .sf-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .sf-ages { grid-template-columns: repeat(4, 1fr); } }

/* School page: "sizes picked for your child" */
.size-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px auto 0; padding: 10px 16px; background: var(--brand-light); border-radius: var(--radius); font-size: 0.9rem; }
.size-banner strong { color: var(--brand); }
.size-banner a, .size-banner button { color: var(--brand); font: inherit; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.size-banner .sb-sp { flex: 1; }
.size-chip.suggested:not(.selected) { border-style: dashed; border-color: var(--accent-dark); }
.fit-note { display: block; margin: -2px 0 6px; font-size: 0.76rem; color: var(--brand); font-weight: 500; }
