/*
Theme Name: Vestiario Whiteboard
Version: 1.0.1
Description: The planning board of Vestiario: a white magnetic board in an aluminium frame on pale tiles, brick-red lockers above and below, magnetic counters and dry-marker arrows.
License: GPL-2.0-or-later
Text Domain: vestiario-whiteboard
*/

/* Type: Big Shoulders Display and Libre Franklin, both SIL Open Font License, shipped in assets/fonts. */
@font-face {
	font-family: "Big Shoulders Display";
	src: url("assets/fonts/big-shoulders-display.woff2") format("woff2");
	font-weight: 600 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Libre Franklin";
	src: url("assets/fonts/libre-franklin.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Libre Franklin";
	src: url("assets/fonts/libre-franklin-italic.woff2") format("woff2");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}

:root {
	/* Lockers */
	--brick: #963822;
	--brick-deep: #7a2c1a;
	--brick-seam: #5d2010;
	--brick-lit: #a9472d;
	--locker-inside: #2a1d18;
	/* Wall and board */
	--tile: #eef0ec;
	--grout: #dfe2dd;
	--tile-panel: #e3e6e1;
	--grout-panel: #cfd3cd;
	--board: #ffffff;
	--frame: #c7cbc6;
	--frame-hi: #dde0db;
	--frame-lo: #a8ada7;
	--tape-edge: #d6d9d4;
	/* Ink */
	--ink: #1f2321;
	--muted: #5a605c;
	--link: #963822;

	--display: "Big Shoulders Display", "Arial Narrow", sans-serif;
	--text: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

	--measure: 64ch;
	--gutter: clamp(1rem, 0.6rem + 2vw, 2.25rem);
	--radius-board: 12px;
}

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

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

body {
	margin: 0;
	font-family: var(--text);
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--ink);
	background-color: var(--tile);
	background-image:
		linear-gradient(var(--grout) 2px, transparent 2px),
		linear-gradient(90deg, var(--grout) 2px, transparent 2px);
	background-size: 44px 44px;
	background-position: -1px -1px;
	font-kerning: normal;
	overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 3px;
	border-radius: 2px;
}

.skip {
	position: absolute;
	left: 0.75rem;
	top: -4rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	background: var(--board);
	color: var(--ink);
	font-weight: 600;
	border: 2px solid var(--ink);
}
.skip:focus { top: 0.75rem; }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

h1, h2, h3, h4 {
	font-family: var(--display);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: 0.005em;
	margin: 0;
	text-wrap: balance;
}

/* ---------- Magnetic tape: the label every locker, note and menu link is written on ---------- */
.tape {
	display: inline-block;
	padding: 0.18em 0.6em 0.14em;
	background: var(--board);
	color: var(--ink);
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.1;
	text-decoration: none;
	border-radius: 2px;
	box-shadow: 0 0 0 1px var(--tape-edge), 0 1px 2px rgba(31, 35, 33, 0.18);
}
a.tape:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Magnetic counters ---------- */
.counter {
	--c-fill: var(--brick);
	--c-ring: var(--board);
	display: inline-block;
	flex: none;
	width: 1.6em;
	height: 1.6em;
	border-radius: 50%;
	background: radial-gradient(circle, transparent 52%, var(--c-ring) 53% 66%, transparent 67%), var(--c-fill);
	box-shadow: 0 1px 0 rgba(31, 35, 33, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}
.counter--white { --c-fill: var(--board); --c-ring: var(--ink); box-shadow: 0 0 0 1px var(--tape-edge), 0 1px 0 rgba(31, 35, 33, 0.25); }

/* ---------- The locker row (header) ---------- */
.lockers {
	position: relative;
	background: var(--brick);
	border-bottom: 10px solid var(--brick-seam);
	box-shadow: 0 12px 0 -6px rgba(31, 35, 33, 0.12);
}
.lockers__row {
	display: flex;
	align-items: stretch;
	min-height: 9.25rem;
	max-width: 90rem;
	margin: 0 auto;
}
/* one door: louvred vents at the top, a name-tape slot, a handle */
.door {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	padding: 3.4rem 1rem 1.25rem;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 7%, transparent 92%, rgba(0, 0, 0, 0.2)),
		var(--brick);
	border-left: 2px solid var(--brick-seam);
	color: var(--ink);
	text-decoration: none;
}
.door::before {
	content: "";
	position: absolute;
	top: 0.9rem;
	left: 1rem;
	right: 1rem;
	height: 1.7rem;
	border-radius: 2px;
	background: repeating-linear-gradient(180deg, var(--brick-seam) 0 3px, var(--brick-lit) 3px 4px, var(--brick) 4px 6px);
	opacity: 0.85;
}
.door::after {
	content: "";
	position: absolute;
	right: 0.8rem;
	bottom: 1.1rem;
	width: 0.42rem;
	height: 1.7rem;
	border-radius: 3px;
	background: linear-gradient(90deg, #4a4f4c, #8e938f 60%, #4a4f4c);
}
.door__slot {
	display: inline-block;
	padding: 4px;
	background: var(--brick-deep);
	border-radius: 3px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}
.door__slot .tape { box-shadow: none; }

.door--brand { flex: 0 0 auto; min-width: 15rem; border-left: 0; }
.door--brand .door__slot .tape { display: block; padding: 0.4rem 0.6rem 0.35rem; }
.door--brand img { display: block; width: 11.5rem; height: auto; }
.door--brand:focus-visible { outline: 3px solid var(--board); outline-offset: -6px; box-shadow: inset 0 0 0 9px var(--ink); }

/* the plain doors between the brand door and the menu doors */
.lockers__filler {
	flex: 1 1 auto;
	min-width: 0;
	border-left: 2px solid var(--brick-seam);
	background:
		linear-gradient(180deg, transparent 0.9rem, transparent 0.9rem),
		repeating-linear-gradient(90deg, transparent 0 calc(7.5rem - 2px), var(--brick-seam) calc(7.5rem - 2px) 7.5rem),
		var(--brick);
	position: relative;
}
.lockers__filler::before {
	content: "";
	position: absolute;
	top: 0.9rem;
	left: 0;
	right: 0;
	height: 1.7rem;
	background:
		repeating-linear-gradient(90deg, var(--brick) 0 1rem, transparent 1rem calc(6.5rem - 2px), var(--brick) calc(6.5rem - 2px) 7.5rem),
		repeating-linear-gradient(180deg, var(--brick-seam) 0 3px, var(--brick-lit) 3px 4px, var(--brick) 4px 6px);
	opacity: 0.85;
}
.lockers__filler::after {
	content: "";
	position: absolute;
	top: 3.6rem;
	left: 1rem;
	right: 0;
	height: 2.1rem;
	background: repeating-linear-gradient(90deg, var(--brick-deep) 0 4.2rem, transparent 4.2rem 7.5rem);
	border-radius: 3px;
	opacity: 0.55;
}

/* the menu doors (wp_nav_menu: ul > li > a) */
.locker-nav { display: flex; flex: 0 0 auto; }
.locker-nav ul { display: flex; margin: 0; padding: 0; list-style: none; }
.locker-nav li {
	display: flex;
	background: var(--locker-inside);
	border-left: 2px solid var(--brick-seam);
	perspective: 520px;
}
.locker-nav a {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: 7.5rem;
	padding: 3.4rem 0.75rem 1.25rem;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 7%, transparent 92%, rgba(0, 0, 0, 0.2)),
		var(--brick);
	color: var(--ink);
	text-decoration: none;
	transform-origin: left center;
	transition: transform 160ms ease-out;
}
.locker-nav a::before {
	content: "";
	position: absolute;
	top: 0.9rem;
	left: 0.75rem;
	right: 0.75rem;
	height: 1.7rem;
	border-radius: 2px;
	background: repeating-linear-gradient(180deg, var(--brick-seam) 0 3px, var(--brick-lit) 3px 4px, var(--brick) 4px 6px);
	opacity: 0.85;
}
.locker-nav a::after {
	content: "";
	position: absolute;
	right: 0.7rem;
	bottom: 1.1rem;
	width: 0.42rem;
	height: 1.7rem;
	border-radius: 3px;
	background: linear-gradient(90deg, #4a4f4c, #8e938f 60%, #4a4f4c);
}
.locker-nav a > span {
	display: block;
	padding: 4px;
	background: var(--brick-deep);
	border-radius: 3px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}
.locker-nav a > span > span {
	display: block;
	padding: 0.2rem 0.45rem 0.16rem;
	background: var(--board);
	color: var(--ink);
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.1rem;
	line-height: 1.05;
	border-radius: 2px;
}
.locker-nav a:hover > span > span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
/* the current door stands slightly ajar */
.locker-nav .current-menu-item > a,
.locker-nav .current-menu-ancestor > a,
.locker-nav .current-post-ancestor > a,
.locker-nav a[aria-current] {
	transform: rotateY(-17deg);
	box-shadow: 6px 0 10px -4px rgba(0, 0, 0, 0.5);
}
.locker-nav a:focus-visible { outline: 3px solid var(--board); outline-offset: -6px; box-shadow: inset 0 0 0 9px var(--ink); }

/* ---------- Page frame ---------- */
.wall {
	max-width: 90rem;
	margin: 0 auto;
	padding: clamp(1.5rem, 1rem + 2.5vw, 3.25rem) var(--gutter) clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

/* ---------- The whiteboard: aluminium frame, white surface, marker tray ---------- */
.board {
	position: relative;
	padding: 10px;
	border-radius: var(--radius-board);
	background: linear-gradient(160deg, var(--frame-hi), var(--frame) 40%, var(--frame-lo));
	box-shadow: 0 1px 0 #fbfcfa inset, 0 14px 22px -16px rgba(31, 35, 33, 0.55);
}
.board__surface {
	position: relative;
	border-radius: 5px;
	background: var(--board);
	box-shadow: inset 0 0 0 1px #b9beb8, inset 0 2px 6px rgba(31, 35, 33, 0.12);
	padding: clamp(1.25rem, 0.8rem + 2.2vw, 2.75rem);
}
.board--tray { margin-bottom: 1.4rem; }
.board--tray::after {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: -1.05rem;
	height: 0.85rem;
	border-radius: 0 0 6px 6px;
	background:
		linear-gradient(90deg, transparent 12%, var(--ink) 12% 19%, var(--brick) 19% 20.5%, transparent 20.5%) top 0.12rem left 0 / 100% 0.42rem no-repeat,
		linear-gradient(180deg, var(--frame-lo), var(--frame));
}

/* ---------- Home: the board hero ---------- */
.home-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	align-items: start;
}
.hero-board .board__surface { padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.hero-board h1 {
	font-size: clamp(2.9rem, 1.6rem + 5.2vw, 6rem);
	line-height: 0.92;
	max-width: 12ch;
	text-wrap: pretty;
}
.hero-board__lede {
	margin: 1rem 0 0;
	max-width: 44ch;
	color: var(--muted);
	font-size: 1.1875rem;
}
.formation { margin: clamp(1.25rem, 1rem + 1.5vw, 2rem) 0 0; }
.formation svg { display: block; width: 100%; height: auto; }
.formation .formation__wide { display: none; }
.formation text { font-family: var(--display); font-weight: 700; fill: var(--ink); }
.formation .play { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.formation .play--dashed { stroke-dasharray: 2 12; }
@media (prefers-reduced-motion: no-preference) {
	.formation .play--live {
		stroke-dasharray: 340;
		stroke-dashoffset: 340;
		animation: marker-draw 1100ms 450ms cubic-bezier(.45, .05, .3, 1) forwards;
	}
	.formation .play--live-head { opacity: 0; animation: marker-cap 160ms 1500ms ease-out forwards; }
}
@keyframes marker-draw { to { stroke-dashoffset: 0; } }
@keyframes marker-cap { to { opacity: 1; } }

.roles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 1rem 1.75rem;
	margin: 1.5rem 0 0;
	padding: 1.25rem 0 0;
	list-style: none;
	border-top: 2px dashed var(--frame);
}
.roles li { display: flex; gap: 0.75rem; align-items: flex-start; }
.roles .counter { font-size: 1.25rem; margin-top: 0.1rem; }
.roles strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.1; }
.roles span:last-child { display: block; font-size: 1rem; line-height: 1.5; color: var(--muted); }

/* plain tiled panels for advertising, clearly apart from the board */
.tile-panel {
	padding: 1rem;
	border-radius: 6px;
	background-color: var(--tile-panel);
	background-image:
		linear-gradient(var(--grout-panel) 2px, transparent 2px),
		linear-gradient(90deg, var(--grout-panel) 2px, transparent 2px);
	background-size: 30px 30px;
	box-shadow: inset 0 0 0 1px var(--grout-panel);
}
.tile-panel--side { justify-self: stretch; }

/* advertising spaces and their label */
.armario {
	display: block;
	margin: 0 auto;
	max-width: 100%;
}
.armario iframe { display: block; max-width: 100%; margin: 0 auto; border: 0; }
.bracadeira {
	display: block;
	margin: 0 0 0.45rem;
	font-family: var(--text);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--muted);
	text-align: left;
}
.slot-row { margin: clamp(2rem, 1.5rem + 2vw, 3rem) 0; }

/* ---------- Team sheets (post cards) ---------- */
.team-sheet {
	position: relative;
	display: grid;
	gap: 1.25rem;
	padding: 1.75rem 1.25rem 1.5rem;
	background: var(--board);
	border-top: 6px solid var(--brick);
	border-radius: 3px;
	box-shadow: 0 0 0 1px var(--tape-edge), 0 10px 18px -14px rgba(31, 35, 33, 0.5);
}
.team-sheet::before {
	content: "";
	position: absolute;
	top: -1.05rem;
	left: 50%;
	width: 1.8rem;
	height: 1.8rem;
	margin-left: -0.9rem;
	border-radius: 50%;
	background: radial-gradient(circle, transparent 52%, var(--board) 53% 66%, transparent 67%), var(--brick);
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.team-sheet__art { display: block; border-radius: 3px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--tape-edge); }
.team-sheet__art img { display: block; width: 100%; height: auto; }
.team-sheet h2,
.team-sheet h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1; }
.team-sheet h2 a,
.team-sheet h3 a { color: var(--ink); text-decoration: none; }
.team-sheet h2 a:hover,
.team-sheet h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--brick); }
.team-sheet p { margin: 0.75rem 0 0; }
.team-sheet__date { font-size: 0.9375rem; color: var(--muted); }

.section-title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 1.4rem;
	font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem);
}

/* home: the website's own text on the board's lower half */
.board-text .board__surface { padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.board-text .prose { max-width: var(--measure); }

/* ---------- Archive ---------- */
.archive-head h1 { font-size: clamp(2.6rem, 1.8rem + 3.6vw, 4.75rem); }
.archive-head p { margin: 0.9rem 0 0; max-width: 56ch; color: var(--muted); font-size: 1.1875rem; }
.sheet-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr));
	gap: 2.75rem 2rem;
	margin: 3rem 0 0;
	padding: 0;
	list-style: none;
}

/* ---------- Article: the title board ---------- */
.title-board .board__surface {
	display: grid;
	gap: clamp(1.25rem, 1rem + 2vw, 2.5rem);
	align-items: center;
}
.title-board h1 {
	margin-top: 0.85rem;
	font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.6rem);
	line-height: 0.96;
}
.title-board__excerpt {
	margin: 1rem 0 0;
	max-width: 46ch;
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--muted);
}
.title-board__art img { display: block; width: 100%; height: auto; border-radius: 4px; }
.byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	margin: 1.5rem 0 0;
	padding: 1rem 0 0;
	border-top: 2px dashed var(--frame);
	font-size: 0.9375rem;
	line-height: 1.4;
}
.byline__who { display: flex; align-items: center; gap: 0.65rem; }
.byline__who img { width: 2.75rem; height: 2.75rem; border-radius: 6px; }
.byline__who strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.byline__who span { color: var(--muted); }
.byline__dates { margin: 0; color: var(--muted); }
.byline__dates span { display: block; }

/* ---------- Article: the white reading column ---------- */
.sheet {
	max-width: calc(var(--measure) + 2 * clamp(1.25rem, 0.8rem + 2.4vw, 3rem));
	margin: clamp(2rem, 1.5rem + 2vw, 3rem) auto 0;
	padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) clamp(1.25rem, 0.8rem + 2.4vw, 3rem);
	background: var(--board);
	border-radius: 4px;
	box-shadow: 0 0 0 1px var(--tape-edge), 0 14px 22px -18px rgba(31, 35, 33, 0.55);
}
.prose > * + * { margin-top: 1.15em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose dl { margin-bottom: 0; }
.prose h2 {
	position: relative;
	margin-top: 2.4em;
	padding-left: 2.6rem;
	font-size: clamp(1.9rem, 1.55rem + 1.3vw, 2.5rem);
	line-height: 1.02;
}
.prose h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.05em;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 50%;
	background: radial-gradient(circle, transparent 52%, var(--board) 53% 66%, transparent 67%), var(--brick);
	box-shadow: 0 1px 0 rgba(31, 35, 33, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}
.prose h2:nth-of-type(even)::before {
	background: radial-gradient(circle, transparent 52%, var(--ink) 53% 66%, transparent 67%), var(--board);
	box-shadow: 0 0 0 1px var(--tape-edge), 0 1px 0 rgba(31, 35, 33, 0.25);
}
.prose h3 { margin-top: 1.9em; font-size: 1.6rem; line-height: 1.08; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose strong { font-weight: 650; }
.prose ul { padding-left: 1.3rem; }
.prose ul li::marker { color: var(--brick); }
.prose li + li { margin-top: 0.4em; }

/* steps: numbered counters, only for real sequences */
.prose ol { padding: 0; list-style: none; counter-reset: play; }
.prose ol > li {
	position: relative;
	counter-increment: play;
	padding-left: 2.9rem;
	min-height: 2.1rem;
}
.prose ol > li + li { margin-top: 0.85em; }
.prose ol > li::before {
	content: counter(play);
	position: absolute;
	left: 0;
	top: -0.05em;
	width: 2.05rem;
	height: 2.05rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--brick);
	color: var(--board);
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.15rem;
	line-height: 1;
	box-shadow: inset 0 0 0 3px var(--brick), inset 0 0 0 5px rgba(255, 255, 255, 0.85), 0 1px 0 rgba(31, 35, 33, 0.25);
}

/* coach's notes: strips of white magnetic tape held by a counter */
.prose aside {
	position: relative;
	margin-top: 1.6em;
	margin-bottom: 0.4em;
	padding: 1rem 1.25rem 1rem 3.4rem;
	background: #fbfbf9;
	border-radius: 2px;
	box-shadow: 0 0 0 1px var(--tape-edge), 0 6px 10px -8px rgba(31, 35, 33, 0.45);
	clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 50%, 100% 100%, 0 100%, 6px 50%);
	font-style: italic;
	font-weight: 500;
}
.prose aside::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: 1.05rem;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: radial-gradient(circle, transparent 52%, var(--board) 53% 66%, transparent 67%), var(--brick);
}
.prose aside > * + * { margin-top: 0.6em; }
.prose aside > :first-child { margin-top: 0; }
.prose aside p { margin-bottom: 0; }
.prose aside strong { font-weight: 700; }

/* figures: board drawings in a thin aluminium frame, caption on tape */
.prose figure { margin: 2em 0 0; }
.prose figure img {
	display: block;
	width: 100%;
	height: auto;
	padding: 0.5rem;
	background: var(--board);
	border: 6px solid var(--frame);
	border-radius: 7px;
}
.prose figcaption {
	display: table;
	margin: 0.7rem 0 0;
	padding: 0.35rem 0.75rem;
	background: #fbfbf9;
	box-shadow: 0 0 0 1px var(--tape-edge);
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--muted);
}

/* team sheets for tables: a brick head row, scroll on phones */
.sheet-table {
	margin-top: 1.6em;
	overflow-x: auto;
	background:
		linear-gradient(to left, var(--board) 45%, rgba(255, 255, 255, 0)) right center / 2.5rem 100% no-repeat local,
		radial-gradient(farthest-side at 100% 50%, rgba(31, 35, 33, 0.24), rgba(31, 35, 33, 0)) right center / 1rem 100% no-repeat scroll,
		var(--board);
	-webkit-overflow-scrolling: touch;
	border-radius: 3px;
	box-shadow: 0 0 0 1px var(--tape-edge);
}
.sheet-table:focus-visible { outline-offset: 2px; }
.prose table {
	width: 100%;
	min-width: 34rem;
	border-collapse: collapse;
	font-size: 0.96875rem;
	line-height: 1.45;
}
.prose thead th {
	background: var(--brick);
	color: var(--board);
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 0.01em;
	text-align: left;
	padding: 0.6rem 0.75rem;
}
.prose td { padding: 0.65rem 0.75rem; vertical-align: top; border-top: 1px solid var(--tape-edge); }
.prose tbody tr:nth-child(even) td { background: rgba(31, 35, 33, 0.035); }
.prose tbody td:first-child { font-weight: 650; }

/* questions and answers */
.prose details {
	margin-top: 0.9em;
	border-bottom: 2px dashed var(--frame);
	padding: 0 0 0.85rem;
}
.prose details + details { margin-top: 0.85em; }
.prose summary {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	cursor: pointer;
	list-style: none;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.4rem;
	line-height: 1.15;
}
.prose summary::-webkit-details-marker { display: none; }
.prose summary::before {
	content: "";
	flex: none;
	width: 1.3rem;
	height: 1.3rem;
	margin-top: 0.08em;
	border-radius: 50%;
	background: radial-gradient(circle, transparent 50%, var(--ink) 51% 66%, transparent 67%), var(--board);
	box-shadow: 0 0 0 1px var(--tape-edge);
}
.prose details[open] summary::before { background: radial-gradient(circle, transparent 50%, var(--board) 51% 66%, transparent 67%), var(--brick); box-shadow: none; }
.prose details > :not(summary) { margin: 0.6rem 0 0 2rem; }

/* terms on tape */
.prose dt {
	display: inline-block;
	margin-top: 1em;
	padding: 0.1em 0.5em;
	background: #fbfbf9;
	box-shadow: 0 0 0 1px var(--tape-edge);
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.2rem;
	line-height: 1.2;
}
.prose dt:first-child { margin-top: 0; }
.prose dd { margin: 0.35rem 0 0; }

/* a takeaway written in marker on the board */
.prose blockquote {
	margin: 2em 0 0;
	padding: 0.25rem 0 0 1.25rem;
	border-left: 5px solid var(--brick);
	border-radius: 0 0 0 4px;
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(1.5rem, 1.25rem + 1vw, 1.95rem);
	line-height: 1.15;
}
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: 0.5em; }
.prose blockquote p:last-child:not(:first-child) {
	margin-top: 0.7rem;
	font-family: var(--text);
	font-weight: 500;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--muted);
}
.prose .table-title { margin-bottom: -0.4em; font-weight: 650; font-size: 0.96875rem; color: var(--muted); }

.prose hr { border: 0; border-top: 2px dashed var(--frame); margin: 2.4em 0; }

/* slots inside the article: a plain tiled panel between sections, clearly apart from the text */
.prose .armario {
	margin: 2.4em calc(-1 * clamp(0.25rem, 0.1rem + 1vw, 1rem)) 0.6em;
	padding: 1rem;
	border-radius: 6px;
	background-color: var(--tile-panel);
	background-image:
		linear-gradient(var(--grout-panel) 2px, transparent 2px),
		linear-gradient(90deg, var(--grout-panel) 2px, transparent 2px);
	background-size: 30px 30px;
	box-shadow: inset 0 0 0 1px var(--grout-panel);
}
.prose .armario + * { margin-top: 2em; }

.sheet-stack { display: grid; gap: 2.75rem; }
.navigation.pagination { margin-top: 2.5rem; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.navigation.pagination a,
.navigation.pagination span.current {
	display: inline-block;
	min-width: 2.75rem;
	padding: 0.35rem 0.7rem;
	text-align: center;
	background: var(--board);
	color: var(--ink);
	font-family: var(--display);
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 0 0 1px var(--tape-edge);
}
.navigation.pagination span.current { background: var(--brick); color: var(--board); box-shadow: none; }
.page-board .tape { margin-top: 1.25rem; }
.page-board .board-search + p { margin: 1.5rem 0 0; }

/* the team's note and more plans */
.after-sheet {
	max-width: calc(var(--measure) + 2 * clamp(1.25rem, 0.8rem + 2.4vw, 3rem));
	margin: 2.5rem auto 0;
	display: grid;
	gap: 1.5rem;
}
.team-note {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	align-items: start;
	padding: 1.25rem;
	background: var(--board);
	border-radius: 3px;
	box-shadow: 0 0 0 1px var(--tape-edge);
	border-left: 6px solid var(--brick);
}
.team-note img { width: 3.5rem; height: 3.5rem; border-radius: 8px; }
.team-note h2 { font-size: 1.5rem; }
.team-note p { margin: 0.35rem 0 0; font-size: 1rem; line-height: 1.55; }
.team-note__role { color: var(--muted); }
.more-plans h2 { font-size: 1.6rem; display: flex; align-items: center; gap: 0.6rem; }
.more-plans ul { margin: 0.9rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem; }

/* ---------- Institutional and policy pages ---------- */
.page-board h1 { font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem); margin-top: 0.85rem; }
.page-board p.page-board__excerpt { margin: 0.9rem 0 0; max-width: 54ch; color: var(--muted); font-size: 1.1875rem; }
.page-sheet.prose h2 { padding-left: 0; font-size: clamp(1.6rem, 1.35rem + 1vw, 2.1rem); }
.page-sheet.prose h2::before { content: none; }
.page-sheet.prose h2 { border-top: 2px dashed var(--frame); padding-top: 0.9em; margin-top: 1.9em; }
.page-sheet.prose > h2:first-child { border-top: 0; padding-top: 0; }

/* search and the missing page */
.marker-note { font-size: 1.1875rem; max-width: 52ch; }
.board-search { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; max-width: 34rem; }
.board-search label { flex: 1 1 100%; font-weight: 600; font-size: 0.9375rem; }
.board-search input[type="search"] {
	flex: 1 1 14rem;
	min-height: 2.9rem;
	padding: 0.5rem 0.75rem;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: var(--board);
	border: 2px solid var(--ink);
	border-radius: 4px;
}
.board-search button,
.marker-button {
	min-height: 2.9rem;
	padding: 0.5rem 1.15rem;
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.2rem;
	color: var(--board);
	background: var(--brick);
	border: 2px solid var(--brick);
	border-radius: 4px;
	cursor: pointer;
}
.board-search button:hover { background: var(--brick-deep); }
.result-list { margin: 2.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 2.5rem; }

/* ---------- Footer: the locker row again, doors closed ---------- */
.lockers--closed {
	margin-top: 0;
	border-bottom: 0;
	border-top: 10px solid var(--brick-seam);
	box-shadow: 0 -12px 0 -6px rgba(31, 35, 33, 0.1);
}
.lockers--closed .lockers__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	min-height: 0;
}
.lockers--closed .door {
	min-height: 15rem;
	padding: 3.6rem 1.1rem 3.6rem;
	gap: 0.55rem;
	border-left: 2px solid var(--brick-seam);
}
.lockers--closed .door:first-child { border-left: 0; }
.lockers--closed .door .door__slot { max-width: 100%; }
.lockers--closed .door .tape { white-space: normal; max-width: 100%; font-size: 1.05rem; }
.lockers--closed .door .tape--text { font-family: var(--text); font-weight: 600; font-size: 0.9375rem; line-height: 1.35; }
.lockers--closed .door .tape img { display: block; width: 2.4rem; height: 2.4rem; }
.lockers--closed .door .tape--brand { display: flex; align-items: center; gap: 0.6rem; font-size: 1.6rem; font-weight: 800; }
.lockers--closed .door a { color: var(--link); }
.lockers--closed .door::after { bottom: auto; top: 50%; margin-top: -0.85rem; }
.lockers--closed .door .door__vents-low {
	position: absolute;
	left: 1rem;
	right: 1rem;
	bottom: 0.9rem;
	height: 1.7rem;
	border-radius: 2px;
	background: repeating-linear-gradient(180deg, var(--brick-seam) 0 3px, var(--brick-lit) 3px 4px, var(--brick) 4px 6px);
	opacity: 0.85;
}
.floor {
	background: var(--tile-panel);
	border-top: 6px solid var(--brick-seam);
	padding: 1.4rem var(--gutter) 2rem;
}
.floor__inner { max-width: 90rem; margin: 0 auto; }
.floor ul { display: flex; flex-wrap: wrap; gap: 0.7rem 0.8rem; margin: 0; padding: 0; list-style: none; }
.floor a {
	display: inline-block;
	padding: 0.35rem 0.7rem 0.3rem;
	background: var(--board);
	color: var(--ink);
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.15;
	text-decoration: none;
	border-radius: 2px;
	box-shadow: 0 0 0 1px var(--tape-edge), 0 1px 2px rgba(31, 35, 33, 0.18);
}
.floor a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.floor a[aria-current] { box-shadow: 0 0 0 2px var(--brick); }
.floor__small { margin: 1rem 0 0; font-size: 0.875rem; color: var(--muted); }

/* ---------- The measurement banner: a quiet strip at the bottom ---------- */
.banco-reservas {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 0.6rem var(--gutter);
	background: var(--board);
	color: var(--ink);
	border-top: 3px solid var(--frame);
	font-size: 0.875rem;
	line-height: 1.4;
}
.banco-reservas p { margin: 0; flex: 1 1 26rem; }
.banco-reservas a { color: var(--link); font-weight: 600; }
.banco-reservas button,
.escalacao button {
	min-height: 44px;
	min-width: 6.5rem;
	padding: 0.35rem 1rem;
	font-family: var(--text);
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--ink);
	background: var(--board);
	border: 2px solid var(--ink);
	border-radius: 4px;
	cursor: pointer;
}
.banco-reservas button:hover,
.escalacao button:hover { background: var(--tile); }
.escalacao {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-top: 1.2em;
	padding: 1rem;
	background: var(--tile);
	border-radius: 4px;
	box-shadow: inset 0 0 0 1px var(--grout-panel);
}
.placar { flex: 1 1 100%; margin: 0; font-weight: 600; font-size: 0.9375rem; }

/* ---------- Wide screens ---------- */
@media (min-width: 52rem) {
	.formation .formation__narrow { display: none; }
	.formation .formation__wide { display: block; }
	.hero-board h1 { max-width: 18ch; }
	.title-board .board__surface { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
	.team-sheet--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; padding: 2rem 2rem 1.75rem; }
	.byline__dates span { display: inline; }
	.byline__dates span + span::before { content: " / "; }
}
@media (min-width: 70rem) {
	.home-top { grid-template-columns: minmax(0, 1fr) 21rem; }
	.tile-panel--side { position: sticky; top: 1.5rem; }
}

/* ---------- Phones ---------- */
@media (max-width: 44rem) {
	.lockers__filler { display: none; }
	.lockers__row { min-height: 7.4rem; }
	.door--brand { flex: 1 1 auto; min-width: 0; padding: 2.7rem 0.6rem 1rem; }
	.door--brand::before { top: 0.7rem; left: 0.6rem; right: 0.6rem; height: 1.2rem; }
	.door--brand::after { display: none; }
	.door--brand .door__slot { max-width: 100%; }
	.door--brand img { width: 7.6rem; max-width: 100%; }
	.door--brand .door__slot .tape { padding: 0.3rem 0.4rem 0.25rem; }
	.locker-nav a { width: auto; min-width: 3.9rem; max-width: 5.6rem; padding: 2.7rem 0.3rem 1rem; }
	.locker-nav a::before { top: 0.7rem; left: 0.4rem; right: 0.4rem; height: 1.2rem; }
	.locker-nav a::after { display: none; }
	.locker-nav a > span > span { font-size: 0.9rem; padding: 0.15rem 0.27rem 0.12rem; }
	.locker-nav .current-menu-item > a,
	.locker-nav .current-menu-ancestor > a,
	.locker-nav .current-post-ancestor > a,
	.locker-nav a[aria-current] { transform: rotateY(-22deg); }
	.board { padding: 7px; }
	.prose h2 { padding-left: 2.3rem; }
	.prose h2::before { width: 1.65rem; height: 1.65rem; }
	.lockers--closed .door { min-height: 0; padding: 3rem 0.9rem 3.2rem; }
	.lockers--closed .door::after { display: none; }
	.lockers--closed .door[aria-hidden="true"] { display: none; }
}
/* the narrowest phones: the brand door above, the menu doors below */
@media (max-width: 21.5rem) {
	.lockers__row { flex-wrap: wrap; min-height: 0; }
	.door--brand { flex: 1 1 100%; padding: 2.4rem 0.6rem 0.75rem; border-bottom: 2px solid var(--brick-seam); }
	.door--brand img { width: 7.4rem; }
	.locker-nav { flex: 1 1 100%; }
	.locker-nav ul { flex: 1 1 100%; }
	.locker-nav li { flex: 1 1 0; }
	.locker-nav li:first-child { border-left: 0; }
	.locker-nav a { flex: 1 1 auto; padding: 2.4rem 0.4rem 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
	.lockers, .floor, .tile-panel, .armario, .banco-reservas { display: none !important; }
	body { background: #fff; }
}

/* ---------- Home: before, halfway, after ---------- */
.board-text__grid { display: grid; gap: 2rem; }
.match-note {
	align-self: start;
	padding: 1.25rem 1.25rem 1.1rem;
	background: #fbfbf9;
	border-radius: 3px;
	box-shadow: 0 0 0 1px var(--tape-edge), 0 6px 10px -8px rgba(31, 35, 33, 0.45);
}
.match-note h3 { font-size: 1.45rem; }
.match-note ol { margin: 0.9rem 0 0; padding: 0; list-style: none; counter-reset: phase; display: grid; gap: 0.85rem; }
.match-note li { position: relative; padding-left: 2.6rem; counter-increment: phase; font-size: 1rem; line-height: 1.5; }
.match-note li::before {
	content: counter(phase);
	position: absolute;
	left: 0;
	top: 0;
	width: 1.85rem;
	height: 1.85rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--brick);
	color: var(--board);
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.05rem;
	box-shadow: inset 0 0 0 3px var(--brick), inset 0 0 0 5px rgba(255, 255, 255, 0.85);
}
.match-note li strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
@media (min-width: 62rem) {
	.board-text__grid { grid-template-columns: minmax(0, 1fr) 19rem; align-items: start; }
}

/* while the cookie strip shows, the end of the page can still scroll clear of it */
body:has(.banco-reservas) { padding-bottom: 5rem; }
@media (max-width: 44rem) {
	body:has(.banco-reservas) { padding-bottom: 10.5rem; }
}
.sheet-grid--single { grid-template-columns: minmax(0, 1fr); }
.board-text { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
