/* Product card (oyb/product). Layout from the approved concept board (oyb-site-plan/concepts/Components.dc.html); card
 * frame and buttons copied from the site's live product boxes (the Chroma Skylight review): a 2px light-blue border that
 * turns pink with a soft pink shadow on hover, and pink 8px-corner buttons with an up-right arrow that turn blue with a
 * blue glow on hover, all over 0.3s.
 * Photos always run to the card's edges (no inset tile), framed by the stage (stage.php): a cutout centered on a soft
 * glow (dark on the data card); until a product has one, its database photo on #eff1ff, the color it was shot on.
 * Layout switches on the card's own width (container queries on .oyb-pc; .oyb-pc__in lays out). None of the motion runs
 * for reduced-motion users. */
.oyb-pc {
	--oyb-pc-pad: 18px;
	container-type: inline-size;
	position: relative;
	margin: 1.6em 0;
	background: var(--oyb-color-surface);
	border: 2px solid var(--oyb-color-blue-tint);
	border-radius: 16px;
	overflow: hidden;
	color: var(--oyb-color-ink);
	font-family: var(--oyb-font-body);
	font-size: 15px;
	line-height: 1.5;
	min-width: 0;
	transition: border-color .3s ease, box-shadow .3s ease;
}
.oyb-pc * { box-sizing: border-box; }
/* The theme spaces paragraphs and lists in post content; inside a card the gaps come from the layout instead. */
.oyb-pc.oyb-pc :is(p, ul, dl, dd, dt, li) { margin: 0; }
.oyb-pc.oyb-pc ul { padding: 0; list-style: none; }
@media (hover: hover) { .oyb-pc:hover { border-color: var(--oyb-color-pink); box-shadow: 0 10px 20px -6px rgba(237, 54, 126, .22); } } /* tight enough for the picks row's 16 px reach (picks.css) */
.oyb-pc__in { display: grid; min-width: 0; }

/* Photo panel: edge to edge; the stage (stage.css) fills it and frames the product. */
.oyb-pc__media { position: relative; min-width: 0; overflow: hidden; }
.oyb-pc .oyb-stage.oyb-stage img.oyb-stage__img { transition: transform 450ms var(--oyb-ease-out); }
@media (hover: hover) { .oyb-pc:hover .oyb-stage.oyb-stage img.oyb-stage__img { transform: translateZ(0) scale(1.04); } }

.oyb-pc__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.oyb-pc__eyebrow { font: 700 11px/1.3 var(--oyb-font-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--oyb-color-pink-deep); }
.oyb-pc__name { font: 700 22px/1.15 var(--oyb-font-display); letter-spacing: -.01em; color: var(--oyb-color-ink); text-wrap: balance; overflow-wrap: anywhere; }
.oyb-pc .oyb-pc__name a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 280ms var(--oyb-ease-out); }
.oyb-pc .oyb-pc__name a:hover, .oyb-pc .oyb-pc__name a:focus-visible { background-size: 100% 2px; }
.oyb-pc__verdict { font-size: 14.5px; line-height: 1.55; color: var(--oyb-color-muted); }
.oyb-pc__flag { align-self: flex-start; padding: 2px 9px; border-radius: 6px; font: 700 10px/1.6 var(--oyb-font-mono); letter-spacing: 1px; text-transform: uppercase; background: var(--oyb-color-line-soft); color: var(--oyb-color-muted); }
.oyb-pc.is-discontinued .oyb-stage__img { filter: grayscale(.7); opacity: .75; }

/* Pros (green) and cons (grey). The marks are CSS, so copying a line copies only its words. */
.oyb-pc__pcs { display: grid; gap: 4px; font-size: 13.5px; line-height: 1.45; }
.oyb-pc__pc { display: flex; flex-direction: column; gap: 4px; }
.oyb-pc__pc li { position: relative; padding-left: 18px; }
.oyb-pc__pc li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.oyb-pc__pc li.is-pro { color: #2f8a4c; }
.oyb-pc__pc li.is-pro::before { content: "\2713"; }
.oyb-pc__pc li.is-con { color: var(--oyb-color-muted); }
.oyb-pc__pc li.is-con::before { content: "\2715"; }
.oyb-pc .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons, as on the live product boxes. The theme styles every link; these hold their own look in every state. */
.oyb-pc__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.oyb-pc__act { display: flex; flex-direction: column; gap: 8px; } /* a pick's buttons and coupon, one group */
.oyb-pc a.oyb-pc__btn,
.oyb-pc a.oyb-pc__btn:hover,
.oyb-pc a.oyb-pc__btn:focus,
.oyb-pc a.oyb-pc__btn:visited {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: .45em 1.1em; border-radius: 8px;
	border: 0; background: var(--oyb-button); color: #fff; font: 800 17px/1.3 var(--oyb-font-body); text-align: center;
	text-decoration: none; box-shadow: none; outline: none; transition: background-color .3s ease-in-out, box-shadow .3s ease-in-out, color .3s ease-in-out;
}
.oyb-pc a.oyb-pc__btn svg { flex: none; width: 1em; height: 1em; }
/* Every buy button is pink. "Read my review" is a quiet text link beside them: no box, no color swap on hover, just the
 * text turning pink and the arrow nudging right. */
.oyb-pc.oyb-pc a.oyb-pc__btn.is-review,
.oyb-pc.oyb-pc a.oyb-pc__btn.is-review:hover,
.oyb-pc.oyb-pc a.oyb-pc__btn.is-review:focus,
.oyb-pc.oyb-pc a.oyb-pc__btn.is-review:visited {
	flex: none; padding: .45em .2em; background: transparent; box-shadow: none; color: var(--oyb-color-ink); font-weight: 800;
	transition: color .2s ease;
}
.oyb-pc a.oyb-pc__btn.is-review svg { transition: transform .2s ease; }
.oyb-pc.oyb-pc a.oyb-pc__btn.is-review { white-space: nowrap; min-height: 36px; }
/* Compact and pick: the review link sits centered under the buy button. */
.oyb-pc.is-compact .oyb-pc__btns, .oyb-pc.is-pick .oyb-pc__btns, .oyb-pc.is-choose .oyb-pc__btns { flex-direction: column; gap: 4px; }
.oyb-pc.is-compact a.oyb-pc__btn.is-review, .oyb-pc.is-pick a.oyb-pc__btn.is-review, .oyb-pc.is-choose a.oyb-pc__btn.is-review { align-self: center; }
/* The verdict card's buttons fill the card like a pick's (Derek, 2026-10-16): equal widths, side by side when they fit,
 * stacked full width on a phone; "Read my review" centered on its own line above them. */
.oyb-pc.is-review .oyb-pc__btns a.oyb-pc__btn:not(.is-review) { flex: 1 1 190px; justify-content: center; }
/* Held in every state: the generic hover rule above resets flex, which made the link jump beside the buttons on hover. */
.oyb-pc.oyb-pc.is-review a.oyb-pc__btn.is-review,
.oyb-pc.oyb-pc.is-review a.oyb-pc__btn.is-review:hover,
.oyb-pc.oyb-pc.is-review a.oyb-pc__btn.is-review:focus,
.oyb-pc.oyb-pc.is-review a.oyb-pc__btn.is-review:visited { flex: 0 0 100%; justify-content: center; }
@media (hover: hover) {
	.oyb-pc.oyb-pc a.oyb-pc__btn.is-review:hover { color: var(--oyb-color-pink-deep); }
	.oyb-pc.oyb-pc a.oyb-pc__btn.is-review:hover svg { transform: translateX(3px); }
}
@media (hover: hover) {
	.oyb-pc.oyb-pc a.oyb-pc__btn:not(.is-review):hover { background: var(--oyb-button-hover); color: #fff; box-shadow: 0 0 25px -5px var(--oyb-button-hover); }
}
.oyb-pc a.oyb-pc__btn:focus-visible { outline: 2px solid var(--oyb-button-hover); outline-offset: 2px; }

/* Coupon: one quiet line under the button. */
.oyb-pc__coupon { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; line-height: 20px; color: var(--oyb-color-muted); }
.oyb-pc__coupon > * { line-height: 20px; }
.oyb-pc.is-compact .oyb-pc__coupon { justify-content: center; } /* under its centered button */
/* On the photo (pick, review): a small tag centered at its foot. */
.oyb-pc__media { position: relative; }
.oyb-pc__coupon.is-tag { position: absolute; z-index: 2; left: 50%; bottom: 10px; transform: translateX(-50%); max-width: calc(100% - 20px); width: max-content; justify-content: center;
	margin: 0; padding: 4px 12px; border-radius: var(--oyb-radius-pill); background: var(--oyb-color-surface); box-shadow: 0 2px 10px rgba(26, 26, 46, .14); }
.oyb-pc__code { font: 700 13px/20px var(--oyb-font-mono); letter-spacing: .5px; color: var(--oyb-color-ink); user-select: all; }
.oyb-pc__off::before { content: "\00b7"; margin-right: 8px; }
.oyb-pc__coupon.is-link .oyb-pc__off::before { content: none; } /* no code before it to separate from */
.oyb-pc .oyb-pc__copy,
.oyb-pc .oyb-pc__copy:hover,
.oyb-pc .oyb-pc__copy:focus {
	padding: 0; margin: 0; border: 0; background: none; box-shadow: none; outline: none; cursor: pointer;
	color: var(--oyb-color-pink-deep); font: 800 13px/20px var(--oyb-font-body); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.oyb-pc .oyb-pc__copy:focus-visible { outline: 2px solid var(--oyb-color-blue); outline-offset: 2px; border-radius: 3px; }
.oyb-pc .oyb-pc__copy.is-done { color: #2f8a4c; text-decoration: none; }
.oyb-pc__copy span { display: inline-block; transition: opacity 150ms ease; }

/* ---- Part: one thin row; the photo fills the left edge ---- */
.oyb-pc.is-part .oyb-pc__in { grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "m b" "m s"; }
.oyb-pc.is-part .oyb-pc__media { grid-area: m; min-height: 76px; }
.oyb-pc.is-part .oyb-pc__body { grid-area: b; gap: 3px; padding: 12px 14px 8px; justify-content: center; }
.oyb-pc.is-part .oyb-pc__side { grid-area: s; display: flex; align-items: center; gap: 12px; padding: 0 14px 12px; }
.oyb-pc.is-part .oyb-pc__name { font: 800 16px/1.3 var(--oyb-font-body); letter-spacing: 0; }
.oyb-pc__spec { font: 500 12.5px/1.35 var(--oyb-font-mono); color: var(--oyb-color-muted); }
.oyb-pc.is-part .oyb-pc__verdict { margin-top: 3px; font-size: 14px; line-height: 1.5; } /* a part's line or two, under its spec */
.oyb-pc__by { margin: 2px 0 0; font-size: 14px; line-height: 1.35; color: var(--oyb-color-muted); }
.oyb-pc__qty { font-size: 14px; color: var(--oyb-color-muted); white-space: nowrap; }
.oyb-pc.is-part .oyb-pc__btns { flex: 1; }
.oyb-pc.is-part a.oyb-pc__btn, .oyb-pc.is-part a.oyb-pc__btn:hover, .oyb-pc.is-part a.oyb-pc__btn:focus, .oyb-pc.is-part a.oyb-pc__btn:visited { flex: 1; min-height: 40px; font-size: 15px; }
@container (min-width: 560px) {
	.oyb-pc.is-part .oyb-pc__in { grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "m b s"; }
	.oyb-pc.is-part .oyb-pc__media { min-height: 84px; }
	.oyb-pc.is-part .oyb-pc__body { padding: 14px 18px; }
	.oyb-pc.is-part .oyb-pc__side { padding: 14px 18px 14px 0; gap: 18px; }
	.oyb-pc.is-part .oyb-pc__btns { flex: none; }
}

/* ---- Compact: photo, name and verdict, one button ---- */
.oyb-pc.is-compact .oyb-pc__media { height: 170px; }
.oyb-pc.is-compact .oyb-pc__body { padding: 16px var(--oyb-pc-pad) 0; }
.oyb-pc.is-compact .oyb-pc__name { font-size: 21px; }
.oyb-pc.is-compact .oyb-pc__side { display: flex; flex-direction: column; gap: 10px; padding: 14px var(--oyb-pc-pad) var(--oyb-pc-pad); }
.oyb-pc.is-compact .oyb-pc__side .oyb-pc__btns a { flex: 1; }
@container (min-width: 560px) {
	.oyb-pc.is-compact .oyb-pc__in { grid-template-columns: 170px minmax(0, 1fr) auto; align-items: stretch; }
	.oyb-pc.is-compact .oyb-pc__media { height: auto; min-height: 140px; }
	.oyb-pc.is-compact .oyb-pc__body { padding: 18px 8px 18px 22px; justify-content: center; }
	.oyb-pc.is-compact .oyb-pc__side { padding: 18px 20px; justify-content: center; }
}

/* Link card (core.php: a group in the Link card style): the compact card for a podcast, an app or a brand with no one
 * product. Its title is a heading (H3 or H4, by its section), so the theme's heading look is cleared; its logo sits on the photo panel. */
.oyb-pc.is-link .oyb-pc__name.oyb-pc__name { margin: 0; font: 700 21px/1.15 var(--oyb-font-display); letter-spacing: -.01em; color: var(--oyb-color-ink); }
.oyb-pc.is-link .oyb-pc__verdict a { color: var(--oyb-color-ink); }

/* ---- Pick: a vertical card, photo on top (best-of lists set them side by side) ---- */
.oyb-pc.is-pick { max-width: 400px; }
.oyb-pc.is-pick .oyb-pc__media { height: 220px; }
.oyb-pc.is-pick .oyb-pc__body { padding: 16px var(--oyb-pc-pad) var(--oyb-pc-pad); gap: 8px; }
.oyb-pc.is-pick .oyb-pc__btns a { flex: 1; }

/* ---- Review: photo panel left, the verdict right ---- */
.oyb-pc.is-review .oyb-pc__media { height: 240px; }
.oyb-pc.is-review .oyb-pc__body { padding: 20px 20px 22px; gap: 12px; }
.oyb-pc.is-review .oyb-pc__verdict { font-size: 16px; line-height: 1.55; font-weight: 400; color: var(--oyb-color-ink); } /* regular weight: the product's name leads (Derek, 2026-10-16) */
.oyb-pc.is-review .oyb-pc__body > .oyb-pc__btns { margin-top: auto; } /* the buttons anchor the bottom when the photo makes the card taller */
.oyb-pc.is-review .oyb-pc__pcs { font-size: 14px; gap: 6px; }
@container (min-width: 620px) {
	.oyb-pc.is-review .oyb-pc__in { grid-template-columns: 300px minmax(0, 1fr); }
	.oyb-pc.is-review .oyb-pc__media { height: auto; min-height: 260px; }
	.oyb-pc.is-review .oyb-pc__body { padding: 22px 24px; }
	.oyb-pc.is-review .oyb-pc__charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.oyb-pc.is-review .oyb-pc__tiles { grid-template-columns: repeat(var(--oyb-n, 4), minmax(0, 1fr)); }
	.oyb-pc.is-review .oyb-pc__tile:nth-child(odd) { padding-left: 16px; border-left: 1px solid var(--oyb-color-line); }
	.oyb-pc.is-review .oyb-pc__tile:first-child { padding-left: 0; border-left: 0; }
	.oyb-pc.is-review .oyb-pc__pcs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; align-items: start; }
}

/* ---- Data: one dark card, lab numbers lead ---- */
.oyb-pc__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; margin: 0; }
/* A plain grid of numbers, label under value, thin rules between (no boxes). Two to a row in a narrow card; one row in
 * a wide one. A rule never starts a row. */
.oyb-pc__tile { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 16px; border-left: 1px solid var(--oyb-color-line); }
.oyb-pc__tile:nth-child(odd) { padding-left: 0; border-left: 0; }
.oyb-pc__tile dd { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; margin: 0; font: 900 20px/1.15 var(--oyb-font-body); color: var(--oyb-color-ink); font-variant-numeric: tabular-nums; }
.oyb-pc__tile dd > span { white-space: nowrap; } /* a number never breaks; its unit may drop under it */
.oyb-pc__tile dd small { font-size: 12px; font-weight: 800; color: var(--oyb-color-muted); }
.oyb-pc__tile dt { font-size: 12px; line-height: 1.35; color: var(--oyb-color-muted); }
.oyb-pc__tile.is-mel dd { color: var(--oyb-color-melanopic); }
.oyb-pc__tile.is-good dd { color: var(--oyb-tone-good); } /* flicker: no risk green, low amber, high red (oyb_flicker_tone) */
.oyb-pc__tile.is-warn dd { color: var(--oyb-tone-warn); }
.oyb-pc__tile.is-bad dd { color: var(--oyb-tone-bad); }
/* Lab results: a drawer of the product's numbers and its own charts (replaces the old boxes' "SPD / Flicker" tabs). */
.oyb-pc__labnote { margin: -4px 0 0; font-size: 12px; color: var(--oyb-color-muted); }
.oyb-pc__more { border-top: 1px solid var(--oyb-color-line-soft); padding-top: 8px; }
.oyb-pc__more summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-weight: 800; font-size: 14px; color: var(--oyb-color-blue); border-radius: 6px; }
.oyb-pc__more summary::-webkit-details-marker { display: none; }
.oyb-pc__more summary::marker { content: ""; }
.oyb-pc__more summary:focus { outline: none; }
.oyb-pc__more summary:focus-visible { outline: 2px solid var(--oyb-color-blue); outline-offset: 3px; }
.oyb-pc__more summary i { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 280ms ease; }
.oyb-pc__more[open] summary i, .oyb-pc__more.is-opening summary i { transform: translateY(2px) rotate(-135deg); }
.oyb-pc__more.is-closing summary i { transform: translateY(-2px) rotate(45deg); }
.oyb-pc__morein { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; overflow: hidden; }
.oyb-pc__charts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.oyb-pc__chart { min-width: 0; }
.oyb-pc__wide { grid-column: 1 / -1; min-width: 0; padding: 20px; border-top: 1px solid var(--oyb-color-line-soft); } /* even on all sides; the divider spans the card, under the photo too */
.oyb-pc__wide .oyb-pc__more { border-top: 0; padding-top: 0; }
.oyb-pc__chart:only-child .oyb-ch__plot { aspect-ratio: 3 / 1; } /* one chart across the card: keep it low */
@media (max-width: 480px) { .oyb-pc__tile dd { font-size: 17px; } }
}
.oyb-pc__chart-title { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--oyb-color-muted); }

@container (min-width: 620px) {
	.oyb-pc__charts { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	.oyb-pc, .oyb-pc * { transition: none !important; }
	.oyb-pc:hover .oyb-stage.oyb-stage img.oyb-stage__img { transform: translateZ(0); }
}

/* Buy which ("Buy the X if", picks.php): a small photo beside the heading, who it suits, the buttons at the foot. The
 * labeled card, the one I'd point most people to, is outlined in pink. */
.oyb-pc.is-choose { margin: 0; height: 100%; }
.oyb-pc.is-choose .oyb-pc__in { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 22px; }
.oyb-pc.is-choose .oyb-pc__head { display: flex; align-items: center; gap: 14px; }
.oyb-pc.is-choose .oyb-pc__media { flex: none; width: 72px; height: 72px; border-radius: 12px; }
.oyb-pc.is-choose .oyb-pc__head .oyb-pc__eyebrow { margin-bottom: 4px; }
.oyb-pc__if { margin: 0; font: 900 23px/1.15 var(--oyb-font-display); letter-spacing: -.01em; color: var(--oyb-color-ink); text-wrap: balance; }
.oyb-pc.is-choose .oyb-pc__verdict { font-size: 16px; line-height: 1.6; color: var(--oyb-color-text); }
.oyb-pc.is-choose .oyb-pc__act { display: flex; flex-direction: column; gap: 8px; }
.oyb-pc.is-choose .oyb-pc__act .oyb-pc__coupon { align-self: center; }
.oyb-pc.is-choose.is-featured { border-color: var(--oyb-color-pink); }

/* A quote in the card (a book's publisher description): someone else's words, set apart from the verdict line. */
.oyb-pc blockquote.oyb-pc__quote { margin: 0; padding: 0 0 0 12px; border: 0; border-left: 3px solid var(--oyb-color-line); background: none; font-size: 14.5px; line-height: 1.55; font-style: italic; color: var(--oyb-color-muted); }
.oyb-pc blockquote.oyb-pc__quote p { margin: 0; font-size: inherit; }
.oyb-pc blockquote.oyb-pc__quote cite { display: block; margin-top: 4px; font-size: 13px; font-style: normal; font-weight: 700; color: var(--oyb-color-muted); }
.oyb-pc blockquote.oyb-pc__quote cite::before { content: "\2014\00a0"; }

/* Audible's free trial under an audiobook's buttons: a quiet link, not a third button (product.php). */
.oyb-pc a.oyb-pc__trial { display: inline-flex; align-self: center; align-items: center; gap: .35em; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--oyb-color-pink-deep); text-decoration: none; }
.oyb-pc a.oyb-pc__trial svg { width: 1em; height: 1em; transition: transform .2s var(--oyb-ease-out, ease); }
@media (hover: hover) { .oyb-pc a.oyb-pc__trial:hover { text-decoration: underline; } .oyb-pc a.oyb-pc__trial:hover svg { transform: translateX(3px); } }
