/* ==========================================================================
   Prize Runner
   Heebo Black headings, Overpass body text, Prize Runner green.
   ========================================================================== */

/* Fonts, hosted here (preloaded in inc/setup.php). Each is one variable file covering every weight used. */
@font-face {
	font-family: "Heebo";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/heebo-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Overpass";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/overpass-latin.woff2") format("woff2");
}

/* Backups if a font is ever slow: Arial resized to match each font's width (measured), so nothing jumps when it swaps. */
@font-face {
	font-family: "Heebo Fallback";
	src: local("Arial");
	size-adjust: 95%;
}

@font-face {
	font-family: "Overpass Fallback";
	src: local("Arial");
	size-adjust: 96%;
}

:root {
	--green: #5bc84c;
	--green-dark: #4bbb3b;
	--green-deep: #00160b;
	--ink: #000;
	--text: #333;
	--muted: #666;
	--card: #f4f4f4;
	--line: #e6e6e6;
	--radius: 10px;
	--container: 1200px;
	--gutter: 20px;
	--heading: "Heebo", "Heebo Fallback", Arial, sans-serif;
	--body: "Overpass", "Overpass Fallback", Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

/* Never scroll sideways, whatever an ad does. "clip" (unlike "hidden") keeps sticky elements working. */
html,
body {
	overflow-x: clip;
}

.ad {
	max-width: 100%;
}

/* Grid columns may shrink below their contents' width, so an ad can't stretch them past the screen. */
.layout > *,
.sidebar > *,
.list > *,
.grid > * {
	min-width: 0;
}

.sidebar,
.list {
	grid-template-columns: minmax(0, 1fr);
}

body {
	margin: 0;
	background: #fff;
	color: var(--text);
	font: 300 17px/1.6 var(--body);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--green-dark);
}

h1,
h2,
h3,
h4 {
	font-family: var(--heading);
	font-weight: 900;
	color: var(--ink);
	line-height: 1.1;
	margin: 0 0 0.5em;
}

.icon {
	width: 1em;
	height: 1em;
	flex-shrink: 0;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.screen-reader-text,
.skip-link:not(:focus) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	background: #fff;
	padding: 8px 14px;
}

/* ---------- Buttons ---------- */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 12px 28px 9px;
	border: 0;
	border-radius: 30px;
	background: var(--green);
	color: #fff;
	font: 700 17px/1.4 var(--body);
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s;
}

.button:hover {
	background: var(--green-dark);
	color: #fff;
}

.button--big {
	width: 100%;
	padding: 16px 28px 13px;
	font-size: 19px;
}

.button--light {
	background: var(--green-dark);
}

.button--light:hover {
	background: #3fa632;
}

/* ---------- Header ---------- */

.site-header {
	position: relative;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
}

.site-header__logo img {
	width: 220px;
	height: auto;
}

.site-nav .menu {
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	font: 900 15px/1 var(--heading);
	text-transform: uppercase;
	color: var(--text);
	text-decoration: none;
}

.site-nav a:hover,
.site-nav .current-menu-item a {
	color: var(--green);
}

.site-header__toggle {
	display: none;
	background: none;
	border: 0;
	padding: 8px;
	font-size: 28px;
	color: var(--text);
	cursor: pointer;
}

.site-header__toggle .icon-close,
.site-header__toggle[aria-expanded="true"] .icon-menu {
	display: none;
}

.site-header__toggle[aria-expanded="true"] .icon-close {
	display: block;
}

/* ---------- Sections and layout ---------- */

.section {
	padding: 56px 0;
}

.section--tight {
	padding-top: 32px;
}

.grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ad--after-featured {
	margin-top: 30px !important;
}

/* Homepage sign-up box: top of the sidebar on wide screens, straight after Featured on narrower ones. */
.signup-mobile {
	display: none;
}

@media (max-width: 1080px) {
	.signup-mobile {
		display: block;
		margin-top: 30px;
	}

	.signup-desktop {
		display: none;
	}
}

.section--grey {
	background: var(--card);
}

.section--dark {
	background: var(--green-deep);
	padding: 20px 0;
}

/* The wavy background images are the same ones the old site used. */
.section--green {
	/* The wave image already mixed with the green (assets/images/waves-green.jpg), so no blending is needed:
	   Safari can fail to draw blended backgrounds on tall sections like this one on phones. */
	background: url(../images/waves-green.jpg) center / cover, var(--green);

}

.section--green .card {
	background: rgba(255, 255, 255, 0.88);
}

.section-title {
	display: inline-block;
	font-size: 26px;
	margin-bottom: 22px;
	background: linear-gradient(transparent 62%, rgba(91, 200, 76, 0.18) 62%);
}

.section-title--light {
	color: #fff;
	background: linear-gradient(transparent 62%, rgba(0, 0, 0, 0.12) 62%);
}

/* Sidebar exactly as wide as the usual sidebar adverts (336×280, 300×600); the main column takes the rest. */
/* Columns stretch to the same height, so the sidebar's last ad has room to stick while the main column scrolls. */
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 336px;
	gap: 36px;
	align-items: stretch;
}

.layout__main {
	align-self: start;
}

.grid {
	display: grid;
	gap: 30px;
}

.grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.list {
	display: grid;
	gap: 18px;
}

.more-link {
	text-align: center;
	margin: 30px 0 0;
}

.empty {
	padding: 30px;
	background: var(--card);
	border-radius: var(--radius);
}

/* ---------- Hero (homepage) ---------- */

.hero {
	background: linear-gradient(rgba(244, 244, 244, 0.7), rgba(244, 244, 244, 0.7)), url(/wp-content/uploads/2023/12/Elegant-Wavy-BG-2.jpg) center / cover;
	text-align: center;
	padding: 72px 0 64px;
}

.hero__title {
	font-size: clamp(40px, 6vw, 70px);
	line-height: 0.95;
	margin-bottom: 26px;
}

.hero__title span,
.page-head__title span {
	color: var(--green);
}

.hero__text {
	max-width: 700px;
	margin: 0 auto;
	font-size: 19px;
	line-height: 1.5;
	color: var(--ink);
	font-weight: 400;
}

/* ---------- Page heading ---------- */

/* Page headings use the same wavy hero as the homepage, as on the old site. */
.page-head {
	background: linear-gradient(rgba(244, 244, 244, 0.7), rgba(244, 244, 244, 0.7)), url(/wp-content/uploads/2023/12/Elegant-Wavy-BG-2.jpg) center / cover;
	text-align: center;
	padding: 72px 0 64px;
}

.page-head__title {
	font-size: clamp(40px, 6vw, 70px);
	line-height: 0.95;
	margin: 0;
}

.page-head__intro {
	max-width: 760px;
	margin: 22px auto 0;
	font-size: 19px;
	line-height: 1.5;
	color: var(--ink);
}

.page-head__intro a {
	color: var(--green);
	font-weight: 600;
}

/* ---------- Cards ---------- */

.card {
	position: relative;
	background: var(--card);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: scale 0.2s;
}

/* Same hover as the old site: the whole card grows slightly. Larger screens only. */
@media (min-width: 781px) {
	.card:not(.card--ad):hover {
		scale: 1.025;
	}
}

.card__image {
	position: relative;
	display: block;
	aspect-ratio: 550 / 317;
	background: #e9e9e9;
}

.card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__badge {
	position: absolute;
	left: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px 3px;
	border-radius: 20px;
	background: #d63638;
	color: #fff;
	font: 900 12px/1.2 var(--heading);
	text-transform: uppercase;
}

/* Sizes match the old site's cards. */
.card__body {
	padding: 19px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.card__title {
	font-size: 30px;
	line-height: 34px;
	margin: 0 0 10px;
	color: var(--text);
}

.card__title a {
	color: inherit;
	text-decoration: none;
}

/* Whole card clickable. */
.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.card__cats {
	margin: 0 0 6px;
	font: 900 14px/1.7 var(--heading);
	text-transform: uppercase;
	color: var(--green);
}

.card__cats a {
	position: relative;
	z-index: 1;
	color: inherit;
	text-decoration: none;
}

.card__details {
	margin: 0;
	font-size: 18px;
	line-height: 24px;
	color: var(--muted);
}

.card__details div {
	display: block;
}

.card__details dt {
	display: inline;
	font-weight: 700;
	color: #555;
}

.card__details dd {
	display: inline;
	margin: 0;
}

/*
 * Image on the left, sized as on the old site: 367px of a 768px-wide card (47.8%), at least 211px
 * tall (the 900×518 shape of the uploads). When a two-line title makes the text taller, the image
 * grows to match (cropping slightly) so there's no gap below it. The text starts 24px to its right.
 */
.card--row {
	display: grid;
	grid-template-columns: 47.8% minmax(0, 1fr);
	padding: 10px;
}

.card--row .card__image {
	aspect-ratio: auto;
	min-height: 211px;
	border-radius: var(--radius) 0 0 var(--radius);
	overflow: hidden;
}

.card--row .card__image img {
	position: absolute;
	inset: 0;
}

.card--row .card__body {
	padding: 5px 5px 5px 24px;
}

.card--ad {
	padding: 10px;
	display: block;
}

/* ---------- Entry type icons ---------- */

.entry-types {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: auto 0 0;
	padding: 12px 0 0;
	list-style: none;
}

.entry-types li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 9px 2px;
	border-radius: 20px;
	background: #fff;
	color: var(--green-dark);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.entry-types .icon {
	width: 14px;
	height: 14px;
	margin-top: -2px;
}

.card--row .entry-types span,
.grid .entry-types span {
	display: none;
}

.card--row .entry-types li,
.grid .entry-types li {
	padding: 6px;
}

.entry-types--hero li {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

/* ---------- Sign-up box ---------- */

.signup {
	border-radius: var(--radius);
	background: url(/wp-content/uploads/2023/12/Elegant-Wavy-BG-1.jpg) center / cover, linear-gradient(var(--green), var(--green));
	background-blend-mode: color-burn;
	color: #fff;
	padding: 30px;
	text-align: center;
}

/* Spacing matches the old site's sign-up box. */
.signup__title {
	color: #fff;
	font-size: 28px;
	line-height: 1.2;
	margin-bottom: 10px;
}

.signup__lead {
	margin: 0 0 15px;
	font: 700 16px/1.5 var(--heading);
	color: var(--green-deep);
}

.signup__form input[type="email"] {
	width: 100%;
	height: 50px;
	padding: 10px 12px 8px;
	border: 0;
	border-radius: 6px;
	font: 400 16px var(--body);
}

.signup__consent {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 18px 0 36px;
	text-align: left;
	font-size: 12px;
	line-height: 18px;
}

.signup__consent input {
	appearance: none;
	flex-shrink: 0;
	width: 25px;
	height: 25px;
	margin: 0;
	border: 0;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
}

.signup__consent input:checked {
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234bbb3b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.signup__consent input:focus-visible {
	outline: 2px solid var(--green-deep);
	outline-offset: 2px;
}

.signup__consent span {
	cursor: pointer;
}

/* In a row of cards, the box keeps its own height instead of stretching to match them. */
.grid > .signup {
	align-self: start;
}

.signup__consent a {
	color: #fff;
}

.signup__form .button {
	width: 200px;
	max-width: 100%;
	padding: 12px 30px 10px;
	font-size: 14px;
}

.signup--wide {
	margin-top: 40px;
	padding: 36px 40px;
}

/* ---------- Subscribe page (matches the old page) ---------- */

.subscribe {
	padding: 20px 0 70px;
	text-align: center;
}

.subscribe__title {
	font-size: clamp(44px, 6vw, 70px);
	line-height: 1;
	color: var(--text);
	margin: 30px 0 25px;
}

.signup--page {
	max-width: 750px;
	margin: 0 auto;
	padding: 0;
	background: none;
	color: var(--text);
}

.signup--page .signup__form input[type="email"] {
	height: 65px;
	padding: 20px;
	background: var(--card);
	font-size: 21px;
	font-weight: 300;
}

.signup--page .signup__consent {
	align-items: center;
	margin: 15px 0 35px;
	color: var(--text);
}

.signup--page .signup__consent input {
	border: 0;
	border-radius: 0;
	background-color: #358829;
}

.signup--page .signup__consent input:checked {
	background-color: #358829;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.signup--page .signup__consent a {
	color: var(--text);
	text-decoration: none;
}

.signup--page .signup__form .button {
	width: 100%;
	height: 50px;
}

/* ---------- Sidebar ---------- */

.sidebar {
	display: grid;
	gap: 28px;
	align-content: start;
}

.sidebar .section-title {
	font-size: 28px;
	margin-bottom: 16px;
}

/* "Our Giveaways": Prize Runner's own monthly giveaways, image left, details right. */
.giveaway {
	display: grid;
	grid-template-columns: 100px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 10px;
	border-radius: var(--radius);
	background: var(--card);
}

.giveaway + .giveaway {
	margin-top: 12px;
}

.giveaway__image img {
	width: 100px;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 7px;
}

/* Same as the Popular This Week titles. */
.giveaway__title {
	margin: 0 0 10px;
	font: 700 21px/26px var(--heading);
}

.giveaway__title a {
	color: var(--text);
	text-decoration: none;
}

.giveaway__title a:hover {
	opacity: 0.8;
}

.giveaway__button {
	padding: 7px 16px 5px;
	font-size: 13px;
}

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

/* Matches the old site's Popular This Week list. */
.popular li {
	position: relative;
	display: grid;
	grid-template-columns: 65px 1fr;
	gap: 16px;
	align-items: start;
	padding: 12px 0;
	border-bottom: 1px solid var(--card);
}

/* Same gap above and below every item, whether the title takes one line or two. */
.popular li:first-child {
	padding-top: 0;
}

.popular__image {
	display: block;
}

.popular__image img {
	width: 65px;
	height: 65px;
	object-fit: cover;
	border-radius: 7px;
}

/* Tight line height so the category's letters start level with the top of the image. */
.popular .card__cats {
	margin: -1px 0 5px;
	font: 700 14px/14px var(--heading);
}

.popular__title {
	display: block;
	font: 700 21px/26px var(--heading);
	color: var(--text);
	text-decoration: none;
}

/* Subtle hovers, as on the old site. */
.popular__title {
	transition: opacity 0.15s;
}

.popular__title:hover {
	opacity: 0.8;
}

.popular .card__cats a:hover {
	text-decoration: underline;
}

.sidebar__sticky {
	position: sticky;
	top: 20px;
}

/* On competition pages, stay below the sticky ad band. */
.single .sidebar__sticky {
	top: 150px;
}

/* When logged in, WordPress's admin bar (32px) also sits at the top. */
.admin-bar .sidebar__sticky {
	top: 52px;
}

.admin-bar.single .sidebar__sticky {
	top: 182px;
}

/* ---------- Competition page ---------- */

.comp-hero {
	position: relative;
	color: #fff;
	/* Bottom = top padding + the space above the headline's letters, so the visible gaps match. */
	padding: 64px 0 71px;
	background: linear-gradient(90deg, rgba(0, 10, 0, 0.86) 0%, rgba(41, 196, 169, 0.84) 100%), var(--hero-image, none) center / cover, #0a2a17;
}

.comp-hero__title {
	color: #fff;
	font-size: clamp(36px, 5.5vw, 64px);
	max-width: 900px;
	margin-bottom: 18px;
}

.comp-hero__details {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 34px 0 0;
}

.comp-hero__details dt {
	font: 900 13px/1 var(--heading);
	text-transform: uppercase;
	color: var(--green);
	margin-bottom: 6px;
}

.comp-hero__details dd {
	margin: 0;
	font: 900 22px/1.2 var(--heading);
}

.share {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.share a,
.share button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: var(--green);
	color: #fff;
	font-size: 17px;
	cursor: pointer;
}

.share__facebook { background: #1877f2 !important; }
.share__x { background: #000 !important; }
.share__whatsapp { background: #25d366 !important; }
.share__mail { background: #555 !important; }

.share__copy.is-copied {
	background: var(--green-deep);
}

/* Full-width light grey band for the ad directly under the competition header, as on the old site. */
.ad-band {
	background: #f8f8f8;
}

/*
 * The band sticks to the top of the screen as you scroll. Desktop only: on phones a sticky
 * ad would cover too much of the screen, which Google's ad rules don't allow.
 */
@media (min-width: 781px) {
	.ad-band {
		position: sticky;
		top: 0;
		z-index: 40;
	}

	.admin-bar .ad-band {
		top: 32px;
	}
}

.ad-band .ad {
	margin: 0;
	border: 0;
}

.prose {
	font-size: 19px;
	line-height: 1.6;
	color: var(--ink);
}

.prose p {
	margin: 0 0 1em;
}

.prose a {
	color: var(--green-dark);
}

.prose h2,
.prose h3 {
	margin-top: 1.4em;
}

/* Standard pages (FAQ, Privacy Policy, T&Cs…): text sizes and spacing match the old site. */
.prose--page {
	font-size: 21px;
	line-height: 30px;
	color: var(--muted);
}

.prose--page p {
	margin: 0;
	padding-bottom: 21px;
}

.prose--page h2,
.prose--page h3,
.prose--page h4 {
	margin: 0;
	padding-bottom: 10px;
	color: var(--text);
}

.prose--page h2 {
	font-size: 26px;
	line-height: 1.1;
}

.prose--page h3 {
	font-size: 22px;
	line-height: 22px;
}

.prose--page h4 {
	font: 500 18px/18px var(--body);
}

.prose--page ul,
.prose--page ol {
	margin: 0;
	padding: 0 0 23px 21px;
	line-height: 26px;
}

.prose--page strong {
	font-weight: 700;
	color: inherit;
}

.prose--page a {
	color: var(--green);
	text-decoration: none;
}

.prose--page a:hover {
	text-decoration: underline;
}

.enter {
	margin: 32px 0;
}

.after-content__label {
	margin: 24px 0 8px;
	font: 900 13px/1 var(--heading);
	text-transform: uppercase;
	color: var(--muted);
}

.report {
	margin: 18px 0 30px;
	font-size: 14px;
}

.report a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
}

/* ---------- Add a competition form (sizes match the old form) ---------- */

.submit-form {
	margin-top: 30px;
}

.submit-form p {
	margin: 0 0 15px;
}

.submit-form label {
	display: block;
	margin-bottom: 8px;
	font-size: 18px;
	font-weight: 600;
	color: #4b5563;
}

.submit-form .req {
	color: #e00;
	font-weight: 700;
}

.submit-form input[type="email"],
.submit-form input[type="text"],
.submit-form input[type="url"],
.submit-form input[type="date"],
.submit-form input[type="time"],
.submit-form select,
.submit-form textarea {
	width: 100%;
	min-height: 60px;
	padding: 8px 16px;
	border: 1px solid #dcdcdc;
	border-radius: 5px;
	background: var(--card);
	color: #333;
	font: 300 16px var(--body);
}

.submit-form textarea {
	min-height: 200px;
	padding: 12px 16px;
}

.submit-form input:focus,
.submit-form select:focus,
.submit-form textarea:focus {
	outline: 2px solid var(--green);
	outline-offset: 1px;
	background: #fff;
}

.submit-form__pair {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 12px;
}

.submit-form__types {
	margin: 10px 0 20px;
	padding: 0;
	border: 0;
}

.submit-form__types label {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	font-weight: 400;
	cursor: pointer;
}

.submit-form__types input {
	appearance: none;
	flex-shrink: 0;
	width: 25px;
	height: 25px;
	margin: 0;
	border: 1px solid #9ca3af;
	border-radius: 4px;
	background: var(--card);
	cursor: pointer;
}

.submit-form__types input:checked {
	border-color: var(--green);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234bbb3b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.submit-form .button {
	padding: 12px 34px 9px;
	font-size: 16px;
	text-transform: none;
}

.submit-form__message {
	padding: 14px 18px;
	border-radius: 6px;
	font-weight: 600;
}

.submit-form__message--success {
	background: #e7f7e4;
	color: #23651a;
}

.submit-form__message--error {
	background: #fcebea;
	color: #a1271f;
}

/* ---------- Contact form (Ninja Forms), matching the old site ---------- */

.nf-form-cont .nf-form-content {
	max-width: none;
	padding: 0;
}

/* Not shown on the old site. */
.nf-form-cont .nf-form-fields-required {
	display: none;
}

/* Some pages have the form inside a leftover table block; keep it invisible, as before. */
.prose--page .wp-block-table {
	margin: 0;
}

.prose--page table:has(.nf-form-cont),
.prose--page table:has(.nf-form-cont) td {
	width: 100%;
	padding: 0;
	border: 0;
}

.nf-form-cont .nf-form-content .list-select-wrap select.ninja-forms-field {
	height: 50px;
	padding: 10px 40px 10px 11px;
	border: 0;
	border-radius: 6px;
	background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
	color: var(--text);
	font: 300 16px var(--body);
	appearance: none;
}

/* Ninja Forms' own arrow box, replaced by the arrow above. */
.nf-form-cont .nf-form-content .list-select-wrap > div {
	border: 0;
	background: transparent;
}

.nf-form-cont .nf-form-content .list-select-wrap > div::after {
	display: none;
}

.nf-form-cont .nf-field-label label {
	font: 700 20px/1.25 var(--body);
	color: var(--muted);
}

.nf-form-cont .nf-form-content input.ninja-forms-field:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.nf-form-cont .nf-form-content textarea.ninja-forms-field {
	height: 50px;
	padding: 10px 11px;
	border: 0;
	border-radius: 6px;
	background: var(--card);
	color: var(--text);
	font: 300 16px var(--body);
}

.nf-form-cont .nf-form-content textarea.ninja-forms-field {
	height: 200px;
}

.nf-form-cont .nf-form-content input.ninja-forms-field:focus,
.nf-form-cont .nf-form-content textarea.ninja-forms-field:focus {
	outline: 2px solid var(--green);
	background: #fff;
}

.nf-form-cont .nf-form-content input[type="button"],
.nf-form-cont .nf-form-content input[type="submit"] {
	width: 200px;
	height: 50px;
	border: 0;
	border-radius: 30px;
	background: var(--green);
	color: #fff;
	font: 500 17px var(--body);
	cursor: pointer;
	transition: background 0.15s;
}

.nf-form-cont .nf-form-content input[type="button"]:hover,
.nf-form-cont .nf-form-content input[type="submit"]:hover {
	background: var(--green-dark);
	color: #fff;
}

/* ---------- Giveaway entry form (Prize Runner Entries): green wavy box, like the sign-up box ---------- */

.prn-entry,
.prose .prn-entry {
	max-width: none;
	margin: 10px 0 21px;
	padding: 26px 28px 24px;
	border-radius: var(--radius);
	/* The wave image already mixed with the green, so it looks the same in Safari (see .section--green). */
	background: url(../images/waves-green.jpg) center / cover, var(--green);
	font-size: 21px;
	line-height: 30px;
	color: #fff;
}

.prose .prn-entry p {
	padding-bottom: 0;
}

.prose .prn-entry .prn-entry__state {
	margin-bottom: 15px;
}

.prn-entry__state {
	margin: 0 0 15px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--green-deep);
}

.prn-entry__field label {
	margin-bottom: 6px;
	font-weight: 700;
	color: #fff;
}

.prn-entry__field input {
	height: 54px;
	padding: 11px 13px;
	border: 0;
	background: #fff;
	color: #4e4e4e;
}

.prn-entry__field input:focus-visible {
	outline: 3px solid var(--green-deep);
	outline-offset: 1px;
}

.prn-entry .prn-entry__check {
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	font-size: 17px;
	line-height: 25px;
}

/* Soft see-through tick boxes (no outline); white with a green tick when ticked. */
.prn-entry .prn-entry__check input {
	/* Overpass capitals sit 2px above the middle of the line, so lift the box to line up with them. */
	position: relative;
	top: -2px;
	appearance: none;
	flex-shrink: 0;
	width: 25px;
	height: 25px;
	margin: 0;
	border: 0;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
}

.prn-entry__check input:checked {
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234bbb3b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.prn-entry__check input:focus-visible {
	outline: 2px solid var(--green-deep);
	outline-offset: 2px;
}

.prn-entry__check label {
	cursor: pointer;
}

.prn-entry__check a,
.prn-entry__agreed a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.prose .prn-entry .prn-entry__agreed {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 22px;
}

.prn-entry__submit {
	margin-top: 8px;
	font-size: 21px;
	line-height: 30px;
}

.prn-entry__submit:hover {
	background: var(--green-deep);
}

.prose .prn-entry .prn-entry__hint {
	margin-top: 15px;
	font-size: 14px;
	line-height: 20px;
	opacity: 1;
}

/* Sending / entered / error messages: a soft see-through panel on the green, white text. */
.prn-entry .prn-entry__notice,
.prn-entry .prn-entry__notice--info,
.prn-entry .prn-entry__notice--success {
	border: 0;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 17px;
	line-height: 1.45;
	font-weight: 600;
}

/* Errors a little darker, so they read as a problem. */
.prn-entry .prn-entry__notice--error {
	background: rgba(0, 22, 11, 0.28);
	color: #fff;
}

/* ---------- Page not found ---------- */

.not-found__text {
	max-width: 640px;
	margin: 0 auto 50px;
	text-align: center;
	font-size: 18px;
	line-height: 1.6;
}

.not-found__text a {
	color: var(--green);
}

/* ---------- Search box ---------- */

.search-form {
	display: flex;
	gap: 10px;
	max-width: 640px;
	margin: 26px auto 0;
}

.search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 52px;
	padding: 10px 16px;
	border: 0;
	border-radius: 30px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	font: 400 17px var(--body);
}

.search-form input[type="search"]:focus {
	outline: 2px solid var(--green);
}

.search-form .button {
	height: 52px;
}

/* ---------- Pagination ---------- */

.pagination {
	margin-top: 36px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}

.pagination .page-numbers {
	min-width: 42px;
	padding: 9px 12px 6px;
	border-radius: 20px;
	background: var(--card);
	color: var(--text);
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.pagination .current,
.pagination a.page-numbers:hover {
	background: var(--green);
	color: #fff;
}

/* ---------- Ads ---------- */

/* Light grey line above and below every ad, as on the old site. The reserved height is for the ad itself. */
.ad {
	box-sizing: content-box;
	min-height: var(--ad-h);
	padding: 15px 0;
	border-top: 1px solid var(--card);
	border-bottom: 1px solid var(--card);
	text-align: center;
	overflow: hidden;
}

/* In-feed ads already sit in a grey card, and the dark strip has its own background. */
.card--ad {
	padding: 10px;
	border: 0;
}

.section--dark .ad {
	padding: 0;
	border: 0;
}

.ad--mobile {
	display: none;
}

.layout__main > .ad,
.ad--above-enter {
	margin: 0 0 28px;
}

.prose .ad {
	margin: 1.2em 0;
}

.section--dark .ad {
	margin: 0;
	padding: 0;
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--green-deep);
	color: #8a9a90;
	padding: 54px 0;
	font-size: 15px;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

.site-footer h2 {
	color: #fff;
	font-size: 22px;
}

.site-footer .menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .menu a {
	color: var(--green);
	text-decoration: none;
	font-weight: 600;
}

.site-footer .menu a:hover {
	color: #fff;
}

.site-footer__privacy {
	padding: 0;
	border: 0;
	background: none;
	color: var(--green);
	font: 600 15px var(--body);
	cursor: pointer;
}

.site-footer__privacy:hover {
	color: #fff;
}

/* Google's privacy button is moved to the very bottom of the page (see main.js), into this extra space. */
body {
	position: relative;
}

.site-footer {
	padding-bottom: 150px;
}

/* ---------- Mid-size screens ---------- */

@media (max-width: 1080px) {
	/* minmax(0, …) stops a wide ad stretching the column past the screen edge. */
	.layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.sidebar__sticky {
		position: static;
	}
}

/* ---------- Phones and small tablets ---------- */

@media (max-width: 780px) {
	:root {
		--gutter: 16px;
	}

	.site-header__inner {
		min-height: 64px;
	}

	.site-header__logo img {
		width: 170px;
	}

	.site-header__toggle {
		display: block;
	}

	/*
	 * Phone menu: fills the screen below the header and slides down when opened.
	 * --nav-top is set by main.js to wherever the header's bottom edge is.
	 */
	.site-nav {
		position: fixed;
		top: var(--nav-top, 64px);
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 45;
		overflow-y: auto;
		background: var(--green);
		padding: 10px var(--gutter) 24px;
		visibility: hidden;
		clip-path: inset(0 0 100% 0);
		transition: clip-path 0.3s ease, visibility 0s 0.3s;
	}

	.site-nav.is-open {
		visibility: visible;
		clip-path: inset(0);
		transition: clip-path 0.3s ease, visibility 0s;
	}

	body.nav-open {
		overflow: hidden;
	}

	.site-nav .menu {
		flex-direction: column;
		gap: 0;
	}

	.site-nav a {
		display: block;
		padding: 14px 0;
		color: #fff;
		font-size: 18px;
	}

	/* The current page, in dark green so it shows on the green menu. */
	.site-nav .current-menu-item a,
	.site-nav a:hover {
		color: var(--green-deep);
	}

	.grid--2,
	.grid--3,
	.site-footer__inner,
	.comp-hero__details {
		grid-template-columns: 1fr;
	}

	.comp-hero__details {
		gap: 14px;
	}

	.card--row {
		grid-template-columns: 1fr;
	}

	.card--row .card__image {
		aspect-ratio: 550 / 317;
		min-height: 0;
		border-radius: var(--radius) var(--radius) 0 0;
	}

	.card__title,
	.card--row .card__title {
		font-size: 27px;
		line-height: 1.1;
	}

	.card--row .card__body {
		padding: 14px 12px 10px;
	}

	.section {
		padding: 40px 0;
	}

	.hero,
	.page-head {
		padding: 48px 0 40px;
		text-align: left;
	}

	.page-head__intro {
		margin-left: 0;
	}

	.hero__text {
		font-size: 17px;
	}

	.ad {
		min-height: var(--ad-h-m);
	}

	.ad--mobile {
		display: block;
	}

	.ad--mobile-top,
	.ad--mobile-bottom,
	.ad--mobile-in-article {
		margin: 16px 0;
	}

	/* Under the competition header, phones get just the square ad (MPU), not the wide banner too. */
	.ad-band .ad--feed-top {
		display: none;
	}

	/* Ads with no mobile size are desktop-only. */
	.ad[style*="--ad-h-m:0px"] {
		display: none;
	}

	.signup--wide {
		padding: 28px 22px;
	}
}

/* ---------- Members: account link, entered ticks, login and My Competitions ---------- */

.site-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.site-nav__account {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px 7px;
	border: 2px solid var(--green);
	border-radius: 30px;
	color: var(--green) !important;
	white-space: nowrap;
}

.site-nav__account:hover {
	background: var(--green);
	color: #fff !important;
}

.site-nav__account .icon {
	width: 18px;
	height: 18px;
	margin-top: -2px;
}

/* The tick: round, white, on the card image. Ticked: solid green. */
.entered-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 2px solid var(--green);
	background: #fff;
	color: var(--green);
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.entered-toggle .icon {
	width: 20px;
	height: 20px;
	stroke-width: 3;
}

.entered-toggle.is-entered {
	background: var(--green);
	color: #fff;
}

.entered-toggle:focus-visible {
	outline: 2px solid var(--green-deep);
	outline-offset: 2px;
}

.entered-toggle--card,
.entered-toggle--list {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
}

.entered-toggle--card {
	position: absolute;
	z-index: 2; /* Above the whole-card link. */
	top: 10px;
	right: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Row cards: top-right corner of the image, which takes 47.8% of the space inside the card's 10px padding. */
.card--row .entered-toggle--card {
	top: 20px;
	right: auto;
	left: calc(47.8% * 1 - 0.478 * 20px + 10px - 50px);
}

.entered-toggle--card:not(.is-entered) .icon {
	opacity: 0.35;
}

.entered-toggle--card:hover .icon {
	opacity: 1;
}

.entered-toggle--page {
	width: 100%;
	margin-top: 12px;
	padding: 13px 28px 10px;
	border-radius: 30px;
	font: 700 17px/1.4 var(--body);
	text-transform: uppercase;
}

.entered-toggle--page:not(.is-entered):hover {
	background: #f1fbef;
}

/* Ticked on a competition page: pale, so it doesn't look like a second Enter button. */
.entered-toggle--page.is-entered {
	border-color: #eaf8e7;
	background: #eaf8e7;
	color: var(--green-dark);
}

.member-toast {
	position: fixed;
	z-index: 60;
	left: 50%;
	bottom: 24px;
	width: max-content;
	max-width: calc(100% - 32px);
	padding: 14px 20px 12px;
	border-radius: var(--radius);
	background: var(--green-deep);
	color: #fff;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
	opacity: 0;
	translate: -50% 12px;
	transition: opacity 0.25s, translate 0.25s;
	pointer-events: none;
}

.member-toast.is-visible {
	opacity: 1;
	translate: -50% 0;
	pointer-events: auto;
}

.member-toast a {
	color: var(--green);
	font-weight: 700;
}

/* Log in */
.login {
	max-width: 560px;
	margin: 0 auto;
}

.login__form label[for] {
	display: block;
	margin-bottom: 8px;
	font: 900 15px/1.2 var(--heading);
	text-transform: uppercase;
}

.login__form input[type="email"] {
	width: 100%;
	height: 65px;
	padding: 20px;
	border: 0;
	border-radius: 6px;
	background: var(--card);
	font: 300 21px var(--body);
}

.login__check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 18px 0 28px;
	font-size: 17px;
	line-height: 1.4;
	cursor: pointer;
}

.login__check input {
	appearance: none;
	flex-shrink: 0;
	width: 25px;
	height: 25px;
	margin: 0;
	border: 2px solid var(--green);
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
}

.login__check input:checked {
	background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.login__check input:focus-visible {
	outline: 2px solid var(--green-deep);
	outline-offset: 2px;
}

.login__form.is-sent > :not([data-login-message]) {
	display: none;
}

.login__message {
	margin: 18px 0 0;
	padding: 16px 20px 14px;
	border-radius: var(--radius);
	font-size: 17px;
	line-height: 1.5;
}

.login__message--success,
.account__notice {
	background: #eaf8e7;
	color: #1d5c14;
}

.login__message--error {
	margin: 0 0 18px;
	background: #fdecec;
	color: #8a1f1f;
}

.login__form .login__message--error {
	margin: 18px 0 0;
}

.login__small {
	margin-top: 22px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
}

/* My Competitions */
.account > .section-title {
	margin-top: 44px;
	margin-bottom: 8px;
}

.account__notice {
	margin: 0 0 24px;
	padding: 16px 20px 14px;
	border-radius: var(--radius);
}

.account__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.account__stats li {
	padding: 18px 16px 14px;
	border-radius: var(--radius);
	background: var(--card);
	font-size: 15px;
	line-height: 1.3;
}

.account__stats strong {
	display: block;
	font: 900 34px/1 var(--heading);
	color: var(--green);
}

.account__help {
	margin: 0 0 16px;
	color: var(--muted);
	font-size: 15px;
}

.account-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.account-list__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}

.account-list__title {
	display: block;
	color: var(--text);
	font: 700 17px/1.3 var(--heading);
	text-decoration: none;
}

.account-list__title:hover {
	color: var(--green);
}

.account-list__meta {
	display: block;
	margin-top: 3px;
	color: var(--muted);
	font-size: 14px;
}

.account-list__meta.is-soon {
	color: #d63638;
	font-weight: 700;
}

.account-list__button {
	flex-shrink: 0;
	padding: 8px 18px 6px;
	font-size: 14px;
}

.account-list__done {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 6px;
	color: var(--green-dark);
	font-weight: 700;
	white-space: nowrap;
}

.account-list__done .icon {
	width: 18px;
	height: 18px;
	stroke-width: 3;
}

.account__settings {
	margin-top: 44px;
}

.link-button {
	margin-left: 16px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--muted);
	font: inherit;
	font-size: 15px;
	text-decoration: underline;
	cursor: pointer;
}

.link-button:hover {
	color: #d63638;
}

@media (max-width: 780px) {
	.site-nav {
		display: block;
	}

	/* In the phone menu: a white pill under the links. */
	.site-nav__account {
		margin-top: 18px;
		padding: 14px 22px 12px !important;
		border-color: #fff;
		background: #fff;
		color: var(--green-deep) !important;
	}

	.card--row .entered-toggle--card {
		top: 20px;
		left: auto;
		right: 20px;
	}

	.account__stats {
		grid-template-columns: 1fr;
	}

	.account__stats li {
		display: flex;
		align-items: baseline;
		gap: 10px;
	}

	.account__stats strong {
		display: inline;
		font-size: 26px;
	}
}

.account__browse {
	margin-top: 32px;
	padding: 24px 24px 20px;
	border-radius: var(--radius);
	background: var(--card);
	font-size: 17px;
	line-height: 1.5;
}

.account__browse p {
	margin: 0;
}

.account__browse-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px !important;
}

.button--outline {
	border: 2px solid var(--green);
	background: #fff;
	color: var(--green);
	padding-top: 10px;
	padding-bottom: 7px;
}

.button--outline:hover {
	background: var(--green);
}

/* Members already on the daily email list (body class set by members.js): no sign-up boxes. */
.signup__already {
	display: none;
	font-size: 19px;
}

.is-subscribed .signup:not(.signup--page),
.is-subscribed .signup-mobile,
.is-subscribed .sidebar__signup,
.is-subscribed .signup--page .signup__form,
.is-subscribed .subscribe > .container > .subscribe__title {
	display: none !important;
}

.is-subscribed .signup__already {
	display: block;
}

/* Overpass capitals sit a little above the middle of the line, so lift button icons to line up with them. */
.button .icon,
.entered-toggle--page .icon {
	position: relative;
	top: -0.12em;
}

/* Giveaway entry box once a member has entered today: a green "done" panel instead of the form. */
.prn-entry[data-entered="today"] .prn-entry__notice {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 6px 0 0;
	padding: 16px 18px 14px;
	border: 0;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 19px;
	line-height: 1.4;
	font-weight: 600;
}

.prn-entry[data-entered="today"] .prn-entry__notice::before {
	content: "";
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Logged-in members don't need Subscribe in the main menu (body class set by members.js). */
.is-member .site-nav li:has(> a[href$="/subscribe/"]) {
	display: none;
}

.site-nav__account-in,
.is-member .site-nav__account-out {
	display: none;
}

.is-member .site-nav__account-in {
	display: inline;
}

/*
 * Ad between paragraphs: a soft grey panel the width of the text, so ads of any size look contained.
 * The paragraph above already leaves 21px, so no top margin: the same space above and below.
 */
.prose .ad--in-article {
	margin: 3px 0 24px;
	box-sizing: border-box;
	padding: 20px;
	border: 0;
	border-radius: var(--radius);
	background: #f8f8f8;
}

/* The Above Enter ad follows the text (21px below it already) and leads into the Enter button: 26px each side. */
.ad.ad--above-enter {
	margin: 3px 0 0;
}

.ad--above-enter + .enter {
	margin-top: 26px;
}

/* On our giveaways the same ad sits inside the text, just above the entry box: same spacing. */
.prose .ad.ad--above-enter {
	margin: 3px 0 0;
}

.prose .ad--above-enter + .prn-entry {
	margin-top: 26px;
}

@media (max-width: 780px) {
	.prose .ad--in-article {
		/* Phones: no panel, just the thin grey lines above and below, like the other ads. */
		padding: 15px 0;
		border-top: 1px solid var(--card);
		border-bottom: 1px solid var(--card);
		border-radius: 0;
		background: none;
	}
}

/*
 * Stacked layout, competition pages, members on the daily email: there's no sign-up box between the
 * post's last ad and the sidebar's first. Reorder the sidebar so ads never sit together:
 * post's last ad, Our Competitions, Sidebar Top ad, Popular This Week, Sidebar 2nd ad. The small sidebar
 * banner (the lowest earner) is left out here, as it would otherwise have to sit next to another ad.
 */
@media (max-width: 1080px) {
	.single.is-subscribed .sidebar__ours {
		order: -3;
	}

	.single.is-subscribed .sidebar > .ad--sidebar-top {
		order: -2;
	}

	.single.is-subscribed .sidebar > .ad--sidebar-small {
		display: none;
	}

	.single.is-subscribed .sidebar__popular {
		order: -1;
	}
}

/* Under a light grey page header (Closing Soon) the ad band needs a line to separate the two. */
.page-head + .ad-band {
	border-top: 1px solid var(--line);
}

/* Long web addresses in page text (e.g. the Privacy Policy) wrap instead of running off a phone screen. */
.prose a {
	overflow-wrap: anywhere;
}

/*
 * The logo's lowercase letters sit low in the image, so a centred menu looks a few pixels high next to it.
 * Nudge the menu (and My Comps button) down to line up with the bulk of the logo. Desktop only:
 * on phones the menu is the full-screen panel.
 */
@media (min-width: 781px) {
	.site-nav {
		position: relative;
		top: 3px;
	}
}

/* My Comps: text centred inside the button, and the whole button lifted 2px so its text lines up with the other menu items. */
.site-nav__account {
	position: relative;
	top: -1.5px;
	padding-top: 8.5px;
	padding-bottom: 7.5px;
}

.site-nav__account .icon {
	margin-top: -1px;
}

/*
 * Phone menu button: the icon sat on a text baseline, above the button's centre. Centre it, then nudge it
 * down 2px to line up with the bulk of the logo, like the desktop menu.
 */
.site-header__toggle {
	line-height: 0;
	position: relative;
	top: 2px;
}

.site-header__toggle .icon {
	display: block;
}

.site-header__toggle[aria-expanded="true"] .icon-menu,
.site-header__toggle .icon-close {
	display: none;
}

.site-header__toggle[aria-expanded="true"] .icon-close {
	display: block;
}

/* Space under the share buttons (and report link) before the ad, whether or not the report link is there. */
.after-content {
	margin-bottom: 30px;
}

.after-content > :last-child {
	margin-bottom: 0;
}

/*
 * Add a competition, closing date and time on phones: iPhone Safari gives date/time boxes a fixed
 * minimum width, which pushed the time off the screen. Let them shrink to their column (tapping
 * still opens the iPhone's own date and time pickers), with the value aligned left like other fields.
 */
.submit-form__pair input {
	min-width: 0;
	-webkit-appearance: none;
	appearance: none;
	text-align: left;
}

.submit-form__pair input::-webkit-date-and-time-value {
	text-align: left;
}

/* After a giveaway entry by someone not logged in: offer a free account (members.js). */
.prc-join {
	margin-top: 14px;
	padding: 18px 20px;
	border-radius: var(--radius);
	background: rgba(0, 22, 11, 0.16);
	color: #fff;
	animation: prc-join-in 0.35s ease-out both;
	animation-delay: 0.6s;
}

@keyframes prc-join-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.prc-join { animation: none; }
}

.prose .prn-entry .prc-join p {
	margin: 0;
	padding: 0;
}

.prose .prn-entry .prc-join__title {
	margin-bottom: 4px;
	font: 700 20px/1.3 var(--heading);
}

.prose .prn-entry .prc-join__text,
.prose .prn-entry .prc-join__status {
	font-size: 16px;
	line-height: 1.5;
}

.prose .prn-entry .prc-join__status {
	margin-top: 10px;
	font-weight: 600;
}

.prc-join__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	margin: 14px 0 10px;
}

.prc-join__button {
	padding: 11px 22px 9px;
	border: 0;
	border-radius: var(--prn-radius, 6px);
	background: #fff;
	color: var(--green-deep);
	font: 700 17px/1.3 var(--heading);
	cursor: pointer;
}

.prc-join__button:hover {
	background: var(--green-deep);
	color: #fff;
}

.prc-join__button:disabled {
	opacity: 0.6;
	cursor: wait;
}

.prc-join__skip {
	padding: 4px 0;
	border: 0;
	background: none;
	color: #fff;
	font: inherit;
	font-size: 15px;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.prose .prn-entry .prc-join__small {
	font-size: 13px;
	line-height: 1.45;
}

.prose .prn-entry .prc-join__small a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* "You're subscribed!" page: invite new subscribers to make an account. Hidden for people already logged in. */
.join-panel {
	padding-bottom: 0;
}

.join-panel__box {
	max-width: 760px;
	margin: 0 auto;
	padding: 34px 40px 30px;
	border-radius: var(--radius);
	background: var(--card);
}

.join-panel__title {
	margin: 0 0 14px;
	font-size: clamp(24px, 3vw, 30px);
	line-height: 1.2;
}

.join-panel__list {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	font-size: 17px;
	line-height: 1.5;
}

.join-panel__list li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 6px;
}

.join-panel__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.join-panel .login {
	max-width: none;
}

.join-panel .login__form input[type="email"] {
	margin-bottom: 18px;
	background: #fff;
}

.is-member .join-panel {
	display: none;
}

@media (max-width: 600px) {
	.join-panel__box {
		padding: 26px 20px 22px;
	}
}
