/* boys-funnel.css: the page "From Every Boy to One" (website idea 4, 17 Nov 2026). All rules begin .bfx- */
.bfx-main { --bfx-ink: #1c2a3f; --bfx-mid: #71839c; --bfx-out: #958259; --bfx-gold: #c9a24a; --bfx-surface: #fffdf7; }
.bfx-lead { max-width: 46rem; margin: 0 0 1rem; }
.bfx-tools { display: flex; flex-wrap: wrap; gap: 0.7rem 1.2rem; align-items: flex-end; margin: 0 0 0.7rem; }
.bfx-tools[hidden] { display: none; }
.bfx-steps { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.bfx-step { font: inherit; font-size: 0.92rem; padding: 0.42rem 0.85rem; border-radius: 999px; border: 1px solid #c9b88f; background: #fff; color: #1c2a3f; cursor: pointer; }
.bfx-step[aria-pressed="true"] { background: #1c2a3f; border-color: #1c2a3f; color: #fff; }
.bfx-find { display: flex; flex-direction: column; gap: 0.2rem; flex: 1 1 14rem; max-width: 22rem; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8a6420; }
.bfx-find input { font: inherit; font-family: inherit; font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; padding: 0.45rem 0.7rem; border: 1px solid #c9b88f; border-radius: 8px; background: #fff; color: #1f1a14; }
.bfx-step:focus-visible, .bfx-find input:focus-visible, .bfx-sq:focus-visible, .bfx-list summary:focus-visible { outline: 2px solid #8a6420; outline-offset: 2px; }
.bfx-say { min-height: 1.5em; margin: 0 0 0.5rem; font-size: 0.98rem; font-weight: 700; color: #1c2a3f; }
.bfx-hits { list-style: none; margin: 0 0 0.8rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.3rem 1rem; font-size: 0.93rem; }
.bfx-hits[hidden] { display: none; }
.bfx-hits li { padding: 0.25rem 0; border-bottom: 1px solid rgba(190, 150, 70, 0.25); }
.bfx-hits small { display: block; color: #5a4c38; font-size: 0.86rem; }

/* one square for each boy */
.bfx-grid { position: relative; padding: 1rem 1.1rem 0.4rem; border: 1px solid rgba(190, 150, 70, 0.6); border-radius: 8px; background: var(--bfx-surface); }
.bfx-block { margin: 0 0 0.9rem; }
.bfx-blab { margin: 0 0 0.4rem; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.8rem; letter-spacing: 0.04em; color: #5a4c38; }
.bfx-blab b { color: #1c2a3f; }
.bfx-blab span { font-variant-numeric: tabular-nums; }
.bfx-sqs { display: flex; flex-wrap: wrap; gap: 3px; }
.bfx-sq { display: block; box-sizing: border-box; width: 15px; height: 15px; border-radius: 3px; transition: opacity 0.2s; }
.bfx-d { border: 1.5px solid var(--bfx-out); background: transparent; }
.bfx-e { background: var(--bfx-mid); }
.bfx-o { background: var(--bfx-ink); }
.bfx-o.bfx-c { border: 3px solid var(--bfx-gold); }
.bfx-o.bfx-l { background: var(--bfx-gold); border: 2px solid var(--bfx-ink); border-radius: 50%; }
.bfx-grid[data-step="1"] .bfx-d, .bfx-grid[data-step="2"] .bfx-d, .bfx-grid[data-step="2"] .bfx-e,
.bfx-grid[data-step="3"] .bfx-sq:not(.bfx-c), .bfx-grid[data-step="4"] .bfx-sq:not(.bfx-l), .bfx-grid.bfx-finding .bfx-sq:not(.bfx-hit) { opacity: 0.14; }
.bfx-grid.bfx-finding .bfx-hit { outline: 2px solid #b3541e; outline-offset: 1px; }
.bfx-sq.bfx-pin { outline: 2px solid #1c2a3f; outline-offset: 2px; }
.bfx-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.3rem; margin: 0.6rem 0 0; font-size: 0.88rem; color: #5a4c38; }
.bfx-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.bfx-tip { position: absolute; z-index: 4; width: 15.5rem; max-width: calc(100% - 8px); transform: translate(-50%, 12px); padding: 0.5rem 0.7rem; border-radius: 6px; background: #1c2a3f; color: #fff; font-size: 0.86rem; line-height: 1.4; box-shadow: 0 6px 18px rgba(20, 31, 48, 0.3); }
.bfx-tip[hidden] { display: none; }
.bfx-tip b { display: block; font-size: 0.93rem; }
.bfx-main .bfx-tip a { display: inline-block; margin-top: 0.3rem; color: #e8cd8a !important; -webkit-text-fill-color: #e8cd8a; font-weight: 700; }

/* the steps */
.bfx-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; max-width: 52rem; }
.bfx-card { padding: 1rem 1.2rem 1.1rem; border: 1px solid rgba(190, 150, 70, 0.6); border-radius: 8px; background: #fffdf7; scroll-margin-top: 8rem; }
.bfx-card p { margin: 0.5rem 0 0; line-height: 1.6; }
.bfx-card .bfx-num { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; }
.bfx-num b { font-family: "Source Serif 4", Georgia, serif; font-size: 2.3rem; line-height: 1; color: #1c2a3f; font-variant-numeric: tabular-nums; }
.bfx-num span { font-size: 1.12rem; font-weight: 700; color: #1c2a3f; }
.bfx-bar { height: 8px; margin: 0.55rem 0 0.2rem; border-radius: 4px; background: rgba(113, 131, 156, 0.2); overflow: hidden; }
.bfx-bar i { display: block; height: 100%; min-width: 4px; border-radius: 4px; background: #1c2a3f; }
#step-lead .bfx-bar i { background: #c9a24a; }
.bfx-card .bfx-why { font-size: 0.96rem; color: #4a3d25; }
.bfx-card .bfx-more, .bfx-card .bfx-links { font-size: 0.95rem; }
.bfx-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.3rem; font-weight: 700; }
.bfx-terms { margin: 0.7rem 0 0; display: grid; gap: 0.5rem; }
.bfx-terms dt { font-weight: 700; color: #1c2a3f; }
.bfx-terms dt b { font-variant-numeric: tabular-nums; }
.bfx-terms dd { margin: 0; color: #4a3d25; }
.bfx-list { margin: 0.8rem 0 0; border-top: 1px solid rgba(190, 150, 70, 0.4); }
.bfx-list summary { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0 0.3rem; list-style: none; font-weight: 700; color: #24497a; cursor: pointer; }
.bfx-list summary::-webkit-details-marker { display: none; }
.bfx-list summary small { font-weight: 400; color: #5a4c38; font-variant-numeric: tabular-nums; }
.bfx-cols, .bfx-list li, .bfx-one li { display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem 7.5rem; gap: 0 1rem; align-items: baseline; }
.bfx-list[id="list-open"] .bfx-cols, .bfx-list[id="list-open"] li, .bfx-list[id="list-carl"] .bfx-cols, .bfx-list[id="list-carl"] li, .bfx-one li { grid-template-columns: minmax(0, 1fr) 8.5rem 7.5rem 8rem; }
.bfx-card .bfx-cols { margin: 0.4rem 0 0; padding: 0.3rem 0.5rem; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8a6420; border-bottom: 1px solid rgba(190, 150, 70, 0.5); }
.bfx-list ol, .bfx-one { list-style: none; margin: 0; padding: 0; font-size: 0.94rem; }
.bfx-list ol { max-height: 26rem; overflow-y: auto; }
.bfx-list li, .bfx-one li { padding: 0.32rem 0.5rem; border-bottom: 1px solid rgba(190, 150, 70, 0.22); scroll-margin-top: 9rem; }
.bfx-one { margin-top: 0.8rem; border-top: 1px solid rgba(190, 150, 70, 0.4); }
.bfx-list li b, .bfx-one li b { font-weight: 600; color: #1c2a3f; }
.bfx-born i { display: none; font-style: normal; }
.bfx-born, .bfx-par, .bfx-st { color: #4a3d25; font-variant-numeric: tabular-nums; }
.bfx-tag { display: inline-block; margin-left: 0.3rem; padding: 0.05rem 0.5rem; border-radius: 999px; border: 1px solid #c9a24a; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #6b4d12; white-space: nowrap; }
.bfx-tag-lead { background: #c9a24a; color: #1c2a3f; }
#list-carl .bfx-tag:not(.bfx-tag-lead) { display: none; }
.bfx-list li:target, .bfx-list li.bfx-flash, .bfx-one li.bfx-flash { background: #fbeec9; }
.bfx-main #limits p, .bfx-main #how p { max-width: 46rem; }

/* dark theme */
html.theme-dark .bfx-main { --bfx-ink: #f3ead6; --bfx-mid: #8496b0; --bfx-out: #8c7c58; --bfx-gold: #d8b366; --bfx-surface: #1f2e45; }
html.theme-dark .bfx-grid, html.theme-dark .bfx-card { background: #1f2e45; border-color: rgba(216, 179, 102, 0.45); }
html.theme-dark .bfx-step, html.theme-dark .bfx-find input { background: #141f30; border-color: #34425a; color: #f3ead6; }
html.theme-dark .bfx-step[aria-pressed="true"] { background: #d8b366; border-color: #d8b366; color: #141f30; }
html.theme-dark .bfx-find, html.theme-dark .bfx-card .bfx-cols { color: #d8b366; }
html.theme-dark .bfx-say, html.theme-dark .bfx-blab b, html.theme-dark .bfx-num b, html.theme-dark .bfx-num span, html.theme-dark .bfx-terms dt, html.theme-dark .bfx-list li b, html.theme-dark .bfx-one li b { color: #f3ead6; }
html.theme-dark .bfx-blab, html.theme-dark .bfx-legend, html.theme-dark .bfx-hits small, html.theme-dark .bfx-card .bfx-why, html.theme-dark .bfx-terms dd, html.theme-dark .bfx-born, html.theme-dark .bfx-par, html.theme-dark .bfx-st, html.theme-dark .bfx-list summary small { color: #cdbf9f; }
html.theme-dark .bfx-list summary { color: #e8cd8a; }
html.theme-dark .bfx-bar { background: rgba(243, 234, 214, 0.14); }
html.theme-dark .bfx-bar i { background: #f3ead6; }
html.theme-dark #step-lead .bfx-bar i { background: #d8b366; }
html.theme-dark .bfx-o.bfx-l { border-color: #f3ead6; }
html.theme-dark .bfx-tag { color: #e8cd8a; border-color: #d8b366; }
html.theme-dark .bfx-tag-lead { background: #d8b366; color: #141f30; }
html.theme-dark .bfx-tip { background: #f3ead6; color: #141f30; }
html.theme-dark .bfx-main .bfx-tip a { color: #24497a !important; -webkit-text-fill-color: #24497a; }
html.theme-dark .bfx-sq.bfx-pin { outline-color: #f3ead6; }
html.theme-dark .bfx-step:focus-visible, html.theme-dark .bfx-find input:focus-visible, html.theme-dark .bfx-sq:focus-visible, html.theme-dark .bfx-list summary:focus-visible { outline-color: #d8b366; }
html.theme-dark .bfx-grid.bfx-finding .bfx-hit { outline-color: #e8935a; }
html.theme-dark .bfx-list li:target, html.theme-dark .bfx-list li.bfx-flash, html.theme-dark .bfx-one li.bfx-flash { background: #34425a; }

@media (max-width: 640px) {
  .bfx-sq { width: 13px; height: 13px; }
  .bfx-grid { padding: 0.8rem 0.7rem 0.3rem; }
  .bfx-card .bfx-cols { display: none; }
  .bfx-list li, .bfx-one li, .bfx-list[id="list-open"] li, .bfx-list[id="list-carl"] li { display: flex; flex-wrap: wrap; gap: 0 0.8rem; }
  .bfx-nm { flex: 1 1 100%; }
  .bfx-born i { display: inline; }
  .bfx-num b { font-size: 2rem; }
}
@media print {
  .bfx-tools, .bfx-say, .bfx-hits, .bfx-tip { display: none !important; }
  .bfx-list ol { max-height: none; overflow: visible; }
  .bfx-card { break-inside: avoid-page; }
  .bfx-sq { opacity: 1 !important; }
}
@media (prefers-reduced-motion: reduce) { .bfx-sq { transition: none; } }
/* CANDLIST40 (20 Nov 2026): the small link from a boy's row to his own page */
.bfx-main a.bfx-page { margin-left: 0.5rem; font-size: 0.88rem; font-weight: 400; white-space: nowrap; }
.bfx-main a.bfx-page:focus-visible, .bfx-links a:focus-visible { outline: 2px solid #8a6420; outline-offset: 2px; }
html.theme-dark .bfx-main a.bfx-page:focus-visible, html.theme-dark .bfx-links a:focus-visible { outline-color: #d8b366; }
