/* berezuma.com — The pinned poster. Satorraren mundua: belarra goian, hezur-zuria erdian, lurra behean.
   Libre Franklin + Source Serif 4. */

:root {
	/* Hezur-zuria eta txokolatea: orri osoa eta irakurketa. */
	--bg: #e5e1d8;
	--surface: #dad5ca;
	--surface-2: #cdc6b8;
	--ink: #2a1d17;
	--muted: #5e4f45;
	--accent: #31552a;
	--accent-hover: #274622;
	--accent-ink: #ffffff;
	/* Belarra: hasierako eremua. */
	--card: #31552a;
	--paper: #e5e1d8;
	--paper-ink: #2a1d17;
	--paper-muted: #5e4f45;
	--paper-link: #31552a;

	--display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	--text: "Source Serif 4", Georgia, serif;

	--step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
	--step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	--step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
	--step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
	--step-display: clamp(2.75rem, 1rem + 6vw, 6rem);

	--gutter: clamp(16px, 2.5vw, 32px);
	--gap: clamp(120px, 14vw, 200px);
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- Oinarria ---------- */

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

html {
	background: var(--bg);
	color: var(--ink);
	scrollbar-color: var(--surface-2) var(--bg);
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	font-family: var(--text);
	font-size: var(--step-body);
	line-height: 1.55;
	caret-color: var(--accent);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { padding-inline: var(--gutter); }

.skip {
	position: absolute;
	left: var(--gutter);
	top: -100px;
	z-index: 50;
	padding: 10px 16px;
	background: var(--accent);
	color: var(--accent-ink);
	font-family: var(--display);
	font-weight: 700;
}
.skip:focus { top: 12px; }

.h-head {
	font-family: var(--display);
	font-size: var(--step-head);
	letter-spacing: -0.03em;
	line-height: 0.98;
	max-width: 18ch;
}

.lead {
	font-size: var(--step-lead);
	line-height: 1.4;
	max-width: 38ch;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 26px;
	border: 0;
	background: var(--accent);
	color: var(--accent-ink);
	font-family: var(--display);
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
	.btn:hover { background: var(--accent-hover); }
}

.link {
	font-family: var(--display);
	font-weight: 500;
	text-decoration: underline;
	transition: color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
	.link:hover { color: var(--accent); }
}

/* ---------- Goiburua ---------- */

.bar {
	position: relative;
	z-index: 20;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 32px;
	padding: 22px var(--gutter);
	font-family: var(--display);
}
.bar--over { position: absolute; inset: 0 0 auto; }
.bar__mark {
	font-weight: 700;
	font-size: 1.125rem;
	letter-spacing: -0.02em;
	text-decoration: none;
}
.bar__nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.bar__nav a {
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
	.bar__nav a:hover { color: var(--accent); }
}

/* ---------- Hero: txartela ikastetxearen gainean ---------- */

.hero,
.bar--over {
	--ink: #efeeeb;
	--muted: #d2dfc6;
	--accent: #d9e8cc;
	color: var(--ink);
}
.hero {
	padding: clamp(136px, 18svh, 200px) var(--gutter) clamp(56px, 8svh, 96px);
	background: var(--card);
}
.hero__card { display: grid; gap: clamp(40px, 6svh, 72px); }
.hero__title {
	font-family: var(--display);
	font-size: clamp(3rem, 0.6rem + 8.6vw, 9.5rem);
	letter-spacing: -0.04em;
	line-height: 0.9;
	animation: rise 900ms var(--ease-out) both;
}
@keyframes rise {
	from { opacity: 0; transform: translate3d(0, 0.18em, 0); }
}
.hero__body {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 32px var(--gutter);
	align-items: end;
}
.hero__lead { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.hero__facts {
	justify-self: end;
	max-width: 30ch;
	font-family: var(--display);
	font-weight: 500;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--muted);
}
.hero__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.hero .btn { background: var(--ink); color: #2a1d17; }
@media (hover: hover) and (pointer: fine) {
	.hero .btn:hover { background: #ffffff; }
}

/* ---------- Lanak: aurkibidea eta irudi bakarra ---------- */

.work__intro {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 32px var(--gutter);
	align-items: end;
	padding-block: clamp(64px, 7vw, 104px) clamp(48px, 5vw, 72px);
}
.work__intro .lead { justify-self: end; }

.shelf {
	display: grid;
	grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
	gap: clamp(32px, 4vw, 64px);
	align-items: start;
	font-family: var(--display);
}
.shelf__item { border-top: 2px solid var(--surface-2); }
.shelf__item:last-child { border-bottom: 2px solid var(--surface-2); }
.shelf__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 2px 16px;
	padding-block: 16px 18px;
	text-decoration: none;
}
.shelf__thumb { display: none; }
.shelf__name {
	font-size: clamp(1.375rem, 0.9rem + 1.3vw, 2.125rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	transition: color 150ms ease;
}
.shelf__fact { grid-column: 1; font-size: 0.9375rem; font-weight: 500; color: var(--muted); }
.shelf__domain { display: none; }
.shelf__item.is-on .shelf__name { color: var(--accent); }
.shelf__stage {
	position: sticky;
	top: 96px;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--surface);
}
.shelf__fig {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 200ms var(--ease-out);
}
.shelf__fig.is-on { opacity: 1; }
.shelf__media {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	filter: grayscale(1) sepia(0.4) brightness(0.86) contrast(1.02);
	transition: filter 300ms ease;
}
@media (hover: hover) and (pointer: fine) {
	.shelf:hover .shelf__media { filter: none; }
	.shelf__link:hover .shelf__name { color: var(--accent); }
}

.proof { padding-top: clamp(72px, 8vw, 120px); font-family: var(--display); }
.proof__title { font-size: var(--step-lead); letter-spacing: -0.02em; margin-bottom: 28px; }
.proof__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px var(--gutter);
	margin: 0;
}
.proof__grid div { display: flex; flex-direction: column-reverse; gap: 6px; }
.proof__grid dd {
	margin: 0;
	font-size: var(--step-head);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 0.95;
	font-variant-numeric: tabular-nums;
}
.proof__grid dt { font-size: 0.9375rem; font-weight: 500; color: var(--muted); }
.proof__links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 32px; font-size: 1rem; }

.work__more {
	padding-block: clamp(56px, 6vw, 88px) clamp(96px, 10vw, 144px);
	background: var(--bg);
	font-size: var(--step-lead);
	max-width: none;
}
.work__more a { text-decoration-color: var(--accent); }

/* ---------- Ikasgela: mailen zerrenda ---------- */

.class {
	background: var(--surface);
	padding-block: var(--gap) clamp(96px, 10vw, 144px);
}
.class__head {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 32px var(--gutter);
	align-items: end;
}
.class__head .lead { justify-self: end; }
.class__pick,
.need__pick {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
}
.class__pick button,
.need__pick button {
	padding: 10px 18px;
	border: 0;
	background: var(--surface-2);
	color: var(--ink);
	font-family: var(--display);
	font-size: clamp(1.25rem, 0.9rem + 1.2vw, 1.875rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	cursor: pointer;
	transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.class__pick button:active,
.need__pick button:active { transform: scale(0.97); }
.class__pick button[aria-pressed="true"],
.need__pick button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) {
	.class__pick button:not([aria-pressed="true"]):hover,
	.need__pick button:not([aria-pressed="true"]):hover { background: #c0b8a8; }
}
.need__pick button { font-size: clamp(1.0625rem, 0.9rem + 0.5vw, 1.375rem); }
.shelf__item[hidden] { display: none; }

/* ---------- Artikuluen amaiera: tresnak ---------- */

.tools { padding-block: clamp(64px, 8vw, 112px); }
.tools__title { font-family: var(--display); font-size: var(--step-lead); letter-spacing: -0.02em; margin-bottom: 24px; }
.tools__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 20px var(--gutter);
	font-family: var(--display);
}
.tools__list a { display: grid; gap: 2px; text-decoration: none; }
.tools__name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; transition: color 150ms ease; }
.tools__fact { font-size: 0.9375rem; font-weight: 500; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
	.tools__list a:hover .tools__name { color: var(--accent); }
}

.lineup {
	--row: clamp(1.25rem, 0.85rem + 1.25vw, 1.875rem);
	font-family: var(--display);
	font-size: var(--row);
	font-weight: 500;
	letter-spacing: -0.015em;
}
.lineup__group { padding-top: 72px; }
.lineup__day {
	position: sticky;
	top: 0;
	z-index: 1;
	padding-block: 8px 20px;
	background: var(--surface);
	color: var(--accent);
	font-size: inherit;
	font-weight: 700;
}
.lineup__day a { text-decoration: none; }
.lineup li a {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 24px;
	align-items: baseline;
	padding-block: 0.25em;
	line-height: 1.25;
	text-decoration: none;
	transition: color 150ms ease;
}
.lineup__count { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
	.lineup li a:hover { color: var(--accent); }
}
.lineup.is-picking .lineup__group[hidden] { display: none; }
.lineup.is-picking .lineup__day { position: static; }

/* ---------- Lurra: orriaren behealdea eremu ilunean ---------- */

.books,
.contact,
.foot,
.pea_cook_wrapper {
	--bg: #2a1d17;
	--surface: #35261e;
	--surface-2: #433027;
	--ink: #efeeeb;
	--muted: #c4b8a8;
	--accent: #9fc48f;
	--accent-hover: #b3d3a5;
	--accent-ink: #2a1d17;
	--paper: #2a1d17;
	--paper-ink: #efeeeb;
	--paper-muted: #c4b8a8;
	--paper-link: #9fc48f;
	color: var(--ink);
}

/* ---------- Liburuak: txartelak argazki finko baten gainean ---------- */

.books { position: relative; background: var(--bg); }
.books__stage { position: relative; overflow: hidden; padding: var(--gap) var(--gutter); isolation: isolate; }
.books__photo {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.42);
}
.books__title { color: var(--ink); margin-bottom: 48px; }
.books__track { display: grid; gap: 24px; }

.books__track { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.book {
	display: grid;
	grid-template-rows: auto 1fr;
	text-decoration: none;
	background: var(--surface-2);
	transition: transform 300ms var(--ease-out);
}
.book__pic {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #1f1510;
}
.book__pic img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.book__panel {
	display: grid;
	align-content: end;
	gap: 10px;
	padding: 24px 28px;
}
.book__name {
	font-family: var(--display);
	font-size: clamp(1.75rem, 1rem + 2vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 0.95;
}
.book__text { max-width: 44ch; font-size: 1rem; line-height: 1.45; }
.book__meta { display: block; margin-bottom: 4px; font-family: var(--display); font-weight: 500; color: var(--muted); }
.book:active { transform: scale(0.985); }

/* ---------- Nor naiz ---------- */

.about {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px var(--gutter);
	padding-block: var(--gap);
}
.about { align-items: end; }
.about__pin {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	align-items: end;
	gap: 0 var(--gutter);
}
.about__pin .about__portrait { order: -1; }
.about__portrait { width: 100%; aspect-ratio: 7 / 10; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.about__title {
	font-family: var(--display);
	font-size: var(--step-head);
	letter-spacing: -0.035em;
	line-height: 0.9;
}
.about__text { display: grid; align-content: end; gap: 1em; max-width: 46ch; font-size: var(--step-lead); line-height: 1.4; }

/* ---------- Kontaktua: emaila letra handitan ---------- */

.contact {
	display: grid;
	grid-template-rows: auto auto auto 1fr;
	gap: 24px;
	min-height: 100svh;
	padding: clamp(48px, 7vw, 96px) var(--gutter) 32px;
	background: var(--paper);
	color: var(--paper-ink);
}
.contact__lead {
	font-family: var(--text);
	font-weight: 400;
	font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem);
	line-height: 1.2;
	max-width: 24ch;
}
.contact__note { color: var(--paper-muted); max-width: 52ch; }
.contact .h-head { margin-bottom: 8px; }
.contact__mail {
	align-self: end;
	margin-bottom: 8svh;
	font-family: var(--display);
	font-weight: 500;
	font-size: 9.2vw;
	letter-spacing: -0.04em;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: color 250ms ease;
}
@media (hover: hover) and (pointer: fine) {
	.contact__mail:hover { color: var(--paper-link); }
}
.contact a:focus-visible { outline-color: var(--paper-ink); }

/* ---------- Oina ---------- */

.foot {
	overflow: hidden;
	padding: clamp(80px, 9vw, 128px) var(--gutter) 32px;
	background: var(--bg);
	font-family: var(--display);
}
.foot__row {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 48px var(--gutter);
}
.foot__places a {
	font-size: clamp(1.625rem, 1.2rem + 1vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
	color: var(--ink);
	text-decoration: none;
	transition: color 200ms ease;
}
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot__cols a,
.foot__legal { font-size: 0.9375rem; font-weight: 500; }
.foot__cols li { margin-bottom: 10px; }
.foot__cols a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
	.foot a:hover { color: var(--accent); }
}
.foot__legal {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 96px;
	color: var(--muted);
	font-size: var(--step-small);
}

/* ---------- Zerrendak: bloga, kategoriak, bilaketa ---------- */

.list__head {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	align-items: end;
	gap: 28px var(--gutter);
	padding-block: clamp(64px, 9vw, 128px) 56px;
}
.list__title {
	font-family: var(--display);
	font-size: var(--step-display);
	letter-spacing: -0.035em;
	line-height: 0.95;
	max-width: 16ch;
}
.list__head .lead p { margin: 0; }
.list__intro { display: grid; gap: 24px; }
.list__desc { display: grid; gap: 0.8em; max-width: 60ch; }
.list__head .search { justify-self: end; width: 100%; }
.list__subs { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--display); font-weight: 500; }
.list__subs a { text-decoration-color: var(--accent); }

.search { display: grid; gap: 8px; max-width: 560px; }
.search__label { font-family: var(--display); font-size: var(--step-small); color: var(--muted); }
.search__row { display: flex; gap: 8px; }
.search input {
	flex: 1;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid #b3ab9c;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	border-radius: 0;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--accent); outline: none; }

.entries {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 36px var(--gutter);
	padding-bottom: 64px;
}
.entry a {
	display: grid;
	gap: 6px;
	text-decoration: none;
}
.entry__pic { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 10px; background: var(--surface); }
.entry__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) sepia(0.4) brightness(0.86) contrast(1.02);
	transition: filter 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
	.entry a:hover .entry__img { filter: none; }
}
.entry__title {
	font-family: var(--display);
	font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem);
	font-weight: 500;
	letter-spacing: -0.015em;
	line-height: 1.25;
	transition: color 200ms ease;
}
.entry__cat { font-family: var(--display); font-size: 1rem; color: var(--muted); }
.entry--text .entry__title {
	display: flex;
	align-items: flex-end;
	aspect-ratio: 16 / 10;
	margin-bottom: 10px;
	padding: 20px;
	background: var(--surface-2);
	font-size: clamp(1.375rem, 1rem + 0.9vw, 1.875rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.05;
}
@media (hover: hover) and (pointer: fine) {
	.entry a:hover .entry__title { color: var(--accent); }
}

.pager { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; padding-block: 24px 72px; font-family: var(--display); font-weight: 500; }
.pager .current { color: var(--accent); }
.pager a { text-decoration-color: var(--accent); }

/* ---------- Ikastaroa: unitateak ordenan ---------- */

.course__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 0 clamp(32px, 5vw, 96px);
	align-items: start;
}
.course__head { grid-template-columns: 1fr; padding-inline: 0; }
.course .list__title { font-size: clamp(2rem, 1rem + 2.4vw, 3.25rem); max-width: none; }
.course__intro { display: grid; gap: 0.8em; max-width: 52ch; }
.course__intro ul { padding-left: 1.2em; list-style: disc; }
.course__units { padding-block: clamp(64px, 9vw, 128px) 96px; }
.course__units .h-head { margin-bottom: 32px; }
.course__units ol { display: grid; }
.course__units a {
	display: grid;
	grid-template-columns: 3ch 1fr;
	gap: 24px;
	align-items: baseline;
	padding-block: 12px;
	font-family: var(--display);
	font-size: clamp(1.375rem, 1rem + 1.3vw, 2.125rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.15;
	text-decoration: none;
	transition: color 150ms ease;
}
.course__num { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
@media (hover: hover) and (pointer: fine) {
	.course__units a:hover { color: var(--accent); }
}
.course__other { padding-bottom: 96px; }
.course__other .h-head { margin-bottom: 32px; }

/* ---------- Irakurtzeko orriak ---------- */

.read__head {
	display: grid;
	gap: 24px;
	padding-block: clamp(56px, 8vw, 120px) clamp(48px, 5vw, 72px);
}
.read__meta { font-family: var(--display); font-size: var(--step-small); font-weight: 500; color: var(--muted); }
.read__meta a { color: var(--accent); text-decoration: none; }
.read__title {
	font-family: var(--display);
	font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem);
	letter-spacing: -0.03em;
	line-height: 1.02;
	max-width: 22ch;
}
.read__cover { margin: 0 0 56px; }
.read__cover img { width: min(1100px, 100%); max-height: 70svh; object-fit: cover; }

.read__body {
	padding: clamp(56px, 7vw, 104px) var(--gutter) var(--gap);
	background: var(--paper);
	color: var(--paper-ink);
}
.read__body::selection,
.read__body *::selection { background: var(--paper-ink); color: var(--paper); }

.prose > * { max-width: 68ch; margin-inline: auto; }
.prose > * + * { margin-top: 1.1em; }
.prose > .alignwide { max-width: 1100px; }
.prose > .alignfull { max-width: none; margin-inline: calc(var(--gutter) * -1); }
.prose h2,
.prose h3,
.prose h4 {
	font-family: var(--display);
	letter-spacing: -0.02em;
	line-height: 1.12;
	margin-top: 2em;
}
.prose h2 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); }
.prose h3 { font-size: clamp(1.3125rem, 1.15rem + 0.5vw, 1.5rem); }
.prose h4 { font-size: 1.125rem; }
.prose h2 + *,
.prose h3 + * { margin-top: 0.6em; }
.prose a { color: var(--paper-link); text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose a:focus-visible { outline-color: var(--paper-ink); }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.35em; }
.prose img,
.prose video,
.prose iframe { max-width: 100%; height: auto; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.prose figure { margin-block: 2em 0; }
.prose figcaption { margin-top: 8px; font-family: var(--display); font-size: var(--step-small); color: var(--paper-muted); }
.prose blockquote {
	margin-block: 1.8em 0;
	padding-left: 1.4em;
	font-size: var(--step-lead);
	font-style: italic;
	line-height: 1.4;
}
.prose pre,
.prose code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.9em; }
.prose pre { overflow-x: auto; padding: 18px 20px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.prose th,
.prose td { padding: 8px 10px; border-bottom: 1px solid var(--surface-2); text-align: left; vertical-align: top; }
.prose hr { border: 0; height: 32px; }
/* Ikastaroko unitateak: edukiaren barneko estiloak gaiaren sistemara ekarri. */
.prose > .wp-block-columns { max-width: 1160px; gap: clamp(32px, 4vw, 64px); }
/* Unitateek ikastaroaren nabigazioa dute; pluginaren aurkibide-zutabea soberan dago. */
.prose .wp-block-column:has(#ez-toc-container) { display: none !important; }
.prose .wp-block-column:not(:has(#ez-toc-container)) { flex: 1 1 100% !important; min-width: 0; }
.prose > .wp-block-columns:has(#ez-toc-container) { max-width: 880px; }
.prose .guide-container { max-width: none !important; margin: 0 !important; padding: 0 !important; font-family: inherit !important; color: inherit !important; }
.prose .guide-header { margin-bottom: 1.5em !important; }
.prose .guide-title,
.prose .section-title {
	font-family: var(--display) !important;
	color: var(--paper-ink) !important;
	letter-spacing: -0.02em;
	line-height: 1.12 !important;
	border: 0 !important;
	padding: 0 !important;
	background: none !important;
}
.prose .guide-title { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem) !important; }
.prose .section-title { font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem) !important; margin: 2em 0 0.6em !important; }
.prose .section { margin: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; }
.prose .feature-list { list-style: disc !important; padding-left: 1.3em !important; }
.prose .feature-list li::before { content: none !important; }
.prose .info-box,
.prose .example-box {
	margin-block: 1.5em !important;
	padding: 18px 22px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--surface) !important;
	color: var(--paper-ink) !important;
	box-shadow: none !important;
}
.prose .grid-layout { gap: 16px !important; }
.prose .grid-layout > * { border-radius: 0 !important; box-shadow: none !important; }
.prose .quiz-container {
	margin-block: 2em !important;
	padding: 24px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--surface) !important;
	box-shadow: none !important;
	font-family: inherit !important;
}
.prose .quiz-option { border-radius: 0 !important; background: var(--paper) !important; color: var(--paper-ink) !important; }
.prose .quiz-button {
	padding: 12px 22px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--paper-ink) !important;
	color: var(--paper) !important;
	font-family: var(--display) !important;
	font-weight: 700 !important;
	cursor: pointer;
}
.heateor_sss_sharing_ul .heateor_sss_svg { background-color: var(--paper-ink) !important; border-radius: 0 !important; }

/* Cookieak onartu arte blokeatutako bideoak eta embed-ak. */
.prose .eucookie {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	padding: 24px !important;
	background: var(--paper-ink) !important;
	color: var(--paper) !important;
	font-family: var(--display);
	text-align: center;
}
.prose .eucookie small { display: block; margin-top: 6px; font-size: 0.9375rem; }

/* Edukian txertatutako aplikazioak (lehen HTML dokumentu osoak ziren). */
.prose > .berezuma-embed { max-width: 1000px; margin-inline: auto !important; }

/* Easy Table of Contents: paperaren gainean, letra irakurgarria. */
.prose #ez-toc-container {
	width: auto !important;
	padding: 20px 24px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--surface) !important;
	box-shadow: none !important;
}
.prose #ez-toc-container .ez-toc-title {
	font-family: var(--display);
	font-size: 1.125rem !important;
	font-weight: 700;
	color: var(--paper-ink);
}
.prose #ez-toc-container ul { list-style: none; padding-left: 0; }
.prose #ez-toc-container ul ul { padding-left: 1.2em; }
.prose #ez-toc-container a {
	font-family: var(--display);
	font-size: 1rem !important;
	font-weight: 500;
	line-height: 1.5;
	color: var(--paper-ink) !important;
	text-decoration: none;
}
.prose #ez-toc-container a:hover { color: var(--paper-link) !important; text-decoration: underline; }

.prose .wp-block-button__link,
.prose .sdm_download {
	display: inline-block;
	padding: 12px 22px;
	background: var(--paper-ink);
	color: var(--paper);
	font-family: var(--display);
	font-weight: 700;
	text-decoration: none;
	border-radius: 0;
}

.next {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px var(--gutter);
	padding-block: 72px;
	font-family: var(--display);
}
.next a { display: grid; gap: 8px; font-size: var(--step-lead); font-weight: 500; line-height: 1.25; text-decoration: none; }
.next a:last-child:not(:first-child) { text-align: right; }
.next span { font-size: var(--step-small); color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
	.next a:hover { color: var(--accent); }
}

/* ---------- Pluginak: cookie oharra eta wp-courses ---------- */

.pea_cook_wrapper.pea_cook_wrapper {
	left: var(--gutter) !important;
	right: var(--gutter);
	bottom: var(--gutter) !important;
	width: auto !important;
	max-width: 560px;
	margin: 0 !important;
	padding: 18px 20px !important;
	border-radius: 0 !important;
	background: var(--surface-2) !important;
	color: var(--ink) !important;
	box-shadow: 0 12px 32px rgba(42, 29, 23, 0.35) !important;
	text-shadow: none !important;
	transform: none !important;
}
.pea_cook_wrapper p {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 0 !important;
	font-family: var(--display) !important;
	font-size: 0.9375rem !important;
	font-weight: 500;
	line-height: 1.45 !important;
	text-align: left !important;
	text-shadow: none !important;
}
.pea_cook_wrapper #fom { color: var(--ink) !important; border: 0 !important; text-decoration: underline; }
.pea_cook_wrapper .pea_cook_btn {
	margin: 0 !important;
	padding: 9px 18px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--accent) !important;
	color: var(--accent-ink) !important;
	font-family: var(--display) !important;
	font-size: 0.875rem !important;
	font-weight: 700 !important;
	text-shadow: none !important;
	box-shadow: none !important;
	cursor: pointer;
}
body:not([class*="lesson"]):not([class*="course"]) .wpc-right-toggle-sidebar,
body:not([class*="lesson"]):not([class*="course"]) .wpc-bottom-toggle-sidebar { display: none !important; }

/* ---------- Agerpenak ---------- */

.reveal [data-reveal] {
	opacity: 0;
	transform: translate3d(0, 24px, 0);
	transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
	transition-delay: var(--d, 0ms);
}
.reveal [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero__title { animation: none; }
	.reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
	.lineup li a,
	.btn,
	.book { transition: none; }
}

/* ---------- Tableta eta mugikorra ---------- */

@media (max-width: 900px) {
	.list__head { grid-template-columns: 1fr; }
	.list__head .search { justify-self: start; }
	.about { padding-block: 96px; }
	.contact { min-height: 0; grid-template-rows: auto; }
	.contact__mail { margin: 48px 0 24px; }
	.books__stage { padding-bottom: 96px; }
	.course__grid { grid-template-columns: 1fr; }
	.course__head { position: static; }
	.course__units { padding-top: 24px; }
	.work__intro,
	.class__head,
	.about,
	.foot__row { grid-template-columns: 1fr; }
	.work__intro .lead,
	.class__head .lead { justify-self: start; }
	.work__intro .lead,
	.class__head .lead { max-width: 46ch; }
	.work__intro .h-head,
	.class__head .h-head { max-width: none; }
	.next { grid-template-columns: 1fr; }
	.shelf { grid-template-columns: 1fr; }
	.proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.shelf__stage { display: none; }
	.shelf__link { grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 2px 16px; }
	.shelf__thumb {
		display: block;
		grid-row: span 2;
		width: 112px;
		aspect-ratio: 4 / 3;
		object-fit: cover;
		object-position: top left;
		filter: grayscale(1) sepia(0.4) brightness(0.86) contrast(1.02);
	}
	.shelf__name { align-self: end; }
	.shelf__fact { grid-column: 2; align-self: start; }
	.shelf__item.is-on .shelf__name { color: inherit; }
	.next a:last-child:not(:first-child) { text-align: left; }
}

@media (max-width: 640px) {
	.bar { padding-block: 16px; }
	.bar__nav { gap: 4px 18px; }
	.bar__nav a { font-size: 0.875rem; }

	.hero__title { font-size: 15vw; }
	.about__pin { grid-template-columns: 1fr; gap: 24px; }
	.about__portrait { width: 56%; }
	.hero__body { grid-template-columns: 1fr; }
	.hero__facts { justify-self: start; }

	.lineup li a { grid-template-columns: 1fr; gap: 0; }
	.lineup__name { font-size: 1.375rem; }
	.lineup__count { font-size: 0.875rem; }

	.book__panel { grid-template-columns: 1fr; gap: 8px; }
	.book__name { font-size: 1.625rem; }
	.book__text { text-align: left; }


	.contact__mail { font-size: 11vw; white-space: normal; }

	.foot__cols { grid-template-columns: 1fr 1fr; }
	.foot__legal { margin-top: 64px; }
}
