/*
 * Solid Teens: footer, the register-follow-sponsor strip, social links and the cookie notice.
 */

/* Links on a dark band take the band's text colour, and gold on hover (8.55:1 on deep navy). */
:is(.has-navy-background-color, .has-deep-navy-background-color, .has-slate-background-color, .has-ink-background-color) a:where(:not(.wp-element-button)) {
	color: inherit;
}

:is(.has-navy-background-color, .has-deep-navy-background-color, .has-ink-background-color) a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--gold);
}

/* Footer */
.styi-footer {
	padding-bottom: var(--wp--preset--spacing--50);
}

.styi-footer__inner,
.styi-footer__base {
	width: min(var(--styi-wide), 100% - 2 * var(--styi-gutter));
	margin-inline: auto;
}

.styi-footer__inner {
	display: grid;
	gap: var(--wp--preset--spacing--60);
	padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60);
}

@media (min-width: 48rem) {
	.styi-footer__inner {
		grid-template-columns: 1fr 1fr;
	}

	.styi-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (min-width: 64rem) {
	.styi-footer__inner {
		grid-template-columns: 1.2fr 1.3fr 1fr;
	}

	.styi-footer__brand {
		grid-column: auto;
	}
}

:root .styi-footer__inner > *,
:root .styi-footer__brand > *,
:root .styi-footer__col > * {
	margin-block: 0;
}

.styi-footer__brand .styi-logo {
	margin-bottom: var(--wp--preset--spacing--50);
}

.styi-footer__brand .styi-logo__img {
	height: clamp(3.5rem, 2.8333rem + 2.963vw, 5.5rem);
}

.styi-heritage {
	max-width: 12ch;
	font-size: var(--wp--preset--font-size--section);
	font-weight: 800;
	font-stretch: 75%;
	line-height: 1;
	letter-spacing: -0.01em;
}

.styi-heritage__year {
	color: var(--wp--preset--color--gold);
}

.styi-footer__heading {
	margin-bottom: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--gold);
	font-size: var(--wp--preset--font-size--small);
}

.styi-footer .styi-nav--footer .styi-nav__list {
	columns: 2;
	column-gap: var(--wp--preset--spacing--40);
}

.styi-footer .styi-nav__list a {
	display: inline-block;
	padding-block: 0.3rem;
	text-decoration: none;
}

.styi-footer .styi-nav__list a:hover,
.styi-footer .styi-nav__list a[aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.styi-footer__note {
	margin-top: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--small);
}

.styi-footer__base {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid rgb(255 255 255 / 0.2);
	font-size: var(--wp--preset--font-size--small);
}

:root .styi-footer__base > * {
	margin-block: 0;
}

.styi-nav--trust .styi-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--wp--preset--spacing--40);
}

/* Register, follow, sponsor: the bar from the foot of Solid's flyers. */
.styi-strip {
	padding-inline: var(--styi-gutter);
}

.styi-strip__list {
	display: grid;
	max-width: var(--styi-wide);
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.styi-strip__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 0.5rem;
	padding-block: 0.75rem;
}

.styi-strip__item + .styi-strip__item {
	border-top: 2px solid var(--wp--preset--color--navy);
}

/* Side by side from 48rem, each item a label over its link, split by navy rules. */
@media (min-width: 48rem) {
	.styi-strip__list {
		grid-auto-columns: 1fr;
		grid-auto-flow: column;
	}

	.styi-strip__item {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.125rem;
		padding: 1rem clamp(1rem, -0.5rem + 3.125vw, 2.5rem);
	}

	.styi-strip__item:first-child {
		padding-left: 0;
	}

	.styi-strip__item + .styi-strip__item {
		border-top: 0;
		border-left: 2px solid var(--wp--preset--color--navy);
	}
}

.styi-strip__label {
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 800;
	font-stretch: 75%;
}

.styi-strip__link {
	display: inline-block;
	padding-block: 0.25rem;
	font-weight: 600;
	text-underline-offset: 0.25em;
}

.styi-strip .styi-strip__link:hover {
	color: var(--wp--preset--color--deep-navy);
	text-decoration-thickness: 3px;
}

/* Social links */
.styi-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.styi-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-width: 2.75rem;
	min-height: 2.75rem;
	text-decoration: none;
}

.styi-social__icon {
	width: 1.5rem;
	height: 1.5rem;
	fill: currentColor;
}

.styi-social--footer {
	margin-inline-start: -0.6rem;
}

.styi-social--band {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
	gap: var(--wp--preset--spacing--30);
}

.styi-social--band .styi-social__link {
	display: grid;
	grid-template-columns: auto 1fr;
	justify-content: start;
	gap: 0 0.75rem;
	width: 100%;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border: 2px solid var(--wp--preset--color--navy);
	color: var(--wp--preset--color--navy);
}

.styi-social--band .styi-social__icon {
	grid-row: span 2;
	width: 2rem;
	height: 2rem;
}

.styi-social--band .styi-social__name {
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 800;
	font-stretch: 75%;
	line-height: 1.1;
}

.styi-social__handle {
	font-size: var(--wp--preset--font-size--small);
	overflow-wrap: anywhere;
}

.styi-social--band .styi-social__link:hover {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

/* Cookie notice: information only. Shown by theme.js until OK is pressed. */
.styi-cookie {
	position: fixed;
	right: var(--styi-gutter);
	bottom: var(--styi-gutter);
	left: var(--styi-gutter);
	z-index: 60;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	max-width: 30rem;
	margin: 0;
	padding: 1rem 1.25rem;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	box-shadow: 0 0.75rem 2rem rgb(11 21 38 / 0.25);
}

.styi-cookie__text {
	flex: 1 1 14rem;
	margin: 0;
}

.styi-cookie__text a {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

:root .styi-cookie__ok {
	padding: 0.6em 1.4em;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy);
	font-size: var(--wp--preset--font-size--small);
}

:root .styi-cookie__ok:hover {
	background: var(--wp--preset--color--amber);
	color: var(--wp--preset--color--navy);
}

/* The smile: the logo's gold half circle, flat edge up, used as a band divider. */

:root hr.wp-block-separator.styi-smile {
	width: clamp(4rem, 3rem + 4.4444vw, 7rem);
	height: clamp(2rem, 1.5rem + 2.2222vw, 3.5rem);
	margin: 0 0 var(--wp--preset--spacing--50);
	border: 0;
	border-radius: 0 0 999px 999px;
	background: var(--wp--preset--color--gold);
	opacity: 1;
}

/* Outline buttons: the global button style sets border-width 0, which beats core's outline border. Keep the filled button's size. */

:root .wp-block-button.is-style-outline > .wp-block-button__link {
	padding: calc(0.9em - 2px) calc(1.5em - 2px);
	border: 2px solid currentColor;
}

/* Partner logos */
.styi-partners {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	margin: 0;
	padding: 0;
	list-style: none;
}

.styi-partners__item img {
	display: block;
	width: auto;
	max-width: 12rem;
	max-height: 5rem;
}

/* Contact routes (styi/contact-routes): WhatsApp, phone and email as large tap targets. */
.styi-routes {
	display: grid;
	gap: var(--wp--preset--spacing--30);
}

.styi-routes__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.styi-routes__link {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0 0.5rem;
	align-items: center;
	min-height: 3rem;
	padding: 0.5rem 1rem;
	border: 2px solid currentColor;
	font-weight: 700;
	text-decoration: none;
}

.styi-routes__value {
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}

.styi-routes--help .styi-routes__link,
.styi-routes--contact .styi-routes__link {
	color: var(--wp--preset--color--navy);
}

.styi-routes--help .styi-routes__link:hover,
.styi-routes--contact .styi-routes__link:hover {
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.styi-routes--footer .styi-routes__link {
	min-height: 2.75rem;
	padding: 0.375rem 0.75rem;
}

.styi-routes__address,
.styi-routes__note {
	margin: 0;
}

/* Programme facts (styi/programme facts): "Who it's for" and "Ages" as ruled rows, like the doors. */
.styi-programme-facts {
	margin-block: var(--wp--preset--spacing--40) 0;
}

.styi-programme-facts__row {
	display: grid;
	grid-template-columns: minmax(8rem, 12rem) 1fr;
	gap: var(--wp--preset--spacing--30);
	padding-block: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--styi-line);
}

.styi-programme-facts__row:last-child {
	border-bottom: 1px solid var(--styi-line);
}

.styi-programme-facts dt {
	font-weight: 700;
}

.styi-programme-facts dd {
	margin: 0;
}

@media (max-width: 480px) {
	.styi-programme-facts__row {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}
}

/* How to take part (styi/programme take-part), in its navy band. */
.styi-take-part > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.styi-take-part h2 {
	margin-block-start: 0;
}

/* Story cards (styi/story-cards): the words, then a big first name and a small tracked role line. One story to a
   ruled row, never a card grid: in a 680 column a grid put two side by side and left the third alone. */
.styi-story-cards {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	margin-inline: 0;
	margin-block-end: 0;
	padding: 0;
	list-style: none;
}

.styi-story-card + .styi-story-card {
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--styi-line);
}

:is(.has-navy-background-color, .has-deep-navy-background-color, .has-slate-background-color, .has-ink-background-color) .styi-story-card + .styi-story-card {
	border-top-color: rgb(255 255 255 / 0.25);
}

.styi-story-card__words {
	margin: 0 0 var(--wp--preset--spacing--30);
	padding: 0;
	border: 0;
	font-size: var(--wp--preset--font-size--lead);
}

/* The browser's 1em paragraph margin added a lead-sized gap above every story, so the rule between two stories
   sat off centre. */
:root .styi-story-card__words > p {
	margin: 0;
}

.styi-story-card__name {
	margin: 0;
	font-size: var(--wp--preset--font-size--card);
	font-weight: 900;
	font-stretch: 112%;
	line-height: 1;
	text-transform: uppercase;
}

.styi-story-card__role {
	margin: 0.4rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Share (styi/share): plain underlined links in a row, not boxes. Each is still a 44 px target. */
.styi-share__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem var(--wp--preset--spacing--40);
	margin: 0;
	padding: 0;
	list-style: none;
}

.styi-share__link {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	color: var(--wp--preset--color--navy);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: max(1px, 0.0625em);
	text-underline-offset: 0.2em;
}

.styi-share__link:hover {
	color: var(--wp--preset--color--deep-navy);
	text-decoration-thickness: 2px;
}

.styi-share__native {
	margin-block-end: 0.75rem;
}

.styi-share__status {
	min-height: 1.5em;
	margin: 0.75rem 0 0;
	font-size: var(--wp--preset--font-size--small);
}

/* Video facade (styi/video): a self-hosted still and a play link until someone taps. */
.styi-video {
	margin: 0;
}

.styi-video__play,
.styi-video__frame {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	background-color: var(--wp--preset--color--deep-navy);
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

.styi-video__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.styi-video__button {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.8rem 1.3rem;
	background-color: var(--wp--preset--color--gold);
	font-weight: 800;
}

.styi-video__play:hover .styi-video__button {
	background-color: var(--wp--preset--color--amber);
}

.styi-video__icon {
	width: 1.5rem;
	height: 1.5rem;
	fill: currentColor;
}

.styi-video__note {
	margin-top: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
}

/* The home and camp heroes run edge to edge. */
.styi-home-hero,
.styi-camp-hero {
	margin-block: 0;
}

/* The home page has no visible title, so its bands meet the header and the footer with no empty strip. */
.styi-main.styi-main--home {
	padding-block: 0;
}

.styi-main.styi-main--home > .wp-block-post-content {
	margin-block: 0;
}

/* Facts band: big condensed figures. */
.styi-fact__figure {
	margin: 0;
	font-weight: 900;
	line-height: 1;
}

.styi-fact__label {
	margin-top: 0.4rem;
}

/* Questions that open (core/details), as in the Camp page's parents' questions and the FAQ pattern:
   ruled rows with the question in bold. */
.wp-block-details {
	padding-block: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--styi-line);
}

.wp-block-details + .wp-block-details {
	margin-block-start: 0;
}

.wp-block-details:last-of-type {
	border-bottom: 1px solid var(--styi-line);
}

.wp-block-details > summary {
	padding-block: 0.5rem;
	font-weight: 700;
	cursor: pointer;
}

.wp-block-details > :not(summary) {
	margin-block: 0.25rem 0.75rem;
}

/* Trust pages: cookie and storage names in Archivo, wrapping anywhere so long names never widen the page. */
.styi-main code {
	font-family: inherit;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
	overflow-wrap: anywhere;
}

/* Retention table on the privacy notice. Wider than the prose; below 48rem each row stacks as a card. */
.wp-block-post-content > .styi-retention-wrap.alignwide {
	max-width: 60rem;
}

.styi-retention {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
}

.styi-retention__caption {
	padding-block-end: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 700;
	text-align: start;
}

.styi-retention th,
.styi-retention td {
	padding: 0.875rem 1rem 0.875rem 0;
	border-bottom: 1px solid var(--styi-line);
	text-align: start;
	vertical-align: top;
}

.styi-retention thead th {
	border-bottom: 2px solid var(--wp--preset--color--navy);
	color: var(--wp--preset--color--navy);
}

.styi-retention tbody th,
.styi-retention__kept {
	font-weight: 700;
}

.styi-retention tbody th {
	color: var(--wp--preset--color--navy);
}

.styi-retention__fields {
	margin: 0;
	padding-inline-start: 1.1em;
}

.styi-retention__fields li + li {
	margin-block-start: 0.25rem;
}

@media (max-width: 47.99rem) {
	.styi-retention thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	/* The caption too: left as a table caption in a block table it shrinks to its longest word. */
	.styi-retention,
	.styi-retention__caption,
	.styi-retention tbody,
	.styi-retention tr,
	.styi-retention th,
	.styi-retention td {
		display: block;
	}

	.styi-retention tbody tr {
		padding-block: var(--wp--preset--spacing--30);
		border-bottom: 1px solid var(--styi-line);
	}

	.styi-retention tbody th,
	.styi-retention td {
		padding: 0.25rem 0;
		border: 0;
	}

	.styi-retention tbody th {
		font-size: var(--wp--preset--font-size--body);
	}

	/* The heading for each cell, shown on screen only: the table roles already give it to screen readers. */
	.styi-retention td::before {
		content: attr(data-label);
		content: attr(data-label) / "";
		display: block;
		color: var(--wp--preset--color--slate);
		font-weight: 700;
	}
}
