/* OYB blue blocker detail page ([oyb_bb_detail]). Same palette and type as the databases (Kadence palette variables,
   hex fallbacks). Light-only, like the rest of the OYB site. */
.bbd {
  --bbd-ink: var(--global-palette3, #1a1a2e);
  --bbd-muted: var(--global-palette5, #5a5a72);
  --bbd-faint: var(--global-palette6, #9999b3);
  --bbd-accent: var(--global-palette-btn-bg, #fa4488);
  --bbd-hover: var(--global-palette-btn-bg-hover, #5271ff);
  --bbd-accent-deep: #d42c6e;
  --bbd-wash: var(--global-palette8, #fdf2f5);
  --bbd-surface: var(--global-palette9, #ffffff);
  --bbd-line: #ebe3ea;
  --bbd-soft: #f1f0f5;
  --bbd-good: #237a43;
  --bbd-warn: #a65d0c;
  --bbd-bad: #b83232;
  --bbd-tint: #c86a00;
  --bbd-red: #c7362f;
  --bbd-night: #1d1a2b;
  --bbd-night-2: #26223a;
  --bbd-night-line: #3a3552;
  --bbd-night-text: #c9c3e0;
  --bbd-night-faint: #8e88aa;
  --bbd-pinklight: #ffb3d1;
  --bbd-head: var(--global-heading-font-family, "Brandon Grotesque", "Nunito", ui-rounded, system-ui, sans-serif);
  --bbd-body: var(--global-body-font-family, "Nunito", ui-rounded, system-ui, sans-serif);
  max-width: 1180px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 32px) 56px;
  display: flex; flex-direction: column; gap: 28px;
  color: var(--bbd-ink); font-family: var(--bbd-body); font-size: 16px; line-height: 1.5;
}
.bbd *, .bbd *::before, .bbd *::after { box-sizing: border-box; }
.bbd.bbd :where(h1, h2, h3, p) { margin: 0; }
.bbd [hidden] { display: none !important; }
.bbd a { color: var(--bbd-accent-deep); }
.bbd :focus-visible { outline: 2px solid var(--bbd-accent); outline-offset: 2px; }
.bbd h2 { font-family: var(--bbd-head); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.15; }
.bbd h3 { font-family: var(--bbd-head); font-weight: 800; font-size: 1.2rem; }
.bbd-crumb a { font-weight: 700; font-size: 0.9rem; text-decoration: none; }

/* lens swatch */
.bbd-lens { display: inline-block; flex: none; width: 36px; aspect-ratio: 1.25 / 1; border-radius: 48% 48% 44% 44% / 58% 58% 42% 42%; background: radial-gradient(ellipse at 32% 28%, rgba(255,255,255,.75) 0 12%, rgba(255,255,255,0) 34%), var(--lens); box-shadow: inset 0 0 0 1.5px rgba(30,20,40,.18); }
.bbd-lens.is-hero { width: 180px; box-shadow: inset 0 0 0 2px rgba(30,20,40,.18), 0 14px 26px -14px rgba(60,30,0,.55); }
.bbd-lens.is-sm { width: 40px; }
.bbd-lens.is-xs { width: 32px; }

/* hero */
.bbd-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--bbd-surface); border: 1px solid var(--bbd-line); border-radius: 20px; overflow: hidden; }
.bbd-id { background: linear-gradient(160deg, #fbf9fc, #f3eff7); padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; justify-content: center; }
.bbd-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.bbd-pill { font-size: 0.72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bbd-muted); background: var(--bbd-surface); border-radius: 999px; padding: 4px 10px; }
.bbd-pill.is-use { color: var(--bbd-accent-deep); }
.bbd-brand { font-weight: 800; color: var(--bbd-muted); }
.bbd .bbd-title { font-family: var(--bbd-head); font-weight: 900; font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.02; letter-spacing: -.01em; margin: 0; }
.bbd-coupon { margin: 0; font-size: 0.95rem; color: var(--bbd-muted); }
.bbd-coupon strong { color: var(--bbd-accent-deep); }
.bbd-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.bbd-btn { display: inline-flex; padding: 12px 22px; border-radius: 10px; background: var(--bbd-accent); color: var(--global-palette-btn, #fff) !important; font-weight: 800; text-decoration: none; transition: all .3s ease-in-out; }
.bbd-btn:hover, .bbd-btn:focus-visible { background: var(--bbd-hover); box-shadow: 0 0 25px -5px var(--bbd-hover); }
.bbd-verdict { padding: 32px 36px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.bbd-kicker { font-size: 0.8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bbd-faint); }
.bbd-verdict-main { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.35; font-weight: 700; }
.bbd-verdict-main b { color: var(--bbd-accent-deep); }
.bbd-verdict-sub { color: var(--bbd-muted); font-size: 1.05rem; }
.bbd-meta { font-size: 0.88rem; color: var(--bbd-faint); }

/* rating cards */
.bbd-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bbd-card { background: var(--bbd-surface); border: 1px solid var(--bbd-line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.bbd-card-k { font-size: 0.78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--bbd-muted); }
.bbd-card-v { font-family: var(--bbd-head); font-size: 1.8rem; font-weight: 900; line-height: 1.05; }
.bbd-card-v.is-good { color: var(--bbd-good); } .bbd-card-v.is-warn { color: var(--bbd-warn); } .bbd-card-v.is-bad { color: var(--bbd-bad); } .bbd-card-v.is-tint { color: var(--bbd-tint); }
.bbd-card-d { font-size: 0.95rem; }
.bbd-card-f { font-size: 0.82rem; font-weight: 700; color: var(--bbd-faint); }
.bbd-steps { display: flex; gap: 3px; }
.bbd-steps i { flex: 1; height: 8px; border-radius: 4px; background: #e5e1ea; }
.bbd-steps i.is-good { background: var(--bbd-good); } .bbd-steps i.is-warn { background: var(--bbd-warn); } .bbd-steps i.is-bad { background: var(--bbd-bad); }
.bbd-rainbow { position: relative; display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #6a00ff, #00a9ff 25%, #00ff92 35%, #e1ff00 47%, #ff9b00 57%, #ff0000 70%, #6e0000); }
.bbd-rainbow i { position: absolute; top: -4px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: var(--bbd-ink); box-shadow: 0 0 0 1.5px var(--bbd-surface); }
.bbd-meter { display: block; height: 8px; border-radius: 4px; background: var(--bbd-soft); overflow: hidden; }
.bbd-meter i { display: block; height: 100%; border-radius: 4px; background: var(--bbd-red); }

/* under your lights */
.bbd-lights-svg [hidden] { display: none !important; }
.bbd-lights { background: var(--bbd-night); color: #fff; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.bbd-lights-head { display: grid; grid-template-columns: minmax(200px, auto) minmax(0, 1fr); gap: 12px 32px; align-items: end; }
.bbd-lights-head p { color: var(--bbd-night-text); font-size: 0.9rem; margin: 4px 0 0; }
.bbd-lights-head .bbd-big { justify-content: flex-end; }
.bbd-lights-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; }
/* Layout must not move when the source or the body-clock zone changes: legend items keep their slot (hidden = invisible, not removed), the label always reserves two lines and the number a fixed width. */
.bbd-legend [hidden] { display: inline-flex !important; visibility: hidden; }
.bbd-legend-in:empty::before { visibility: hidden; }
.bbd-legend-in:empty::after { content: "\00a0"; }
.bbd-lights h2 { color: #fff; }
.bbd-lights-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.bbd .bbd-src { font: inherit; text-align: left; cursor: pointer; border-radius: 14px; padding: 12px 16px; border: 2px solid var(--bbd-night-line); background: var(--bbd-night-2); color: #fff; display: flex; flex-direction: column; gap: 2px; box-shadow: none; text-transform: none; letter-spacing: normal; min-height: 44px; }
.bbd .bbd-src b { font-size: 1.05rem; font-weight: 900; }
.bbd .bbd-src span { font-size: 0.82rem; color: var(--bbd-night-text); }
.bbd .bbd-src:hover { border-color: #6a5f8c; background: var(--bbd-night-2); color: #fff; }
.bbd .bbd-src[aria-pressed="true"] { border-color: #ff7fb2; background: #3a2848; }
.bbd .bbd-meltoggle { font: inherit; font-weight: 800; font-size: 0.92rem; text-align: left; cursor: pointer; border-radius: 14px; padding: 10px 16px; border: 2px dashed #5a5470; background: transparent; color: #9cc3ff; box-shadow: none; text-transform: none; letter-spacing: normal; min-height: 44px; }
.bbd .bbd-meltoggle:hover { background: transparent; color: #9cc3ff; border-color: #6ea8ff; }
.bbd .bbd-meltoggle[aria-pressed="true"] { border-color: #6ea8ff; }
.bbd-big { display: flex; align-items: center; gap: 16px; }
.bbd-big-n { font-family: var(--bbd-head); font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 900; line-height: .9; color: var(--bbd-pinklight); font-variant-numeric: tabular-nums; min-width: 3.3ch; text-align: right; flex: none; }
.bbd-big-l { font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 700; width: 25em; max-width: 100%; line-height: 1.3; min-height: 2.6em; display: flex; align-items: center; }
.bbd-lights-svg { width: 100%; height: auto; display: block; background: var(--bbd-night-2); border-radius: 14px; }
.bbd-lights-svg .bbd-grid { stroke: var(--bbd-night-line); stroke-width: 1; }
.bbd-lights-svg .bbd-tick { fill: var(--bbd-night-faint); font: 700 12px var(--bbd-body); text-anchor: middle; }
.bbd-lights-svg .bbd-zone { fill: var(--bbd-night-faint); font: 800 10px var(--bbd-body); letter-spacing: .08em; text-transform: uppercase; }
.bbd-lights-svg .bbd-in { fill: none; stroke: var(--bbd-night-text); stroke-width: 2; stroke-dasharray: 6 5; }
.bbd-lights-svg .bbd-area { opacity: .95; }
.bbd-lights-svg .bbd-out { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.bbd-lights-svg .bbd-mel { fill: rgba(77, 141, 255, .24); stroke: #6ea8ff; stroke-width: 2; stroke-dasharray: 6 5; }
.bbd-legend { display: flex; flex-wrap: nowrap; gap: 8px 20px; font-size: 0.88rem; color: var(--bbd-night-text); }
.bbd-legend span { display: inline-flex; align-items: center; gap: 8px; min-height: 1.4em; }
.bbd-legend-in::before { content: ""; width: 22px; border-top: 2px dashed var(--bbd-night-text); }
.bbd-legend-out::before { content: ""; width: 22px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, #ffbe00, #ff0000); }
.bbd-legend-mel::before { content: ""; width: 22px; height: 10px; border-radius: 3px; background: rgba(77, 141, 255, .3); border: 1.5px dashed #6ea8ff; }

/* see through it */
.bbd-see, .bbd-panel { background: var(--bbd-surface); border: 1px solid var(--bbd-line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bbd-see-head p, .bbd-panel > p { color: var(--bbd-muted); }
.bbd-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.bbd-slider { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%; background: var(--bbd-soft); user-select: none; }
.bbd-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.bbd-slider .bbd-slider-lens { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.bbd-slider-line { position: absolute; top: 0; bottom: 0; left: var(--split); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.35); pointer-events: none; }
.bbd-slider-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; border: 3px solid var(--bbd-accent); box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.bbd-tag { position: absolute; top: 14px; font-size: 0.8rem; font-weight: 800; background: rgba(26,26,46,.75); color: #fff; border-radius: 999px; padding: 5px 12px; pointer-events: none; }
.bbd-tag.is-left { left: 14px; } .bbd-tag.is-right { right: 14px; }
.bbd-slider-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.bbd-strip { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px 16px; align-items: start; }
.bbd-strip-keys { display: grid; grid-template-rows: 52px 52px; gap: 8px; align-items: center; }
.bbd-pairs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px 8px; }
.bbd-pair { margin: 0; display: grid; grid-template-rows: 52px 52px auto; gap: 8px; min-width: 0; }
.bbd-pair span { border-radius: 10px; background: var(--c); }
.bbd-pair figcaption { font-size: 0.8rem; font-weight: 700; color: var(--bbd-muted); text-align: center; line-height: 1.2; }
.bbd-strip-k { font-weight: 800; color: var(--bbd-muted); font-size: 0.92rem; }
.bbd-note { font-size: 0.86rem; color: var(--bbd-faint); }

/* ranking */
.bbd-rank { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 20px; align-items: start; }
.bbd-rank-svg { width: 100%; height: auto; display: block; }
.bbd-rank-svg .bbd-plot { fill: #faf8fc; }
.bbd-rank-svg .bbd-grid { stroke: #ece8f2; stroke-width: 1; }
.bbd-rank-svg .bbd-tick { fill: #9a96ad; font: 700 12px var(--bbd-body); text-anchor: middle; }
.bbd-rank-svg .bbd-axis-label { fill: var(--bbd-muted); font: 800 13px var(--bbd-body); text-anchor: middle; }
.bbd-rank-svg .bbd-front { fill: none; stroke: var(--bbd-good); stroke-width: 2; stroke-dasharray: 5 4; }
.bbd-rank-svg .bbd-dot { stroke: var(--bbd-ink); stroke-width: 1; cursor: pointer; }
.bbd-rank-svg .bbd-dot.is-me { stroke-width: 2.5; }
.bbd-rank-svg .bbd-dot.is-sel { stroke: var(--bbd-accent); stroke-width: 4; }
.bbd-rank-svg .bbd-dot:focus-visible { outline: none; stroke: var(--bbd-hover); stroke-width: 4; }
.bbd-rank-svg .bbd-me-label { fill: var(--bbd-ink); font: 900 14px var(--bbd-body); }
.bbd-rank-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bbd-sel { background: var(--bbd-night); color: #fff; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.bbd-sel-k { font-size: 0.75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #a9a3c2; }
.bbd-sel-name { display: flex; gap: 12px; align-items: center; font-size: 1.2rem; line-height: 1.2; }
.bbd-sel-v { color: var(--bbd-night-text); font-size: 0.95rem; }
.bbd .bbd-sel-link { color: var(--bbd-pinklight); font-weight: 800; }
.bbd-better a, .bbd-sim { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #f0ecf4; color: var(--bbd-ink) !important; text-decoration: none; }
.bbd-better a span { display: flex; flex-direction: column; }
.bbd-better small, .bbd-sim small { color: var(--bbd-muted); font-size: 0.85rem; }
.bbd-better a:hover b, .bbd-sim:hover b { color: var(--bbd-accent-deep); }

/* similar + brand offer */
.bbd-more { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.bbd-sim { display: grid; grid-template-columns: 36px 170px minmax(0, 1fr) auto; gap: 12px; }
.bbd-sim-k { font-weight: 800; font-size: 0.9rem; }
.bbd-sim-k.is-good { color: var(--bbd-good); } .bbd-sim-k.is-warn { color: var(--bbd-warn); }
.bbd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bbd-chips span { padding: 6px 12px; border-radius: 999px; background: var(--bbd-soft); font-weight: 700; font-size: 0.88rem; }

.bbd-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--bbd-line); padding-top: 18px; font-size: 0.88rem; color: var(--bbd-muted); }
.bbd-foot > a { font-weight: 800; text-decoration: none; }

@media (max-width: 960px) {
  .bbd-hero, .bbd-rank, .bbd-more { grid-template-columns: minmax(0, 1fr); }
  .bbd-lights-head { grid-template-columns: minmax(0, 1fr); }
  .bbd-lights-head .bbd-big { justify-content: flex-start; }
  .bbd-big-n { text-align: left; }
  .bbd-legend { flex-direction: column; align-items: flex-start; gap: 6px; }
  .bbd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bbd .bbd-src span { display: none; }
}
@media (max-width: 560px) {
  .bbd-lights-svg .bbd-tick { font-size: 24px; }
  .bbd-lights-svg .bbd-zone { font-size: 18px; }
  .bbd-lights-svg .bbd-in, .bbd-lights-svg .bbd-mel { stroke-width: 3.5; stroke-dasharray: 10 8; }
  .bbd-lights-svg .bbd-out { stroke-width: 3; }
  .bbd-lights-pick { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .bbd-lights-pick .bbd-src { grid-column: span 2; }
  .bbd-lights-pick .bbd-src[data-src="lens"], .bbd-lights-pick .bbd-src[data-src="warm"] { grid-column: span 3; }
  .bbd .bbd-meltoggle { width: 100%; text-align: center; }
  .bbd-lights-foot { grid-template-columns: minmax(0, 1fr); }
  .bbd-big { flex-direction: column; align-items: flex-start; gap: 6px; }
  .bbd-big-l { min-height: 3.9em; align-items: flex-start; }
  .bbd .bbd-src { padding: 10px 12px; border-radius: 12px; }
  .bbd .bbd-src b { font-size: 0.92rem; }
  .bbd .bbd-src span { display: none; }
  .bbd-cards { gap: 10px; }
  .bbd-card { padding: 14px; gap: 7px; }
  .bbd-card-k { font-size: 0.66rem; letter-spacing: .05em; }
  .bbd-card-v { font-size: 1.3rem; }
  .bbd-card-d { font-size: 0.82rem; }
  .bbd-card-f { font-size: 0.72rem; }
  .bbd-id, .bbd-verdict, .bbd-lights, .bbd-see, .bbd-panel { padding: 20px; }
  .bbd-strip { grid-template-columns: minmax(0, 1fr); }
  /* Phones: the keys become a one-line legend over the grid. */
  .bbd-strip-keys { display: flex; gap: 14px; grid-template-rows: none; font-size: 0.85rem; }
  .bbd-strip-keys .bbd-strip-k:first-child::before { content: "Top: "; font-weight: 600; }
  .bbd-strip-keys .bbd-strip-k:last-child::before { content: "Bottom: "; font-weight: 600; }
  .bbd-pairs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bbd-pair { grid-template-rows: 44px 44px auto; gap: 6px; }
  /* phone: swatch on the left, label / name / numbers stacked beside it */
  .bbd-sim { grid-template-columns: 32px minmax(0, 1fr); row-gap: 2px; }
  .bbd-sim > :first-child { grid-column: 1; grid-row: 1 / span 3; align-self: center; }
  .bbd-sim-k, .bbd-sim b, .bbd-sim small { grid-column: 2; }
  .bbd-sim-k { font-size: 0.8rem; }
}
