/* ── Quick Tip Spotlight ([charitable_hub_tips]) ─────────────────────────────
   Orange #ff6b35 matches the rest of hub.css (as-built), green #31714c is Charitable brand green. */
.chub-tips { margin: 8px 0 48px; container-type: inline-size; container-name: chubtips; }
.chub-tips-header { margin-bottom: 18px; }
/* "New" pill reuses hub.css .chub-reading-badge--new (as-built #ff6b35), a touch larger beside an h2 */
.chub-tips-header .chub-reading-badge { font-size: 11px; padding: 3px 9px; margin-left: 10px; position: relative; top: -2px; }
.chub-tips-box {
	display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) minmax(240px, 320px);
	gap: 32px; border: 1px solid #e8e8e8; border-radius: 14px; padding: 24px; background: #fff;
}
.chub-tips-player { position: relative; align-self: start; }
.chub-tips-open {
	position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; margin: 0; border: 0; border-radius: 10px;
	overflow: hidden; background: #0d2116; cursor: pointer;
}
.chub-tips-poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.chub-tips-play {
	position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
	background: rgba(0,0,0,.6); color: #fff; display: flex; align-items: center; justify-content: center; padding-left: 4px;
	transition: background .15s;
}
.chub-tips-open:hover .chub-tips-play, .chub-tips-open:focus-visible .chub-tips-play { background: #ff6b35; }
.chub-tips-open:focus-visible { outline: 3px solid #ff6b35; outline-offset: 3px; }
.chub-tips-length {
	position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; font-weight: 700;
	padding: 3px 8px; border-radius: 5px; pointer-events: none;
}

/* Modal player. The dialog fills the viewport so a click on the dark area lands on the dialog itself and closes it. */
.chub-tips-modal {
	position: fixed; inset: 0; z-index: 100000; width: 100%; height: 100%; max-width: none; max-height: none;
	margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.85);
}
.chub-tips-modal[open] { display: flex; align-items: center; justify-content: center; }
.chub-tips-modal::backdrop { background: rgba(0,0,0,.85); }
.chub-tips-modal-frame { height: min(88vh, 900px); aspect-ratio: 9 / 16; max-width: calc(100vw - 32px); }
.chub-tips-modal-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: 12px; }
.chub-tips-close {
	position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.chub-tips-close:hover, .chub-tips-close:focus-visible { background: #ff6b35; }
.chub-tips-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
html.chub-tips-lock, html.chub-tips-lock body { overflow: hidden; }

.chub-tip-detail[hidden] { display: none; }
.chub-tips-topic {
	display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
	padding: 4px 11px; border-radius: 100px; background: #e8f2ec; color: #31714c;
}
.chub-tip-title { font-size: 28px; line-height: 1.15; font-weight: 700; color: #1a1a1a; margin: 12px 0 8px; text-wrap: balance; }
.chub-tip-who { font-size: 14px; color: #888; margin: 0 0 16px; line-height: 1.45; }
.chub-tip-desc { text-wrap: pretty; font-size: 16px; line-height: 1.55; color: #444; margin: 0 0 14px; }
.chub-tip-steps { font-size: 15px; line-height: 1.55; color: #333; margin: 0 0 18px; padding-left: 22px; }
.chub-tip-steps li { text-wrap: pretty; margin-bottom: 6px; }
.chub-tip-offer { background: #fff4ee; border: 1px solid #ffd9c7; border-radius: 8px; padding: 11px 14px; font-size: 14px; color: #333; margin: 0 0 18px; }
.chub-tip-offer a { color: #1a1a1a; font-weight: 600; text-decoration: none; }
.chub-tip-offer a:hover { text-decoration: underline; }
.chub-tip-cta { display: inline-block; text-decoration: none; white-space: nowrap; border: 0; font: inherit; font-weight: 600; cursor: pointer; }

.chub-tips-list { display: flex; flex-direction: column; min-height: 0; }
.chub-tips-list-title { font-size: 13px; font-weight: 700; color: #1a1a1a; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.chub-tips-list-title span { color: #999; font-weight: 600; }
/* Scrolls inside the box; height follows the player so the box never grows past it. */
.chub-tips-scroll { list-style: none; margin: 0; padding: 0 6px 0 0; overflow-y: auto; flex: 1 1 0; min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; }
.chub-tips-scroll li { margin: 0; }
.chub-tips-item {
	display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid #f0f0f0;
	padding: 10px 8px; margin: 0; cursor: pointer; border-radius: 8px; font: inherit; color: inherit;
}
.chub-tips-item:hover { background: #fafafa; }
.chub-tips-item:focus-visible { outline: 2px solid #ff6b35; outline-offset: -2px; }
.chub-tips-item.is-active { background: #fff4ee; }
.chub-tips-item.is-active .chub-tips-item-title { color: #ff6b35; }
.chub-tips-thumb { flex: 0 0 48px; width: 48px; height: 85px; border-radius: 6px; background: #0d2116 center / cover no-repeat; }
.chub-tips-item-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.chub-tips-item-title { font-size: 15px; font-weight: 700; color: #1a1a1a; line-height: 1.25; text-wrap: balance; }
.chub-tips-item-meta { font-size: 12.5px; color: #888; }

@container chubtips (max-width: 960px) {
	.chub-tips-box { grid-template-columns: minmax(180px, 230px) minmax(0, 1fr); gap: 26px; }
	.chub-tip-title { font-size: 25px; }
	.chub-tips-list { grid-column: 1 / -1; }
	.chub-tips-scroll { flex: none; max-height: 330px; }
}
@container chubtips (max-width: 540px) {
	.chub-tips-box { grid-template-columns: 1fr; padding: 16px; gap: 20px; }
	.chub-tips-player { width: 100%; max-width: 320px; margin: 0 auto; }
	.chub-tip-title { font-size: 23px; }
}
