/*
 * WordCamp Pune 2027 — site CSS (Twenty Twenty-Five).
 * GENERATED from scss/ — edit the partials, then run `npm run build`.
 * See docs/developer-guide.md for the guidelines: colours come from theme slots,
 * nothing editor-settable lives here.
 *
 *   1. Links, buttons, inputs   5. Homepage sections
 *   2. Header                   6. Search results
 *   3. Cards (sponsors, search) 7. Footer
 *   4. Homepage hero            8. Announcement strip
 *                               9. Ticket card
 *                              10. 404 page
 *                              11. Info card
 *                              12. Blog index
 *                              13. Reduced motion
 */
/* ==== 1. Links, buttons, inputs =========================================== */
a:where(:not(.wp-element-button)) {
	text-decoration-color: var(--wp--preset--color--accent-2);
	text-decoration-thickness: 2px;
	text-underline-offset: .2em;
}

a:where(:not(.wp-element-button)):hover {
	text-decoration-color: var(--wp--preset--color--accent-1);
}

a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-1);
	outline-offset: 2px;
}

/* !important beats WordPress's block colour classes. */
body .wp-block-button__link,
body .wp-element-button {
	background-color: var(--wp--preset--color--accent-2) !important;
	color: var(--wp--preset--color--contrast) !important;
	border-color: var(--wp--preset--color--accent-2) !important;
	transition: background-color .15s ease, color .15s ease;
}

body .wp-block-button__link:hover,
body .wp-element-button:hover {
	background-color: var(--wp--preset--color--accent-1) !important;
	color: var(--wp--preset--color--base) !important;
	border-color: var(--wp--preset--color--accent-1) !important;
}

body .wp-block-button__link:focus-visible,
body .wp-element-button:focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}

/* Site Editor → Styles → Blocks → Buttons sets the accent-2 background on the
   .wp-block-buttons wrapper, which painted a square behind the pill. Clear it
   there too, then this can go. */
body .wp-block-buttons {
	background-color: transparent;
}

/* Pill shape, in case another rule beats the theme's :where() radius. */
body .wp-block-button:not(.is-style-squared):not(.no-border-radius) > .wp-block-button__link {
	border-radius: 9999px;
}

/* Outline style: keep it hollow so it reads differently from the fill button. */
body .is-style-outline > .wp-block-button__link {
	background-color: transparent !important;
	color: var(--wp--preset--color--contrast) !important;
	border-color: var(--wp--preset--color--accent-2) !important;
}

body .is-style-outline > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--accent-1) !important;
	color: var(--wp--preset--color--base) !important;
	border-color: var(--wp--preset--color--accent-1) !important;
}

input[type=text],
input[type=email],
input[type=search],
textarea {
	background-color: var(--wp--preset--color--accent-5);
	border: 1px solid var(--wp--preset--color--accent-4);
	color: var(--wp--preset--color--contrast);
}

/* !important beats Jetpack's placeholder style. */
input[type=text]::placeholder,
input[type=email]::placeholder,
input[type=search]::placeholder,
textarea::placeholder {
	color: var(--wp--preset--color--contrast) !important;
	opacity: .8 !important;
}

/* Jetpack disables the pre-filled email field and fades it to 50%. */
input[type=email]:disabled {
	color: var(--wp--preset--color--contrast) !important;
	opacity: .85 !important;
	cursor: not-allowed;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=search]:focus,
textarea:focus {
	outline: 2px solid var(--wp--preset--color--accent-1);
	outline-offset: 1px;
}

/* ==== 2. Header =========================================================== */
/* Sticky; offset for the admin bar (32px, 46px under 783px, none under 601px). */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Compact header at all times. The sanitiser strips container-type and mangles
   @container, so a shrink-on-scroll header can't be done in Remote CSS. */
header.wp-block-template-part .wp-block-group.alignwide {
	padding-top: var(--wp--preset--spacing--20) !important;
	padding-bottom: var(--wp--preset--spacing--20) !important;
}

header.wp-block-template-part .wp-block-site-logo img {
	width: 56px !important;
	height: auto;
}

body.admin-bar header.wp-block-template-part {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar header.wp-block-template-part {
		top: 46px;
	}
}

@media (max-width: 600px) {
	body.admin-bar header.wp-block-template-part {
		top: 0;
	}
}

header.wp-block-template-part .wp-block-site-title {
	font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.25rem);
	white-space: nowrap;
}

header.wp-block-template-part .wp-block-site-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

/* Saffron bar grows in on hover and stays under the current page. */
header.wp-block-template-part .wp-block-navigation-item__content {
	text-decoration: none !important;
	padding-bottom: 4px;
	transition: background-size .2s ease, color .2s ease;
}

header.wp-block-template-part .wp-block-navigation-item__content:hover,
header.wp-block-template-part .wp-block-navigation-item__content:focus-visible,
header.wp-block-template-part .current-menu-item > .wp-block-navigation-item__content {
	background-size: 100% 3px;
	color: var(--wp--preset--color--accent-1);
}

/* Add the class nav-cta to a menu item to make it a button. */
header.wp-block-template-part .nav-cta > .wp-block-navigation-item__content {
	padding: .45em 1.1em;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	line-height: 1.2;
	transition: background-color .15s ease, color .15s ease;
}

header.wp-block-template-part .nav-cta > .wp-block-navigation-item__content:hover,
header.wp-block-template-part .nav-cta > .wp-block-navigation-item__content:focus-visible,
header.wp-block-template-part .nav-cta.current-menu-item > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
}

/* Phones: smaller logo. */
@media (max-width: 600px) {
	header.wp-block-template-part .wp-block-site-logo img {
		width: 52px !important;
		height: auto;
	}
}

/* Phone menu overlay. !important beats WordPress's overlay rules. */
header.wp-block-template-part .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch !important;
	padding-top: var(--wp--preset--spacing--40) !important;
}

header.wp-block-template-part .is-menu-open .wp-block-navigation__container {
	align-items: stretch !important;
	gap: 0 !important;
	width: 100%;
}

header.wp-block-template-part .is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--accent-4);
}

header.wp-block-template-part .is-menu-open .wp-block-navigation-item__content {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: .9rem 0 !important;
	background: none;
	font-size: 1.375rem;
}

header.wp-block-template-part .is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent-1);
}

/* No focus box on menu links; keyboard focus gets an underline below. */
header.wp-block-template-part .is-menu-open .wp-block-navigation-item,
header.wp-block-template-part .is-menu-open .wp-block-navigation-item__content,
header.wp-block-template-part .is-menu-open .wp-block-navigation-item__content:focus,
header.wp-block-template-part .is-menu-open .wp-block-navigation-item__content:focus-visible,
header.wp-block-template-part .is-menu-open .wp-block-navigation-item:focus-within {
	outline: none !important;
	box-shadow: none !important;
}

header.wp-block-template-part .is-menu-open .wp-block-navigation-item__content:focus-visible {
	outline: none;
	box-shadow: none;
	color: var(--wp--preset--color--accent-1);
	text-decoration-line: underline !important;
	text-decoration-color: var(--wp--preset--color--accent-2) !important;
	text-decoration-thickness: 3px !important;
	text-underline-offset: .3em;
}

header.wp-block-template-part .is-menu-open .nav-cta {
	margin-top: var(--wp--preset--spacing--30);
	border-bottom: 0;
}

header.wp-block-template-part .is-menu-open .nav-cta > .wp-block-navigation-item__content {
	padding: .85rem 1.25rem !important;
	background: var(--wp--preset--color--accent-2);
	text-align: center;
}

header.wp-block-template-part .is-menu-open .nav-cta > .wp-block-navigation-item__content:hover,
header.wp-block-template-part .is-menu-open .nav-cta > .wp-block-navigation-item__content:focus-visible,
header.wp-block-template-part .is-menu-open .nav-cta.current-menu-item > .wp-block-navigation-item__content {
	text-decoration: none !important;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
}

/* ==== 3. Cards: sponsors and search ======================================= */
/* Cards: sponsor tiles and search results share one look. */
body:not(.search) .wcb_sponsor,
.search .wp-block-query.alignfull .wp-block-post {
	border: 1px solid var(--wp--preset--color--accent-4);
	border-radius: 12px;
	background-color: var(--wp--preset--color--base);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body:not(.search) .wcb_sponsor:hover,
body:not(.search) .wcb_sponsor:focus-within,
.search .wp-block-query.alignfull .wp-block-post:hover,
.search .wp-block-query.alignfull .wp-block-post:focus-within {
	border-color: var(--wp--preset--color--accent-2);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: no-preference) {
	body:not(.search) .wcb_sponsor:hover,
	  .search .wp-block-query.alignfull .wp-block-post:hover {
		transform: translateY(-3px);
	}
}

/* Sponsor tiles: logos in a 3:1 box (WordPress forces 16:9). */
body:not(.search) .wp-block-post-template:has(.wcb_sponsor) {
	gap: 1rem;
}

body:not(.search) .wcb_sponsor {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem 2rem;
}

body:not(.search) .wcb_sponsor .wp-block-post-featured-image {
	width: 100%;
	margin: 0;
}

body:not(.search) .wcb_sponsor img {
	aspect-ratio: 3/1 !important;
	width: 100% !important;
	height: auto;
	max-height: 90px;
	object-fit: contain;
}

/* Two logos per row on phones. */
@media (max-width: 600px) {
	.page-slug-sponsors .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
	
	body:not(.search) .wcb_sponsor {
		padding: 1rem;
	}
}

/* ==== 4. Homepage hero ==================================================== */
.hero-wrap {
	padding-block: clamp(3rem, 6vw, 6rem) clamp(4.5rem, 9vw, 8rem);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%);
}

/* Photo: shadow and caption box. */
.hero-wrap .wp-block-cover {
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 18px 40px rgba(0, 0, 0, 0.14);
	transition: transform .35s ease, box-shadow .35s ease;
}

.hero-wrap .wp-block-cover__inner-container p {
	display: inline-block;
	padding: .3em .9em;
	border-radius: 12px;
	background-color: rgba(0, 0, 0, 0.45);
	text-align: left !important;
}

/* Hover: deeper shadow; the veil fades out. */
.hero-wrap .wp-block-cover__background {
	transition: opacity .35s ease;
}

.hero-wrap .wp-block-cover:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08), 0 26px 50px rgba(0, 0, 0, 0.18);
}

.hero-wrap .wp-block-cover:hover .wp-block-cover__background {
	opacity: 0 !important;
}

/* Motion only if the visitor allows it. */
@media (prefers-reduced-motion: no-preference) {
	.hero-wrap .wp-block-cover__image-background {
		transition: transform .8s ease;
	}
	
	.hero-wrap .wp-block-cover:hover {
		transform: translateY(-4px);
	}
	
	.hero-wrap .wp-block-cover:hover .wp-block-cover__image-background {
		transform: scale(1.06);
	}
}

@media (max-width: 781px) {
	.hero-wrap {
		clip-path: polygon(0 0, 100% 0, 100% 100%, 0 97%);
	}
	
	/* Photo above the text when the columns stack. */
	.hero-wrap .wp-block-columns {
		flex-direction: column-reverse;
	}
	
	/* 4:3 photo instead of 496px tall. */
	.hero-wrap .wp-block-cover {
		min-height: 0 !important;
		aspect-ratio: 4/3 !important;
	}
}

@media (max-width: 480px) {
	.hero-wrap .wp-block-buttons,
	  .hero-wrap .wp-block-button {
		width: 100%;
	}
	
	.hero-wrap .wp-block-button__link {
		display: block;
		text-align: center;
	}
}

/* ==== 5. Homepage sections ================================================ */
/* Space between the sections below the hero. */
body.home .wp-block-post-content > * + * {
	margin-top: clamp(2.75rem, 6vw, 5.5rem);
}

/* Image zoom on hover. */
body.home .wp-block-post-content > .wp-block-columns:not(.alignfull) .wp-block-image {
	overflow: hidden;
	border-radius: 12px;
}

@media (prefers-reduced-motion: no-preference) {
	body.home .wp-block-post-content > .wp-block-columns:not(.alignfull) .wp-block-image img {
		transition: transform .6s ease;
	}
	
	body.home .wp-block-post-content > .wp-block-columns:not(.alignfull) .wp-block-image:hover img {
		transform: scale(1.04);
	}
}

/* ==== 6. Search results =================================================== */
/* Search results as cards. Main results only (full-width query), not "More posts". */
.search .wp-block-query.alignfull > .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
	box-sizing: border-box;
	max-width: var(--wp--style--global--wide-size);
	margin: var(--wp--preset--spacing--40) auto var(--wp--preset--spacing--60) !important;
	padding-left: var(--wp--style--root--padding-left);
	padding-right: var(--wp--style--root--padding-right);
}

.search .wp-block-query.alignfull .wp-block-post {
	display: block;
	position: relative;
	margin: 0 !important;
	padding: 0;
}

.search .wp-block-query.alignfull .wp-block-post > .wp-block-group {
	box-sizing: border-box;
	height: 100%;
	padding: 1.25rem 1.5rem !important;
}

.search .wp-block-query.alignfull .wp-block-post-featured-image {
	display: none;
}

/* Description trimmed to 3 lines. */
.search .wp-block-query.alignfull .wp-block-post-excerpt,
.search .wp-block-query.alignfull .wp-block-post-content {
	margin: .6rem 0 0 !important;
	padding: 0 !important;
	font-size: .95rem !important;
	line-height: 1.5;
}

.search .wp-block-query.alignfull .wp-block-post-content > * {
	display: none;
}

.search .wp-block-query.alignfull .wp-block-post-excerpt__more-text {
	display: none;
}

.search .wp-block-query.alignfull .wp-block-post-excerpt__excerpt,
.search .wp-block-query.alignfull .wp-block-post-content > p:first-of-type {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	max-width: none;
	margin: 0;
}

.search .wp-block-query.alignfull .wp-block-post-title {
	margin: 0;
	font-size: 1.25rem !important;
	line-height: 1.3;
}

.search .wp-block-query.alignfull .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

/* Stretch the title link over the whole card. */
.search .wp-block-query.alignfull .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 12px;
}

.search .wp-block-query.alignfull .wp-block-post-date {
	margin-top: .5rem !important;
	color: var(--wp--preset--color--contrast);
	font-size: .85rem !important;
}

/* Sits above the stretched title link so the date stays clickable. */
.search .wp-block-query.alignfull .wp-block-post-date a {
	position: relative;
	z-index: 1;
	color: inherit;
	text-decoration: none;
}

.search .wp-block-query.alignfull .wp-block-post > .wp-block-group::before {
	display: block;
	margin-bottom: .4rem;
	color: var(--wp--preset--color--accent-1);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.search .wp-block-query.alignfull .type-page > .wp-block-group::before {
	content: "Page";
}

.search .wp-block-query.alignfull .type-post > .wp-block-group::before {
	content: "News";
}

.search .wp-block-query.alignfull .type-wcb_sponsor > .wp-block-group::before {
	content: "Sponsor";
}

.search .wp-block-query.alignfull .type-wcb_speaker > .wp-block-group::before {
	content: "Speaker";
}

.search .wp-block-query.alignfull .type-wcb_session > .wp-block-group::before {
	content: "Session";
}

.search .wp-block-query.alignfull .type-wcb_organizer > .wp-block-group::before {
	content: "Organizer";
}

.search .wp-block-query.alignfull .wp-block-post:hover .wp-block-post-title a {
	color: var(--wp--preset--color--accent-1);
}

/* ==== 7. Footer =========================================================== */
/* Space above the footer on every page. The theme leaves only its 1.2rem block gap. */
footer.wp-block-template-part {
	margin-block-start: var(--wp--preset--spacing--60);
}

footer.wp-block-template-part > .wp-block-group.has-background {
	background-color: var(--wp--preset--color--accent-1) !important;
}

footer.wp-block-template-part .has-text-color:not(.wp-element-button):not(.wp-block-button__link) {
	color: var(--wp--preset--color--base) !important;
}

footer.wp-block-template-part a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--base);
}

footer.wp-block-template-part a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--accent-2);
	text-decoration-color: var(--wp--preset--color--accent-2);
}

footer.wp-block-template-part a:focus-visible {
	outline-color: var(--wp--preset--color--accent-2);
}

/* Section labels; the first column's heading stays large. */
footer.wp-block-template-part .wp-block-column:not(:first-child) > .wp-block-heading {
	font-size: .85rem !important;
	letter-spacing: .12em;
	text-transform: uppercase;
}

footer.wp-block-template-part .wp-block-site-tagline {
	color: var(--wp--preset--color--accent-2);
	font-weight: 500;
}

/* Add the class past-wc-nav to the Past WordCamps menu. */
footer.wp-block-template-part .past-wc-nav .wp-block-navigation__container {
	display: flex;
	flex-wrap: wrap;
/* wraps to the column width instead of spilling into the next column */
	gap: .5rem;
}

footer.wp-block-template-part .past-wc-nav .wp-block-navigation-item__content {
	display: inline-block;
	padding: .2em .9em;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: .95rem;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

footer.wp-block-template-part .past-wc-nav .wp-block-navigation-item__content:hover,
footer.wp-block-template-part .past-wc-nav .wp-block-navigation-item__content:focus-visible {
	background-color: var(--wp--preset--color--accent-2);
	border-color: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--contrast);
}

/* Divider above the bottom row. */
footer.wp-block-template-part .alignfull.is-content-justification-space-between {
	margin-top: var(--wp--preset--spacing--40);
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--accent-4);
}

footer.wp-block-template-part .alignfull.is-content-justification-space-between p {
	font-size: .9rem !important;
}

/* Clips the transparent corners of the logo PNG. */
footer.wp-block-template-part .wp-block-site-logo img {
	border-radius: 50%;
}

/* A maroon hover would vanish on the maroon footer. */
footer.wp-block-template-part .wp-block-button__link:hover,
footer.wp-block-template-part .wp-element-button:hover {
	background-color: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--accent-1) !important;
	border-color: var(--wp--preset--color--base) !important;
}

/* Social icons: plain; each network's own colour on hover (these hexes are the networks'). */
footer.wp-block-template-part .wp-social-link {
	background-color: transparent !important;
	color: inherit !important;
	transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

footer.wp-block-template-part .wp-social-link svg {
	fill: currentColor;
}

footer.wp-block-template-part .wp-social-link:hover,
footer.wp-block-template-part .wp-social-link:focus-within {
	color: #FFFFFF !important;
}

@media (prefers-reduced-motion: no-preference) {
	footer.wp-block-template-part .wp-social-link:hover {
		transform: translateY(-2px);
	}
}

footer.wp-block-template-part .wp-social-link-whatsapp:hover,
footer.wp-block-template-part .wp-social-link-whatsapp:focus-within {
	background-color: #25D366 !important;
}

footer.wp-block-template-part .wp-social-link-meetup:hover,
footer.wp-block-template-part .wp-social-link-meetup:focus-within {
	background-color: #F6405F !important;
}

footer.wp-block-template-part .wp-social-link-instagram:hover,
footer.wp-block-template-part .wp-social-link-instagram:focus-within {
	background-color: #F00075 !important;
}

footer.wp-block-template-part .wp-social-link-linkedin:hover,
footer.wp-block-template-part .wp-social-link-linkedin:focus-within {
	background-color: #0D66C2 !important;
}

footer.wp-block-template-part .wp-social-link-x:hover,
footer.wp-block-template-part .wp-social-link-x:focus-within {
	background-color: #000000 !important;
}

/* Search field and button sized like the Subscribe form: same padding and a gap. */
footer.wp-block-template-part .wp-block-search__inside-wrapper {
	gap: 10px;
}

footer.wp-block-template-part .wp-block-search__input,
footer.wp-block-template-part .wp-block-search__button {
	box-sizing: border-box;
	min-height: 2.625rem;
	margin: 0;
	padding: 9px 14px;
}

/* Phones: logo and search stack. Smaller logo; search full width, left aligned
   (the theme right-aligns it once the row wraps). */
@media (max-width: 600px) {
	footer.wp-block-template-part .wp-block-group:has(> .wp-block-site-logo) {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--wp--preset--spacing--30);
	}
	
	footer.wp-block-template-part .wp-block-site-logo img {
		width: 64px !important;
		height: auto;
	}
	
	footer.wp-block-template-part .wp-block-group:has(> .wp-block-search),
	  footer.wp-block-template-part .wp-block-search {
		width: 100%;
		justify-content: flex-start;
	}
	
	/* The theme gives this group a 320px flex-basis, which is a height in a column. */
	footer.wp-block-template-part .wp-block-group:has(> .wp-block-search) {
		flex-basis: auto;
	}
}

/* Subscribe form like the search: same gap, height and text size.
   !important beats the inline font size set by Jetpack. */
footer.wp-block-template-part .wp-block-jetpack-subscriptions__form-elements {
	align-items: stretch;
	flex-wrap: wrap;
/* Subscribe drops below the field when the column is narrow */
	gap: 10px;
}

footer.wp-block-template-part .wp-block-jetpack-subscriptions__form-elements p {
	flex: 1 1 9rem;
	min-width: 0;
}

footer.wp-block-template-part .wp-block-jetpack-subscriptions__form-elements input[type=email],
footer.wp-block-template-part .wp-block-jetpack-subscriptions__form-elements button {
	box-sizing: border-box;
	min-height: 2.625rem;
}

footer.wp-block-template-part .wp-block-jetpack-subscriptions__form-elements input[type=email] {
	font-size: .875rem !important;
}

/* Small phones: email field and Subscribe button full width, stacked. */
@media (max-width: 480px) {
	footer.wp-block-template-part .wp-block-jetpack-subscriptions__form-elements {
		flex-direction: column;
		gap: 10px;
	}
	
	footer.wp-block-template-part .wp-block-jetpack-subscriptions__form-elements p,
	  footer.wp-block-template-part .wp-block-jetpack-subscriptions__form-elements input[type=email],
	  footer.wp-block-template-part .wp-block-jetpack-subscriptions__form-elements button {
		width: 100%;
		margin: 0 !important;
	}
}

/* ==== 8. Announcement strip =============================================== */
/* Class `announce` on a full-width Group. Background, text colour, padding and
   the text itself are set in the editor; this only adds what it can't. */
.announce {
	text-align: center;
/* Room before whatever follows; the editor sets the space above. */
	margin-block-end: var(--wp--preset--spacing--60);
}

.announce p {
	margin: 0;
}

.announce a:where(:not(.wp-element-button)) {
	color: inherit;
	text-decoration-color: currentColor;
	font-weight: 700;
}

/* Arrow after the link says "click". It nudges right on hover. */
.announce a:where(:not(.wp-element-button))::after {
	content: "→";
	display: inline-block;
	margin-inline-start: .25em;
	transition: transform .15s ease;
}

.announce a:where(:not(.wp-element-button)):hover::after,
.announce a:where(:not(.wp-element-button)):focus-visible::after {
	transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
	.announce a:where(:not(.wp-element-button))::after {
		transition: none;
	}
}

/* Optional row (a Row group with class announce__row) puts the pill and the
   message on one line, wrapping on phones. */
.announce__row {
	align-items: center;
	justify-content: center;
	gap: .5rem .75rem;
}

/* Small pill ahead of the message: "New", "Tickets", "Speakers". The swatches
   flip the strip's colours, so it stays readable on Accent 1. */
.announce__label {
	display: inline-block;
	padding: .15em .7em;
	border-radius: 999px;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--accent-1);
	font-size: .75em;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.5;
	text-transform: uppercase;
}

/* A small button or two sit inline with the text, wrapping on phones. */
.announce .wp-block-buttons {
	margin: 0;
	justify-content: center;
	gap: .5rem .75rem;
}

@media (max-width: 600px) {
	.announce {
		text-align: left;
	}
	
	.announce .wp-block-buttons,
	  .announce__row {
		justify-content: flex-start;
	}
}

/* ==== 9. Ticket card ====================================================== */
/* Layout borrowed from the Deccan Queen on Rails ticket card: a header, a body
   and a tinted footer. Class `ticket-card` on a Group with no padding of its own
   (usually inside a Columns block, one card per column). Colours, padding,
   radius and the text are set in the editor. The CSS gives equal heights, the
   top accent bar, the pills, the ticks and the hover.

   Inside the card, three Groups in order:
     ticket-card__header  paragraphs `ticket-card__type` and `ticket-card__state`
                          inside a Group `ticket-card__badges`, then a heading
     ticket-card__body    a description paragraph and a List of what's included
     ticket-card__footer  sand background; price paragraph `ticket-card__price`,
                          note paragraph `ticket-card__note`, a Buttons block
   Add `ticket-card-featured` for the recommended ticket. One card = one pattern;
   editors put each copy in its own column. */
.ticket-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--accent-4);
	border-top: 4px solid var(--wp--preset--color--accent-1);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ticket-card > * {
	margin-block-start: 0;
}

.ticket-card-featured {
/* Saffron instead of maroon; the ring is a shadow so the content doesn't shift. */
	border-color: var(--wp--preset--color--accent-2);
	box-shadow: 0 0 0 1px var(--wp--preset--color--accent-2), 0 10px 24px rgba(0, 0, 0, 0.08);
}

.ticket-card:hover,
.ticket-card:focus-within {
	border-color: var(--wp--preset--color--accent-2);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.ticket-card-featured:hover,
.ticket-card-featured:focus-within {
	box-shadow: 0 0 0 1px var(--wp--preset--color--accent-2), 0 10px 24px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: no-preference) {
	.ticket-card:hover {
		transform: translateY(-3px);
	}
}

/* Space after a row of cards. */
.wp-block-columns:has(.ticket-card) {
	margin-block-end: var(--wp--preset--spacing--60);
}

/* Header: pills, then the name. */
.ticket-card__header > * {
	margin-block-start: 0;
}

.ticket-card__badges {
	margin-bottom: var(--wp--preset--spacing--30);
}

.ticket-card__type,
.ticket-card__state {
	margin: 0;
	padding: .3rem .7rem;
	border-radius: 9999px;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .05em;
	line-height: 1;
	text-transform: uppercase;
}

.ticket-card__type {
	color: var(--wp--preset--color--accent-1);
	background: var(--wp--preset--color--accent-5);
}

.ticket-card__state {
	border: 1px solid var(--wp--preset--color--accent-4);
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
}

.ticket-card__header :is(h2, h3, h4) {
	margin: 0;
}

/* Body takes the spare height so the footers line up across cards. */
.ticket-card__body {
	flex: 1;
}

.ticket-card__body > p {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-size: .92rem;
	line-height: 1.6;
}

/* Round maroon tick badges instead of bullets (drawn in CSS: no image to be stripped). */
.ticket-card ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ticket-card ul li {
	position: relative;
	padding-left: 1.9em;
	font-size: .9rem;
	line-height: 1.5;
}

.ticket-card ul li + li {
	margin-top: .65em;
}

.ticket-card ul li::before {
	content: "✓";
	position: absolute;
	top: .2em;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.25em;
	height: 1.25em;
	border-radius: 50%;
	font-size: .75em;
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--base);
	background: var(--wp--preset--color--accent-1);
}

/* Footer: tinted band with the price and the button. */
.ticket-card__footer {
	border-top: 1px solid var(--wp--preset--color--accent-4);
}

.ticket-card__footer > * {
	margin-block-start: 0;
}

.ticket-card__price {
	margin: 0;
	font-size: 1.55rem;
	font-weight: 700;
	line-height: 1.2;
}

.ticket-card__note {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-size: .75rem;
}

.ticket-card .wp-block-button,
.ticket-card .wp-block-button__link {
	width: 100%;
	text-align: center;
}

/* ==== 10. 404 page ======================================================== */
/* Scoped to WordPress's body.error404 so nothing else is touched. */
/* Illustration (it already says "404" and "you're lost"): add error404-image to the Image block. */
.error404 .error404-image {
	margin: 0 auto var(--wp--preset--spacing--40);
}

.error404 .error404-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

.error404 .error404-intro {
	text-align: center;
}

/* Search sits on a sand panel; the input is a pill like the buttons. */
.error404 .error404-search {
	box-sizing: border-box;
	max-width: 640px;
	margin: var(--wp--preset--spacing--40) auto;
	padding: var(--wp--preset--spacing--30);
	border-radius: 12px;
	background: var(--wp--preset--color--accent-5);
}

.error404 .error404-search .wp-block-search__input {
	border-radius: 9999px;
	padding-left: 1.25rem;
}

.error404 .error404-search .wp-block-search__button {
	border-radius: 9999px;
}

/* Phones: buttons full width, tighter search panel. */
@media (max-width: 600px) {
	.error404 .error404-buttons .wp-block-button,
	  .error404 .error404-buttons .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
	
	.error404 .error404-search {
		padding: var(--wp--preset--spacing--20);
	}
}

/* ==== 11. Info card ======================================================= */
/* Venue, travel and contact details. Class `info-card` on a Group with no padding
   of its own (usually inside a Columns block, one card per column). Colours,
   padding, radius and the text are set in the editor. The CSS gives the top
   accent bar, equal heights, and the label/value rows.

   Inside the card, in order:
     info-card__header  a heading (what the card is: "Venue", "Getting here")
     info-card__body    one Group `info-card__row` per detail, each with a
                        paragraph `info-card__label` and a paragraph
                        `info-card__value`
     info-card__footer  optional; accent 5 background, a Buttons block
                        ("Open in Maps")
   One card = one pattern. */
.info-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--accent-4);
	border-top: 4px solid var(--wp--preset--color--accent-1);
}

.info-card > * {
	margin-block-start: 0;
}

/* Space after a row of cards. */
.wp-block-columns:has(.info-card) {
	margin-block-end: var(--wp--preset--spacing--60);
}

.info-card__header > * {
	margin-block-start: 0;
}

.info-card__header :is(h2, h3, h4) {
	margin: 0;
}

/* Body takes the spare height so the footers line up across cards. */
.info-card__body {
	flex: 1;
}

.info-card__row {
	padding-block: .85rem;
}

.info-card__row:first-child {
	padding-block-start: 0;
}

.info-card__row:last-child {
	padding-block-end: 0;
}

.info-card__row + .info-card__row {
	border-top: 1px dashed var(--wp--preset--color--accent-4);
}

.info-card__row > * {
	margin-block-start: 0;
}

.info-card__label {
	margin: 0 0 .2rem;
	color: var(--wp--preset--color--accent-1);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.info-card__value {
	margin: 0;
	font-size: .95rem;
	line-height: 1.55;
}

/* Footer: tinted band with a full-width button. */
.info-card__footer {
	border-top: 1px solid var(--wp--preset--color--accent-4);
}

.info-card__footer > * {
	margin-block-start: 0;
}

.info-card .wp-block-button,
.info-card .wp-block-button__link {
	width: 100%;
	text-align: center;
}

/* ==== 12. Blog index ====================================================== */
/* Updates page (WordPress's body.blog). Each post becomes a card that matches
   the sponsor and search cards. Cards are scoped to .blog; the image fix also
   covers archives (.archive, e.g. category pages). */
.blog .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: var(--wp--preset--spacing--40);
	padding: 0;
	list-style: none;
}

.blog .wp-block-post-template > .wp-block-post {
	margin: 0;
	padding: var(--wp--preset--spacing--30);
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--accent-4);
	border-radius: 12px;
	background-color: var(--wp--preset--color--base);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.blog .wp-block-post-template > .wp-block-post:hover,
.blog .wp-block-post-template > .wp-block-post:focus-within {
	border-color: var(--wp--preset--color--accent-2);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: no-preference) {
	.blog .wp-block-post-template > .wp-block-post:hover {
		transform: translateY(-3px);
	}
}

/* Thumbnails keep their own proportions: the images carry text, so cropping
   cuts words off. !important beats the 3:2 crop the archive template sets inline. */
.blog .wp-block-post-template .wp-block-post-featured-image,
.archive .wp-block-post-template .wp-block-post-featured-image {
	margin: 0;
}

.blog .wp-block-post-template .wp-block-post-featured-image img,
.archive .wp-block-post-template .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: auto !important;
	border-radius: 8px;
	object-fit: contain !important;
}

/* Title: maroon, underline only on hover. */
.blog .wp-block-post-template .wp-block-post-title a {
	color: var(--wp--preset--color--accent-1);
	text-decoration: none;
}

.blog .wp-block-post-template .wp-block-post-title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent-2);
	text-decoration-thickness: 2px;
	text-underline-offset: .2em;
}

/* Image on top of the text at every width, so the cards work in a grid.
   !important beats the 25% / 75% basis the template sets inline. */
.blog .wp-block-post-template .wp-block-columns {
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
}

.blog .wp-block-post-template .wp-block-column {
	flex-basis: auto !important;
	width: 100%;
}

/* ==== 13. Reduced motion ================================================== */
/* Last in the cascade on purpose. Visitors who ask for less motion get no
   transitions at all (colour, border and opacity fades included), instead of
   guarding each one. !important is needed to beat the selectors above. */
@media (prefers-reduced-motion: reduce) {
	*,
	  ::before,
	  ::after {
		transition-duration: .01ms !important;
		transition-delay: 0 !important;
		animation-duration: .01ms !important;
		animation-delay: 0 !important;
		animation-iteration-count: 1 !important;
	}
}