/* Price list */

/* Category cards (jump links) */
.h-pl__covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 12px; margin-bottom: 40px; }
.h-w .h-pl__cover {
	display: flex; flex-direction: column; overflow: hidden;
	border-radius: var(--h-r-lg); border: 1px solid var(--h-line); background: var(--h-surface);
	color: var(--h-ink); text-decoration: none;
}
.h-w .h-pl__cover:hover { color: var(--h-ink); }
.h-pl__cover-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--h-ph); }
.h-pl__cover-media .h-ph { padding: 10px; font-size: 10px; }
.h-pl__cover-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.h-pl__cover-name { font-size: 15px; font-weight: 500; line-height: 1.3; }
.h-pl__cover-meta { font-size: 12px; line-height: 1.4; color: var(--h-muted); }

/* Toolbar */
/* Full-bleed band without horizontal overflow: border-image outset paints
   beyond the container but does not add scrollable width. */
.h-pl__toolbar {
	--h-pl-band: color-mix(in srgb, var(--h-bg) 96%, transparent);
	position: sticky; top: var(--h-header-h, 72px); z-index: 20;
	border-image: conic-gradient(var(--h-pl-band) 0 0) fill 0 / / 0 100vmax;
}
.h-pl__toolbar::before, .h-pl__toolbar::after {
	content: ""; position: absolute; left: 0; right: 0; height: 1px;
	border-image: conic-gradient(var(--h-line) 0 0) fill 0 / / 0 100vmax;
}
.h-pl__toolbar::before { top: 0; }
.h-pl__toolbar::after { bottom: 0; }
.admin-bar .h-pl__toolbar { top: calc(var(--h-header-h, 72px) + 32px); }
@media (max-width: 782px) { .admin-bar .h-pl__toolbar { top: calc(var(--h-header-h, 72px) + 46px); } }
@media (max-width: 600px) { .admin-bar .h-pl__toolbar { top: var(--h-header-h, 72px); } }
.h-w--bg-soft .h-pl__toolbar { --h-pl-band: color-mix(in srgb, var(--h-soft) 96%, transparent); }
.h-w--bg-surface .h-pl__toolbar { --h-pl-band: color-mix(in srgb, var(--h-surface) 96%, transparent); }
.h-pl__toolbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-block: 12px; }

.h-pl__search { position: relative; flex: 1 1 260px; max-width: 380px; }
.h-pl__search .h-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--h-muted); pointer-events: none; }
.h-w .h-pl__input, .h-w .h-pl__select {
	width: 100%; min-height: 48px; margin: 0;
	border-radius: var(--h-r-btn); border: 1px solid var(--h-line-2);
	background: var(--h-surface); color: var(--h-ink);
	font-family: var(--h-font-body); font-size: 15px;
}
.h-w .h-pl__input { padding: 0 18px 0 46px; }
.h-w .h-pl__input::placeholder { color: var(--h-muted); opacity: 1; }
.h-w .h-pl__input:focus, .h-w .h-pl__select:focus { border-color: var(--h-ink); outline: none; }
.h-w .h-pl__input:focus-visible, .h-w .h-pl__select:focus-visible { outline: 2px solid var(--h-accent); outline-offset: 2px; }

.h-pl__cat { display: flex; align-items: center; gap: 10px; flex: 0 1 260px; }
.h-pl__label { flex: none; font-size: 14px; font-weight: 500; color: var(--h-ink); }
.h-w .h-pl__select {
	padding: 0 44px 0 18px; appearance: none; -webkit-appearance: none; cursor: pointer;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 24px) 50%, calc(100% - 18px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}

.h-pl__cols {
	display: inline-flex; flex-wrap: wrap; gap: 2px; margin-left: auto; padding: 4px;
	border-radius: var(--h-r-btn); border: 1px solid var(--h-line); background: var(--h-soft);
}
.h-w .h-pl__col-btn {
	min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--h-r-btn);
	background: transparent; color: var(--h-ink); font-family: inherit; font-size: 14px; cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.h-w .h-pl__col-btn[aria-pressed="true"] { background: var(--h-btn); color: var(--h-btn-ink); font-weight: 500; }

/* Sections */
.h-pl__sections { display: flex; flex-direction: column; gap: 72px; padding-top: 48px; }
.h-pl__section[hidden], .h-pl__item[hidden], .h-pl__empty[hidden] { display: none; }
.h-pl__section { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: calc(var(--h-header-h, 72px) + 96px); }
.h-pl__section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.h-pl__section-media { flex: 0 0 132px; height: 132px; overflow: hidden; border-radius: var(--h-r-lg); background: var(--h-ph); }
.h-pl__section-media .h-ph { padding: 10px; }
.h-pl__section-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.h-w .h-pl__section-title { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }
.h-pl__section-desc { max-width: 620px; font-size: 15px; line-height: 1.6; color: var(--h-muted); }
.h-pl__count { padding: 8px 14px; border-radius: var(--h-r-btn); border: 1px solid var(--h-line); background: var(--h-surface); font-size: 13px; color: var(--h-muted); white-space: nowrap; }

.h-pl__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 16px; }
.h-pl__item {
	display: flex; flex-direction: column; gap: 14px; padding: 22px;
	border-radius: var(--h-r-lg); border: 1px solid var(--h-line); background: var(--h-surface);
}
.h-pl__item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.h-w .h-pl__name { font-size: 18px; line-height: 1.3; }
.h-pl__tag { flex: none; padding: 5px 10px; border-radius: var(--h-r-btn); background: var(--h-tint); color: var(--h-accent); font-size: 11px; font-weight: 500; line-height: 1.3; }
.h-pl__desc { font-size: 14px; line-height: 1.6; color: var(--h-muted); }
.h-pl__incl { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.h-pl__incl li { padding: 4px 10px; border-radius: var(--h-r-btn); border: 1px solid var(--h-line); background: var(--h-soft); font-size: 12px; line-height: 1.4; }
.h-pl__foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--h-line); }

/* Price columns. data-col on the section = the selected column. */
.h-pl__prices { display: grid; grid-template-columns: repeat(var(--h-pl-cols, 3), minmax(0, 1fr)); gap: 6px; margin: 0; }
.h-w .h-pl__price {
	display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 44px; padding: 10px 6px;
	border-radius: var(--h-r-sm); border: 1px solid var(--h-line); background: var(--h-soft); color: var(--h-ink);
	font-family: inherit; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
	transition: opacity .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
}
.h-w .h-pl__price:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .h-pl:not([data-col="all"]) .h-pl__price:hover { opacity: 1; border-color: var(--h-ink); } }
.h-pl__price-label { font-size: 11px; letter-spacing: .04em; }
.h-pl__price-value { display: flex; flex-direction: column; font-size: 16px; font-weight: 600; white-space: nowrap; }
.h-pl__dur { font-size: 11px; font-weight: 400; white-space: normal; }
.h-pl:not([data-col="all"]) .h-pl__price { opacity: .6; }
.h-pl[data-col="0"] .h-pl__price[data-col="0"],
.h-pl[data-col="1"] .h-pl__price[data-col="1"],
.h-pl[data-col="2"] .h-pl__price[data-col="2"] { opacity: 1; background: var(--h-btn); border-color: var(--h-btn); color: var(--h-btn-ink); }

.h-pl__fixed { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.h-pl__fixed-note { min-width: 0; font-size: 13px; color: var(--h-muted); }
.h-pl__fixed-price { flex: none; font-size: 24px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.h-pl__fixed-price--text { flex: 0 1 auto; min-width: 0; font-size: 16px; letter-spacing: 0; white-space: normal; text-align: end; }

/* Nothing found + note */
.h-pl__empty {
	display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 48px; padding: 56px 24px;
	border-radius: var(--h-r-xl); border: 1px dashed var(--h-line-2); text-align: center;
}
.h-pl__empty-title { font-family: var(--h-font-head); font-weight: var(--h-head-weight); text-transform: var(--h-head-case); letter-spacing: var(--h-head-track); font-size: 20px; }
.h-w .h-pl__empty p { font-size: 14px; color: var(--h-muted); }
.h-pl__empty .h-btn { margin-top: 6px; }
.h-w .h-pl__note { margin-top: 56px; font-size: 13px; color: var(--h-muted); }

/* Phones: one column at a time (unless "All"). */
@media (max-width: 640px) {
	.h-pl__covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 28px; }
	.h-pl__cover-media { display: none; }
	.h-pl__cover-body { padding: 12px 14px; }
	.h-pl__toolbar { position: relative; top: auto; }
	.admin-bar .h-pl__toolbar { top: auto; }
	.h-pl__toolbar-inner { gap: 10px; }
	.h-pl__section-media { display: none; }
	.h-pl__section-head { gap: 12px; }
	.h-pl__section-intro { flex-basis: 100%; }
	.h-pl__search { max-width: none; flex-basis: 100%; }
	.h-pl__cat { flex: 1 1 100%; }
	.h-pl__cols { margin-left: 0; width: 100%; }
	.h-w .h-pl__col-btn { flex: 1 1 auto; padding: 0 10px; }
	.h-pl__sections { gap: 56px; }
	.h-pl:not([data-col="all"]) .h-pl__prices { grid-template-columns: 1fr; }
	.h-pl:not([data-col="all"]) .h-pl__price { display: none; }
	.h-pl[data-col="0"] .h-pl__price[data-col="0"],
	.h-pl[data-col="1"] .h-pl__price[data-col="1"],
	.h-pl[data-col="2"] .h-pl__price[data-col="2"] { display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; padding: 10px 14px; text-align: left; }
	.h-pl:not([data-col="all"]) .h-pl__price-value { flex-direction: row; align-items: baseline; gap: 8px; }
	/* A tapped Short/Medium/Long swaps the prices in place: they settle in
	   from a soft blur instead of jumping (opacity + filter only, no layout). */
	.h-pl.is-swapping .h-pl__price-value { animation: h-pl-swap .15s var(--h-ease-out, cubic-bezier(.23, 1, .32, 1)); }
}
@keyframes h-pl-swap { from { opacity: .35; filter: blur(2px); } }
@keyframes h-pl-fade { from { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
	.h-w .h-pl__price, .h-w .h-pl__col-btn { transition: none; }
	.h-w .h-pl__price:active { transform: none; }
	.h-pl.is-swapping .h-pl__price-value { animation-name: h-pl-fade; }
}
