/* Chapter — 세계 자전거 브랜드 (page-specific) */

/* Page-local tokens (light / dark) */
:root {
  --br-dot: color-mix(in srgb, var(--ink) 22%, var(--bg));
  --br-dot-hi: color-mix(in srgb, var(--ink) 30%, var(--bg));
  --br-eu: var(--blue);
  --br-as: var(--accent);
  --br-am: var(--teal);
  --br-ot: var(--violet);
  --br-hatch: color-mix(in srgb, var(--surface) 55%, transparent);
}
.br-col { min-width: 0; }
.br-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; line-height: 1.6; }
.br-count { font-size: .8rem; color: var(--muted); margin: 0; }
.br-est {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .02em; vertical-align: 1px; white-space: nowrap;
  color: var(--gold); background: var(--gold-soft); border: 1px dashed color-mix(in srgb, var(--gold) 60%, transparent);
}
.br-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.br-seg .chip { padding: 6px 12px; font-size: .8rem; }
.br-flag { font-size: 1.05em; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.br-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--accent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); flex: none; }

/* ---------- Hero ---------- */
.br-hero { padding-bottom: 0; }
.br-hero h1 { max-width: 16ch; }
.br-h1-accent { display: block; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--violet))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.br-hero-stage { position: relative; margin-top: clamp(16px, 3vw, 28px); }
.br-hero-map { margin: 0; position: relative; }
.br-hero-map::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.br-dotmap-wrap svg { width: 100%; height: auto; overflow: visible; }
.br-dots { stroke: var(--br-dot); stroke-linecap: round; fill: none; }
.br-hero-pin { fill: var(--accent); }
.br-hero-pin-ring { fill: none; stroke: var(--accent); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: brPing 3.2s cubic-bezier(.2,.8,.2,1) infinite; opacity: 0; }
@keyframes brPing { 0% { transform: scale(.4); opacity: .9; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
.br-hero-arc { fill: none; stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: .9; stroke-dasharray: 3 4; animation: brDash 14s linear infinite; }
@keyframes brDash { to { stroke-dashoffset: -200; } }
.br-hero-lbl { font-family: var(--font); font-size: 15px; font-weight: 700; font-weight: 600; fill: var(--ink-2); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; letter-spacing: .02em; }
.br-hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: -6%; padding-bottom: clamp(36px, 5vw, 64px); }
.br-hero-stats .stat { padding: 18px 18px 0 0; }
.br-hero-stats .stat + .stat { padding-left: 18px; }
@media (max-width: 760px) {
  .br-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; row-gap: 8px; }
  .br-hero-stats .stat:nth-child(3) { padding-left: 0; }
  .br-hero-map { margin: 0 -8px; }
}

/* ---------- Widgets ---------- */
.br-widget { overflow: hidden; }
.br-widget .field { margin: 0; }

/* ---------- Map ---------- */
.br-map-chips { margin: 0 -4px 14px; padding: 2px 4px 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.br-map-chips .chip { flex: none; white-space: nowrap; }
.br-map-chips .chip { padding: 5px 11px; font-size: .8rem; }
.br-map-chips .chip .n { font-family: var(--mono); font-size: .72rem; opacity: .7; }
.br-map-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.br-map-stage { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; touch-action: pan-y; }
.br-map-stage svg { width: 100%; height: auto; display: block; }
.br-map-svg .br-dots { stroke: var(--br-dot-hi); }
.br-map-svg .br-grat { stroke: var(--line); stroke-width: .4; fill: none; }
.br-leader { stroke: var(--ink-2); stroke-width: .6; opacity: .55; }
.br-truedot { fill: var(--ink); }
.br-bub { cursor: pointer; outline: none; }
.br-bub circle.b { fill: color-mix(in srgb, var(--rc, var(--accent)) 88%, var(--surface)); stroke: var(--surface); stroke-width: 1.4; transition: fill .2s, stroke .2s; }
.br-bub text { fill: #fff; font-family: var(--mono); font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.br-bub .lbl { fill: var(--ink); font-family: var(--font); font-weight: 700; paint-order: stroke; stroke: var(--surface-2); stroke-linejoin: round; dominant-baseline: auto; }
.br-bub:hover circle.b, .br-bub:focus-visible circle.b { stroke: var(--ink); }
.br-bub.on circle.b { fill: var(--ink); stroke: var(--rc, var(--accent)); }
.br-bub.on .lbl { fill: var(--accent-ink); }
.br-bub.dim { opacity: .5; }
.br-bub .focus { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; }
.br-bub:focus-visible .focus { opacity: 1; }
.br-map-legend { position: absolute; left: 10px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .72rem; color: var(--muted); pointer-events: none; }
.br-map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.br-map-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.br-map-panel { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 16px; display: flex; flex-direction: column; min-height: 0; }
.br-panel-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.br-panel-head .br-flag { font-size: 1.6rem; }
.br-panel-head h4 { margin: 0; font-size: 1.15rem; }
.br-panel-sub { font-size: .8rem; color: var(--muted); margin: 0 0 12px; }
.br-panel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.br-mini { width: 100%; text-align: left; display: grid; grid-template-columns: 4px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px 8px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: .88rem; transition: border-color .15s, transform .15s; overflow: hidden; }
.br-mini::before { content: ""; align-self: stretch; margin: -8px 0; background: var(--c, var(--accent)); }
.br-mini:hover { border-color: var(--ink); transform: translateX(2px); }
.br-mini strong { display: block; font-size: .92rem; line-height: 1.25; }
.br-mini small { display: block; color: var(--muted); font-size: .74rem; line-height: 1.3; }
.br-mini .yr { font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.br-panel-empty { color: var(--muted); font-size: .9rem; }
.br-panel-empty strong { color: var(--ink); display: inline; font-size: 1.02rem; margin-right: 8px; }
.br-rank { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 7px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.br-rank li { display: grid; grid-template-columns: 22px 1fr 22px; gap: 8px; align-items: center; font-size: .84rem; }
.br-rank .t { height: 7px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.br-rank .t i { display: block; height: 100%; background: var(--rc, var(--accent)); border-radius: 999px; }
.br-rank .n { font-family: var(--mono); font-size: .76rem; text-align: right; }

/* ---------- Directory ---------- */
.br-dir-widget { overflow: visible; }
.br-dir-controls { display: grid; gap: 14px; margin-bottom: 18px; }
.br-search { position: relative; }
.br-search .input { padding-left: 40px; }
.br-search svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.br-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.br-selects label { font-size: .76rem; }
@media (max-width: 560px) { .br-selects { grid-template-columns: 1fr 1fr; } .br-selects .field:last-child { grid-column: 1 / -1; } }
#dirCats .chip { padding: 6px 12px; font-size: .82rem; }
.br-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 238px), 1fr)); gap: 14px; }
.br-card {
  --c: var(--accent);
  width: 100%; height: 100%; text-align: left; display: flex; flex-direction: column; padding: 0; overflow: hidden; position: relative;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.br-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); }
.br-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.br-card-art {
  display: block; position: relative; padding: 18px 16px 4px; aspect-ratio: 16 / 8.2;
  background:
    radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 60%),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.br-card-art .bike-svg { height: 100%; }
.br-card-art .br-card-model { position: absolute; right: 10px; top: 8px; font-family: var(--mono); font-size: .64rem; color: var(--muted); max-width: 70%; text-align: right; line-height: 1.3; }
.br-card-body { display: grid; gap: 6px; padding: 12px 14px 14px; flex: 1; align-content: start; }
.br-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); }
.br-card-top .ctry { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.br-card-top .yr { font-family: var(--mono); }
.br-card-name { font-weight: 800; font-size: 1.16rem; letter-spacing: -0.02em; line-height: 1.2; }
.br-card-name small { display: block; font-weight: 600; font-size: .8rem; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.br-card-parent { font-size: .78rem; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.br-card-parent::before { content: ""; width: 12px; height: 8px; border-left: 1.5px solid var(--line-2); border-bottom: 1.5px solid var(--line-2); border-bottom-left-radius: 4px; transform: translateY(-3px); }
.br-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.br-card-tags .tag { font-size: .7rem; }
.br-card-rev { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); min-height: 42px; }
.br-card-rev .v { font-family: var(--mono); font-size: .78rem; line-height: 1.35; }
.br-card-rev .v b { display: block; font-size: .95rem; color: var(--ink); }
.br-card-rev .v span { color: var(--muted); font-size: .7rem; }
.br-card-rev .none { font-size: .72rem; color: var(--muted); }
.br-spark { width: 86px; height: 30px; flex: none; overflow: visible; }
.br-spark path.l { fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.br-spark path.a { fill: color-mix(in srgb, var(--c) 16%, transparent); }
.br-spark circle { fill: var(--c); }
.br-empty { padding: 40px 10px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.br-more { margin-top: 16px; display: flex; justify-content: center; }

/* ---------- Drawer ---------- */
html.br-drawer-open { overflow: hidden; }
.br-drawer {
  --c: var(--accent);
  margin: 0 0 0 auto; padding: 0; border: 0; width: min(760px, 100vw); max-width: 100vw; height: 100%; max-height: 100dvh;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.br-drawer[open] { display: flex; animation: brDrawerIn .34s cubic-bezier(.2,.8,.2,1); }
.br-drawer::backdrop { background: rgba(10, 9, 7, .55); backdrop-filter: blur(2px); }
@keyframes brDrawerIn { from { transform: translateX(48px); opacity: 0; } }
.br-drawer-inner { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.br-drawer-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); position: relative;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 13%, var(--surface)), var(--surface) 65%);
}
.br-drawer-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.br-drawer-head h2 { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.br-drawer-head h2 small { font-size: .5em; color: var(--muted); font-weight: 600; margin-left: 8px; letter-spacing: 0; }
.br-drawer-kicker { margin: 0 0 4px; font-size: .76rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.br-drawer-body { overflow-y: auto; padding: 20px 24px 48px; flex: 1; overscroll-behavior: contain; }
.br-drawer-body p, .br-drawer-body li { color: var(--ink-2); }
.br-drawer-body h3 { font-size: 1.1rem; margin: 1.8em 0 .7em; display: flex; align-items: center; gap: 8px; }
.br-drawer-body h3::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
@media (max-width: 480px) { .br-drawer-head, .br-drawer-body { padding-left: 16px; padding-right: 16px; } }
.br-facts { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 0 0 18px; }
.br-facts div { background: var(--surface); padding: 11px 13px; min-width: 0; flex: 1 1 150px; }
.br-facts div.wide { flex-basis: 100%; }
.br-facts dd.long { font-weight: 500; font-size: .88rem; color: var(--ink-2); }
.br-facts dt { font-size: .7rem; color: var(--muted); font-family: var(--mono); letter-spacing: .04em; }
.br-facts dd { margin: 2px 0 0; font-weight: 700; font-size: .92rem; line-height: 1.35; overflow-wrap: anywhere; }
.br-summary { font-size: 1rem; line-height: 1.8; }
.br-model-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.br-model-tabs .chip { padding: 6px 12px; font-size: .8rem; }
.br-model {
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  background: radial-gradient(110% 80% at 80% 0%, color-mix(in srgb, var(--c) 12%, transparent), transparent 62%), var(--surface-2);
}
.br-model-art { position: relative; padding: 26px 22px 8px; }
.br-model-fig { position: relative; margin: 0 auto; }
.br-model-fig .bike-svg { width: 100%; height: auto; }
.br-pin { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 .7rem/20px var(--mono); text-align: center; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 55%, transparent); }
.br-model-meta { padding: 12px 18px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.br-model-meta h4 { margin: 0 0 2px; font-size: 1.05rem; }
.br-model-meta h4 .mono { font-size: .75rem; color: var(--muted); font-weight: 600; margin-left: 6px; }
.br-model-meta p { margin: 4px 0 10px; font-size: .9rem; }
.br-callouts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.br-callouts li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--bg-2); font-size: .78rem; font-weight: 700; color: var(--ink); }
.br-callouts li b { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 700 .64rem var(--mono); }
.br-silnote { font-size: .72rem; color: var(--muted); margin: 8px 0 0; }
.br-rev-mini { display: grid; gap: 6px; }
.br-rev-mini .row { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; font-size: .82rem; }
.br-rev-mini .row .fy { font-family: var(--mono); color: var(--muted); }
.br-rev-mini .track { height: 12px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.br-rev-mini .fill { display: block; height: 100%; background: var(--c); border-radius: 4px; }
.br-rev-mini .fill.est { background: repeating-linear-gradient(-45deg, var(--c) 0 5px, color-mix(in srgb, var(--c) 45%, transparent) 5px 9px); }
.br-rev-mini .val { font-family: var(--mono); font-size: .8rem; text-align: right; white-space: nowrap; }
.br-rev-mini .note { grid-column: 2 / -1; font-size: .72rem; color: var(--muted); margin-top: -3px; }
.br-tl-list { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 12px; }
.br-tl-list li { position: relative; font-size: .92rem; line-height: 1.55; }
.br-tl-list li::before { content: ""; position: absolute; left: -24px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--c); }
.br-tl-list b { font-family: var(--mono); font-size: .8rem; color: var(--ink); margin-right: 6px; }
.br-bullets { margin: 0; padding-left: 1.1em; font-size: .92rem; }
.br-bullets li { margin-bottom: .35em; }
.br-src { font-size: .78rem; margin: 0; padding-left: 1.2em; }
.br-src li { margin-bottom: 4px; overflow-wrap: anywhere; }
.br-src a { color: var(--ink-2); }
.br-drawer-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Group tree ---------- */
.br-group-tabs { margin-bottom: 18px; }
.br-group-tabs .chip { padding: 6px 13px; font-size: .82rem; }
.br-tree { display: grid; grid-template-columns: minmax(180px, 230px) minmax(0, 1fr); gap: 0; align-items: stretch; }
.br-root {
  align-self: center; position: relative; padding: 18px; border-radius: var(--radius); background: var(--ink); color: var(--bg); box-shadow: var(--shadow);
}
.br-root .k { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.br-root strong { display: block; font-size: 1.25rem; line-height: 1.25; margin: 4px 0; }
.br-root p { margin: 0; font-size: .82rem; line-height: 1.5; opacity: .82; }
.br-root .stat-mini { display: flex; gap: 14px; margin-top: 10px; font-family: var(--mono); font-size: .76rem; }
.br-root .stat-mini b { display: block; font-size: 1.15rem; font-family: var(--serif); }
.br-branches { position: relative; padding-left: 40px; display: grid; gap: 8px; align-content: center; }
.br-branches > svg.br-wires { position: absolute; left: 0; top: 0; width: 40px; height: 100%; overflow: visible; pointer-events: none; }
.br-wires path { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.br-node {
  --c: var(--accent);
  width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center;
  padding: 10px 14px 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 12px; background: var(--surface);
  transition: transform .18s, border-color .18s, box-shadow .18s; opacity: 0; transform: translateX(-8px);
}
.br-tree.in .br-node { opacity: 1; transform: none; transition: opacity .4s ease var(--d, 0s), transform .4s ease var(--d, 0s), border-color .18s, box-shadow .18s; }
.br-node:hover { border-color: var(--ink); border-left-color: var(--c); box-shadow: var(--shadow-sm); }
.br-node .br-flag { font-size: 1.25rem; }
.br-node strong { font-size: .98rem; display: block; line-height: 1.3; }
.br-node small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.br-node .stake { font-family: var(--mono); font-size: .74rem; text-align: right; white-space: nowrap; color: var(--ink-2); }
.br-node .stake b { display: block; font-size: .95rem; color: var(--ink); }
.br-node.ext { border-style: dashed; border-left-style: solid; cursor: default; }
.br-node.ext:hover { border-color: var(--line); box-shadow: none; }
@media (max-width: 640px) {
  .br-tree { grid-template-columns: 1fr; }
  .br-root { align-self: stretch; }
  .br-branches { padding: 18px 0 0 22px; }
  .br-branches > svg.br-wires { width: 22px; }
}

/* ---------- Revenue chart ---------- */
.br-rev-controls { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; margin-bottom: 18px; }
.br-rev-controls .field { min-width: 120px; }
.br-rev-controls .field label { font-size: .76rem; }
.br-rev-controls select.input { padding: 7px 12px; }
.br-rev-chart { position: relative; display: grid; gap: 7px; }
.br-axis { position: relative; height: 22px; margin-left: var(--lw); margin-right: var(--vw); border-bottom: 1px solid var(--line); }
.br-axis span { position: absolute; bottom: 4px; transform: translateX(-50%); font-family: var(--mono); font-size: .68rem; color: var(--muted); white-space: nowrap; }
.br-axis span:first-child { transform: none; }
.br-grid-lines { position: absolute; top: 22px; bottom: 0; left: var(--lw); right: var(--vw); pointer-events: none; }
.br-grid-lines i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); opacity: .7; }
.br-rbar { --c: var(--accent); position: relative; display: grid; grid-template-columns: var(--lw) minmax(0, 1fr) var(--vw); align-items: center; gap: 0; min-height: 34px; width: 100%; text-align: left; padding: 0; border: 0; background: none; border-radius: 8px; }
.br-rbar:hover .br-rtrack, .br-rbar:focus-visible .br-rtrack { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.br-rlab { padding-right: 12px; display: grid; line-height: 1.2; min-width: 0; }
.br-rlab strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-rlab small { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-rtrack { height: 22px; position: relative; border-radius: 6px; transition: background .15s; }
.br-rfill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px 6px 6px 4px; background: var(--c); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.br-rfill.est { background: repeating-linear-gradient(-45deg, var(--c) 0 6px, color-mix(in srgb, var(--c) 40%, var(--surface)) 6px 10px); outline: 1px dashed color-mix(in srgb, var(--c) 70%, var(--ink)); outline-offset: -1px; }
.br-rval { padding-left: 10px; font-family: var(--mono); font-size: .8rem; display: grid; line-height: 1.2; }
.br-rval small { color: var(--muted); font-size: .66rem; }
.br-rev-empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }
@media (max-width: 640px) {
  .br-rev-controls { gap: 10px; }
  .br-rlab strong { font-size: .82rem; }
}

/* Stat tiles */
.br-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 22px; margin: 8px 0 24px; }
.br-stats .stat-label { font-size: .84rem; }
.br-stats .stat-value { font-size: clamp(2rem, 4vw, 2.9rem); }
@media (max-width: 760px) { .br-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Boom chart ---------- */
.br-boom-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.br-boom-legend button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .8rem; font-weight: 700; }
.br-boom-legend button i { width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
.br-boom-legend button[aria-pressed="false"] { opacity: .45; }
.br-boom-legend button[aria-pressed="false"] i { background: var(--line-2); }
.br-boom-chart { position: relative; }
.br-boom-chart svg { width: 100%; height: auto; overflow: visible; }
.br-bk-grid { stroke: var(--line); stroke-width: 1; }
.br-bk-base { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 4 4; }
.br-bk-ax { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.br-bk-band { fill: color-mix(in srgb, var(--accent) 8%, transparent); }
.br-bk-band2 { fill: color-mix(in srgb, var(--blue) 7%, transparent); }
.br-bk-bandlbl { font-family: var(--font); font-size: 11px; font-weight: 700; fill: var(--muted); }
.br-bk-line { fill: none; stroke: var(--c); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.br-bk-pt { fill: var(--surface); stroke: var(--c); stroke-width: 2; }
.br-bk-pt.est { stroke-dasharray: 2 2; }
.br-bk-end { font-family: var(--font); font-size: 12px; font-weight: 800; fill: var(--c); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.br-bk-hit { fill: transparent; cursor: crosshair; }
.br-bk-cursor { stroke: var(--ink); stroke-width: 1; opacity: .35; }
.br-boom-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); padding: 9px 12px; border-radius: 10px; font-size: .8rem; line-height: 1.5; box-shadow: var(--shadow); min-width: 150px; opacity: 0; transition: opacity .12s; z-index: 2; }
.br-boom-tip.show { opacity: 1; }
.br-boom-tip b { font-family: var(--mono); }
.br-boom-tip .r { display: flex; justify-content: space-between; gap: 14px; }
.br-boom-tip .r i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 6px; }

/* ---------- Components ---------- */
.br-comp { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.br-comp-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--surface-2); display: grid; gap: 6px; align-content: start; }
.br-comp-card .k { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.br-comp-card strong { font-size: 1rem; }
.br-comp-card p { margin: 0; font-size: .84rem; color: var(--ink-2); line-height: 1.6; }
.br-comp-card .who { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------- Timeline ---------- */
.br-tl-scroll { overflow-x: auto; overflow-y: hidden; margin: 0 -4px; padding: 0 4px 6px; scrollbar-width: thin; border-radius: var(--radius-sm); }
.br-tl-scroll:focus-visible { outline-offset: 0; }
.br-tl { position: relative; }
.br-tl svg { display: block; overflow: visible; }
.br-tl-era { fill: var(--bg-2); }
.br-tl-era.alt { fill: color-mix(in srgb, var(--bg-2) 45%, var(--surface)); }
.br-tl-eralbl { font-family: var(--font); font-size: 11px; font-weight: 700; fill: var(--muted); }
.br-tl-axis { stroke: var(--ink); stroke-width: 1.5; }
.br-tl-tick { stroke: var(--line-2); stroke-width: 1; }
.br-tl-yr { font-family: var(--mono); font-size: 11px; fill: var(--muted); text-anchor: middle; }
.br-tl-item { cursor: pointer; outline: none; }
.br-tl-item line { stroke: var(--line-2); stroke-width: 1; }
.br-tl-item circle { fill: var(--c); stroke: var(--surface); stroke-width: 2; transition: r .15s; }
.br-tl-item rect { fill: var(--surface); stroke: var(--line); stroke-width: 1; rx: 7px; transition: stroke .15s; }
.br-tl-item text { font-family: var(--font); font-size: 12px; font-weight: 700; fill: var(--ink); }
.br-tl-item text tspan.y { font-family: var(--mono); font-weight: 600; fill: var(--muted); font-size: 10.5px; }
.br-tl-item:hover rect, .br-tl-item:focus-visible rect { stroke: var(--c); stroke-width: 2; }
.br-tl-item:focus-visible rect { stroke: var(--accent); }
.br-tl-eras { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: .78rem; color: var(--muted); }
.br-tl-eras span { display: inline-flex; align-items: center; gap: 6px; }
.br-tl-eras i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

/* ---------- Quiz ---------- */
.br-quiz { display: grid; gap: 16px; }
.br-q-progress { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.br-q-progress i { height: 5px; border-radius: 3px; background: var(--bg-2); }
.br-q-progress i.ok { background: var(--green); }
.br-q-progress i.no { background: var(--red); }
.br-q-progress i.cur { background: var(--ink); }
.br-q-card { --c: var(--accent); position: relative; border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); background: radial-gradient(100% 120% at 100% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 55%), var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.br-q-card .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.br-q-card h4 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 6px 0 4px; letter-spacing: -0.03em; outline: none; }
.br-q-card .hint { margin: 0; color: var(--ink-2); font-size: .95rem; }
.br-q-card .br-q-art { position: absolute; right: -10px; bottom: -6px; width: min(42%, 260px); opacity: .22; pointer-events: none; }
@media (max-width: 560px) { .br-q-card .br-q-art { display: none; } }
.br-q-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 420px) { .br-q-opts { grid-template-columns: 1fr; } }
.br-q-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 1rem; text-align: left; transition: border-color .15s, transform .15s, background .15s; }
.br-q-opt .br-flag { font-size: 1.5rem; }
.br-q-opt:hover:not(:disabled) { border-color: var(--ink); transform: translateY(-2px); }
.br-q-opt:disabled { cursor: default; }
.br-q-opt.ok { border-color: var(--green); background: var(--green-soft); }
.br-q-opt.no { border-color: var(--red); background: var(--red-soft); }
.br-q-opt.fade { opacity: .45; }
.br-q-feedback { min-height: 1.6em; margin: 0; font-size: .95rem; color: var(--ink-2); }
.br-q-feedback strong.ok { color: var(--green); }
.br-q-feedback strong.no { color: var(--red); }
.br-q-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.br-q-result { text-align: center; padding: 16px 0 8px; }
.br-q-result .big { font-family: var(--serif); font-size: clamp(3rem, 8vw, 5rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.br-q-result .big small { font-size: .35em; color: var(--muted); }
.br-q-result p { color: var(--ink-2); }
.br-q-review { list-style: none; padding: 0; margin: 0 auto 18px; max-width: 520px; display: grid; gap: 4px; text-align: left; font-size: .88rem; }
.br-q-review li { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.br-q-review .m { font-weight: 800; }
.br-q-review .m.ok { color: var(--green); }
.br-q-review .m.no { color: var(--red); }

/* ---------- Sources ---------- */
.br-sources { columns: 2 320px; column-gap: 28px; font-size: .82rem; margin: 0 0 24px; }
.br-sources section { break-inside: avoid; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.br-sources h4 { margin: 0 0 6px; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.br-sources ol { margin: 0; padding-left: 1.3em; color: var(--muted); }
.br-sources li { margin-bottom: 3px; overflow-wrap: anywhere; line-height: 1.45; }
.br-sources a { color: var(--ink-2); text-decoration-color: var(--line-2); }
.br-sources a:hover { color: var(--accent-ink); }
.br-src-meta { font-size: .8rem; color: var(--muted); margin: -8px 0 16px; }

/* ---------- Bike silhouettes (shared renderer from types.js) ---------- */
.bike-svg {
  --bk: var(--accent); width: 100%; height: auto; overflow: visible;
  --bk-metal: color-mix(in srgb, var(--ink) 52%, var(--surface));
  --bk-alloy: color-mix(in srgb, var(--ink) 30%, var(--surface));
  --bk-hi: color-mix(in srgb, var(--surface) 70%, transparent);
}
.bike-svg.cat-off { --bk: var(--teal); }
.bike-svg.cat-city { --bk: var(--blue); }
.bike-svg.cat-special { --bk: var(--violet); }
.bk { fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* frame */
.bk .bk-frame, .bk .bk-rocker { fill: var(--bk); stroke: none; }
.bk .bk-rocker { stroke: var(--bk); }
.bk .bk-sheen { stroke: var(--bk-hi); fill: none; }
.bk .bk-kamm { stroke: #000; opacity: .16; fill: none; }
.bk .bk-seam { stroke: var(--ink); opacity: .35; stroke-width: .35; fill: none; }
.bk .bk-window { fill: var(--ink); opacity: .55; }
/* wheels */
.bk .bk-tire, .bk .bk-tread { stroke: var(--ink); fill: none; }
.bk .bk-wall-tan { stroke: color-mix(in srgb, #c8a273 75%, var(--ink)); }
.bk .bk-wall-white { stroke: color-mix(in srgb, #fff 85%, var(--ink)); }
.bk .bk-rim { stroke: var(--bk-metal); fill: none; }
.bk .bk-rim-deep { stroke: var(--ink-2); }
.bk .bk-discw { fill: var(--ink-2); }
.bk .bk-discring { fill: none; stroke: var(--bk-hi); stroke-width: .35; }
.bk .bk-cut { stroke: var(--surface); opacity: .55; fill: none; }
.bk .bk-spoke { stroke: var(--bk-metal); stroke-width: .2; opacity: .85; }
.bk .bk-hub { fill: var(--bk-metal); stroke: var(--ink-2); stroke-width: .3; }
.bk .bk-drum { fill: var(--ink-2); }
.bk .bk-axle { fill: var(--surface); stroke: var(--ink); stroke-width: .35; }
.bk .bk-rotor { stroke: var(--bk-alloy); fill: none; }
.bk .bk-rotor-arm { stroke: var(--bk-alloy); stroke-width: .7; }
.bk .bk-caliper { fill: var(--ink-2); }
.bk .bk-calrim { fill: var(--ink-2); }
.bk .bk-cable { stroke: var(--ink-2); stroke-width: .4; fill: none; }
/* drivetrain */
.bk .bk-ring { stroke: var(--ink-2); fill: none; }
.bk .bk-teeth { stroke: var(--ink-2); stroke-width: .5; fill: none; }
.bk .bk-spider { stroke: var(--ink-2); stroke-width: 1.3; }
.bk .bk-chain { stroke: var(--ink-2); stroke-width: .55; stroke-dasharray: .75 .3; stroke-linecap: butt; fill: none; }
.bk .bk-cass { fill: color-mix(in srgb, var(--bk-alloy) 55%, transparent); stroke: var(--ink-2); stroke-width: .35; }
.bk .bk-cline { stroke: var(--ink-2); stroke-width: .25; fill: none; opacity: .7; }
.bk .bk-cog { fill: var(--bk-alloy); stroke: var(--ink-2); stroke-width: .5; }
.bk .bk-rd { fill: var(--ink); }
.bk .bk-cage { fill: var(--ink-2); }
.bk .bk-jockey { fill: var(--surface); stroke: var(--ink); stroke-width: .45; }
.bk .bk-crank, .bk .bk-pedal { fill: var(--ink); }
.bk .bk-far { opacity: .38; }
.bk .bk-bbcap { fill: var(--bk-metal); stroke: var(--ink); stroke-width: .4; }
.bk .bk-case { fill: color-mix(in srgb, var(--ink-2) 88%, var(--surface)); }
.bk .bk-cguard { stroke: var(--bk-metal); fill: none; }
.bk .bk-motor { fill: var(--ink-2); }
/* contact points */
.bk .bk-saddle { fill: var(--ink); }
.bk .bk-rail { stroke: var(--ink-2); stroke-width: .6; fill: none; }
.bk .bk-spring { stroke: var(--ink-2); stroke-width: .5; fill: none; }
.bk .bk-seatpan { fill: var(--ink); }
.bk .bk-post, .bk .bk-stem, .bk .bk-spacer, .bk .bk-collar, .bk .bk-steerer, .bk .bk-riser { fill: var(--ink-2); }
.bk .bk-postup { fill: var(--bk-metal); }
.bk .bk-cockpit, .bk .bk-barT, .bk .bk-tape, .bk .bk-hood, .bk .bk-grip, .bk .bk-pad, .bk .bk-ext { fill: var(--ink); }
.bk .bk-lever { fill: var(--ink-2); }
.bk .bk-display { fill: var(--ink); }
/* suspension */
.bk .bk-stanchion { fill: var(--gold); }
.bk .bk-lower, .bk .bk-crown { fill: var(--ink); }
.bk .bk-shock-body { fill: var(--ink); }
.bk .bk-shock-can { fill: var(--ink-2); }
.bk .bk-shock-shaft { fill: var(--gold); }
.bk .bk-pivot { fill: var(--surface); stroke: var(--ink); stroke-width: .5; }
.bk .bk-hinge, .bk .bk-block { fill: var(--ink); }
/* accessories */
.bk .bk-fender { stroke: var(--ink-2); fill: none; }
.bk .bk-stay { stroke: var(--ink-2); stroke-width: .3; opacity: .55; fill: none; }
.bk .bk-rack { fill: var(--ink-2); }
.bk .bk-foot { fill: var(--ink-2); }
.bk .bk-bottle { fill: color-mix(in srgb, var(--muted) 70%, var(--surface)); }
.bk .bk-basket { fill: color-mix(in srgb, var(--gold) 28%, transparent); stroke: color-mix(in srgb, var(--gold) 80%, var(--ink)); stroke-width: .8; }
.bk .bk-weave { stroke: color-mix(in srgb, var(--gold) 70%, var(--ink)); stroke-width: .35; opacity: .8; }
.bk .bk-box { fill: color-mix(in srgb, var(--bk) 14%, transparent); stroke: var(--bk); stroke-width: 1; }
.bk .bk-boxrim { stroke: var(--ink-2); stroke-width: 1.4; }
.bk .bk-link { stroke: var(--ink-2); stroke-width: .7; fill: none; }
.bk .bk-lamp { fill: var(--ink); }
.bk .bk-lens { stroke: var(--gold); stroke-width: .9; }
.bk .bk-peg { fill: var(--bk-metal); stroke: var(--ink); stroke-width: .6; }
.bk .bk-pegend { fill: var(--ink-2); }
.bk .bk-plate { fill: color-mix(in srgb, var(--gold) 70%, var(--surface)); stroke: var(--ink); stroke-width: .4; }
.bk .bk-guide { stroke: var(--ink-2); stroke-width: 1.2; fill: none; }
/* small renders (cards, lineup, thumbnails): solid tread band and chain instead of sub-pixel dashes */
.br-card-art .bk-tread, .br-q-art .bk-tread,
.br-card-art .bk-chain, .br-q-art .bk-chain { stroke-dasharray: none; }
.br-card-art .bk-teeth, .br-q-art .bk-teeth { stroke-dasharray: none; stroke-width: .35; }
.bk .bk-ground { stroke: var(--line); stroke-width: .6; }

/* directory: show more */
.br-grid li.br-hide { display: none; }

/* raw stat, undisclosed revenue, context cards */
.br-raw { font-size: .72em; letter-spacing: -0.03em; }
.br-undisclosed { font-size: .9rem; color: var(--ink-2); }
.br-undisclosed .tag { margin-right: 4px; }
.br-context { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin: 0 0 2.4em; }
.br-ctx { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 16px 18px; }
.br-ctx h4 { margin: 0 0 6px; font-size: .98rem; }
.br-ctx p { margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.65; }
.br-ctx .br-ctx-src { margin-top: 8px; font-size: .72rem; color: var(--muted); overflow-wrap: anywhere; }
.br-ctx-src a { color: var(--muted); }
.br-tl svg { max-width: none; }
.br-scope { font-style: normal; color: var(--gold); font-weight: 700; }
.br-extdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px dashed var(--line-2); margin: 0 4px; }
.br-node.ext { padding-top: 6px; padding-bottom: 6px; border-left-color: var(--line-2); }
.br-node.ext strong { font-size: .9rem; }
@media (max-width: 560px) {
  .br-rev-chart { --lw: 0px !important; --vw: 0px !important; gap: 12px; }
  .br-rbar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lab val" "bar bar"; row-gap: 4px; }
  .br-rlab { grid-area: lab; }
  .br-rval { grid-area: val; text-align: right; padding-left: 8px; }
  .br-rtrack { grid-area: bar; height: 14px; }
  .br-rlab strong, .br-rlab small { white-space: normal; }
  .br-hero-lbl { display: none; }
}
