/* ============================================================================
   Costco97 — Coupon Book hub + edition (from Coupon Book Hub/Edition.dc.html).
   ========================================================================== */

/* ================= HUB ================= */
.c97cb-head { background: linear-gradient(180deg, var(--c97-wash) 0%, #fafafb 60%, #fff 100%); border-bottom: 1px solid var(--c97-line-faint); padding-top: 16px; }
.c97cb-head__row { display: grid; grid-template-columns: 1.32fr 1fr; gap: 52px; align-items: center; padding-top: 34px; padding-bottom: 46px; }
.c97cb-kicker { display: inline-flex; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--c97-blue); background: var(--c97-blue-tint); border: 1px solid #dbe7f5; padding: 6px 13px; border-radius: var(--c97-r-pill); margin-bottom: 18px; }
.c97cb-h1 { margin: 0; font-size: 54px; line-height: 1.05; font-weight: 600; letter-spacing: -.026em; color: var(--c97-ink); text-wrap: balance; }
.c97cb-sub { margin: 20px 0 0; max-width: 560px; font-size: 19px; line-height: 1.55; font-weight: 300; color: var(--c97-muted-2); }
.c97cb-substat { margin-top: 22px; font-size: 14px; color: var(--c97-muted); }
.c97cb-headsub { background: #fff; border: 1px solid #e8e8ec; border-radius: 20px; padding: 26px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.c97cb-headsub__t { font-size: 19px; font-weight: 600; letter-spacing: -.012em; color: var(--c97-ink); }
.c97cb-headsub p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--c97-muted-2); }
.c97cb-headsub .c97-subform { margin-top: 18px; flex-direction: column; }
.c97cb-headsub .c97-subform input { width: 100%; border-radius: 10px; background: #fbfbfd; padding: 12px 14px; font-size: 16px; }
.c97cb-headsub .c97-subform button { width: 100%; border-radius: 10px; padding: 12px 18px; font-size: 16px; }
.c97cb-headsub__note { margin-top: 12px; font-size: 12px; color: #98989d; display: flex; align-items: center; gap: 6px; }

/* Current edition */
.c97cb-currentwrap { padding-top: 42px; padding-bottom: 8px; }
.c97cb-live { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c97-muted); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.c97cb-live span { width: 7px; height: 7px; border-radius: 50%; background: #28a55f; box-shadow: 0 0 0 3px rgba(40,165,95,.18); }
.c97cb-current { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; color: inherit; background: #fff; border: 1px solid #e8e8ec; border-radius: 24px; padding: 28px; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .25s; }
.c97cb-current:hover { text-decoration: none; box-shadow: 0 24px 60px -34px rgba(0,0,0,.4); }
/* Real covers are far taller than the tile — contain, never crop. */
.c97cb-current__img { width: 100%; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--c97-wash); border: 1px solid var(--c97-line-faint); padding: 14px; }
.c97cb-current__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.c97cb-current__body { padding: 8px 8px 8px 0; }
.c97cb-current__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.c97cb-current__chip { font-size: 12px; font-weight: 600; color: var(--c97-blue); background: var(--c97-blue-tint); border-radius: var(--c97-r-pill); padding: 5px 12px; }
.c97cb-current__dates { font-size: 13px; color: var(--c97-muted); }
.c97cb-current__body h2 { margin: 0; font-size: 40px; line-height: 1.08; letter-spacing: -.022em; font-weight: 600; color: var(--c97-ink); }
.c97cb-current:hover h2 { color: var(--c97-blue); }
.c97cb-current__body > p { margin: 16px 0 0; font-size: 18px; line-height: 1.6; font-weight: 300; color: var(--c97-muted-2); }
.c97cb-current__stats { display: flex; align-items: center; gap: 22px; margin-top: 24px; flex-wrap: wrap; }
.c97cb-current__n { font-size: 26px; font-weight: 600; letter-spacing: -.01em; color: var(--c97-ink); }
.c97cb-current__l { font-size: 12px; color: var(--c97-muted); }
.c97cb-current__div { width: 1px; height: 34px; background: var(--c97-line-faint); }
.c97cb-current__btn { display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; background: var(--c97-blue); color: #fff; border-radius: var(--c97-r-pill); padding: 13px 24px; font-size: 16px; font-weight: 500; }
.c97cb-current:hover .c97cb-current__btn { background: var(--c97-blue-press); }

.c97cb-live--ended { color: var(--c97-amber-fg); gap: 7px; }
/* Between-books email capture. */
.c97cb-nextdrop { margin-top: 22px; background: var(--c97-blue); border-radius: 20px; padding: 28px 30px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: 0 24px 54px -38px rgba(0,42,92,.7); }
.c97cb-nextdrop__main { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1 1 380px; }
.c97cb-nextdrop__icon { flex: none; width: 46px; height: 46px; border-radius: 13px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; }
.c97cb-nextdrop__t { font-size: 19px; font-weight: 600; letter-spacing: -.012em; }
.c97cb-nextdrop p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.85); }
.c97cb-nextdrop .c97-subform { flex: 0 1 auto; justify-content: flex-end; }
.c97cb-nextdrop .c97-subform input { width: 240px; border: none; border-radius: 10px; }
.c97cb-nextdrop .c97-subform button { background: #fff; color: var(--c97-blue); border-radius: var(--c97-r-pill); }
.c97cb-nextdrop .c97-subform button:hover { background: #eaf1fb; }
.c97cb-nextdrop .c97-subdone { color: #fff; }

/* Archive grid */
.c97cb-archive { padding-top: 48px; padding-bottom: 8px; }
.c97cb-rule { height: 1px; background: var(--c97-line-faint); margin-bottom: 30px; }
.c97cb-archive__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.c97cb-archive__head h2 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.018em; color: var(--c97-ink); }
.c97cb-archive__head div { font-size: 14px; color: var(--c97-muted); }
.c97cb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 30px; }
/* In-grid ad row after the 3rd row of covers — spans all columns, label only when filled. */
.c97cb-gridad { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.c97cb-gridad .c97-adbar__label { display: none; }
.c97cb-gridad:has(iframe) .c97-adbar__label { display: block; }
.c97cb-card { display: flex; flex-direction: column; color: inherit; }
.c97cb-card:hover { text-decoration: none; }
.c97cb-card__img { width: 100%; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--c97-wash); border: 1px solid var(--c97-line-faint); position: relative; padding: 12px; transition: transform .35s cubic-bezier(.33,1,.68,1), box-shadow .35s; }
.c97cb-card:hover .c97cb-card__img { transform: translateY(-6px); box-shadow: 0 18px 40px -26px rgba(0,0,0,.34); }
.c97cb-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.c97cb-card__badge { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 600; color: #fff; background: var(--c97-blue); border-radius: var(--c97-r-pill); padding: 5px 11px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.c97cb-card h3 { margin: 16px 0 0; font-size: 20px; line-height: 1.2; letter-spacing: -.014em; font-weight: 600; color: var(--c97-ink); }
.c97cb-card:hover h3 { color: var(--c97-blue); }
.c97cb-card__meta { margin-top: 8px; font-size: 14px; color: var(--c97-muted); }

/* Explainer + FAQ */
.c97cb-explainwrap { padding-top: 60px; padding-bottom: 8px; }
.c97cb-explainwrap .c97cb-rule { margin-bottom: 44px; }
.c97cb-explain { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.c97cb-explain__card { background: var(--c97-wash); border-radius: 20px; padding: 34px; }
.c97cb-explain__icon { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.c97cb-explain__card h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.015em; color: var(--c97-ink); }
.c97cb-explain__card p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; font-weight: 300; color: var(--c97-muted-2); }
.c97cb-faqwrap { max-width: 820px; margin: 0 auto; padding: 64px 22px 40px; }
.c97cb-faqwrap h2 { margin: 0 0 22px; font-size: 28px; font-weight: 600; letter-spacing: -.018em; color: var(--c97-ink); text-align: center; }
.c97cb-faqs { display: flex; flex-direction: column; gap: 12px; }
.c97cb-faq { background: #fff; border: 1px solid var(--c97-line-soft); border-radius: var(--c97-r-sm); padding: 4px 22px; }
.c97cb-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 500; color: var(--c97-ink); cursor: pointer; list-style: none; }
.c97cb-faq summary::-webkit-details-marker { display: none; }
.c97cb-faq svg { flex: 0 0 auto; transition: transform .25s ease; }
.c97cb-faq[open] svg { transform: rotate(180deg); }
.c97cb-faq > div { padding: 0 0 22px; font-size: 16px; line-height: 1.6; font-weight: 300; color: var(--c97-muted-2); }

/* ================= EDITION ================= */
.c97cbe-crumbwrap { max-width: var(--c97-container); margin: 0 auto; padding: 22px var(--c97-gutter) 0; }
.c97cbe-head { max-width: 960px; margin: 0 auto; padding: 26px 22px 0; text-align: center; }
.c97cbe-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c97-blue); margin-bottom: 16px; }
.c97cbe-eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--c97-blue); display: inline-block; }
.c97cbe-h1 { margin: 0; font-size: 44px; line-height: 1.08; font-weight: 600; letter-spacing: -.025em; color: var(--c97-ink); text-wrap: balance; }
.c97cbe-metarow { display: flex; align-items: center; justify-content: center; gap: 14px 20px; flex-wrap: wrap; margin-top: 22px; }
.c97cbe-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; border-radius: var(--c97-r-pill); padding: 6px 13px; }
.c97cbe-pill--live { color: #137a42; background: #e8f6ee; border: 1px solid #c6e9d5; }
.c97cbe-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: #28a55f; box-shadow: 0 0 0 3px rgba(40,165,95,.18); }
.c97cbe-pill--ended { color: var(--c97-muted); background: #f0f0f2; border: 1px solid #e2e2e6; }
.c97cbe-meta { font-size: 15px; color: var(--c97-muted-2); }
.c97cbe-meta strong { color: var(--c97-ink); font-weight: 500; }
.c97cbe-meta--star { display: inline-flex; align-items: center; gap: 6px; }
.c97cbe-metadot { width: 4px; height: 4px; border-radius: 50%; background: var(--c97-line); }
.c97cbe-cover { max-width: 960px; margin: 32px auto 0; padding: 0 22px; }
.c97cbe-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--c97-r-lg); border: 1px solid var(--c97-line-soft); display: block; }

.c97cbe-layout { max-width: var(--c97-container); margin: 0 auto; padding: 44px 22px 20px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; align-items: start; }
.c97cbe-rail { position: sticky; top: 78px; }

.c97cbe-ended { display: flex; align-items: center; gap: 14px; background: var(--c97-wash); border: 1px solid #e8e8ec; border-radius: 14px; padding: 16px 20px; margin-bottom: 30px; color: inherit; }
.c97cbe-ended:hover { background: var(--c97-blue-tint); border-color: #dbe7f5; text-decoration: none; }
.c97cbe-ended__icon { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; background: var(--c97-blue); display: flex; align-items: center; justify-content: center; }
.c97cbe-ended__t { font-size: 15px; font-weight: 600; color: var(--c97-ink); }
.c97cbe-ended__b { font-size: 14px; color: var(--c97-muted-2); }

.c97cbe-insider { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 26px 0; }
.c97cbe-insider a { display: inline-flex; align-items: center; gap: 9px; background: var(--c97-blue); color: #fff; border-radius: var(--c97-r-pill); padding: 12px 22px; font-size: 15px; font-weight: 500; }
.c97cbe-insider a:hover { background: var(--c97-blue-press); color: #fff; text-decoration: none; }
.c97cbe-insider span { font-size: 13px; color: var(--c97-muted); }

/* Category cards produced by the body transform. */
.c97cb-cat { border: 1px solid #e8e8ec; border-radius: var(--c97-r-md); overflow: hidden; margin: 18px 0; }
.c97cb-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; background: var(--c97-wash-2); border-bottom: 1px solid var(--c97-line-faint); }
.c97cb-cat__name { display: flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--c97-ink); }
.c97cb-cat__name span { width: 8px; height: 8px; border-radius: 50%; background: var(--c97-blue); flex: 0 0 auto; }
.c97cb-cat__count { font-size: 12px; font-weight: 600; color: var(--c97-muted); background: #eef0f3; border-radius: var(--c97-r-pill); padding: 4px 11px; white-space: nowrap; }
.c97cb-cat .c97cb-cat__intro { padding: 13px 22px 3px; }
.c97cb-cat .c97cb-cat__intro p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.55; color: var(--c97-muted-2); }
.c97cb-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 15px 22px; border-top: 1px solid #f0f0f2; min-width: 0; }
.c97cb-row:first-child { border-top: none; }
.c97cb-row__name { font-size: 15px; line-height: 1.4; color: var(--c97-ink); font-weight: 500; min-width: 0; }
.c97cb-row__right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.c97cb-row__off { font-size: 13px; font-weight: 600; color: #137a42; background: #e8f6ee; border-radius: var(--c97-r-pill); padding: 4px 11px; white-space: nowrap; }
.c97cb-row__final { font-size: 13px; color: var(--c97-muted-2); white-space: nowrap; }

/* Rail cover card (spoke pages). */
.c97cbe-railcover { display: block; background: #fff; border: 1px solid var(--c97-line-soft); border-radius: 16px; padding: 14px; text-align: center; color: inherit; margin-bottom: 22px; }
.c97cbe-railcover:hover { text-decoration: none; border-color: #cddcf0; box-shadow: 0 14px 34px -22px rgba(0,42,92,.4); }
.c97cbe-railcover img { width: 100%; height: auto; border-radius: 10px; display: block; }
.c97cbe-railcover__label { margin-top: 11px; font-size: 13px; font-weight: 500; color: var(--c97-muted); }
a.c97cbe-railcover .c97cbe-railcover__label { color: var(--c97-blue); }

/* In-body leaderboards (under the insider button + every 2nd category). */
.c97cbe-body .c97dg-gridad { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 18px 0; }
.c97cbe-body .c97dg-gridad .c97-adslot { width: 100%; max-width: 728px; min-height: 90px; }

.c97cbe-verdict { margin-top: 36px; background: var(--c97-wash); border-radius: 20px; padding: 30px 32px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.c97cbe-verdict__score { flex: 0 0 auto; text-align: center; }
.c97cbe-verdict__n { font-size: 46px; font-weight: 600; letter-spacing: -.02em; line-height: 1; color: var(--c97-ink); }
.c97cbe-verdict__stars { display: flex; gap: 2px; justify-content: center; margin-top: 8px; }
.c97cbe-verdict__sub { font-size: 12px; color: var(--c97-muted); margin-top: 7px; }
.c97cbe-verdict__body { flex: 1; min-width: 200px; }
.c97cbe-verdict__label { font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--c97-muted); margin-bottom: 8px; }
.c97cbe-verdict__body p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--c97-ink); }

.c97cbe-navbtns { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.c97cbe-backbtn { display: inline-flex; align-items: center; gap: 9px; background: #fff; color: var(--c97-ink); border: 1px solid var(--c97-line); border-radius: var(--c97-r-pill); padding: 12px 22px; font-size: 15px; font-weight: 500; }
.c97cbe-backbtn:hover { border-color: #b0b0b6; background: var(--c97-wash-2); text-decoration: none; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
	.c97cb-head__row { grid-template-columns: 1fr; gap: 30px; }
	.c97cb-h1 { font-size: 42px; }
	.c97cb-current { grid-template-columns: 1fr; }
	.c97cb-grid { grid-template-columns: 1fr 1fr; }
	.c97cb-explain { grid-template-columns: 1fr; }
	.c97cbe-layout { grid-template-columns: 1fr; }
	.c97cbe-rail { position: static; }
}
@media (max-width: 640px) {
	.c97cb-grid { grid-template-columns: 1fr; }
	.c97cbe-h1 { font-size: 33px; }
	.c97cb-row { flex-direction: column; gap: 8px; }
	.c97cb-row__right { align-items: flex-start; text-align: left; }
}
