/*
 * Headmasters Art Team Awards: public competition page. Everything is scoped to .hm-awards.
 * Component selectors use the doubled root class (.hm-awards.hm-awards) so they outrank the
 * theme's broad content rules, such as `.section-white p:not(.has-text-color)`, without !important.
 */

/*
 * In-page hashes (#entry-*, #review, #hm-awards-gallery) scroll smoothly and
 * clear the theme's sticky header. --hm-anchor-offset includes the header height
 * and a small gap; gallery.js updates it when the header is shortened or the admin bar is present.
 */
html:has(.hm-awards) {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html:has(.hm-awards) {
		scroll-behavior: auto;
	}
}

.hm-awards.hm-awards :is(#hm-awards-gallery, #review, [id^="entry-"]) {
	scroll-margin-top: var(--hm-anchor-offset, 106px);
}

@media (min-width: 992px) {
	.hm-awards.hm-awards :is(#hm-awards-gallery, #review, [id^="entry-"]) {
		scroll-margin-top: var(--hm-anchor-offset, 146px);
	}
}

.hm-awards {
	--hm-black: #111;
	--hm-white: #fff;
	--hm-strip: #f3f3f3;
	--hm-placeholder: #e6e6e6;
	--hm-muted: #555;
	--hm-gap: 1rem;
	font-family: inherit;
	color: var(--hm-black);
	background: var(--hm-white);
	box-sizing: border-box;
}

.hm-awards *,
.hm-awards *::before,
.hm-awards *::after {
	box-sizing: inherit;
}

.hm-awards.hm-awards .hm-awards__band {
	display: grid;
	grid-template-rows: 1fr;
	background: var(--hm-black);
	color: var(--hm-white);
	padding: 1.5rem 0 1.75rem;
}

/*
 * An open entry folds the band away (rows to 0fr), then the band becomes hidden so its
 * controls leave the tab order; returning to the gallery unfolds it again. is-animated
 * is set by detail.js after the first route, so an entry opened from a link does not animate.
 */
.hm-awards.hm-awards.is-entry-open .hm-awards__band {
	grid-template-rows: 0fr;
	padding-top: 0;
	padding-bottom: 0;
	visibility: hidden;
}

/* is-band-opening keeps the contents clipped while the band unfolds again. */
.hm-awards.hm-awards:is(.is-entry-open, .is-band-opening) .hm-awards__band-inner {
	min-height: 0;
	overflow: hidden;
}

.hm-awards.hm-awards.is-animated .hm-awards__band {
	transition: grid-template-rows 0.35s ease, padding 0.35s ease;
}

.hm-awards.hm-awards.is-animated.is-entry-open .hm-awards__band {
	transition: grid-template-rows 0.35s ease, padding 0.35s ease, visibility 0s linear 0.35s;
}

/* Only the photo and copy fade in; the "All entries" bar and previous / next stay put. */
.hm-awards.hm-awards .hm-awards__detail:not([hidden]) .hm-awards__detail-body {
	animation: hm-awards-fade-in 0.3s ease both;
}

@keyframes hm-awards-fade-in {
	from {
		opacity: 0;
		transform: translateY(0.5rem);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hm-awards.hm-awards.is-animated .hm-awards__band,
	.hm-awards.hm-awards.is-animated.is-entry-open .hm-awards__band {
		transition: none;
	}

	.hm-awards.hm-awards .hm-awards__detail:not([hidden]) .hm-awards__detail-body {
		animation: none;
	}
}

.hm-awards.hm-awards .hm-awards__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #ccc;
}

.hm-awards.hm-awards .hm-awards__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 5vw, 2.75rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--hm-white);
}

.hm-awards.hm-awards :is(.hm-awards__intro, .hm-awards__public-welcome) {
	font-size: 1rem;
	line-height: 1.5;
}

/* Without a voting link the band text runs full width; voters keep 40rem beside the picks panel. */
.hm-awards.hm-awards.is-voting .hm-awards__intro {
	max-width: 40rem;
}

/* Public welcome text (no voting link): above the voting notice and the tagline. */
.hm-awards.hm-awards .hm-awards__public-welcome {
	margin: 0 0 0.75rem;
	color: var(--hm-white);
}

.hm-awards.hm-awards :is(.hm-awards__intro, .hm-awards__public-welcome, .hm-awards__greeting) p {
	margin: 0 0 0.75rem;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.hm-awards.hm-awards :is(.hm-awards__intro, .hm-awards__public-welcome, .hm-awards__greeting) p:last-child {
	margin-bottom: 0;
}

.hm-awards.hm-awards .hm-awards__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem var(--hm-gap);
	/* !important only here: the theme's `.page-text ul:not(...)` list margin is too specific to outrank otherwise. */
	margin: 0 !important;
	padding: 1.25rem 0 !important;
	list-style: none;
}

.hm-awards.hm-awards .hm-awards__grid:not(.is-ordered) {
	visibility: hidden;
}

.hm-awards.hm-awards .hm-awards__card {
	margin: 0;
	padding: 0;
}

.hm-awards.hm-awards .hm-awards__media {
	position: relative;
	aspect-ratio: 2 / 3;
	background: var(--hm-placeholder);
	overflow: hidden;
}

.hm-awards.hm-awards .hm-awards__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hm-awards.hm-awards .hm-awards__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--hm-muted);
	font-size: 0.875rem;
}

.hm-awards.hm-awards .hm-awards__badge {
	position: absolute;
	right: 0.5rem;
	bottom: 0.5rem;
	padding: 0.15rem 0.4rem;
	background: var(--hm-black);
	color: var(--hm-white);
	font-size: 0.75rem;
	line-height: 1.4;
}

.hm-awards.hm-awards .hm-awards__label {
	margin: 0.5rem 0 0;
	font-size: 1rem;
	font-weight: 600;
}

.hm-awards.hm-awards .hm-awards__empty {
	margin: 0;
	padding: 2rem 1.25rem;
	color: var(--hm-muted);
}

@media (min-width: 768px) {
	.hm-awards.hm-awards .hm-awards__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.hm-awards {
		--hm-gap: 1.25rem;
	}

	.hm-awards.hm-awards .hm-awards__band {
		padding: 2rem 0 2.25rem;
	}

	.hm-awards.hm-awards .hm-awards__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.75rem var(--hm-gap);
		padding: 1.5rem 0 !important;
	}
}

/* Entry detail (Feature 8). */

.hm-awards.hm-awards .hm-awards__card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.hm-awards.hm-awards .hm-awards__card-link:hover .hm-awards__label {
	text-decoration: underline;
}

.hm-awards.hm-awards .hm-awards__card-link:focus-visible {
	outline: 3px solid var(--hm-black);
	outline-offset: 3px;
}

/* Text for screen readers only. */
.hm-awards.hm-awards .hm-awards__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hm-awards.hm-awards [hidden] {
	display: none !important;
}

.hm-awards.hm-awards .hm-awards__detail {
	padding: 0 1.25rem 1.5rem;
}

.hm-awards.hm-awards .hm-awards__detail-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 -1.25rem 1.25rem;
	padding: 0.85rem 1.25rem;
	border-bottom: 1px solid var(--hm-placeholder);
	/* Extend the bottom rule to the full viewport width; border-image outset is paint only, so it adds no scroll. */
	border-image: linear-gradient(var(--hm-placeholder), var(--hm-placeholder)) 0 0 1 0 / 0 0 1px 0 / 0 100vmax;
	font-size: 0.95rem;
}

.hm-awards.hm-awards .hm-awards__detail a {
	color: var(--hm-black);
}

.hm-awards.hm-awards .hm-awards__position {
	color: var(--hm-muted);
}

.hm-awards.hm-awards .hm-awards__stage {
	position: relative;
	aspect-ratio: 2 / 3;
	background: var(--hm-placeholder);
	overflow: hidden;
}

.hm-awards.hm-awards .hm-awards__stage img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The entry photo is a button that opens the lightbox. */
.hm-awards.hm-awards .hm-awards__zoom {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	cursor: zoom-in;
}

.hm-awards.hm-awards .hm-awards__zoom:focus-visible {
	outline: 3px solid var(--hm-black);
	outline-offset: -3px;
}

/* Lightbox: the whole photo, uncropped, as large as the screen allows. */
html:has(.hm-awards__lightbox[open]) {
	overflow: hidden;
}

.hm-awards.hm-awards .hm-awards__lightbox {
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-out;
}

.hm-awards.hm-awards .hm-awards__lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
	animation: hm-awards-lightbox-in 0.2s ease both;
}

.hm-awards.hm-awards .hm-awards__lightbox::backdrop {
	background: rgba(0, 0, 0, 0.9);
}

.hm-awards.hm-awards .hm-awards__lightbox img,
.hm-awards.hm-awards .hm-awards__lightbox video {
	display: block;
	width: auto;
	height: auto;
	max-width: calc(100vw - 2rem);
	max-height: calc(100dvh - 5rem);
	object-fit: contain;
}

.hm-awards.hm-awards .hm-awards__lightbox.is-video {
	cursor: default;
}

/* Vimeo cannot size itself: a 16:9 frame as large as the screen allows. */
.hm-awards.hm-awards .hm-awards__lightbox iframe {
	display: block;
	width: min(calc(100vw - 2rem), calc((100dvh - 5rem) * 16 / 9));
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	background: var(--hm-black);
}

.hm-awards.hm-awards .hm-awards__lightbox-close {
	position: fixed;
	top: 0.75rem;
	right: 0.75rem;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--hm-white);
	font: inherit;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.hm-awards.hm-awards .hm-awards__lightbox-close:focus-visible {
	outline: 3px solid var(--hm-white);
	outline-offset: 0;
}

@keyframes hm-awards-lightbox-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hm-awards.hm-awards .hm-awards__lightbox[open] {
		animation: none;
	}
}

.hm-awards.hm-awards .hm-awards__watch {
	display: block;
	width: 100%;
	margin: 0.75rem 0 0;
	padding: 0.7rem 0.5rem;
	border: 1px solid var(--hm-black);
	border-radius: 0;
	background: var(--hm-black);
	color: var(--hm-white);
	font: inherit;
	cursor: pointer;
}

.hm-awards.hm-awards .hm-awards__watch:focus-visible {
	outline: 3px solid var(--hm-black);
	outline-offset: 2px;
}

.hm-awards.hm-awards .hm-awards__hint,
.hm-awards.hm-awards .hm-awards__no-video {
	margin: 0.5rem 0 0;
	color: var(--hm-muted);
	font-size: 0.85rem;
}

.hm-awards.hm-awards .hm-awards__detail-text {
	margin-top: 1.25rem;
}

.hm-awards.hm-awards .hm-awards__detail-text .hm-awards__eyebrow {
	color: var(--hm-muted);
}

.hm-awards.hm-awards .hm-awards__detail-title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 5vw, 2.5rem);
	line-height: 1.1;
	color: var(--hm-black);
}

.hm-awards.hm-awards .hm-awards__detail-title:focus {
	outline: none;
}

.hm-awards.hm-awards .hm-awards__description {
	margin: 0;
	color: var(--hm-black);
	font-size: 1rem;
	line-height: 1.5;
}

/* Previous / next sit under the "All entries" bar, above the photo and copy. */
.hm-awards.hm-awards .hm-awards__pager {
	display: flex;
	justify-content: space-between;
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
}

.hm-awards.hm-awards .hm-awards__pager [data-hm-next] {
	margin-left: auto;
}

/* Small screens (below the two-column layout): eyebrow above the photo, arrows over
   its edges in place of the text pager, a swipe hint over its foot. */
.hm-awards.hm-awards .hm-awards__stage-wrap {
	position: relative;
}

.hm-awards.hm-awards .hm-awards__arrow,
.hm-awards.hm-awards .hm-awards__swipe-hint {
	display: none;
}

@media (max-width: 1023px) {
	.hm-awards.hm-awards .hm-awards__pager,
	.hm-awards.hm-awards .hm-awards__detail-text > .hm-awards__eyebrow {
		display: none;
	}

	.hm-awards.hm-awards .hm-awards__media-eyebrow {
		color: var(--hm-muted);
	}

	/* Horizontal moves on the photo are ours (the swipe); vertical scroll and pinch stay with the browser. */
	.hm-awards.hm-awards .hm-awards__stage-wrap {
		touch-action: pan-y pinch-zoom;
	}

	.hm-awards.hm-awards .hm-awards__detail .hm-awards__arrow {
		position: absolute;
		top: 50%;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 2.5rem;
		height: 2.5rem;
		border-radius: 50%;
		background: var(--hm-black);
		color: var(--hm-white);
		font-size: 1.6rem;
		line-height: 1;
		text-decoration: none;
		transform: translateY(-50%);
	}

	.hm-awards.hm-awards .hm-awards__arrow.is-prev {
		left: -0.75rem;
	}

	.hm-awards.hm-awards .hm-awards__arrow.is-next {
		right: -0.75rem;
	}

	.hm-awards.hm-awards .hm-awards__detail .hm-awards__arrow:focus-visible {
		outline: 3px solid var(--hm-black);
		outline-offset: 2px;
	}

	.hm-awards.hm-awards .hm-awards__swipe-hint {
		position: absolute;
		bottom: 0.75rem;
		left: 50%;
		display: block;
		margin: 0;
		padding: 0.3rem 0.75rem;
		border-radius: 1rem;
		background: rgba(0, 0, 0, 0.6);
		color: var(--hm-white);
		font-size: 0.8rem;
		line-height: 1.2;
		white-space: nowrap;
		pointer-events: none;
		transform: translateX(-50%);
	}

	.hm-awards.hm-awards.has-swiped .hm-awards__swipe-hint {
		display: none;
	}
}

@media (min-width: 1024px) {
	.hm-awards.hm-awards .hm-awards__media-eyebrow {
		display: none;
	}
}

@media (min-width: 1024px) {
	.hm-awards.hm-awards .hm-awards__detail {
		padding: 0 2.5rem 2rem;
	}

	.hm-awards.hm-awards .hm-awards__detail-bar {
		margin-left: -2.5rem;
		margin-right: -2.5rem;
		padding-left: 2.5rem;
		padding-right: 2.5rem;
	}

	.hm-awards.hm-awards .hm-awards__detail-body {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 2rem;
		align-items: start;
	}

	.hm-awards.hm-awards .hm-awards__detail-text {
		margin-top: 0;
	}
}

/* Voting (Feature 9). */

.hm-awards.hm-awards .hm-awards__greeting {
	max-width: 40rem;
	margin: 0 0 0.5rem;
	color: var(--hm-white);
	font-size: 1.05rem;
	line-height: 1.5;
}

/* "Hi Robin Smith," as an h6 above the greeting. */
.hm-awards.hm-awards .hm-awards__hello {
	margin: 0 0 0.35rem;
	color: var(--hm-white);
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	line-height: 1.25;
}

.hm-awards.hm-awards .hm-awards__closes {
	margin: 0 0 1rem;
	color: #ccc;
	font-size: 0.875rem;
}

.hm-awards.hm-awards .hm-awards__picks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin: 0 0 1rem;
	max-width: 36rem;
}

/*
 * Pick boxes: dashed and quiet while empty, solid with the entry in large type once
 * picked. The review button is the one filled control, so it reads as the next step.
 */
.hm-awards.hm-awards .hm-awards__pick-box {
	margin: 0;
	padding: 0.85rem 1rem;
	border: 1px dashed #666;
	background: rgba(255, 255, 255, 0.03);
	color: var(--hm-white);
	line-height: 1.3;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hm-awards.hm-awards .hm-awards__pick-box span {
	display: block;
	margin-bottom: 0.35rem;
	color: #bbb;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hm-awards.hm-awards .hm-awards__pick-box strong {
	display: block;
	color: #999;
	font-size: 1rem;
	font-weight: 400;
}

.hm-awards.hm-awards .hm-awards__pick-box.is-picked {
	border: 1px solid var(--hm-white);
	background: rgba(255, 255, 255, 0.1);
}

.hm-awards.hm-awards .hm-awards__pick-box.is-picked strong {
	color: var(--hm-white);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.1;
}

/* A picked entry's name links to the entry. */
.hm-awards.hm-awards .hm-awards__pick-box .hm-awards__pick-link {
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.hm-awards.hm-awards .hm-awards__pick-box .hm-awards__pick-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.hm-awards.hm-awards .hm-awards__pick-box {
		transition: none;
	}
}

.hm-awards.hm-awards .hm-awards__review-button,
.hm-awards.hm-awards .hm-awards__submit {
	display: block;
	padding: 0.85rem 1rem;
	border: 0;
	border-radius: 0;
	font: inherit;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.hm-awards.hm-awards .hm-awards__review-button {
	grid-column: 1 / -1;
	background: var(--hm-white);
	color: var(--hm-black);
}

.hm-awards.hm-awards .hm-awards__review-button[aria-disabled="false"] {
	font-weight: 600;
}

.hm-awards.hm-awards .hm-awards__review-button[aria-disabled="true"] {
	background: #c9c9c9;
	color: #444;
	cursor: not-allowed;
}

.hm-awards.hm-awards .hm-awards__review-button:focus-visible,
.hm-awards.hm-awards .hm-awards__submit:focus-visible,
.hm-awards.hm-awards .hm-awards__your-pick button:focus-visible {
	outline: 3px solid var(--hm-black);
	outline-offset: 2px;
}

.hm-awards.hm-awards .hm-awards__band .hm-awards__review-button:focus-visible {
	outline-color: var(--hm-white);
}

.hm-awards.hm-awards .hm-awards__your-pick {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--hm-placeholder);
}

.hm-awards.hm-awards .hm-awards__your-pick button[data-hm-pick] {
	display: block;
	width: 100%;
	margin: 0 0 0.5rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--hm-black);
	border-radius: 0;
	background: var(--hm-white);
	color: var(--hm-black);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.hm-awards.hm-awards .hm-awards__your-pick button[aria-pressed="true"] {
	background: var(--hm-black);
	color: var(--hm-white);
}

/* Small underlined Undo under the pick buttons. */
.hm-awards.hm-awards .hm-awards__undo {
	display: inline-block;
	margin: 0;
	padding: 0.25rem 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--hm-black);
	font: inherit;
	font-size: 0.9rem;
	text-decoration: underline;
	cursor: pointer;
}

.hm-awards.hm-awards .hm-awards__undo:focus-visible {
	outline: 3px solid var(--hm-black);
	outline-offset: 2px;
}

/*
 * What is picked so far, and the next step, under the pick buttons: the band's
 * pick boxes in light colours (dashed while empty, solid once picked).
 */
.hm-awards.hm-awards .hm-awards__pick-status {
	margin: 1.5rem 0 0;
	padding: 1rem;
	background: var(--hm-strip);
}

.hm-awards.hm-awards .hm-awards__status-picks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
}

.hm-awards.hm-awards .hm-awards__pick-status .hm-awards__pick-box {
	border-color: #999;
	background: var(--hm-white);
	color: var(--hm-black);
}

.hm-awards.hm-awards .hm-awards__pick-status .hm-awards__pick-box span {
	color: var(--hm-muted);
}

.hm-awards.hm-awards .hm-awards__pick-status .hm-awards__pick-box strong {
	color: var(--hm-muted);
}

.hm-awards.hm-awards .hm-awards__pick-status .hm-awards__pick-box.is-picked {
	border-color: var(--hm-black);
}

.hm-awards.hm-awards .hm-awards__pick-status .hm-awards__pick-box.is-picked strong {
	color: var(--hm-black);
}

.hm-awards.hm-awards .hm-awards__next-step {
	display: block;
	padding: 0.85rem 1rem;
	background: var(--hm-black);
	color: var(--hm-white);
	font-family: inherit;
	text-align: center;
	text-decoration: none;
	font-weight: 600;
}

.hm-awards.hm-awards .hm-awards__next-step:focus-visible,
.hm-awards.hm-awards .hm-awards__more-step:focus-visible {
	outline: 3px solid var(--hm-black);
	outline-offset: 2px;
}

.hm-awards.hm-awards .hm-awards__detail .hm-awards__next-step {
	color: var(--hm-white);
}

.hm-awards.hm-awards .hm-awards__more-step {
	font-size: 0.95rem;
}

.hm-awards.hm-awards.has-voted .hm-awards__your-pick {
	display: none;
}

/* Once the vote is in, the confirmation replaces the band's greeting, picks and tagline. */
.hm-awards.hm-awards.has-voted .hm-awards__band-inner > :is(.hm-awards__hello, .hm-awards__greeting, .hm-awards__closes, .hm-awards__picks, .hm-awards__intro) {
	display: none;
}

.hm-awards.hm-awards .hm-awards__review {
	padding: 1.5rem 1.25rem 2rem;
}

.hm-awards.hm-awards .hm-awards__section-title {
	margin: 0 0 1rem;
	color: var(--hm-black);
	font-size: clamp(1.75rem, 5vw, 2.5rem);
	line-height: 1.1;
}

.hm-awards.hm-awards .hm-awards__section-title:focus {
	outline: none;
}

.hm-awards.hm-awards .hm-awards__review-card {
	display: grid;
	grid-template-columns: 5rem 1fr;
	color: inherit;
	font: inherit;
	text-decoration: none;
	transition: background-color 0.15s ease;
	gap: 1rem;
	align-items: center;
	margin: 0 0 0.75rem;
	padding: 0.85rem;
	border: 1px solid var(--hm-placeholder);
	max-width: 40rem;
}

.hm-awards.hm-awards .hm-awards__review-card.is-winner {
	border-color: var(--hm-black);
}

.hm-awards.hm-awards .hm-awards__review-card:hover {
	background: var(--hm-strip);
}

.hm-awards.hm-awards .hm-awards__review-card:focus-visible {
	outline: 3px solid var(--hm-black);
	outline-offset: 2px;
}

.hm-awards.hm-awards .hm-awards__review-card p {
	margin: 0;
	color: var(--hm-black);
}

.hm-awards.hm-awards .hm-awards__review-card .hm-awards__eyebrow {
	color: var(--hm-muted);
}

.hm-awards.hm-awards .hm-awards__review-entry {
	font-size: 1.15rem;
}

.hm-awards.hm-awards .hm-awards__review-thumb {
	display: block;
	width: 5rem;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	background: var(--hm-placeholder);
}

.hm-awards.hm-awards .hm-awards__review a,
.hm-awards.hm-awards .hm-awards__done a {
	color: var(--hm-black);
}

.hm-awards.hm-awards .hm-awards__alert:not(:empty) {
	max-width: 40rem;
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border-left: 4px solid #b00020;
	background: #fdecee;
	color: #5c0010;
}

.hm-awards.hm-awards .hm-awards__submit {
	min-width: 16rem;
	margin: 0 0 1rem;
	background: var(--hm-black);
	color: var(--hm-white);
}

.hm-awards.hm-awards .hm-awards__submit:disabled {
	background: #777;
	cursor: not-allowed;
}

.hm-awards.hm-awards .hm-awards__done {
	max-width: 40rem;
}

/* An empty Thank you message setting shows nothing. */
.hm-awards.hm-awards [data-hm-done-message]:empty {
	display: none;
}

/* In the band, the thank-you heading matches the greeting it replaces, under the title. */
.hm-awards.hm-awards .hm-awards__done .hm-awards__section-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	line-height: 1.25;
}

.hm-awards.hm-awards .hm-awards__done .hm-awards__section-title,
.hm-awards.hm-awards .hm-awards__done p,
.hm-awards.hm-awards .hm-awards__done a {
	color: var(--hm-white);
}

.hm-awards.hm-awards .hm-awards__done .hm-awards__hint {
	color: #ccc;
}

@media (max-width: 767px) {
	.hm-awards.hm-awards .hm-awards__band .hm-awards__review-button {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 50;
		border-top: 1px solid var(--hm-placeholder);
		box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
	}

	/* The fixed review bar stays available while an entry is open. */
	.hm-awards.hm-awards.is-entry-open .hm-awards__band .hm-awards__review-button {
		visibility: visible;
	}

	.hm-awards.hm-awards.is-voting {
		padding-bottom: 3.5rem;
	}
}

/* Wide screens: the voter's picks and review button sit to the right of the greeting. */
@media (min-width: 1024px) {
	.hm-awards.hm-awards.is-voting .hm-awards__band-inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
		column-gap: 3rem;
		align-items: center;
	}

	.hm-awards.hm-awards.is-voting .hm-awards__band-inner > * {
		grid-column: 1;
	}

	.hm-awards.hm-awards.is-voting .hm-awards__band-inner > .hm-awards__picks {
		grid-column: 2;
		grid-row: 1 / span 5;
		max-width: none;
		margin: 0;
	}
}

@media (min-width: 1024px) {
	.hm-awards.hm-awards .hm-awards__review {
		padding: 2rem 2.5rem 2.5rem;
	}
}

/* State banners, lost link contact line, footer (Feature 10). */

/* State banners sit inside the band, in the voter greeting's place, across its full width. */
.hm-awards.hm-awards .hm-awards__banner {
	margin: 0 0 0.75rem;
	color: var(--hm-white);
}

/* The banner message is an h6: the theme sets its type; colour and spacing stay ours. */
.hm-awards.hm-awards .hm-awards__banner-title {
	margin: 0;
	color: var(--hm-white);
}

.hm-awards.hm-awards .hm-awards__banner p {
	margin: 0.5rem 0 0;
	color: var(--hm-white);
	font-size: 1rem;
	line-height: 1.5;
}

.hm-awards.hm-awards .hm-awards__banner a {
	color: var(--hm-white);
	text-decoration: underline;
}

.hm-awards.hm-awards .hm-awards__banner a:focus-visible,
.hm-awards.hm-awards .hm-awards__footer a:focus-visible {
	outline: 3px solid var(--hm-black);
	outline-offset: 2px;
}

.hm-awards.hm-awards .hm-awards__banner a:focus-visible {
	outline-color: var(--hm-white);
}

.hm-awards.hm-awards .hm-awards__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	padding: 1rem 1.25rem 1.5rem;
	border-top: 1px solid var(--hm-placeholder);
	color: var(--hm-muted);
	font-size: 0.875rem;
}

.hm-awards.hm-awards .hm-awards__footer a {
	color: var(--hm-black);
}

@media (min-width: 1024px) {
	.hm-awards.hm-awards .hm-awards__footer {
		padding-left: 2.5rem;
		padding-right: 2.5rem;
	}
}

/*
 * Visible keyboard focus (Feature 12). The theme removes every outline site-wide with
 * `body *{outline:0!important}` and `body :focus{outline:0!important}`, so plugin focus
 * rings must also be !important; the doubled root class gives them higher specificity.
 */
.hm-awards.hm-awards :is(a, button, input, select, textarea, video, iframe, [tabindex]:not([tabindex="-1"])):focus-visible {
	outline: 3px solid var(--hm-black) !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 5px var(--hm-white) !important;
}

.hm-awards.hm-awards :is(.hm-awards__band, .hm-awards__banner, .hm-awards__done) :is(a, button):focus-visible {
	outline-color: var(--hm-white) !important;
	box-shadow: 0 0 0 5px var(--hm-black) !important;
}

/* The photo stage clips overflow, so draw the ring inside players. Native controls take
   focus inside the element, where only :focus-within reliably matches the element. */
.hm-awards.hm-awards :is(video, iframe):focus-within,
.hm-awards.hm-awards :is(video, iframe):focus,
.hm-awards.hm-awards :is(video, iframe):focus-visible {
	outline-style: solid !important;
	outline-width: 3px !important;
	outline-color: var(--hm-white) !important;
	outline-offset: -4px !important;
	box-shadow: none !important;
}
