/*
 * Holiday Hub
 *
 * Three styles ship together and are chosen in the plugin settings:
 *
 *   .hh--style3  the default. Each holiday on a light neutral plate, with the
 *                accent kept for the date chip and the hover edge.
 *   .hh--style2  the same plate, given a hue of its own per card from a
 *                six-colour palette.
 *   .hh--style1  the original card grid, kept so it can be switched back to.
 *
 * Styles 2 and 3 draw the same card, so the wrapper carries .hh--plates and the
 * geometry is written once against that; each style then fills in the handful
 * of colour properties it differs by.
 *
 * Motion is opt-in: transforms and zooms only apply under .hh--fx. Without it
 * hovering changes colour and nothing moves.
 *
 * Colours come from the theme's own custom properties, so a change in the
 * Customizer carries straight through.
 */

.hh,
.hh-cal,
.hh-month,
.hh-hero,
.hh-section,
.hh-search,
.hh-bookmarks,
.hh-flyout {
	--hh-accent: var(--accent-color, #ff7618);
	--hh-ink: var(--headings-color, #23262c);
	--hh-text: var(--body-color, #4b505a);
	--hh-surface: var(--card-bg, #fff);
	--hh-title-font: inherit;

	--hh-muted: color-mix(in srgb, var(--hh-text) 72%, transparent);
	--hh-faint: color-mix(in srgb, var(--hh-text) 52%, transparent);
	--hh-line: color-mix(in srgb, var(--hh-ink) 12%, transparent);
	--hh-hair: color-mix(in srgb, var(--hh-ink) 7%, transparent);
	--hh-wash: color-mix(in srgb, var(--hh-ink) 4.5%, transparent);
	--hh-tint: color-mix(in srgb, var(--hh-accent) 10%, transparent);

	--hh-radius: 12px;
	--hh-radius-sm: 8px;

	/*
	 * Everything below is what the Appearance panel in the plugin settings
	 * writes to. Each has its default here and is only overridden when the
	 * setting differs, so an untouched install ships exactly this.
	 */
	--hh-col: 240px;
	--hh-gap-x: 26px;
	--hh-gap-y: 30px;
	--hh-toolbar-gap: 22px;
	--hh-card-pad: 10px;
	--hh-card-radius: 16px;
	--hh-media-radius: 11px;
	--hh-ratio: 16 / 10;
	--hh-title-size: 17px;
	--hh-summary-size: 13.5px;
	--hh-summary-lines: 2;
	--hh-thumb: 64px;
	--hh-plate-mix: 6.5%;
	--hh-ring-mix: 0%;
}

/*
 * Dark mode. The theme flips its own variables on html[scheme="dark"], and
 * --hh-ink / --hh-text follow from those on their own. What does not follow is
 * how much of a colour it takes to read as a tint, which is why the card
 * styles further down restate their mixes for dark rather than scaling these.
 */
html[scheme="dark"] :is(.hh, .hh-cal, .hh-month, .hh-hero,
.hh-section, .hh-search, .hh-bookmarks, .hh-flyout) {
	--hh-line: color-mix(in srgb, var(--hh-ink) 18%, transparent);
	--hh-hair: color-mix(in srgb, var(--hh-ink) 11%, transparent);
	--hh-wash: color-mix(in srgb, var(--hh-ink) 8%, transparent);
}

/* The radio inputs exist only to be :checked. */
.hh-state {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.hh {
	container-type: inline-size;
	container-name: hh;
}

/* ------------------------------------------------------------------ */
/*  Isolation from the surrounding page                               */
/* ------------------------------------------------------------------ */

/*
 * These components render inside the theme's content wrapper, where the site's
 * Customizer CSS forces `h2, h3 { color: … !important; font-size: 1.5em
 * !important }` and the theme adds padding to `div.text h3` and `div.text p`.
 * Both reach into the cards.
 *
 * The root class is repeated on purpose: `div.text h3` scores higher than a
 * single class plus a type, so `.hh.hh h3` is what it takes to win without
 * reaching for !important.
 *
 * Beating !important needs !important, but only once: the two forced
 * properties read from custom properties instead, which ordinary rules below
 * are free to set. Everything else stays at normal specificity.
 */

.hh.hh :is(h1, h2, h3, h4, h5, h6),
.hh-month.hh-month :is(h1, h2, h3),
.hh-bookmarks.hh-bookmarks :is(h1, h2, h3),
.hh-section__title.hh-section__title,
.hh-hero__title.hh-hero__title,
.hh-sync.hh-sync h3 {
	font-size: var(--hh-fs, 1rem) !important;
	color: var(--hh-fg, var(--hh-ink)) !important;
	/* The site centres every h1; these blocks set their own alignment. */
	text-align: inherit;
	padding: 0;
}

.hh.hh :is(p, ul, li, div),
.hh-month.hh-month :is(p, ul, li),
.hh-bookmarks.hh-bookmarks :is(p, ul, li),
.hh-cal.hh-cal :is(p, ul, li),
.hh-search.hh-search :is(p, ul, li) {
	padding-top: 0;
	padding-bottom: 0;
	margin-bottom: 0;
}

/* ------------------------------------------------------------------ */
/*  Toolbar                                                           */
/* ------------------------------------------------------------------ */

/*
 * No rule under it. The count and the layout switch are chrome, and a line
 * across the page only welded them to the list they sit above; the gap does
 * the separating instead.
 */
.hh-toolbar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.hh-toolbar__count {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	border-radius: 100px;
	background: color-mix(in srgb, var(--hh-accent) 13%, transparent);
	color: color-mix(in srgb, var(--hh-accent) 70%, var(--hh-ink));
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* A dot of solid accent, so the pill reads as a marker and not as a button. */
.hh-toolbar__count::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--hh-accent);
	flex: none;
}

/*
 * The isolation rule at the top of this file zeroes the margins and vertical
 * padding of every div inside .hh.hh — the theme forces enough of both that it
 * has to — and these two are divs. Doubling the root class is what it takes to
 * win back the few pixels they actually want. Without it the toolbar sat flat
 * on the list and the pill had no height of its own.
 */
.hh.hh .hh-toolbar {
	margin-bottom: var(--hh-toolbar-gap);
}

.hh.hh .hh-toolbar__count {
	padding: 5px 11px 6px;
}

.hh-views {
	display: flex;
	gap: 2px;
	flex: 0 0 auto;
}

.hh-views label {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: var(--hh-radius-sm);
	color: var(--hh-faint);
	cursor: pointer;
}

.hh-views svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
	display: block;
}

.hh-views label:hover {
	background: color-mix(in srgb, var(--hh-accent) 12%, transparent);
	color: var(--hh-accent);
}

:is(html[data-hh-view="grid"] .hh, html:not([data-hh-view]) .hh:has(> .hh-state > input[name$="-view"][value="grid"]:checked)) .hh-views label[for$="-view-grid"],
:is(html[data-hh-view="list"] .hh, html:not([data-hh-view]) :is(html[data-hh-view="list"] .hh, html:not([data-hh-view]) .hh:has(> .hh-state > input[name$="-view"][value="list"]:checked))) .hh-views label[for$="-view-list"] {
	background: color-mix(in srgb, var(--hh-accent) 15%, transparent);
	color: color-mix(in srgb, var(--hh-accent) 72%, var(--hh-ink));
}

/* ------------------------------------------------------------------ */
/*  Item grid                                                         */
/* ------------------------------------------------------------------ */

/*
 * Layout comes from data-hh-view on <html>, set by an inline script in the head
 * before anything paints. Without it the deferred script would flip the radio
 * after first paint and the page would visibly jump from tiles to list. The
 * radio is still the control, and still the whole mechanism without script.
 */
.hh-items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--hh-col)), 1fr));
	column-gap: var(--hh-gap-x);
	row-gap: var(--hh-gap-y);
	/* Cards keep their own height. Stretching them would leave the bookmark
	   pinned to a row-height bottom edge while the text ended higher up. */
	align-items: start;
}

:is(html[data-hh-view="list"] .hh, html:not([data-hh-view]) .hh:has(> .hh-state > input[name$="-view"][value="list"]:checked)) .hh-items {
	grid-template-columns: 1fr;
	column-gap: 0;
	row-gap: 0;
	align-items: stretch;
}

.hh-empty {
	margin: 0;
	padding: 22px 20px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--hh-accent) 7%, var(--hh-surface));
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hh-accent) 18%, transparent);
	color: var(--hh-muted);
	font-size: 14px;
}

/* ------------------------------------------------------------------ */
/*  Bookmark control                                                  */
/* ------------------------------------------------------------------ */

.hh-bm {
	display: inline-grid;
	place-items: center;
	padding: 4px;
	border: 0;
	background: none;
	color: var(--hh-faint);
	cursor: pointer;
	line-height: 0;
}

.hh-bm svg {
	width: 17px;
	height: 17px;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linejoin: round;
}

.hh-bm:hover,
.hh-bm:focus-visible {
	color: var(--hh-ink);
}

.hh-bm[aria-pressed="true"] {
	color: var(--hh-accent);
}

.hh-bm[aria-pressed="true"] svg {
	fill: currentColor;
}

/* ================================================================== */
/*  Plates — the shape the two current styles share                   */
/* ================================================================== */

/*
 * Style 2 and style 3 draw the same card and differ only in colour, so the
 * geometry is written once here and each style fills in a handful of custom
 * properties further down. The wrapper carries .hh--plates for exactly that.
 *
 * Every colour property is declared on .hh-card and not on the wrapper: style
 * 2 gives each card a hue of its own, and a mix written on the wrapper would
 * resolve there once and hand every card the same answer.
 */

.hh--plates .hh-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 11px;
	min-width: 0;
	padding: var(--hh-card-pad) var(--hh-card-pad) calc(var(--hh-card-pad) + 4px);
	border-radius: var(--hh-card-radius);
	background: var(--hh-plate-bg);
	box-shadow: inset 0 0 0 1px var(--hh-plate-ring);
}

.hh--plates .hh-card:hover {
	background: var(--hh-plate-bg-hover);
	box-shadow: inset 0 0 0 1px var(--hh-plate-ring-hover);
}

/*
 * Plates in a row share a height and the chips sit on the bottom edge, so a
 * row lines up instead of ending ragged. The old flat cards had the opposite
 * need — nothing to align — and set align-items: start for it.
 */
.hh--plates .hh-items {
	align-items: stretch;
}

.hh--plates .hh-card__media {
	display: block;
	aspect-ratio: var(--hh-ratio);
	overflow: hidden;
	border-radius: var(--hh-media-radius);
	background: var(--hh-media-bg);
}

.hh--plates .hh-card__media img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.hh--plates .hh-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
	padding: 0 3px;
}

.hh--plates .hh-card__title {
	--hh-fs: var(--hh-title-size);
	order: 1;
	margin: 0;
	font-family: var(--hh-title-font);
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: -.012em;
}

.hh--plates .hh-card__title a {
	color: var(--hh-ink);
	text-decoration: none;
}

/* Hovering anywhere on the plate answers, not only the few words of the link. */
.hh--plates .hh-card:hover .hh-card__title a,
.hh--plates .hh-card__title a:hover {
	color: var(--hh-title-hover);
}

.hh--plates .hh-card__summary {
	order: 2;
	margin: 0;
	padding: 0;
	color: var(--hh-muted);
	font-size: var(--hh-summary-size);
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: var(--hh-summary-lines);
	line-clamp: var(--hh-summary-lines);
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Chips, not a grey byline: the same line of facts, given an edge to sit in. */
.hh--plates .hh-card__meta {
	order: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	margin: auto 0 0;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.hh--plates .hh-card__meta > * {
	padding: 3px 9px 4px;
	border-radius: 100px;
	background: color-mix(in srgb, var(--hh-chip-c) var(--hh-chip-bg-mix), transparent);
	color: color-mix(in srgb, var(--hh-chip-c) var(--hh-chip-fg-mix), var(--hh-ink));
	line-height: 1.4;
	text-decoration: none;
}

/*
 * Category colour. Every scope — a country, or "International" — is given a
 * fixed colour by the renderer and carries it in --hh-scope-c, so the same
 * category is the same colour on every page. It is a per-chip value, which is
 * why the mixes above live on the chip and not on the card.
 */
.hh--chips-scope .hh-card__scope {
	--hh-chip-c: var(--hh-scope-c, var(--hh-ink));
	--hh-chip-bg-mix: 15%;
	--hh-chip-fg-mix: 68%;
}

html[scheme="dark"] .hh--chips-scope .hh-card__scope {
	--hh-chip-bg-mix: 24%;
	--hh-chip-fg-mix: 88%;
}

.hh--chips-plain .hh-card__meta > * {
	--hh-chip-c: var(--hh-ink);
}

/* The date is the one chip a visitor clicks, so it is the one that is filled. */
.hh--plates .hh-card__date {
	background: var(--hh-date-bg);
	color: var(--hh-date-fg);
}

.hh--plates .hh-card__date:hover {
	background: var(--hh-date-bg-hover);
}

.hh--plates .hh-card__moves {
	cursor: help;
}

/*
 * The bookmark rides the top corner of the image, on a disc of the page
 * surface so it stays legible over a photograph of any colour.
 *
 * Both buttons are covered: the plugin's own .hh-bm, and the accounts plugin's
 * .ddta-bookmark, which takes over wherever that plugin is active. The latter
 * is steered through its own custom properties instead of colour declarations,
 * so its pressed and hover states keep working untouched.
 */
.hh--plates .hh-card:has(> .hh-card__media) > :is(.hh-bm, .ddta-bookmark) {
	position: absolute;
	top: 17px;
	right: 17px;
	z-index: 2;
	width: 30px;
	height: 30px;
	padding: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--hh-surface) 86%, transparent);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	box-shadow: 0 1px 3px -1px color-mix(in srgb, var(--hh-ink) 26%, transparent);
}

.hh--plates .hh-card > .ddta-bookmark {
	--ddta-bm-size: 30px;
	--ddta-bm-color: color-mix(in srgb, var(--hh-ink) 62%, transparent);
}

.hh--plates .hh-card > .hh-bm {
	color: color-mix(in srgb, var(--hh-ink) 62%, transparent);
}

.hh--plates .hh-card:has(> .hh-card__media) > :is(.hh-bm, .ddta-bookmark):hover {
	background: var(--hh-surface);
}

/* Cards with no image keep the button in the corner of the plate instead. */
.hh--plates .hh-card:not(:has(> .hh-card__media)) > :is(.hh-bm, .ddta-bookmark) {
	position: absolute;
	right: 7px;
	bottom: 8px;
}

/* ------------------------------------------------------------------ */
/*  Plates, compact list                                              */
/* ------------------------------------------------------------------ */

/*
 * One row per holiday, and the plate shrinks to a rounded strip. The rows sit
 * flush against each other with no rule between them — the plate is already
 * the separation — and the thumbnail is big enough to be a picture rather than
 * a marker.
 */

:is(html[data-hh-view="list"] .hh--plates, html:not([data-hh-view]) .hh--plates:has(> .hh-state > input[name$="-view"][value="list"]:checked)) .hh-items {
	row-gap: 6px;
}

:is(html[data-hh-view="list"] .hh--plates, html:not([data-hh-view]) .hh--plates:has(> .hh-state > input[name$="-view"][value="list"]:checked)) .hh-card {
	display: grid;
	grid-template-columns: var(--hh-thumb) minmax(0, 1fr) auto;
	align-items: center;
	gap: 0 14px;
	padding: 10px 12px 10px 10px;
	border-radius: calc(var(--hh-card-radius) * .85);
}

:is(html[data-hh-view="list"] .hh--plates, html:not([data-hh-view]) .hh--plates:has(> .hh-state > input[name$="-view"][value="list"]:checked)) .hh-card__media {
	width: var(--hh-thumb);
	height: var(--hh-thumb);
	aspect-ratio: 1;
	border-radius: var(--hh-media-radius);
}

:is(html[data-hh-view="list"] .hh--plates, html:not([data-hh-view]) .hh--plates:has(> .hh-state > input[name$="-view"][value="list"]:checked)) .hh-card__body {
	gap: 4px;
	padding: 0;
}

:is(html[data-hh-view="list"] .hh--plates, html:not([data-hh-view]) .hh--plates:has(> .hh-state > input[name$="-view"][value="list"]:checked)) .hh-card__title {
	--hh-fs: 15.5px;
}

:is(html[data-hh-view="list"] .hh--plates, html:not([data-hh-view]) .hh--plates:has(> .hh-state > input[name$="-view"][value="list"]:checked)) .hh-card__meta {
	order: 2;
	margin: 0;
	font-size: 10px;
}

:is(html[data-hh-view="list"] .hh--plates, html:not([data-hh-view]) .hh--plates:has(> .hh-state > input[name$="-view"][value="list"]:checked)) .hh-card__meta > * {
	padding: 2px 8px 3px;
}

:is(html[data-hh-view="list"] .hh--plates, html:not([data-hh-view]) .hh--plates:has(> .hh-state > input[name$="-view"][value="list"]:checked)) .hh-card__summary {
	order: 3;
	font-size: 13px;
	-webkit-line-clamp: 1;
	line-clamp: 1;
}

/* Back into the flow: in a row there is no image corner to sit on. */
:is(html[data-hh-view="list"] .hh--plates, html:not([data-hh-view]) .hh--plates:has(> .hh-state > input[name$="-view"][value="list"]:checked)) .hh-card > :is(.hh-bm, .ddta-bookmark) {
	position: static;
	background: none;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

/* ================================================================== */
/*  STYLE 3 — light neutral plates (default)                          */
/* ================================================================== */

/*
 * The restrained one. The plate is a wash of the page's own ink, the chips are
 * quiet, and the only colour in the chrome is the date — the one chip that is
 * a link — plus the accent edge that appears under the pointer. The holiday
 * images are vivid enough on their own; this style stays out of their way.
 */

.hh--style3 .hh-card {
	--hh-plate-bg: color-mix(in srgb, var(--hh-ink) var(--hh-plate-mix), var(--hh-surface));
	--hh-plate-bg-hover: color-mix(in srgb, var(--hh-ink) calc(var(--hh-plate-mix) * 1.7), var(--hh-surface));
	/* No ring by default — the plate is the edge. The Appearance panel can
	   put one back by lifting --hh-ring-mix off zero. */
	--hh-plate-ring: color-mix(in srgb, var(--hh-ink) var(--hh-ring-mix), transparent);
	--hh-plate-ring-hover: color-mix(in srgb, var(--hh-accent) 34%, transparent);
	--hh-media-bg: color-mix(in srgb, var(--hh-ink) 7%, transparent);

	--hh-chip-c: var(--hh-ink);
	--hh-chip-bg-mix: 6%;
	--hh-chip-fg-mix: 62%;
	--hh-date-bg: color-mix(in srgb, var(--hh-accent) 14%, transparent);
	--hh-date-fg: color-mix(in srgb, var(--hh-accent) 70%, var(--hh-ink));
	--hh-date-bg-hover: color-mix(in srgb, var(--hh-accent) 26%, transparent);

	--hh-title-hover: var(--hh-accent);
}

html[scheme="dark"] .hh--style3 .hh-card {
	--hh-plate-bg: color-mix(in srgb, var(--hh-ink) calc(var(--hh-plate-mix) * 1.9), var(--hh-surface));
	--hh-plate-bg-hover: color-mix(in srgb, var(--hh-ink) calc(var(--hh-plate-mix) * 3), var(--hh-surface));
	--hh-plate-ring: color-mix(in srgb, var(--hh-ink) calc(var(--hh-ring-mix) * 1.7), transparent);
	--hh-chip-bg-mix: 13%;
	--hh-chip-fg-mix: 78%;
	--hh-date-bg: color-mix(in srgb, var(--hh-accent) 24%, transparent);
	--hh-date-fg: color-mix(in srgb, var(--hh-accent) 92%, var(--hh-ink));
}

/* ================================================================== */
/*  STYLE 2 — colour-coded plates                                     */
/* ================================================================== */

/*
 * The loud one. Six mid-chroma hues rotate through the list and everything on
 * a card — plate, ring, chips, hover — mixes from the hue it was given, so the
 * colour is a wash rather than a block. The theme accent leads the rotation.
 *
 * Counted by type: the ads plugin drops <div> blocks between the cards, and
 * nth-child would let an ad shift every hue after it.
 */

.hh--style2 .hh-card { --hh-c: var(--hh-accent); }
.hh--style2 .hh-card:nth-of-type(6n + 2) { --hh-c: #12968a; }
.hh--style2 .hh-card:nth-of-type(6n + 3) { --hh-c: #6a5ae0; }
.hh--style2 .hh-card:nth-of-type(6n + 4) { --hh-c: #d94070; }
.hh--style2 .hh-card:nth-of-type(6n + 5) { --hh-c: #2f7fd8; }
.hh--style2 .hh-card:nth-of-type(6n + 6) { --hh-c: #c47800; }

.hh--style2 .hh-card {
	--hh-plate-bg: color-mix(in srgb, var(--hh-c) var(--hh-plate-mix), var(--hh-surface));
	--hh-plate-bg-hover: color-mix(in srgb, var(--hh-c) calc(var(--hh-plate-mix) * 1.9), var(--hh-surface));
	--hh-plate-ring: color-mix(in srgb, var(--hh-c) calc(var(--hh-ring-mix) + 19%), transparent);
	--hh-plate-ring-hover: color-mix(in srgb, var(--hh-c) 36%, transparent);
	--hh-media-bg: color-mix(in srgb, var(--hh-c) 16%, var(--hh-surface));

	--hh-chip-c: var(--hh-c);
	--hh-chip-bg-mix: 15%;
	--hh-chip-fg-mix: 68%;
	--hh-date-bg: color-mix(in srgb, var(--hh-c) 22%, transparent);
	--hh-date-fg: color-mix(in srgb, var(--hh-c) 78%, var(--hh-ink));
	--hh-date-bg-hover: color-mix(in srgb, var(--hh-c) 34%, transparent);

	--hh-title-hover: color-mix(in srgb, var(--hh-c) 80%, var(--hh-ink));
}

/* The same tint that is a soft wash on white disappears on a near-black card. */
html[scheme="dark"] .hh--style2 .hh-card {
	--hh-plate-bg: color-mix(in srgb, var(--hh-c) 13%, var(--hh-surface));
	--hh-plate-bg-hover: color-mix(in srgb, var(--hh-c) 20%, var(--hh-surface));
	--hh-plate-ring: color-mix(in srgb, var(--hh-c) 24%, transparent);
	--hh-plate-ring-hover: color-mix(in srgb, var(--hh-c) 42%, transparent);
	--hh-chip-bg-mix: 22%;
	--hh-chip-fg-mix: 88%;
	--hh-date-bg: color-mix(in srgb, var(--hh-c) 30%, transparent);
	--hh-date-fg: color-mix(in srgb, var(--hh-c) 95%, var(--hh-ink));
}

/* ================================================================== */
/*  STYLE 1 — flat editorial                                          */
/* ================================================================== */

/*
 * No plate, no box, no shadow: items sit straight on the page and are held
 * apart by space alone, with the type carrying the hierarchy. What keeps it
 * from going grey is the chips — every category has a colour of its own — and
 * the date, which takes the accent.
 */

.hh--style1 .hh-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.hh--style1 .hh-card__media {
	display: block;
	aspect-ratio: var(--hh-ratio);
	overflow: hidden;
	border-radius: var(--hh-media-radius);
	background: var(--hh-wash);
}

.hh--style1 .hh-card__media img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.hh--style1 .hh-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.hh--style1 .hh-card__title {
	--hh-fs: var(--hh-title-size);
	order: 1;
	margin: 0;
	font-family: var(--hh-title-font);
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: -.012em;
}

.hh--style1 .hh-card__title a {
	color: var(--hh-ink);
	text-decoration: none;
}

.hh--style1 .hh-card:hover .hh-card__title a,
.hh--style1 .hh-card__title a:hover {
	color: var(--hh-accent);
}

.hh--style1 .hh-card__summary {
	order: 2;
	margin: 0;
	padding: 0;
	color: var(--hh-muted);
	font-size: var(--hh-summary-size);
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: var(--hh-summary-lines);
	line-clamp: var(--hh-summary-lines);
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/*
 * The chips are the whole of the colour here, so they run a little stronger
 * than they do on a plate, where the plate is already doing some of the work.
 */
.hh--style1 .hh-card__meta {
	order: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	margin: auto 0 0;
	padding-right: 34px;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.hh--style1 .hh-card__meta > * {
	padding: 3px 9px 4px;
	border-radius: 100px;
	background: color-mix(in srgb, var(--hh-chip-c) var(--hh-chip-bg-mix), transparent);
	color: color-mix(in srgb, var(--hh-chip-c) var(--hh-chip-fg-mix), var(--hh-ink));
	line-height: 1.4;
	text-decoration: none;
}

.hh--style1 .hh-card {
	--hh-chip-c: var(--hh-ink);
	--hh-chip-bg-mix: 7%;
	--hh-chip-fg-mix: 64%;
}

html[scheme="dark"] .hh--style1 .hh-card {
	--hh-chip-bg-mix: 14%;
	--hh-chip-fg-mix: 80%;
}

.hh--style1 .hh-card__date {
	background: color-mix(in srgb, var(--hh-accent) 18%, transparent);
	color: color-mix(in srgb, var(--hh-accent) 74%, var(--hh-ink));
}

.hh--style1 .hh-card__date:hover {
	background: color-mix(in srgb, var(--hh-accent) 30%, transparent);
}

.hh--style1 .hh-card__moves {
	cursor: help;
}

/* With no plate to sit on, the bookmark rides the last line of the body. */
.hh--style1 .hh-card > :is(.hh-bm, .ddta-bookmark) {
	position: absolute;
	right: -4px;
	bottom: -4px;
}

.hh--style1 .hh-card > .ddta-bookmark {
	--ddta-bm-size: 32px;
}

/* ------------------------------------------------------------------ */
/*  Style 1, compact list                                             */
/* ------------------------------------------------------------------ */

:is(html[data-hh-view="list"] .hh--style1, html:not([data-hh-view]) .hh--style1:has(> .hh-state > input[name$="-view"][value="list"]:checked)) .hh-items {
	row-gap: 0;
}

:is(html[data-hh-view="list"] .hh--style1, html:not([data-hh-view]) .hh--style1:has(> .hh-state > input[name$="-view"][value="list"]:checked)) .hh-card {
	display: grid;
	grid-template-columns: var(--hh-thumb) minmax(0, 1fr) auto;
	align-items: center;
	gap: 0 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--hh-hair);
}

:is(html[data-hh-view="list"] .hh--style1, html:not([data-hh-view]) .hh--style1:has(> .hh-state > input[name$="-view"][value="list"]:checked)) .hh-card__media {
	width: var(--hh-thumb);
	height: var(--hh-thumb);
	aspect-ratio: 1;
	border-radius: var(--hh-media-radius);
}

:is(html[data-hh-view="list"] .hh--style1, html:not([data-hh-view]) .hh--style1:has(> .hh-state > input[name$="-view"][value="list"]:checked)) .hh-card__body {
	gap: 4px;
}

:is(html[data-hh-view="list"] .hh--style1, html:not([data-hh-view]) .hh--style1:has(> .hh-state > input[name$="-view"][value="list"]:checked)) .hh-card__title {
	--hh-fs: calc(var(--hh-title-size) - 1.5px);
}

:is(html[data-hh-view="list"] .hh--style1, html:not([data-hh-view]) .hh--style1:has(> .hh-state > input[name$="-view"][value="list"]:checked)) .hh-card__meta {
	order: 2;
	margin: 0;
	padding-right: 0;
	font-size: 10px;
}

:is(html[data-hh-view="list"] .hh--style1, html:not([data-hh-view]) .hh--style1:has(> .hh-state > input[name$="-view"][value="list"]:checked)) .hh-card__meta > * {
	padding: 2px 8px 3px;
}

:is(html[data-hh-view="list"] .hh--style1, html:not([data-hh-view]) .hh--style1:has(> .hh-state > input[name$="-view"][value="list"]:checked)) .hh-card__summary {
	order: 3;
	font-size: calc(var(--hh-summary-size) - .5px);
	-webkit-line-clamp: 1;
	line-clamp: 1;
}

:is(html[data-hh-view="list"] .hh--style1, html:not([data-hh-view]) .hh--style1:has(> .hh-state > input[name$="-view"][value="list"]:checked)) .hh-card > :is(.hh-bm, .ddta-bookmark) {
	position: static;
}

/* ------------------------------------------------------------------ */
/*  Motion, only when switched on                                     */
/* ------------------------------------------------------------------ */

.hh--fx .hh-card,
.hh--fx .hh-card__media img,
.hh--fx :is(.hh-bm, .ddta-bookmark) {
	transition: transform .22s ease, box-shadow .22s ease, color .18s ease, background-color .22s ease;
}

/* The plates carry an inset ring, so the lift is drawn in the plate's colour. */
.hh--fx.hh--plates .hh-card:hover {
	transform: translateY(-2px);
	box-shadow:
		inset 0 0 0 1px var(--hh-plate-ring-hover),
		0 10px 22px -14px color-mix(in srgb, var(--hh-ink) 40%, transparent);
}

.hh--fx .hh-card:hover .hh-card__media img {
	transform: scale(1.045);
}

.hh--fx .hh-card__title a {
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 1.5px;
	transition: background-size .3s ease, color .2s ease;
}

.hh--fx .hh-card:hover .hh-card__title a {
	background-size: 100% 1.5px;
}

.hh--fx :is(.hh-bm, .ddta-bookmark):hover {
	transform: scale(1.12);
}

.hh-bm.is-just-saved {
	animation: hh-pop .4s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes hh-pop {
	0% { transform: scale(1); }
	45% { transform: scale(1.28); }
	100% { transform: scale(1); }
}

/* ------------------------------------------------------------------ */
/*  Day archive                                                       */
/* ------------------------------------------------------------------ */

.hh-hero {
	margin: 0 0 24px;
}

.hh-hero__kicker {
	margin: 0 0 6px;
	color: var(--hh-accent);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.hh-hero__title {
	--hh-fs: clamp(30px, 5vw, 46px);
	margin: 0 0 8px;
	font-family: var(--hh-title-font);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.028em;
	color: var(--hh-ink);
}

.hh-hero__lede {
	margin: 0;
	max-width: 58ch;
	color: var(--hh-muted);
	font-size: 15px;
}

.hh-hero__desc {
	margin: 12px 0 0;
	max-width: 66ch;
	color: var(--hh-text);
	font-size: 14.5px;
}

.hh-section {
	margin: 50px 0 0;
}

.hh-section__title {
	--hh-fs: 19px;
	margin: 0 0 18px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--hh-line);
	font-family: var(--hh-title-font);
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--hh-ink);
}

/* ------------------------------------------------------------------ */
/*  Month page                                                        */
/* ------------------------------------------------------------------ */

.hh-daypick {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 28px;
}

.hh-daypick__all,
.hh-daypick__day {
	border-radius: var(--hh-radius-sm);
	background: var(--hh-wash);
	color: var(--hh-ink);
	cursor: pointer;
	user-select: none;
}

.hh-daypick__all {
	display: inline-flex;
	align-items: center;
	padding: 0 14px;
	min-height: 40px;
	font-size: 13px;
	font-weight: 700;
	color: var(--hh-muted);
}

.hh-daypick__day {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	width: 40px;
	min-height: 40px;
	line-height: 1.1;
}

.hh-daypick__n {
	font-family: var(--hh-title-font);
	font-size: 14px;
	font-weight: 700;
}

.hh-daypick__c {
	font-size: 9.5px;
	font-weight: 600;
	color: var(--hh-faint);
}

.hh-daypick__all:hover,
.hh-daypick__day:hover {
	background: var(--hh-tint);
}

.hh-daypick__day.is-today {
	box-shadow: inset 0 0 0 1.5px var(--hh-line);
}

.hh-daysec {
	margin: 0 0 36px;
	scroll-margin-top: 80px;
}

/*
 * A holiday with no featured image renders no .hh-card__media, and in the list
 * layouts — a three-column grid of thumbnail, body, bookmark — auto-placement
 * then dropped the body into the thumbnail's 64px column and the bookmark into
 * the body's. Naming the columns puts both back where they belong and leaves
 * the thumbnail's slot empty, so the text still lines up with every other row.
 *
 * Unscoped on purpose: grid-column is inert outside a grid container, so the
 * tile layout ignores it and this need not repeat the long list selectors.
 */
.hh-card:not(:has(> .hh-card__media)) > .hh-card__body {
	grid-column: 2;
}

.hh-card:not(:has(> .hh-card__media)) > :is(.hh-bm, .ddta-bookmark) {
	grid-column: 3;
}

.hh-daysec__head {
	--hh-fs: 18px;
	display: flex;
	/* Centred, not baseline: the count is a pill with padding of its own, and
	   on a baseline it sat low against the date. */
	align-items: center;
	gap: 9px;
	margin: 0 0 15px;
	font-family: var(--hh-title-font);
	font-weight: 700;
	letter-spacing: -.01em;
}

.hh-daysec__head a {
	color: var(--hh-ink);
	text-decoration: none;
}

.hh-daysec__head a:hover {
	color: var(--hh-accent);
}

.hh-daysec__n {
	padding: 2px 8px 3px;
	border-radius: 100px;
	background: color-mix(in srgb, var(--hh-accent) 13%, transparent);
	color: color-mix(in srgb, var(--hh-accent) 66%, var(--hh-ink));
	font-family: inherit;
	font-size: 11px;
	font-weight: 800;
}

/* ------------------------------------------------------------------ */
/*  Live search                                                       */
/* ------------------------------------------------------------------ */

/*
 * The results panel overlays whatever follows it, so the whole search block
 * becomes its own stacking context well above the page content.
 */
.hh-search {
	position: relative;
	z-index: 60;
	margin: 0 0 26px;
}

.hh-search__field {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 15px;
	border: 1px solid var(--hh-line);
	border-radius: 10px;
	background: var(--hh-surface);
}

.hh-search__field:focus-within {
	border-color: var(--hh-accent);
}

.hh-search__field svg {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	color: var(--hh-faint);
}

.hh-search__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--hh-ink);
	font: inherit;
	font-size: 15px;
	outline: none;
}

.hh-search__results {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 1;
	max-height: 62vh;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--hh-line);
	border-radius: 10px;
	background: var(--hh-surface);
}

.hh-search__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 14px;
	color: var(--hh-ink);
	text-decoration: none;
}

.hh-search__item + .hh-search__item {
	border-top: 1px solid var(--hh-hair);
}

.hh-search__item:hover,
.hh-search__item.is-active {
	background: var(--hh-wash);
}

.hh-search__item img {
	width: 36px;
	height: 36px;
	flex: 0 0 auto;
	border-radius: var(--hh-radius-sm);
	object-fit: cover;
}

.hh-search__name {
	display: block;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.3;
}

.hh-search__date {
	display: block;
	color: var(--hh-faint);
	font-size: 11.5px;
}

.hh-search__none {
	margin: 0;
	padding: 15px;
	color: var(--hh-muted);
	text-align: center;
	font-size: 14px;
}

/* Separates "In September" from "Other months" in the results list. */
.hh-search__group {
	position: sticky;
	top: 0;
	z-index: 1;
	margin: 0;
	padding: 9px 15px 6px;
	border-bottom: 1px solid var(--hh-hair);
	background: var(--hh-surface);
	color: var(--hh-faint);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* Following a "nothing this month" line, so it needs no rule above it. */
.hh-search__none + .hh-search__group {
	border-top: 1px solid var(--hh-hair);
}

/* ------------------------------------------------------------------ */
/*  Calendar                                                          */
/* ------------------------------------------------------------------ */

.hh-cal {
	container-type: inline-size;
	container-name: hhcal;
	padding: 18px;
	border: 1px solid var(--hh-line);
	border-radius: var(--hh-radius);
	background: var(--hh-surface);
}

.hh-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 14px;
}

.hh-cal__title {
	font-family: var(--hh-title-font);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--hh-ink);
}

.hh-cal__year {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--hh-faint);
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
}

.hh-cal__year:hover {
	color: var(--hh-accent);
}

.hh-cal__year svg {
	width: 13px;
	height: 13px;
}

.hh-cal__year--prev svg {
	transform: rotate(180deg);
}

.hh-cal__tabs {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 0;
	margin: 0 0 16px;
	border-bottom: 1px solid var(--hh-line);
}

.hh-cal__tab {
	display: flex;
	justify-content: center;
	padding: 7px 2px;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	color: var(--hh-faint);
	cursor: pointer;
}

.hh-cal__tab:hover {
	color: var(--hh-ink);
}

.hh-cal__tabname {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .02em;
}

.hh-cal__months > .hh-cal__month {
	display: none;
}

/*
 * Which month shows, read from the radio that carries its number. The inputs
 * are direct children of .hh-cal so this is a plain sibling combinator; it was
 * :has() on the calendar, which is a heavier invalidation path and was leaving
 * the panels blank in the sticky sidebar once they had scrolled out and back.
 */
.hh-cal > input[value="1"]:checked ~ .hh-cal__months .hh-cal__month[data-month="1"],
.hh-cal > input[value="2"]:checked ~ .hh-cal__months .hh-cal__month[data-month="2"],
.hh-cal > input[value="3"]:checked ~ .hh-cal__months .hh-cal__month[data-month="3"],
.hh-cal > input[value="4"]:checked ~ .hh-cal__months .hh-cal__month[data-month="4"],
.hh-cal > input[value="5"]:checked ~ .hh-cal__months .hh-cal__month[data-month="5"],
.hh-cal > input[value="6"]:checked ~ .hh-cal__months .hh-cal__month[data-month="6"],
.hh-cal > input[value="7"]:checked ~ .hh-cal__months .hh-cal__month[data-month="7"],
.hh-cal > input[value="8"]:checked ~ .hh-cal__months .hh-cal__month[data-month="8"],
.hh-cal > input[value="9"]:checked ~ .hh-cal__months .hh-cal__month[data-month="9"],
.hh-cal > input[value="10"]:checked ~ .hh-cal__months .hh-cal__month[data-month="10"],
.hh-cal > input[value="11"]:checked ~ .hh-cal__months .hh-cal__month[data-month="11"],
.hh-cal > input[value="12"]:checked ~ .hh-cal__months .hh-cal__month[data-month="12"] {
	display: block;
}

/* The matching tab, underlined. */
.hh-cal > input[value="1"]:checked ~ .hh-cal__tabs .hh-cal__tab:nth-of-type(1),
.hh-cal > input[value="2"]:checked ~ .hh-cal__tabs .hh-cal__tab:nth-of-type(2),
.hh-cal > input[value="3"]:checked ~ .hh-cal__tabs .hh-cal__tab:nth-of-type(3),
.hh-cal > input[value="4"]:checked ~ .hh-cal__tabs .hh-cal__tab:nth-of-type(4),
.hh-cal > input[value="5"]:checked ~ .hh-cal__tabs .hh-cal__tab:nth-of-type(5),
.hh-cal > input[value="6"]:checked ~ .hh-cal__tabs .hh-cal__tab:nth-of-type(6),
.hh-cal > input[value="7"]:checked ~ .hh-cal__tabs .hh-cal__tab:nth-of-type(7),
.hh-cal > input[value="8"]:checked ~ .hh-cal__tabs .hh-cal__tab:nth-of-type(8),
.hh-cal > input[value="9"]:checked ~ .hh-cal__tabs .hh-cal__tab:nth-of-type(9),
.hh-cal > input[value="10"]:checked ~ .hh-cal__tabs .hh-cal__tab:nth-of-type(10),
.hh-cal > input[value="11"]:checked ~ .hh-cal__tabs .hh-cal__tab:nth-of-type(11),
.hh-cal > input[value="12"]:checked ~ .hh-cal__tabs .hh-cal__tab:nth-of-type(12) {
	color: var(--hh-ink);
	border-bottom-color: var(--hh-accent);
}

.hh-cal__dow,
.hh-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
}

.hh-cal__dow {
	margin: 0 0 7px;
	color: var(--hh-faint);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .07em;
	text-align: center;
	text-transform: uppercase;
}

.hh-cal__day {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	aspect-ratio: 1;
	border-radius: var(--hh-radius-sm);
	color: var(--hh-ink);
	text-decoration: none;
	/* More holidays, more colour. */
	background: color-mix(
		in srgb,
		var(--hh-accent) calc(min(100, (var(--n, 0) / max(1, var(--hh-cal-max, 1))) * 55) * 1%),
		var(--hh-wash)
	);
}

.hh-cal__day:hover,
.hh-cal__day:focus-visible {
	outline: 1.5px solid var(--hh-accent);
	outline-offset: -1.5px;
}

.hh-cal__day.is-empty {
	color: var(--hh-faint);
}

.hh-cal__day.is-today {
	box-shadow: inset 0 0 0 1.5px var(--hh-ink);
	font-weight: 800;
}

.hh-cal__num {
	font-family: var(--hh-title-font);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.hh-cal__n {
	font-size: 9.5px;
	font-weight: 600;
	opacity: .6;
	line-height: 1;
}

.hh-cal__day.is-saved::after {
	content: "";
	position: absolute;
	top: 4px;
	right: 4px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--hh-accent);
}

.hh-cal__pad {
	aspect-ratio: 1;
}

.hh-cal__legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin: 14px 0 0;
	color: var(--hh-faint);
	font-size: 10.5px;
	font-weight: 600;
}

.hh-cal__scale {
	display: inline-flex;
	gap: 3px;
}

.hh-cal__scale i {
	width: 13px;
	height: 13px;
	border-radius: 4px;
	background: color-mix(in srgb, var(--hh-accent) calc(var(--n) * 13%), var(--hh-wash));
}

.hh-cal__legendsaved {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: auto;
}

.hh-cal__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--hh-accent);
}

/*
 * Fixed, so it is out of reach of a positioned or clipping ancestor — as a
 * child of .hh-cal with position:absolute it resolved against whatever
 * Elementor wrapper was positioned and landed at the top of the page. It is
 * placed beside the calendar rather than over it, level with the cursor; see
 * place() in hub.js. pointer-events:none stays load-bearing regardless.
 */
.hh-cal__preview {
	position: fixed;
	z-index: 10000;
	width: min(270px, 78vw);
	padding: 11px 13px;
	border: 1px solid var(--hh-line);
	border-radius: 10px;
	background: var(--hh-surface);
	box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--hh-ink) 40%, transparent),
		0 2px 6px -2px color-mix(in srgb, var(--hh-ink) 22%, transparent);
	font-size: 12.5px;
	pointer-events: none;
	opacity: 0;
	transform: translateY(5px) scale(.97);
	transform-origin: center left;
	transition: opacity .14s ease, transform .14s cubic-bezier(.22, .61, .36, 1);
}

/* left/top are rewritten as the cursor moves and are deliberately not
   transitioned: only the entrance is animated, never the tracking. Hiding
   sets [hidden], so it goes at once rather than fading out. */
.hh-cal__preview.is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.hh-cal__preview {
		transition: none;
	}
}

.hh-cal__preview strong {
	display: block;
	margin: 0 0 5px;
	font-family: var(--hh-title-font);
	font-size: 13.5px;
	color: var(--hh-ink);
}

.hh-cal__preview ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hh-cal__preview li {
	padding: 2px 0;
	color: var(--hh-text);
	line-height: 1.4;
}

.hh-cal__preview em {
	color: var(--hh-faint);
	font-size: 11.5px;
	font-style: normal;
}

/* ------------------------------------------------------------------ */
/*  Calendar — compact (sidebar)                                      */
/* ------------------------------------------------------------------ */

/*
 * One month at a time. The arrows are labels for the neighbouring months'
 * radio inputs, and each panel carries its own pair, so the visible arrows
 * always point at the right months without a line of script.
 */

.hh-cal--compact {
	padding: 14px;
}

.hh-cal--compact .hh-cal__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin: 0 0 12px;
}

.hh-cal--compact .hh-cal__label {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-family: var(--hh-title-font);
}

.hh-cal--compact .hh-cal__label strong {
	font-size: 16px;
	font-weight: 700;
	color: var(--hh-ink);
}

.hh-cal--compact .hh-cal__label span {
	font-size: 12.5px;
	color: var(--hh-faint);
}

.hh-cal__step {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: var(--hh-radius-sm);
	color: var(--hh-faint);
	cursor: pointer;
}

.hh-cal__step:hover {
	background: var(--hh-wash);
	color: var(--hh-ink);
}

.hh-cal__step svg {
	width: 14px;
	height: 14px;
	display: block;
}

.hh-cal__step--prev svg {
	transform: rotate(180deg);
}

.hh-cal--compact .hh-cal__day {
	border-radius: 7px;
}

.hh-cal--compact .hh-cal__num {
	font-size: 12.5px;
	font-weight: 600;
}

.hh-cal--compact .hh-cal__grid,
.hh-cal--compact .hh-cal__dow {
	gap: 4px;
}

.hh-cal__all {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 12px 0 0;
	padding-top: 11px;
	border-top: 1px solid var(--hh-hair);
	color: var(--hh-muted);
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
}

.hh-cal__all:hover {
	color: var(--hh-accent);
}

.hh-cal__all svg {
	width: 13px;
	height: 13px;
	flex: 0 0 auto;
}

/* ------------------------------------------------------------------ */
/*  Bookmarks                                                         */
/* ------------------------------------------------------------------ */

.hh-bookmarks__head {
	margin: 0 0 22px;
}

.hh-bookmarks__title {
	--hh-fs: clamp(24px, 3.6vw, 32px);
	margin: 0 0 4px;
	font-family: var(--hh-title-font);
	font-weight: 800;
	letter-spacing: -.025em;
	color: var(--hh-ink);
}

/*
 * Was one grey sentence with a middot in it. It is two facts — how many are
 * saved, and what is next — so it is laid out as two.
 */
.hh-bookmarks__sub {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin: 0;
	color: var(--hh-muted);
	font-size: 14px;
}

.hh.hh .hh-bookmarks__count {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 11px 6px;
	border-radius: 100px;
	background: color-mix(in srgb, var(--hh-accent) 13%, transparent);
	color: color-mix(in srgb, var(--hh-accent) 70%, var(--hh-ink));
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.hh-bookmarks__count::before {
	content: "";
	flex: none;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--hh-accent);
}

.hh-bookmarks__next {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	min-width: 0;
}

.hh-bookmarks__nextlabel {
	color: var(--hh-faint);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.hh-bookmarks__hint {
	color: var(--hh-muted);
	font-size: 13.5px;
}

.hh-bookmarks__nextname {
	color: var(--hh-ink);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.hh-bookmarks__nextname:hover {
	color: var(--hh-accent);
}

.hh-bookmarks__nextwhen {
	color: var(--hh-accent);
	font-size: 13px;
	font-weight: 700;
}

/*
 * One rhythm down the box: the heading, a line of explanation, the three
 * buttons, the way in by hand, the address, the warning. Each step is one gap,
 * set once here, so nothing is flush against its neighbour and the box is no
 * taller for it.
 */
.hh-sync {
	--hh-sync-gap: 12px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--hh-sync-gap);
	margin: 0 0 30px;
	padding: 18px;
	border-radius: var(--hh-radius);
	background: var(--hh-wash);
}

.hh-sync h3 {
	--hh-fs: 16px;
	margin: 0;
	font-family: var(--hh-title-font);
	font-weight: 700;
	color: var(--hh-ink);
}

/* The heading and its sentence are one unit, so they sit closer than the rest. */
.hh-sync h3 + p {
	margin-top: calc(var(--hh-sync-gap) * -.5);
}

.hh.hh .hh-sync > * {
	width: 100%;
}

/*
 * No max-width. There was a 62ch cap here, which at this size broke both
 * paragraphs a third of the way across a box that had room for all of it.
 */
.hh-sync p {
	margin: 0;
	color: var(--hh-muted);
	font-size: 13.5px;
	line-height: 1.55;
}

/* One tap each for the three that can take a subscription from a link. */
.hh-sync__apps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.hh-bookmarks .hh-sync__app {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 13px;
	border-radius: 100px;
	background: var(--hh-surface);
	box-shadow: inset 0 0 0 1px var(--hh-line);
	color: var(--hh-ink);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: box-shadow .18s ease, color .18s ease;
}

.hh-bookmarks .hh-sync__app:hover,
.hh-bookmarks .hh-sync__app:focus-visible {
	box-shadow: inset 0 0 0 1.5px var(--hh-accent);
	color: var(--hh-accent);
}

.hh-sync__app svg {
	width: 17px;
	height: 17px;
	flex: none;
	color: var(--hh-accent);
}

/* For every other app there is the address, and three lines saying where to
   put it. Closed by default: most people will have used a button above. */
.hh-sync__manual {
	margin: 0;
	font-size: 13px;
}

.hh-sync__manual summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--hh-muted);
	cursor: pointer;
	list-style: none;
	font-weight: 600;
}

.hh-sync__manual summary::-webkit-details-marker {
	display: none;
}

.hh-sync__manual summary::before {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(-45deg);
	transition: transform .18s ease;
}

.hh-sync__manual[open] summary::before {
	transform: rotate(45deg);
}

.hh-sync__manual summary:hover {
	color: var(--hh-accent);
}

.hh.hh .hh-sync__steps {
	margin: 9px 0 0;
	padding: 0 0 0 1.3em;
	color: var(--hh-muted);
	font-size: 13px;
	line-height: 1.6;
	list-style: decimal;
}

.hh.hh .hh-sync__steps li {
	margin: 0 0 3px;
	padding: 0;
	list-style: decimal;
}

.hh-sync__row {
	display: flex;
	gap: 8px;
}

.hh-bookmarks .hh-sync__url {
	flex: 1;
	min-width: 0;
	padding: 9px 12px;
	border: 1px solid var(--hh-line);
	border-radius: var(--hh-radius-sm);
	background: var(--hh-surface);
	color: var(--hh-muted);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
}

.hh-sync__fine {
	margin: 0;
	color: var(--hh-faint);
	font-size: 11.5px;
	line-height: 1.5;
}

.hh-sync__row {
	margin: 0;
}

.hh-agenda__group + .hh-agenda__group {
	margin-top: 34px;
}

/*
 * No rule under these. A line across the panel welded each heading to the
 * first row beneath it; the space between groups is what separates them.
 */
.hh.hh .hh-agenda__label {
	--hh-fs: 11px;
	--hh-fg: var(--hh-muted);
	margin: 0 0 11px;
	padding: 0 0 0 2px;
	border-bottom: 0;
	font-family: inherit;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.hh-agenda__list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/*
 * A row here is drawn the way the chosen card style draws one in the main
 * list, so the two never disagree: flat under style 1, on a plate under the
 * two that use plates. The measurements are the ones that were already here —
 * the panel is compact on purpose — so nothing but the surface changes.
 */
.hh-agenda__item {
	display: grid;
	grid-template-columns: 66px 44px minmax(0, 1fr) auto;
	align-items: center;
	gap: 0 13px;
}

/*
 * Compact is not the same as cramped: the pictures were running into one
 * another. The doubled root class is not decoration — the isolation rule at
 * the top of this file zeroes the vertical padding of every li inside .hh.hh,
 * and a row is an li, so the padding set here never took effect at all.
 */
.hh.hh--style1 .hh-agenda__item {
	padding: 11px 2px;
	border-bottom: 1px solid var(--hh-hair);
}

.hh--style1 .hh-agenda__item:last-child {
	border-bottom: 0;
}

.hh--style1 .hh-agenda__list {
	gap: 0;
}

.hh.hh--plates .hh-agenda__item {
	padding: 10px;
	border-radius: 13px;
	background: color-mix(in srgb, var(--hh-ink) var(--hh-plate-mix), var(--hh-surface));
}

.hh--plates .hh-agenda__item:hover {
	background: color-mix(in srgb, var(--hh-ink) calc(var(--hh-plate-mix) * 1.7), var(--hh-surface));
}

html[scheme="dark"] .hh--plates .hh-agenda__item {
	background: color-mix(in srgb, var(--hh-ink) calc(var(--hh-plate-mix) * 1.9), var(--hh-surface));
}

html[scheme="dark"] .hh--plates .hh-agenda__item:hover {
	background: color-mix(in srgb, var(--hh-ink) calc(var(--hh-plate-mix) * 3), var(--hh-surface));
}

/* Style 2 gives each card a hue; a row takes the same one. */
.hh--style2 .hh-agenda__item {
	background: var(--hh-plate-bg);
}

.hh-agenda__when {
	text-align: center;
	line-height: 1.05;
	/* "Tomorrow" is the longest word that lands here and it was breaking in
	   two. It gets the room instead. */
	white-space: nowrap;
}

.hh-agenda__when b {
	display: block;
	font-family: var(--hh-title-font);
	font-size: 21px;
	font-weight: 800;
	color: var(--hh-ink);
}

.hh-agenda__when i {
	font-style: normal;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--hh-faint);
}

.hh-agenda__when.is-word i {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: none;
	color: var(--hh-accent);
}

.hh-agenda__thumb img {
	width: 44px;
	height: 44px;
	display: block;
	border-radius: var(--hh-radius-sm);
	object-fit: cover;
}

.hh-agenda__main {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.hh-agenda__name {
	font-family: var(--hh-title-font);
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--hh-ink);
	text-decoration: none;
}

.hh-agenda__name:hover {
	color: var(--hh-accent);
}

/* Chips, as in the main list — the same facts, and the same colour per
   category, so a row here reads like a row anywhere else on the site. */
.hh-agenda__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.hh-agenda__meta > * {
	--hh-chip-c: var(--hh-ink);
	--hh-chip-bg-mix: 7%;
	--hh-chip-fg-mix: 64%;
	padding: 2px 7px 3px;
	border-radius: 100px;
	background: color-mix(in srgb, var(--hh-chip-c) var(--hh-chip-bg-mix), transparent);
	color: color-mix(in srgb, var(--hh-chip-c) var(--hh-chip-fg-mix), var(--hh-ink));
	line-height: 1.4;
	text-decoration: none;
}

html[scheme="dark"] .hh-agenda__meta > * {
	--hh-chip-bg-mix: 14%;
	--hh-chip-fg-mix: 80%;
}

.hh-agenda__scope {
	--hh-chip-c: var(--hh-scope-c, var(--hh-ink));
	--hh-chip-bg-mix: 15%;
	--hh-chip-fg-mix: 68%;
}

html[scheme="dark"] .hh-agenda__scope {
	--hh-chip-bg-mix: 24%;
	--hh-chip-fg-mix: 88%;
}

.hh-agenda__date {
	--hh-chip-c: var(--hh-accent);
	--hh-chip-bg-mix: 14%;
	--hh-chip-fg-mix: 70%;
}

html[scheme="dark"] .hh-agenda__date {
	--hh-chip-bg-mix: 24%;
	--hh-chip-fg-mix: 92%;
}

.hh-agenda__date:hover {
	background: color-mix(in srgb, var(--hh-accent) 26%, transparent);
}

.hh-agenda__moves {
	cursor: help;
}

.hh-bookmarks__empty {
	padding: 46px 20px;
	text-align: center;
}

.hh-bookmarks__emptyicon svg {
	width: 30px;
	height: 30px;
	fill: none;
	stroke: var(--hh-faint);
	stroke-width: 1.4;
	stroke-linejoin: round;
}

.hh-bookmarks__emptytitle {
	--hh-fs: 17px;
	margin: 10px 0 4px;
	font-family: var(--hh-title-font);
	font-weight: 700;
	color: var(--hh-ink);
}

.hh-bookmarks__emptytext {
	margin: 0 auto 18px;
	max-width: 42ch;
	color: var(--hh-muted);
	font-size: 14px;
}

.hh-bookmarks__signin {
	margin: 18px 0 0;
	padding: 12px 14px;
	border-radius: var(--hh-radius-sm);
	background: var(--hh-tint);
	color: var(--hh-text);
	font-size: 13.5px;
}

/* ------------------------------------------------------------------ */
/*  Locked calendar sync                                              */
/* ------------------------------------------------------------------ */

.hh-sync.is-locked .hh-sync__url {
	color: var(--hh-faint);
	user-select: none;
}

/* ------------------------------------------------------------------ */
/*  Flyout confirmation                                               */
/* ------------------------------------------------------------------ */

/*
 * Anchored to the control that was clicked rather than to the bottom of the
 * viewport, where the sticky ad lives.
 *
 * It drops in from a little above its resting place and overshoots on landing,
 * so it reads as something with weight rather than something that faded in.
 * Only translateY moves — the pill never changes size, which would make the
 * text jitter as it scales.
 */

.hh-flyout {
	position: fixed;
	z-index: 10000;
	display: flex;
	align-items: center;
	gap: 7px;
	max-width: min(320px, calc(100vw - 24px));
	padding: 9px 13px;
	border-radius: 8px;
	/* Not --hh-ink: dark mode turns it white, and the pill went white on white. */
	background: var(--hh-fly-bg, #1b1d21);
	color: var(--hh-fly-fg, #fff);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transform: translateY(-14px);
}

html[scheme="dark"] .hh-flyout {
	--hh-fly-bg: #f3f5f9;
	--hh-fly-fg: #16181d;
}

.hh-flyout.is-in {
	/* The resting state lives here, not only in the last keyframe: if the
	   animation is ever skipped the pill still ends up visible and in place. */
	opacity: 1;
	transform: none;
	pointer-events: auto;
	animation: hh-flyout-drop .58s cubic-bezier(.22, .61, .36, 1);
}

/* Falls, lands past the mark, settles back with a smaller second bounce. */
@keyframes hh-flyout-drop {
	0%   { opacity: 0; transform: translateY(-14px); }
	38%  { opacity: 1; transform: translateY(5px); }
	58%  { transform: translateY(-3px); }
	78%  { transform: translateY(1.5px); }
	100% { opacity: 1; transform: translateY(0); }
}

.hh-flyout.is-out {
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease;
}

/* A small tail pointing back at the control. */
.hh-flyout::after {
	content: "";
	position: absolute;
	width: 7px;
	height: 7px;
	background: inherit;
	transform: rotate(45deg);
}

.hh-flyout.is-left::after {
	right: -3px;
	top: 50%;
	margin-top: -3.5px;
}

.hh-flyout.is-right::after {
	left: -3px;
	top: 50%;
	margin-top: -3.5px;
}

.hh-flyout.is-below::after {
	top: -3px;
	left: 50%;
	margin-left: -3.5px;
}

.hh-flyout__cta {
	padding: 3px 9px;
	border: 0;
	border-radius: 5px;
	background: color-mix(in srgb, var(--hh-fly-fg, #fff) 16%, transparent);
	color: var(--hh-fly-fg, #fff);
	font: inherit;
	text-decoration: none;
	cursor: pointer;
}

.hh-flyout__cta:hover,
.hh-flyout__cta:focus-visible {
	background: var(--accent-color, #ff7618);
	color: #fff;
}


/* ------------------------------------------------------------------ */
/*  Responsive                                                        */
/* ------------------------------------------------------------------ */

/* Keyed to the container: the calendar also runs in a ~300px sidebar. */

@container hhcal (max-width: 560px) {
	.hh-cal__tabs {
		grid-template-columns: repeat(6, 1fr);
	}
}

@container hhcal (max-width: 380px) {
	.hh-cal {
		padding: 13px;
	}

	.hh-cal__tabs {
		grid-template-columns: repeat(4, 1fr);
	}

	.hh-cal__tabname {
		font-size: 11px;
	}

	.hh-cal__grid,
	.hh-cal__dow {
		gap: 3px;
	}

	.hh-cal__num {
		font-size: 12px;
	}

	.hh-cal__n {
		display: none;
	}

	.hh-cal__title {
		font-size: 18px;
	}

	.hh-cal__legendsaved {
		margin-left: 0;
	}
}

@container hh (max-width: 420px) {
	.hh--plates .hh-card__summary {
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}
}

@media (max-width: 680px) {
	.hh-agenda__item {
		/* Still 66px: "Tomorrow" does not fit in 50 and no longer wraps, so at
		   the narrower measure it would have overflowed instead. */
		grid-template-columns: 66px minmax(0, 1fr) auto;
		gap: 0 12px;
	}

	.hh-agenda__thumb {
		display: none;
	}

	.hh-sync__row {
		flex-direction: column;
	}

	.hh-daypick {
		gap: 5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hh-card,
	.hh-card__media img,
	.hh-bm,
	.ddta-bookmark {
		transition: none;
	}

	.hh-flyout.is-in {
		animation: none;
		opacity: 1;
		transform: none;
	}

	.hh-bm.is-just-saved {
		animation: none;
	}
}

/* ------------------------------------------------------------------ */
/*  Month page day filter                                             */
/* ------------------------------------------------------------------ */

/*
 * Choosing a day narrows the page in place. "All month" is the default, so
 * everything is present and visible unless a visitor asks for one day.
 */

.hh-month:has(> .hh-state > input[name$="-day"]:not([value=""]):checked) .hh-daysec {
	display: none;
}

.hh-month:has(> .hh-state > input[name$="-day"][value="1"]:checked) .hh-daysec[data-day="1"],
.hh-month:has(> .hh-state > input[name$="-day"][value="2"]:checked) .hh-daysec[data-day="2"],
.hh-month:has(> .hh-state > input[name$="-day"][value="3"]:checked) .hh-daysec[data-day="3"],
.hh-month:has(> .hh-state > input[name$="-day"][value="4"]:checked) .hh-daysec[data-day="4"],
.hh-month:has(> .hh-state > input[name$="-day"][value="5"]:checked) .hh-daysec[data-day="5"],
.hh-month:has(> .hh-state > input[name$="-day"][value="6"]:checked) .hh-daysec[data-day="6"],
.hh-month:has(> .hh-state > input[name$="-day"][value="7"]:checked) .hh-daysec[data-day="7"],
.hh-month:has(> .hh-state > input[name$="-day"][value="8"]:checked) .hh-daysec[data-day="8"],
.hh-month:has(> .hh-state > input[name$="-day"][value="9"]:checked) .hh-daysec[data-day="9"],
.hh-month:has(> .hh-state > input[name$="-day"][value="10"]:checked) .hh-daysec[data-day="10"],
.hh-month:has(> .hh-state > input[name$="-day"][value="11"]:checked) .hh-daysec[data-day="11"],
.hh-month:has(> .hh-state > input[name$="-day"][value="12"]:checked) .hh-daysec[data-day="12"],
.hh-month:has(> .hh-state > input[name$="-day"][value="13"]:checked) .hh-daysec[data-day="13"],
.hh-month:has(> .hh-state > input[name$="-day"][value="14"]:checked) .hh-daysec[data-day="14"],
.hh-month:has(> .hh-state > input[name$="-day"][value="15"]:checked) .hh-daysec[data-day="15"],
.hh-month:has(> .hh-state > input[name$="-day"][value="16"]:checked) .hh-daysec[data-day="16"],
.hh-month:has(> .hh-state > input[name$="-day"][value="17"]:checked) .hh-daysec[data-day="17"],
.hh-month:has(> .hh-state > input[name$="-day"][value="18"]:checked) .hh-daysec[data-day="18"],
.hh-month:has(> .hh-state > input[name$="-day"][value="19"]:checked) .hh-daysec[data-day="19"],
.hh-month:has(> .hh-state > input[name$="-day"][value="20"]:checked) .hh-daysec[data-day="20"],
.hh-month:has(> .hh-state > input[name$="-day"][value="21"]:checked) .hh-daysec[data-day="21"],
.hh-month:has(> .hh-state > input[name$="-day"][value="22"]:checked) .hh-daysec[data-day="22"],
.hh-month:has(> .hh-state > input[name$="-day"][value="23"]:checked) .hh-daysec[data-day="23"],
.hh-month:has(> .hh-state > input[name$="-day"][value="24"]:checked) .hh-daysec[data-day="24"],
.hh-month:has(> .hh-state > input[name$="-day"][value="25"]:checked) .hh-daysec[data-day="25"],
.hh-month:has(> .hh-state > input[name$="-day"][value="26"]:checked) .hh-daysec[data-day="26"],
.hh-month:has(> .hh-state > input[name$="-day"][value="27"]:checked) .hh-daysec[data-day="27"],
.hh-month:has(> .hh-state > input[name$="-day"][value="28"]:checked) .hh-daysec[data-day="28"],
.hh-month:has(> .hh-state > input[name$="-day"][value="29"]:checked) .hh-daysec[data-day="29"],
.hh-month:has(> .hh-state > input[name$="-day"][value="30"]:checked) .hh-daysec[data-day="30"],
.hh-month:has(> .hh-state > input[name$="-day"][value="31"]:checked) .hh-daysec[data-day="31"] {
	display: block;
}

.hh-month:has(> .hh-state > input[name$="-day"][value=""]:checked) .hh-daypick__all,
.hh-month:has(> .hh-state > input[name$="-day"][value="1"]:checked) .hh-daypick__day[data-day="1"],
.hh-month:has(> .hh-state > input[name$="-day"][value="2"]:checked) .hh-daypick__day[data-day="2"],
.hh-month:has(> .hh-state > input[name$="-day"][value="3"]:checked) .hh-daypick__day[data-day="3"],
.hh-month:has(> .hh-state > input[name$="-day"][value="4"]:checked) .hh-daypick__day[data-day="4"],
.hh-month:has(> .hh-state > input[name$="-day"][value="5"]:checked) .hh-daypick__day[data-day="5"],
.hh-month:has(> .hh-state > input[name$="-day"][value="6"]:checked) .hh-daypick__day[data-day="6"],
.hh-month:has(> .hh-state > input[name$="-day"][value="7"]:checked) .hh-daypick__day[data-day="7"],
.hh-month:has(> .hh-state > input[name$="-day"][value="8"]:checked) .hh-daypick__day[data-day="8"],
.hh-month:has(> .hh-state > input[name$="-day"][value="9"]:checked) .hh-daypick__day[data-day="9"],
.hh-month:has(> .hh-state > input[name$="-day"][value="10"]:checked) .hh-daypick__day[data-day="10"],
.hh-month:has(> .hh-state > input[name$="-day"][value="11"]:checked) .hh-daypick__day[data-day="11"],
.hh-month:has(> .hh-state > input[name$="-day"][value="12"]:checked) .hh-daypick__day[data-day="12"],
.hh-month:has(> .hh-state > input[name$="-day"][value="13"]:checked) .hh-daypick__day[data-day="13"],
.hh-month:has(> .hh-state > input[name$="-day"][value="14"]:checked) .hh-daypick__day[data-day="14"],
.hh-month:has(> .hh-state > input[name$="-day"][value="15"]:checked) .hh-daypick__day[data-day="15"],
.hh-month:has(> .hh-state > input[name$="-day"][value="16"]:checked) .hh-daypick__day[data-day="16"],
.hh-month:has(> .hh-state > input[name$="-day"][value="17"]:checked) .hh-daypick__day[data-day="17"],
.hh-month:has(> .hh-state > input[name$="-day"][value="18"]:checked) .hh-daypick__day[data-day="18"],
.hh-month:has(> .hh-state > input[name$="-day"][value="19"]:checked) .hh-daypick__day[data-day="19"],
.hh-month:has(> .hh-state > input[name$="-day"][value="20"]:checked) .hh-daypick__day[data-day="20"],
.hh-month:has(> .hh-state > input[name$="-day"][value="21"]:checked) .hh-daypick__day[data-day="21"],
.hh-month:has(> .hh-state > input[name$="-day"][value="22"]:checked) .hh-daypick__day[data-day="22"],
.hh-month:has(> .hh-state > input[name$="-day"][value="23"]:checked) .hh-daypick__day[data-day="23"],
.hh-month:has(> .hh-state > input[name$="-day"][value="24"]:checked) .hh-daypick__day[data-day="24"],
.hh-month:has(> .hh-state > input[name$="-day"][value="25"]:checked) .hh-daypick__day[data-day="25"],
.hh-month:has(> .hh-state > input[name$="-day"][value="26"]:checked) .hh-daypick__day[data-day="26"],
.hh-month:has(> .hh-state > input[name$="-day"][value="27"]:checked) .hh-daypick__day[data-day="27"],
.hh-month:has(> .hh-state > input[name$="-day"][value="28"]:checked) .hh-daypick__day[data-day="28"],
.hh-month:has(> .hh-state > input[name$="-day"][value="29"]:checked) .hh-daypick__day[data-day="29"],
.hh-month:has(> .hh-state > input[name$="-day"][value="30"]:checked) .hh-daypick__day[data-day="30"],
.hh-month:has(> .hh-state > input[name$="-day"][value="31"]:checked) .hh-daypick__day[data-day="31"] {
	background: var(--hh-accent);
	color: #fff;
	box-shadow: none;
}

.hh-month:has(> .hh-state > input[name$="-day"][value="1"]:checked) .hh-daypick__day[data-day="1"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="2"]:checked) .hh-daypick__day[data-day="2"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="3"]:checked) .hh-daypick__day[data-day="3"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="4"]:checked) .hh-daypick__day[data-day="4"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="5"]:checked) .hh-daypick__day[data-day="5"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="6"]:checked) .hh-daypick__day[data-day="6"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="7"]:checked) .hh-daypick__day[data-day="7"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="8"]:checked) .hh-daypick__day[data-day="8"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="9"]:checked) .hh-daypick__day[data-day="9"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="10"]:checked) .hh-daypick__day[data-day="10"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="11"]:checked) .hh-daypick__day[data-day="11"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="12"]:checked) .hh-daypick__day[data-day="12"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="13"]:checked) .hh-daypick__day[data-day="13"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="14"]:checked) .hh-daypick__day[data-day="14"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="15"]:checked) .hh-daypick__day[data-day="15"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="16"]:checked) .hh-daypick__day[data-day="16"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="17"]:checked) .hh-daypick__day[data-day="17"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="18"]:checked) .hh-daypick__day[data-day="18"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="19"]:checked) .hh-daypick__day[data-day="19"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="20"]:checked) .hh-daypick__day[data-day="20"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="21"]:checked) .hh-daypick__day[data-day="21"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="22"]:checked) .hh-daypick__day[data-day="22"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="23"]:checked) .hh-daypick__day[data-day="23"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="24"]:checked) .hh-daypick__day[data-day="24"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="25"]:checked) .hh-daypick__day[data-day="25"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="26"]:checked) .hh-daypick__day[data-day="26"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="27"]:checked) .hh-daypick__day[data-day="27"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="28"]:checked) .hh-daypick__day[data-day="28"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="29"]:checked) .hh-daypick__day[data-day="29"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="30"]:checked) .hh-daypick__day[data-day="30"] .hh-daypick__c,
.hh-month:has(> .hh-state > input[name$="-day"][value="31"]:checked) .hh-daypick__day[data-day="31"] .hh-daypick__c {
	color: rgba(255, 255, 255, .75);
}

/* ---------------------------------------------------------------------------
   Upcoming Holidays (Elementor widget)

   Deliberately lighter than .hh-card: this block sits in sidebars and homepage
   columns where a full card grid would dominate, so it is a thumbnail, a name
   and a date, and it inherits the theme's type rather than setting its own.
--------------------------------------------------------------------------- */

.hh-next {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hh-next--grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}

.hh-next__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hh-next__link {
	display: flex;
	gap: 12px;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.hh-next--grid .hh-next__link {
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

.hh-next__media {
	flex: 0 0 64px;
	width: 64px;
	overflow: hidden;
	border-radius: var(--hh-radius-sm);
	line-height: 0;
}

.hh-next--grid .hh-next__media {
	flex-basis: auto;
	width: 100%;
}

.hh-next__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--hh-radius-sm);
	transition: transform .25s ease;
}

.hh-next--grid .hh-next__img {
	aspect-ratio: 16 / 10;
}

.hh-next__img--empty {
	background: var(--hh-wash);
}

.hh-next__link:hover .hh-next__img {
	transform: scale(1.04);
}

.hh-next__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.hh-next__name {
	color: var(--hh-ink);
	font-family: var(--hh-title-font);
	font-weight: 600;
	line-height: 1.3;
}

.hh-next__link:hover .hh-next__name {
	color: var(--hh-accent);
}

.hh-next__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	color: var(--hh-faint);
	font-size: .875em;
}

.hh-next__sep {
	color: var(--hh-line);
}
