/* Plenar: content pages (about, venue, tickets, partners, FAQ, speak, contact, legal, page and page-plain). */

/* ---------- Plain page head (S-PAGE-HEAD): label, title, lede on the right ---------- */

.pl-page-head.pl-phead {
	padding-top: 8rem;
}

.pl-phead-grid {
	display: grid;
	gap: 2rem;
}

.pl-phead-title {
	margin-top: 1.5rem;
	font-size: var(--text-display-xl);
}

.pl-phead-lede {
	max-width: 28rem;
	font-size: 1.125rem;
	line-height: 1.625;
	color: var(--color-graphite);
}

.pl-phead-lede a {
	color: inherit;
}

/* Search results head: the query as the title, a step smaller. */
.pl-phead-title-sm {
	font-size: var(--text-display-lg);
}

.pl-shell > .pl-venue-hero {
	margin-top: 3rem;
}

.pl-venue-hero {
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-panel);
}

@media (width >= 48rem) {

	.pl-page-head.pl-phead {
		padding-top: 11rem;
	}

	.pl-phead-grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: end;
	}

	.pl-phead-main {
		grid-column: span 8 / span 8;
	}

	.pl-phead-lede,
	.pl-phead-grid > .pl-search {
		grid-column: span 4 / span 4;
	}

	.pl-shell > .pl-venue-hero {
		margin-top: 4rem;
	}

	.pl-venue-hero {
		aspect-ratio: 21 / 9;
	}
}

/* ---------- Glass page hero (S-HERO-GLASS) ---------- */

.pl-ghero {
	margin-top: 0.5rem;
	display: flex;
	min-height: 68svh;
	flex-direction: column;
}

.pl-ghero::before {
	content: "";
	position: absolute;
	right: -10%;
	bottom: -30%;
	z-index: -1;
	width: min(80vw, 46rem);
	height: min(80vw, 46rem);
	background: rgba(255, 255, 255, 0.07);
	-webkit-mask: var(--sparkle) center / contain no-repeat;
	mask: var(--sparkle) center / contain no-repeat;
	pointer-events: none;
}

.pl-ghero-star {
	display: none;
	top: 34%;
	right: 12%;
	width: 2rem;
	height: 2rem;
}

.pl-ghero-in {
	margin-top: auto;
	display: grid;
	gap: 2rem;
	padding-top: 8rem;
	padding-bottom: 2.5rem;
}

.pl-ghero-title {
	margin-top: 1.5rem;
	font-size: var(--text-display-xl);
}

.pl-ghero-lede {
	max-width: 28rem;
	font-size: 1.125rem;
	line-height: 1.625;
	color: rgba(255, 255, 255, 0.8);
}

/* The light panel (speakers): ink type, the sparkle in white at 45%. */
.pl-ghero.glass-light::before {
	background: rgba(255, 255, 255, 0.45);
}

.pl-ghero.glass-light .pl-ghero-lede {
	color: rgba(10, 15, 12, 0.75);
}

@media (width >= 48rem) {

	.pl-ghero {
		margin-top: 0.75rem;
		min-height: 78svh;
	}

	.pl-ghero-star {
		display: block;
	}

	.pl-ghero-in {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: end;
		padding-bottom: 3.5rem;
	}

	.pl-ghero-main {
		grid-column: span 8 / span 8;
	}

	.pl-ghero-lede {
		grid-column: span 4 / span 4;
	}
}

/* ---------- FAQ accordion (S-FAQ, 4.24) ---------- */

.pl-faq-grid {
	display: grid;
	gap: 2.5rem;
}

.pl-faq-list {
	border-bottom: 1px solid var(--color-line);
}

.pl-faq-item {
	border-top: 1px solid var(--color-line);
}

/* The editor (and a page without the script) shows the Details block itself. */
details.pl-faq-item > summary {
	cursor: pointer;
	padding-block: 1.5rem;
	font-size: 1.25rem;
	font-weight: 500;
	letter-spacing: -0.03em;
}

details.pl-faq-item > :not(summary) {
	padding-bottom: 2rem;
	color: var(--color-graphite);
}

.pl-faq-q {
	margin: 0;
	font: inherit;
}

.pl-faq-btn {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.5rem 0;
	text-align: left;
	background: none;
	border: 0;
	color: inherit;
}

.pl-faq-t {
	font-size: 1.25rem;
	line-height: 1.3;
	font-weight: 500;
	letter-spacing: -0.03em;
}

.pl-faq-item .fold-icon {
	display: grid;
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	place-items: center;
	border: 1px solid var(--color-line);
	border-radius: 999px;
	transition: transform 0.5s, background-color 0.3s, border-color 0.3s;
}

.pl-faq-item .fold-icon svg {
	width: 0.875rem;
	height: 0.875rem;
}

.pl-faq-a {
	max-width: 42rem;
	padding-bottom: 2rem;
	font-size: 1rem;
	line-height: 1.625;
	color: var(--color-graphite);
}

.pl-faq-a a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--color-signal);
	text-underline-offset: 0.2em;
}

/* A folded answer is out of the tab order and the accessibility tree, after the fold closes. */
.pl-faq-item .fold > * {
	visibility: hidden;
	transition: visibility 0s 0.7s;
}

.pl-faq-item[data-open] .fold > * {
	visibility: visible;
	transition-delay: 0s;
}

@media (width >= 48rem) {

	.pl-faq-grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 2rem;
	}

	.pl-faq-side {
		grid-column: span 4 / span 4;
		align-self: start;
		position: sticky;
		top: 7rem;
	}

	.pl-faq-list {
		grid-column: 6 / span 7;
	}

	.pl-faq-btn {
		padding-block: 1.75rem;
	}

	.pl-faq-t {
		font-size: 1.5rem;
	}
}

/* ---------- Masonry gallery with the lightbox (4.32) ---------- */

.pl-gal-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
}

.pl-gal-title .pl-h2 {
	margin-top: 1.5rem;
}

.pl-masonry {
	margin-top: 3rem;
	columns: 2;
	column-gap: 0.75rem;
}

.pl-masonry > .pl-gal-item {
	display: block;
	margin: 0 0 0.75rem;
	overflow: hidden;
	break-inside: avoid;
	border-radius: var(--radius-card);
	background: var(--color-paper);
}

.pl-gal-item img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 1.8s var(--ease-out-soft);
}

.pl-lightbox-btn {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.pl-lightbox-btn:hover img {
	transform: scale(1.04);
}

.pl-lightbox-btn:focus-visible {
	outline: 2px solid var(--pl-focus);
	outline-offset: -2px;
}

@media (width >= 48rem) {

	.pl-masonry {
		margin-top: 4rem;
		columns: 3;
		column-gap: 1.25rem;
	}

	.pl-masonry > .pl-gal-item {
		margin-bottom: 1.25rem;
	}
}

/* The lightbox dialog (the dialog's own frame is in theme.css). */
.pl-lb-in {
	display: flex;
	height: 100%;
	flex-direction: column;
}

.pl-lb-top,
.pl-lb-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.pl-lb-top {
	padding-block: 1.25rem;
}

.pl-lb-foot {
	padding-block: 1.5rem;
}

.pl-lb-count {
	font-variant-numeric: tabular-nums;
	color: rgba(255, 255, 255, 0.6);
}

.pl-lb-stage {
	position: relative;
	display: flex;
	min-height: 0;
	flex: 1;
	align-items: center;
	justify-content: center;
	padding-inline: 1.25rem;
}

.pl-lb-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pl-lb-cap {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.7);
}

.pl-round-btn.pl-lb-btn {
	border-color: rgba(255, 255, 255, 0.25);
	color: #fff;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.pl-round-btn.pl-lb-btn:hover {
	border-color: var(--color-lime);
	background: var(--color-lime);
	color: var(--color-ink);
}

.pl-lb-btn:focus-visible {
	outline: 2px solid var(--color-lime);
	outline-offset: 2px;
}

.pl-lb-side {
	position: absolute;
	display: none;
}

.pl-lb-prev {
	left: 1rem;
}

.pl-lb-next {
	right: 1rem;
}

.pl-lb-mob {
	display: flex;
	flex: none;
	gap: 0.75rem;
}

.pl-lb-mob .pl-lb-btn {
	width: 2.75rem;
	height: 2.75rem;
}

@media (width >= 48rem) {

	.pl-lb-stage {
		padding-inline: 6rem;
	}

	.pl-round-btn.pl-lb-side {
		display: grid;
	}

	.pl-lb-prev {
		left: 2rem;
	}

	.pl-lb-next {
		right: 2rem;
	}

	.pl-lb-mob {
		display: none;
	}
}

/* ---------- Workshops carousel (S-WORKSHOPS, 4.31) ---------- */

.pl-drag-ctl {
	display: flex;
	gap: 0.5rem;
}

.pl-ws-track {
	margin-top: 3rem;
	display: flex;
	gap: 0.75rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-inline: var(--wp--custom--gutter);
	scroll-padding-inline: var(--wp--custom--gutter);
	overscroll-behavior-x: contain;
}

.pl-ws-track:focus-visible {
	outline: 2px solid var(--pl-focus);
	outline-offset: 4px;
}

.pl-ws-card {
	display: flex;
	width: 82vw;
	flex: none;
	flex-direction: column;
	scroll-snap-align: start;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-panel);
	padding: 0.75rem;
}

.pl-ws-photo {
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-card);
}

.pl-ws-seats {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	padding: 0.375rem 0.75rem;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.pl-ws-seats::before {
	content: "";
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 999px;
	background: var(--color-ink);
}

.pl-ws-seats.is-low::before {
	background: var(--color-signal);
	animation: pulse-dot 2s ease-out infinite;
}

.pl-ws-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.5rem 0.75rem 0.75rem;
}

.pl-ws-meta {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	color: var(--color-graphite);
}

.pl-ws-price {
	color: var(--color-ink);
}

.pl-ws-t {
	margin-top: 0.75rem;
	font-size: 1.5rem;
	line-height: 1.25;
	font-weight: 500;
	letter-spacing: -0.03em;
}

.pl-ws-with {
	margin-top: 0.25rem;
	font-size: 0.875rem;
	color: var(--color-signal);
}

.pl-ws-p {
	margin-top: 1rem;
	font-size: 0.9375rem;
	line-height: 1.625;
	color: var(--color-graphite);
}

.pl-ws-cta {
	margin-top: auto;
	padding-top: 1.5rem;
}

.pl-ws-bar {
	margin-top: 2rem;
}

.pl-ws-rail {
	height: 1px;
	background: var(--color-line);
}

.pl-ws-progress {
	height: 1px;
	background: var(--color-ink);
}

@media (width >= 40rem) {

	.pl-ws-card {
		width: 24rem;
	}
}

@media (width >= 48rem) {

	.pl-ws-track {
		margin-top: 4rem;
		gap: 1rem;
		padding-inline: var(--wp--custom--gutter-wide);
		scroll-padding-inline: var(--wp--custom--gutter-wide);
	}
}

@media (width >= 64rem) {

	.pl-ws-card {
		width: 27rem;
	}
}

/* ---------- Big email rows (contact, the partners' prospectus) ---------- */

.pl-mail-grid {
	display: grid;
	gap: 2.5rem;
}

.pl-head + .pl-mail-grid {
	margin-top: 3rem;
}

/* The original's section head keeps an empty right-hand column, a row of its own on phones. */
.pl-head-solo {
	padding-bottom: 2rem;
}

/* The rows sit mt-12/md:mt-16 under the original's empty section head (plus its gap-8 on phones):
 * the section must not swallow that margin into its own. */
.pl-contact {
	display: flow-root;
}

.pl-contact .pl-mail-grid {
	margin-top: 5rem;
}

.pl-mails {
	border-bottom: 1px solid var(--color-line);
}

.pl-mail {
	border-top: 1px solid var(--color-line);
	padding-block: 1.75rem;
}

.pl-mail-k {
	color: var(--color-signal);
}

.pl-mail-a {
	margin-top: 0.75rem;
	font-size: clamp(1.375rem, 2.6vw, 2.25rem);
	line-height: 1.5;
	font-weight: 500;
	letter-spacing: -0.04em;
}

.pl-mail-a a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	color: inherit;
	text-decoration: none;
	word-break: break-all;
	transition: color 0.3s;
}

.pl-mail-a a::after {
	content: "";
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--color-line);
	border-radius: 999px;
	background: var(--arrow) center / 0.875rem no-repeat;
	transition: transform 0.5s, background-color 0.5s, border-color 0.5s;
}

.pl-mail-a a:hover {
	color: var(--color-signal);
}

.pl-mail-a a:hover::after {
	transform: rotate(45deg);
	border-color: var(--color-ink);
	background: var(--color-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5'/%3E%3C/svg%3E") center / 0.875rem no-repeat;
}

.pl-mail-p {
	margin-top: 0.75rem;
	max-width: 32rem;
	font-size: 0.9375rem;
	line-height: 1.625;
	color: var(--color-graphite);
}

.pl-mail-photo {
	aspect-ratio: 4 / 5;
	border-radius: var(--radius-panel);
}

@media (width >= 48rem) {

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

	.pl-head + .pl-mail-grid,
	.pl-contact .pl-mail-grid {
		margin-top: 4rem;
	}

	.pl-head-solo {
		padding-bottom: 0;
	}

	.pl-mails {
		grid-column: span 7 / span 7;
	}

	.pl-mail-side {
		grid-column: 9 / span 4;
	}

	.pl-mail-photo {
		position: sticky;
		top: 7rem;
	}
}

/* ---------- Legal pages and the default page ---------- */

.pl-legal {
	margin-top: 5rem;
}

.pl-legal-grid {
	display: grid;
	gap: 2rem;
}

.pl-legal-date {
	color: var(--color-signal);
}

.pl-legal-prose > :first-child {
	margin-top: 0;
}

@media (width >= 48rem) {

	.pl-legal {
		margin-top: 7rem;
	}

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

	.pl-legal-side {
		grid-column: span 3 / span 3;
	}

	.pl-legal-date {
		position: sticky;
		top: 7rem;
	}

	.pl-legal-prose {
		grid-column: span 7 / span 7;
	}

	.pl-legal-prose.pl-page-prose {
		grid-column: 4 / span 7;
	}
}

/* ---------- Call for speakers: the proposal card (the form is a gap) ---------- */

.pl-speak {
	scroll-margin-top: 6rem;
}

.pl-speak-grid {
	display: grid;
	gap: 3rem;
}

.pl-brief-intro {
	margin-top: 1.5rem;
	max-width: 24rem;
	font-size: 1rem;
	line-height: 1.625;
	color: var(--color-graphite);
}

.pl-deadline {
	margin-top: 2rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: 999px;
	background: var(--color-lime);
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
}

.pl-deadline::before {
	content: "";
	width: 0.625rem;
	height: 0.625rem;
	background: currentColor;
	-webkit-mask: var(--sparkle) center / contain no-repeat;
	mask: var(--sparkle) center / contain no-repeat;
}

.pl-brief-sum {
	margin-top: 2.5rem;
	display: none;
	border-top: 1px solid var(--color-line);
	padding-top: 1.5rem;
	font-size: 0.875rem;
}

.pl-sum-row {
	display: flex;
	gap: 1rem;
}

.pl-sum-row + .pl-sum-row {
	margin-top: 0.75rem;
}

.pl-sum-k {
	width: 5rem;
	flex: none;
	color: var(--color-graphite);
}

.pl-sum-v {
	font-weight: 500;
}

.pl-brief {
	border: 1px solid var(--color-line);
	border-radius: var(--radius-panel);
	padding: 1.25rem;
}

.pl-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	border-bottom: 1px solid var(--color-line);
	padding-bottom: 1.5rem;
}

.pl-step {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	font-size: 0.875rem;
	color: var(--color-graphite);
}

.pl-step-n {
	display: grid;
	width: 1.75rem;
	height: 1.75rem;
	flex: none;
	place-items: center;
	border: 1px solid var(--color-line);
	border-radius: 999px;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
}

.pl-step.is-current {
	color: var(--color-ink);
}

.pl-step.is-current .pl-step-n,
.pl-brief-t .pl-step-n {
	border-color: var(--color-lime);
	background: var(--color-lime);
	color: var(--color-ink);
}

.pl-brief-step {
	padding-top: 2rem;
}

.pl-brief-step + .pl-brief-step {
	margin-top: 2rem;
	border-top: 1px solid var(--color-line);
}

.pl-brief-t {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	font-size: 1.125rem;
	font-weight: 500;
	letter-spacing: -0.02em;
}

.pl-field {
	margin-top: 1.75rem;
}

.pl-field-k {
	color: var(--color-graphite);
}

.pl-field-v {
	margin-top: 0.5rem;
	font-size: 1.125rem;
	line-height: 1.5;
	letter-spacing: -0.02em;
}

.pl-chips {
	margin-top: 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pl-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border: 1px solid var(--color-line);
	border-radius: 999px;
	padding: 0.625rem 1rem;
	font-size: 0.9375rem;
	font-weight: 500;
}

.pl-brief-foot {
	margin-top: 2.5rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	border-top: 1px solid var(--color-line);
	padding-top: 1.5rem;
}

.pl-brief-note {
	max-width: 22rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--color-graphite);
}

.pl-brief-note a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--color-signal);
	text-underline-offset: 0.2em;
}

@media (width >= 48rem) {

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

	.pl-brief-side {
		grid-column: span 4 / span 4;
	}

	.pl-brief-sticky {
		position: sticky;
		top: 7rem;
	}

	.pl-brief-sum {
		display: block;
	}

	.pl-brief-main {
		grid-column: 6 / span 7;
	}

	.pl-brief {
		padding: 2.5rem;
	}
}

/* ---------- The light closing band (tickets: "See you in Lisbon") ---------- */

.pl-cta-light::before {
	background: rgba(255, 255, 255, 0.55);
}

.pl-cta-light .pl-rule::before {
	background: linear-gradient(to right, rgba(10, 15, 12, 0), rgba(10, 15, 12, 0.5));
}

.pl-cta-light .pl-rule-both::after {
	background: linear-gradient(to left, rgba(10, 15, 12, 0), rgba(10, 15, 12, 0.5));
}

.pl-cta-light .pl-cta-rule .pl-pill-ink {
	background: var(--color-ink);
	color: #fff;
}

.pl-star-ink {
	color: var(--color-ink);
}

/* ---------- Editor: content at rest ---------- */

.editor-styles-wrapper .pl-ghero {
	min-height: 0;
}

.editor-styles-wrapper .pl-ws-seats.is-low::before {
	animation: none;
}

@media (prefers-reduced-motion: reduce) {

	.pl-ws-seats.is-low::before {
		animation: none;
	}
}

/* ---------- Ticket types: the platform's other states, on the tickets page and the home ---------- */

/* One free type: Plenar's card, not the plugin's framed list. */
.pl-tiers.is-single-free .amx-tiers {
	border: 0;
	padding: 0;
}

/* The shared button (pre-sale, every type sold out) keeps its width beside the cards. */
.pl-tiers > .amx-ticket-button .btn,
.pl-tiers > .amx-ticket-button automatrix-tickets::part(button) {
	display: inline-flex;
	width: auto;
	min-width: 16rem;
}

/* The plugin's columns layout drops the first type's left padding and border from 64rem; the
 * cards keep both. */
@media (width >= 64rem) {

	.pl-tiers.is-layout-columns .amx-tier:first-child {
		padding-left: 2rem;
	}

	.pl-tiers.is-layout-columns .amx-tier:first-child:not(.glass) {
		border-left: 1px solid var(--color-line);
	}
}
