/* Blog Hub template — standalone (hub- prefix). Dark hero, cream page, coral accent. */
.hub {
	--hub-ink: #17141f;
	--hub-ink-2: #3d3a47;
	--hub-muted: #5d5a66;
	--hub-cream: #fbf7f1;
	--hub-line: #e8e0d4;
	--hub-coral: #c2410c;
	--hub-coral-bright: #ff7a59;
	--hub-card: #fff;
	background: var(--hub-cream);
	color: var(--hub-ink);
	padding-bottom: 64px;
	position: relative;
}
.hub *, .hub *::before, .hub *::after { box-sizing: border-box; }
.hub-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.hub a { text-decoration: none; }
.hub img { display: block; max-width: 100%; }
.hub button { font-family: inherit; }
.hub a:focus-visible, .hub button:focus-visible, .hub select:focus-visible, .hub input:focus-visible { outline: 3px solid var(--hub-coral-bright); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hub-hero { background: radial-gradient(900px 380px at 85% -10%, rgba(255, 122, 89, .35), transparent 60%), radial-gradient(700px 360px at 0% 110%, rgba(120, 90, 255, .25), transparent 60%), var(--hub-ink); color: #fff; padding: 40px 0 88px; }
.hub-hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; }
.hub-eyebrow { margin: 0 0 8px; font-size: .8rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--hub-coral-bright); }
.hub-hero__title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(2.2rem, 4.8vw, 3.8rem); line-height: 1.04; letter-spacing: -.02em; color: #fff; text-align: left; }
.hub-hero__page { font-family: inherit; font-size: .35em; font-weight: 600; letter-spacing: 0; opacity: .8; white-space: nowrap; }
.hub-hero__intro { margin: 14px 0 0; max-width: 52ch; font-size: 1.1rem; line-height: 1.6; color: #e4e1ec; text-align: left; }

.hub-search { position: relative; margin: 0; }
.hub-search__label { display: block; margin-bottom: 8px; font-size: .85rem; font-weight: 700; color: #e4e1ec; }
.hub-search__box { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); color: var(--hub-ink); }
.hub-search__box svg { flex: none; color: var(--hub-coral); }
.hub-search__box input[type="search"] { flex: 1; min-width: 0; height: 40px; margin: 0; padding: 0; border: 0; background: transparent; font-size: 1rem; color: var(--hub-ink); box-shadow: none; }
.hub-search__box input[type="search"]:focus { outline: none; }
.hub-search__box:focus-within { outline: 3px solid var(--hub-coral-bright); outline-offset: 2px; }
.hub-search__go { flex: none; height: 42px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--hub-coral); color: #fff; font-weight: 700; font-size: .95rem; cursor: pointer; transition: background-color .15s; }
.hub-search__go:hover { background: #9a3412; }
.hub-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 70; margin: 0; padding: 8px; list-style: none; background: #fff; border-radius: 18px; box-shadow: 0 24px 50px -14px rgba(0, 0, 0, .5); color: var(--hub-ink); }
.hub-suggest[hidden] { display: none; }
.hub-suggest li { margin: 0; padding: 0; list-style: none; }
.hub-suggest li::before { display: none; }
.hub-suggest a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--hub-ink); font-weight: 600; line-height: 1.3; }
.hub-suggest a small { display: block; margin-top: 2px; font-weight: 600; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--hub-coral); }
.hub-suggest a:hover, .hub-suggest a[aria-selected="true"] { background: #fff1ea; }
.hub-suggest .hub-suggest__none { padding: 12px 14px; color: var(--hub-muted); }

/* ---------- Feature playlist ---------- */
.hub-main { padding-top: 0; }
.hub-feature { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 20px; margin-top: -56px; margin-bottom: 52px; position: relative; z-index: 2; }
.hub-stage { position: relative; min-height: 430px; border-radius: 24px; overflow: hidden; background: #2a2533; box-shadow: 0 30px 60px -24px rgba(23, 20, 31, .6); isolation: isolate; }
.hub-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.hub-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hub-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); transition: transform 6s ease-out; }
.hub-slide.is-active .hub-slide__img { transform: scale(1); }
.hub-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 20, 31, 0) 25%, rgba(23, 20, 31, .93) 100%); }
.hub-slide__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 32px 34px; max-width: 760px; }
.hub-slide__kicker { margin: 0 0 8px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffb199; }
.hub-slide__title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -.01em; }
.hub-slide__link { color: #fff !important; }
.hub-slide__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hub-slide__link:focus-visible { outline: 3px solid var(--hub-coral-bright); outline-offset: -4px; }
.hub-slide__excerpt { margin: 10px 0 0; font-size: 1rem; line-height: 1.55; color: #e9e6f0; }
.hub-stage__ctrl { position: absolute; right: 16px; top: 16px; z-index: 5; display: flex; gap: 6px; }
.hub-ctrl { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--hub-ink); font-size: .9rem; font-weight: 800; cursor: pointer; transition: background-color .15s, transform .15s; }
.hub-ctrl:hover { background: #fff; transform: scale(1.08); }

.hub-playlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.hub-playlist li { margin: 0; padding: 0; list-style: none; flex: 1; display: flex; }
.hub-playlist li::before { display: none; }
.hub-pl { position: relative; flex: 1; display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; align-items: center; text-align: left; padding: 14px 16px 18px; border: 1px solid var(--hub-line); border-radius: 16px; background: #fff; color: var(--hub-ink); cursor: pointer; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.hub-pl:hover { transform: translateX(4px); border-color: var(--hub-coral); }
.hub-pl__n { font-family: Georgia, serif; font-size: 1.4rem; font-weight: 700; color: #c9bfae; }
.hub-pl__t { font-size: .95rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hub-pl__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: transparent; }
.hub-pl__bar i { display: block; height: 100%; width: 0; background: var(--hub-coral); }
.hub-pl.is-active { border-color: var(--hub-coral); box-shadow: 0 10px 24px -14px rgba(194, 65, 12, .6); }
.hub-pl.is-active .hub-pl__n { color: var(--hub-coral); }
.hub-pl.is-active .hub-pl__bar { background: #f3e3d8; }
.hub-pl.is-active .hub-pl__bar i { animation: hubFill var(--hub-dur, 6s) linear forwards; }
.hub-feature.is-paused .hub-pl.is-active .hub-pl__bar i { animation-play-state: paused; }
@keyframes hubFill { from { width: 0; } to { width: 100%; } }

/* ---------- Listing ---------- */
.hub-listhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.hub-listhead__title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.9rem; font-weight: 700; letter-spacing: -.01em; }
.hub-status { margin: 0; font-size: .9rem; color: var(--hub-muted); }

.hub-tools { display: flex; align-items: flex-start; gap: 16px; padding: 12px 0 18px; border-top: 1px solid var(--hub-line); border-bottom: 1px solid var(--hub-line); margin-bottom: 28px; }
.hub-chipwrap { flex: 1; min-width: 0; position: relative; }
.hub-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; padding: 2px; }
.hub-js .hub-chips { flex-wrap: nowrap; overflow: hidden; }
.hub-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--hub-line); background: #fff; color: var(--hub-ink); font-size: .9rem; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.hub-chip:hover { border-color: var(--hub-coral); color: var(--hub-coral); transform: translateY(-1px); }
.hub-chip.is-active, .hub-chip.is-active:hover { background: var(--hub-ink); border-color: var(--hub-ink); color: #fff; transform: none; }
.hub-chip--more[hidden] { display: none; }
.hub-chip--more svg { transition: transform .2s; }
.hub-chip--more[aria-expanded="true"] svg { transform: rotate(180deg); }
.hub-chip--more.has-active { border-color: var(--hub-coral); color: var(--hub-coral); }
.hub-morepanel { position: absolute; left: 0; top: calc(100% + 10px); z-index: 60; width: min(760px, 100%); display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; background: #fff; border: 1px solid var(--hub-line); border-radius: 18px; box-shadow: 0 24px 50px -16px rgba(23, 20, 31, .35); }
.hub-morepanel[hidden] { display: none; }
.hub-morepanel .hub-chip { background: var(--hub-cream); }
.hub-morepanel .hub-chip.is-active { background: var(--hub-ink); }

.hub-controls { flex: none; display: flex; align-items: center; gap: 10px; }
.hub-select { height: 40px; padding: 0 34px 0 14px; border: 1px solid var(--hub-line); border-radius: 10px; background: #fff; color: var(--hub-ink); font-size: .9rem; font-weight: 700; margin: 0; }
.hub-view { display: inline-flex; border: 1px solid var(--hub-line); border-radius: 10px; overflow: hidden; background: #fff; }
.hub-view__btn { width: 40px; height: 38px; border: 0; background: transparent; color: var(--hub-muted); cursor: pointer; display: grid; place-items: center; }
.hub-view__btn svg { fill: currentColor; }
.hub-view__btn.is-active { background: var(--hub-ink); color: #fff; }
.hub-saved { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border: 1px solid var(--hub-line); border-radius: 10px; background: #fff; color: var(--hub-ink); font-size: .9rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s; }
.hub-saved svg { fill: none; stroke: currentColor; stroke-width: 2; }
.hub-saved span { min-width: 22px; padding: 2px 6px; border-radius: 999px; background: var(--hub-cream); font-size: .75rem; text-align: center; }
.hub-saved:hover { border-color: var(--hub-coral); color: var(--hub-coral); }
.hub-saved[aria-pressed="true"] { background: var(--hub-coral); border-color: var(--hub-coral); color: #fff; }
.hub-saved[aria-pressed="true"] span { background: rgba(255, 255, 255, .25); color: #fff; }

/* ---------- Cards ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; transition: opacity .2s; }
.hub-grid[aria-busy="true"] { opacity: .45; pointer-events: none; }
.hub-card { display: flex; flex-direction: column; gap: 14px; opacity: 0; transform: translateY(14px); }
.hub-card.is-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
.hub-card__media { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: #e9e1d4; }
.hub-card__media > a { display: block; height: 100%; }
.hub-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hub-card__img--empty { display: block; }
.hub-card:hover .hub-card__img { transform: scale(1.06); }
.hub-badge { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--hub-coral-bright); color: #1d0f08; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hub-card__actions { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.hub-card:hover .hub-card__actions, .hub-card:focus-within .hub-card__actions, .hub-card.is-saved .hub-card__actions { opacity: 1; transform: none; }
.hub-act { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--hub-ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4); transition: transform .15s, background-color .15s; }
.hub-act svg { fill: none; stroke: currentColor; stroke-width: 2; }
.hub-act--share svg { fill: currentColor; stroke: none; }
.hub-act:hover { transform: scale(1.1); }
.hub-act--save[aria-pressed="true"] { background: var(--hub-coral); color: #fff; }
.hub-act--save[aria-pressed="true"] svg { fill: currentColor; }
@media (hover: none) { .hub-card__actions { opacity: 1; transform: none; } }

.hub-card__body { display: flex; flex-direction: column; gap: 8px; }
.hub-card__kicker { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hub-card__kicker a { color: var(--hub-coral); }
.hub-card__kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hub-card__read { color: var(--hub-muted); font-weight: 600; letter-spacing: .04em; text-transform: none; }
.hub-card__title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; line-height: 1.22; font-weight: 700; letter-spacing: -.01em; }
.hub-card__title a { color: var(--hub-ink); background: linear-gradient(var(--hub-coral), var(--hub-coral)) 0 100% / 0 2px no-repeat; transition: background-size .3s; }
.hub-card:hover .hub-card__title a { background-size: 100% 2px; }
.hub-card__excerpt { margin: 0; font-size: .97rem; line-height: 1.6; color: var(--hub-ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hub-card__meta { margin: 0; font-size: .85rem; color: var(--hub-muted); }

/* List view */
.hub-grid.is-list { grid-template-columns: 1fr; gap: 28px; }
.hub-grid.is-list .hub-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--hub-line); }
.hub-grid.is-list .hub-card__media { aspect-ratio: 16 / 11; }
.hub-grid.is-list .hub-card__title { font-size: 1.6rem; }

.hub-empty { text-align: center; padding: 56px 0; font-size: 1.1rem; color: var(--hub-muted); }
.hub-empty a { color: var(--hub-coral); text-decoration: underline; }
.hub-empty[hidden], .hub-more[hidden] { display: none; }
.hub-more { text-align: center; margin-top: 40px; }
.hub-btn { padding: 14px 32px; border-radius: 999px; border: 2px solid var(--hub-ink); background: transparent; color: var(--hub-ink); font-weight: 800; font-size: 1rem; cursor: pointer; transition: background-color .15s, color .15s, transform .15s; }
.hub-btn:hover { background: var(--hub-ink); color: #fff; transform: translateY(-2px); }

.hub-pager { margin-top: 48px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.hub-pager .page-numbers { display: inline-block; min-width: 42px; padding: 10px 14px; text-align: center; border-radius: 10px; border: 1px solid var(--hub-line); background: #fff; color: var(--hub-ink); font-weight: 700; font-size: .95rem; line-height: 1.1; }
.hub-pager a.page-numbers:hover { border-color: var(--hub-coral); color: var(--hub-coral); }
.hub-pager .page-numbers.current { background: var(--hub-ink); border-color: var(--hub-ink); color: #fff; }
.hub-pager .dots { border-color: transparent; background: transparent; }
/* With JS the infinite scroll replaces the numbered pager (links stay in the HTML for crawlers). */
.hub-js:not(.hub-paged) .hub-pager { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hub.is-filtering .hub-feature { display: none; }
.hub.is-filtering .hub-hero { padding-bottom: 40px; }
.hub.is-filtering .hub-tools { margin-top: 28px; }

/* ---------- Floating bits ---------- */
.hub-top { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--hub-ink); color: #fff; font-size: 1.2rem; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); transition: transform .2s, background-color .2s; }
.hub-top:hover { background: var(--hub-coral); transform: translateY(-3px); }
.hub-top[hidden] { display: none; }
.hub-toast { position: fixed; left: 50%; bottom: 26px; z-index: 90; transform: translateX(-50%); padding: 12px 20px; border-radius: 999px; background: var(--hub-ink); color: #fff; font-weight: 700; font-size: .9rem; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); }
.hub-toast[hidden] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
	.hub-hero__inner { grid-template-columns: 1fr; align-items: start; }
	.hub-hero { padding-bottom: 80px; }
	.hub-feature { grid-template-columns: 1fr; }
	.hub-stage { min-height: 380px; }
	.hub-playlist { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
	.hub-playlist li { flex: 0 0 min(280px, 78%); scroll-snap-align: start; }
	.hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hub-tools { flex-wrap: wrap; }
	.hub-chipwrap { flex: 1 1 100%; }
}
@media (max-width: 639px) {
	.hub-grid { grid-template-columns: 1fr; }
	.hub-stage { min-height: 340px; }
	.hub-slide__body { padding: 20px 20px 24px; }
	.hub-slide__excerpt { display: none; }
	.hub-grid.is-list .hub-card { grid-template-columns: 1fr; }
	.hub-controls { width: 100%; flex-wrap: wrap; }
	.hub-select { flex: 1; }
	.hub-search__go { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.hub-slide, .hub-slide__img, .hub-card, .hub-card.is-in, .hub-card__img, .hub-chip, .hub-pl { transition: none; transform: none; }
	.hub-card { opacity: 1; }
	.hub-pl.is-active .hub-pl__bar i { animation: none; width: 100%; }
}
