/*
 * eca-sr-new.css
 * Extension of eca-sr.css for the Libraries project (NEW content).
 * Base typography, spacing and .eca-sr rules inherit from eca-sr.css.
 * Add only visual variations not covered by the base stylesheet.
 * Reuse existing eca-sr.css classes whenever they fit before adding new rules.
 */

/* TOC: max depth = subcapitulo2 (h4). Do not use subcapitulo3 in #toc / #mobile-nav. */
.subcapitulo3 {
	margin-left: 50px;
}

@font-face {
	font-family: "Epicursive Script";
	src: url("../fonts/EpicursiveScript-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* --------------------------------------------------------------------------
   Chapter header variants (modifier on div.eca-sr – does not alter base h2)
   Usage: <div id="chapter0-foreword" class="eca-sr header-style--center-underline">
   Add the same modifier to other chapter divs when they share this look.
   -------------------------------------------------------------------------- */
.eca-sr.header-style--center-underline .cabec {
	text-align: center;
}

.eca-sr.header-style--center-underline .cabec h2 {
	color: #0d2847;
	text-align: center;
	text-decoration: none;
	border-bottom: none; /* remark 15: no underline except links */
	display: inline-block;
	padding-bottom: 0;
	margin-bottom: 28px;
	text-transform: uppercase; /* remark 17: caps solo visuales */
}

.eca-sr.header-style--center-underline .cabec h2 span {
	color: #0d2847;
}

/* Chapter 3 – title + script subtitle de seguido */
.eca-sr.header-style--chapter3 .cabec h2 {
	border-bottom: none;
	padding-bottom: 0;
	display: inline-block;
	margin-bottom: 28px;
	line-height: 1.2;
}

.cabec--chapter3 .cabec__title-upper {
	display: inline-block;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.35;
	text-align: left;
	border-bottom: none; /* remark 15 */
	padding-bottom: 0;
	vertical-align: bottom;
}

.cabec--chapter3 .cabec__title-script {
	display: inline-block;
	font-family: "Open Sans", arial, sans-serif;
	font-size: clamp(2.4rem, 7vw, 3.35rem);
	font-weight: 400;
	color: #0d2847;
	line-height: 1.0;
	text-align: left;
	vertical-align: bottom;
	margin-left: 0;
}

/* Chapter 5 – green accent (PDF pp. 89–105) */
.eca-sr.header-style--chapter5 .cabec h2 {
	border-bottom: none;
	padding-bottom: 0;
	display: inline-block;
	margin-bottom: 28px;
	line-height: 1.2;
}

.cabec--chapter5 .cabec__title-upper {
	display: inline-block;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.35;
	text-align: left;
	border-bottom: none; /* remark 15 */
	padding-bottom: 0;
	vertical-align: bottom;
}

.cabec--chapter5 .cabec__title-script {
	display: inline-block;
	font-family: "Open Sans", arial, sans-serif;
	font-size: clamp(2.4rem, 7vw, 3.35rem);
	font-weight: 400;
	color: #0e6a39;
	line-height: 1.0;
	text-align: left;
	vertical-align: bottom;
	margin-left: 0;
}

/* Chapter 6 – dark title; green section headings (heading-subsection--green on h3) */
.eca-sr.header-style--chapter6 .cabec h2 {
	border-bottom: none;
	padding-bottom: 0;
	display: inline-block;
	margin-bottom: 28px;
	line-height: 1.2;
}

.cabec--chapter6 .cabec__title-upper {
	display: inline-block;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.35;
	text-align: left;
	border-bottom: none; /* remark 15 */
	padding-bottom: 0;
	vertical-align: bottom;
}

.cabec--chapter6 .cabec__title-script {
	display: inline-block;
	font-family: "Open Sans", arial, sans-serif;
	font-size: clamp(2.4rem, 7vw, 3.35rem);
	font-weight: 400;
	color: #0d2847;
	line-height: 1.0;
	text-align: left;
	vertical-align: bottom;
	margin-left: 0;
}

#chapter5 .eca-best-practice__body {
	background: #e8f3e3;
}

.eca-sr h4.heading-aside,
.eca-sr h4.heading-subsection--green {
	color: #000;
	font-size: 1em;
	font-weight: 600;
	border-bottom: none !important;
	text-decoration: none;
	display: block;
	padding: 0;
	margin: 1.6em 0 0.8em;
}

.eca-sr h4.eca-programmes-heading {
	color: #000;
	font-size: 0.95em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 0.6em;
	padding: 0.35em 0.6em;
	background: #f2efed;
	border: 1px solid #d8d8d8;
	display: block;
}

.eca-sr ul.programmes-list {
	list-style: none;
	padding-left: 0;
	margin-bottom: 1em;
}

.eca-sr ul.programmes-list li {
	color: #000;
	position: relative;
	padding-left: 1.1em;
	margin-bottom: 0.35em;
}

.eca-sr ul.programmes-list > li::before {
	content: "\203A";
	position: absolute;
	left: 0;
	top: 0;
	color: #275B9B;
	font-weight: 700;
}

.eca-sr ul.programmes-list ul {
	list-style: none;
	padding-left: 0.8em;
	margin: 0.25em 0 0.5em;
}

.eca-sr ul.programmes-list ul li::before {
	content: "•";
	color: #275B9B;
}

/* --------------------------------------------------------------------------
   Numbered societal-challenge sections (chapter 3, items 1–10)
   Large number + orange down-arrow + title; two-column body
   -------------------------------------------------------------------------- */
.challenge-section__head {
	font-size: 1.25em;
	margin-bottom: 1em;
}

.challenge-section__num-row {
	display: flex;
	align-items: flex-end;
	gap: 0.2em;
	line-height: 1;
}

.challenge-section__num {
	font-size: 1.42em;
	font-weight: 300;
	color: #1a1a1a;
	line-height: 1;
}

.challenge-section__arrow {
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 0.38em solid transparent;
	border-right: 0.38em solid transparent;
	border-top: 0.58em solid #d78000;
	margin-bottom: 0.2em;
}

.challenge-section__title,
.eca-sr h3.challenge-section__title {
	color: #000;
	font-size: 1em;
	font-weight: 600;
	line-height: 1.25;
	border-bottom: none;
	display: block;
	margin: 0.45em 0 0;
	padding: 0;
}

.challenge-section--single {
	margin-top: 1.6em;
}

.challenge-section--single > .img--full {
	margin-top: 1.6em;
	margin-bottom: 1.6em;
}

.challenge-section__footer-img,
.eca-best-practice__footer-img {
	margin-top: 1.2em;
	margin-bottom: 0;
}

.challenge-section__footer-img img,
.eca-best-practice__footer-img img {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Best-practice callout boxes (chapter 3 – country / project examples)
   Header 3-9 or 9-3: image ALWAYS in col-md-3 (that column is sized for the graphic).
   --flag-left:  col-md-3 (image) + col-md-9 (empty)
   --flag-right: col-md-9 (empty) + col-md-3 (image)
   Body: peach #fee8db (ch.3 retos 1–9, ch.4); reto 10 fill #e2e1e4 (PNG sample); default #f2efed
   Section label: .eca-best-practices-section (2nd proof) – one per thematic block;
   horizontal navy bar, white caps, uniform padding around label text.
   -------------------------------------------------------------------------- */
.eca-best-practices-section {
	margin: 1.6em 0;
}

.eca-best-practices-section__heading {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 0.8em;
	padding: 0.65em 0.85em;
	background-color: #0d2847;
	font-family: "Open Sans", arial, sans-serif;
	font-size: 1.05em;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
}

.eca-best-practices-section__label {
	color: #ffffff;
}

.eca-best-practices-section > .eca-best-practice:first-of-type {
	margin-top: 0;
}

.eca-best-practice {
	margin: 1.6em 0;
	padding: 0;
}

.eca-best-practice__intro-banner.img--full {
	margin-bottom: 0;
}

.eca-best-practice--after-banner {
	margin-top: 0;
}

.eca-best-practice__body .img--full {
	margin-top: 1em;
	margin-bottom: 1em;
}

.eca-best-practice__body-cols {
	margin-bottom: 0;
}

.eca-best-practice__body-cols .eca-best-practice__title {
	margin-top: 0;
}

.eca-best-practice__header {
	background-color: #ffffff;
	padding-bottom: 0.4em;
}

.eca-best-practice__flag-row {
	margin-bottom: 0;
}

/* Imagen en col-md-3 (3/12): natural width, flush left. Grid caps (12-col Bootstrap):
   standard/tall max 4 cols; wide (panorama) max 5 cols. Percentages are relative to
   the col-md-3 parent: N cols → max-width (N/3)*100%. Always width/height auto except
   wide tier scales up to 5 cols by width (proportional). */
div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img {
	display: block;
	width: auto !important;
	max-width: 133.333% !important; /* 4/12 */
	height: auto !important;
	margin-top: 0 !important;
	margin-bottom: 0.4em !important;
	margin-left: 0 !important;
	margin-right: auto !important;
}

div.eca-sr .eca-best-practice__flag-col--left > img {
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* Legacy --right kept for markup compatibility; visually same as --left (EU unify). */
div.eca-sr .eca-best-practice__flag-col--right > img {
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* Country map icons – geometry tiers (img/ch03-flag-icons.json, img/ch04-flag-icons.json;
   scripts/classify-flag-icons.py). Grid caps on 12-col layout. col-md-3: 133%/166% = 4/5 cols
   of row; col-md-5 (--legible): max-width 100% of column. Scale only proportionally. */
div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--standard {
	width: auto !important;
	max-width: 133.333% !important; /* 4/12 from col-md-3 */
	height: auto !important;
}

div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--wide {
	width: auto !important;
	max-width: 166.667% !important; /* 5/12 from col-md-3 */
	max-height: 8rem !important;
	height: auto !important;
}

div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--wide-boost {
	width: 166.667% !important;
	max-width: 166.667% !important;
	max-height: 10.5rem !important;
	height: auto !important;
}

div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--composite {
	max-height: 10.5rem !important;
	width: auto !important;
	height: auto !important;
	max-width: 133.333% !important;
}

div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--tall {
	max-height: 17rem !important;
	width: auto !important;
	height: auto !important;
	max-width: 133.333% !important;
}

/* I2 correctives (case-by-case): stack on geometry tier — enlarge / ease without re-tier.
   Tier-qualified so --up on tall/composite does not clamp to the wide 11rem value. */
div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--wide.eca-flag-icon--up {
	max-height: 11rem !important; /* PL: wide 8 → 11 */
}

div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--composite.eca-flag-icon--up {
	max-width: 150% !important;
	max-height: 12.25rem !important; /* DE: +poco (ancho + alto; solo alto no bastaba) */
}

div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--composite.eca-flag-icon--up-more {
	max-width: 166.667% !important; /* 5/12 — EN / IT-ES */
	max-height: 15rem !important;
}

div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--composite.eca-flag-icon--up-lg {
	max-width: 205% !important; /* Emotions: + sobre 185% */
	max-height: 18.5rem !important;
}

div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--composite.eca-flag-icon--up-max {
	max-width: 275% !important; /* Finlit: +poco sobre 245% */
	max-height: 25rem !important;
}

div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--tall.eca-flag-icon--up {
	max-height: 19rem !important; /* SE: tall 17 → +poco */
}

div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--down {
	max-height: 6.5rem !important; /* wide un poco menos (base --wide = 8rem) */
}

div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--down-soft {
	max-height: 8rem !important; /* standard: suave (HU, NL) */
}

div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--wide.eca-flag-icon--down-soft {
	max-height: 7.25rem !important; /* wide 8rem → −poco (2.º Denmark WEEK17) */
}

/* Composite: el 133% de ancho anula un down solo por altura — hay que recortar ambos */
div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--composite.eca-flag-icon--down-soft {
	max-width: 110% !important;
	max-height: 8.5rem !important; /* PT-SK: entre el 133%/10.5 y el down 6rem */
}

div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--composite.eca-flag-icon--down {
	max-width: 100% !important;
	max-height: 6rem !important;
}

div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--ease {
	max-height: 13rem !important; /* tall “ma non troppo” (tall base = 17rem) */
}

/* col-md-5 / --legible (e.g. ch04 da-de): % caps are relative to wider column – stay in slot */
div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col--legible > img,
div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row [class*="col-md-5"].eca-best-practice__flag-col > img {
	max-width: 100% !important;
}

div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col--legible > img.eca-flag-icon--composite {
	max-height: 22rem !important;
}

div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col--legible > img.eca-flag-icon--composite.eca-flag-icon--down-soft {
	max-width: 100% !important;
	max-height: 19rem !important; /* DA-DE: −poco desde 22rem legible */
}

div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col--legible > img.eca-flag-icon--composite.eca-flag-icon--down {
	max-width: 100% !important;
	max-height: 15rem !important;
}

div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col--legible > img.eca-flag-icon--composite.eca-flag-icon--up {
	max-width: 100% !important;
	max-height: 24.5rem !important; /* IE-LU-NL-FI: +poco desde 22rem */
}

div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col--legible > img.eca-flag-icon--composite.eca-flag-icon--up-more {
	max-width: 100% !important;
	max-height: 27rem !important;
}

/* Mobile: col-md-3 stacks to full row width — 133%/166% of parent overflows viewport
   (e.g. Hungary ch03-hu “Hungar…” clipped). Cap icons to container. */
@media (max-width: 767px) {
	div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row {
		max-width: 100%;
		overflow-x: hidden;
	}

	div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col {
		max-width: 100%;
		overflow-x: hidden;
	}

	div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img,
	div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--standard,
	div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--wide,
	div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--wide-boost,
	div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--composite,
	div.eca-sr .eca-best-practice__header .eca-best-practice__flag-row .eca-best-practice__flag-col > img.eca-flag-icon--tall {
		width: auto !important;
		max-width: 100% !important;
		height: auto !important;
	}

	#annex2 .annex2-factsheet__map-band,
	#annex2 .annex2-factsheet__map-band--wide,
	#annex2 .annex2-factsheet__map-band--wide-boost {
		max-width: 100%;
		overflow-x: hidden;
	}

	#annex2 .annex2-factsheet__map,
	#annex2 .annex2-factsheet__map-band--wide .annex2-factsheet__map--wide,
	#annex2 .annex2-factsheet__map-band--wide-boost .annex2-factsheet__map--wide-boost {
		width: auto !important;
		max-width: 100% !important;
		height: auto !important;
	}

	#annex3 .annex3-map-band {
		max-width: 100%;
		overflow-x: hidden;
	}

	#annex3 .annex3-map,
	#annex3 .annex3-map--standard,
	#annex3 .annex3-map--wide,
	#annex3 .annex3-map--wide-boost,
	#annex3 .annex3-map--tall,
	#annex3 .annex3-map--composite {
		width: auto !important;
		max-width: 100% !important;
		height: auto !important;
	}
}

.eca-best-practice__body {
	background: #f2efed;
	padding: 1.4em 1.6em 1.6em;
}

/* Ch.3 retos 1–9 – PDF peach fill #fee8db */
#chapter3 .eca-best-practice__body {
	background: #fee8db;
}

/* Ch.3 reto 10 – fill sampled from ch03-tu/uk/ga-2 PNG background @ 400 % (#e2e1e4) */
#chapter3 {
	--eca-ch03-reto10-fill: #e2e1e4;
}

#chapter3 .eca-best-practice-group--mauve,
#chapter3 .eca-section-intro--mauve {
	background: var(--eca-ch03-reto10-fill);
}

/* Peach override (#chapter3 .eca-best-practice__body) must not apply inside reto 10 */
#chapter3 .eca-best-practice-group--mauve .eca-best-practice__body {
	background: transparent !important;
}

#chapter3 .eca-best-practices-section--greige .eca-section-intro--mauve + .eca-best-practice .eca-best-practice__body {
	background: var(--eca-ch03-reto10-fill) !important;
	padding: 0 1.6em 1.6em;
}

/* Reto 10: one continuous band after the heading (match PNG greige, no white header strip) */
#chapter3 .eca-best-practices-section--greige > .eca-best-practice-group--mauve,
#chapter3 .eca-best-practices-section--greige > .eca-section-intro--mauve,
#chapter3 .eca-best-practices-section--greige > .eca-best-practice {
	background: var(--eca-ch03-reto10-fill);
}

#chapter3 .eca-best-practices-section--greige > .eca-best-practice-group--mauve {
	margin: 0;
	padding: 1.4em 1.6em 1.6em;
}

#chapter3 .eca-best-practices-section--greige > .eca-section-intro--mauve {
	margin: 0;
	padding: 1.4em 1.6em;
}

#chapter3 .eca-best-practices-section--greige > .eca-best-practice {
	margin: 0;
	padding: 0 0 1.6em;
}

#chapter3 .eca-best-practices-section--greige .eca-best-practice__header {
	background-color: transparent;
}

/* ch03-34 etc.: same vertical rhythm as rest of book (1.2em), greige band preserved */
#chapter3 .eca-best-practices-section--greige > .img--full,
#chapter3 .eca-best-practices-section--greige .eca-best-practice-group--mauve > .img--full {
	display: block;
	margin: 1.2em 0;
	padding: 0 1.6em;
	background: var(--eca-ch03-reto10-fill);
	box-sizing: border-box;
}

/* Warrior col image (ch03-35): body has no peach padding in mauve group */
#chapter3 .eca-best-practices-section--greige .eca-best-practice-group--mauve [class*="col-"] > img {
	margin-top: 1.2em;
	margin-bottom: 1.2em;
}

/* Reto 10: extra BEST PRACTICES bars (Warrior, COVID – PDF pp. 65–67) */
#chapter3 .eca-best-practices-section--greige .eca-best-practices-section__heading {
	margin-bottom: 0.8em;
}

#chapter3 .eca-best-practices-section--greige .eca-best-practice-group--mauve > .eca-best-practices-section__heading {
	margin-top: 0;
}

/* COVID bar: outside mauve group – needs same air as after ch03-34 (not flush to Warrior photo) */
#chapter3 .eca-best-practices-section--greige > .eca-best-practice-group--mauve + .eca-best-practices-section__heading {
	margin-top: 1.2em;
}

/* Ch.4 best-practice boxes – same peach as ch.3 retos 1–9 */
#chapter4 .eca-best-practice__body {
	background: #fee8db;
}

.eca-best-practice__title,
.eca-sr h4.eca-best-practice__title,
.eca-sr h5.eca-best-practice__title {
	color: #000;
	font-size: 1.05em;
	font-weight: 600;
	line-height: 1.3;
	border-bottom: none; /* remark 15: no underline except links */
	display: inline-block;
	padding: 0;
	margin: 0 0 1em;
	/* Reset legacy div.eca-sr h5 (green badge) when reusing h5 semantically */
	background: none;
	margin-left: 0;
}

.eca-best-practice ol {
	margin-bottom: 1em;
	padding-left: 1.4em;
}

.eca-best-practice ol > li {
	margin-bottom: 0.45em;
}

.eca-best-practice__brace-line {
	position: relative;
	margin: 0.45em 0 0 !important;
	padding: 0;
	font-size: clamp(3.5rem, 10vw, 5.5rem);
	line-height: 0;
	/* Solo la anchura visual del } rotado; evita reservar ~1em de alto del glifo */
	height: 0.34em;
	overflow: visible;
}

/* } rotado 90° → llave hacia abajo; translateX alinea con inicio de párrafo */
.eca-best-practice__brace {
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	font-size: 1em;
	font-weight: 300;
	line-height: 1;
	color: #1d429b;
	transform: translateX(1.06em) rotate(90deg);
	transform-origin: left top;
}

.eca-best-practice__more {
	margin: 0.12em 0 0 !important;
	font-size: inherit;
	word-break: break-all;
	overflow-wrap: anywhere;
}

.eca-best-practice__more a {
	word-break: break-all;
	overflow-wrap: anywhere;
}

/* Mauve inset group (challenge 10 subsections – PDF pages 62–63) */
.eca-best-practice-group--mauve {
	background: #e1e0e4;
	margin: 1.6em 0;
	padding: 1.4em 1.6em 1.6em;
}

.eca-best-practice-group--mauve .eca-best-practice {
	margin: 0;
}

.eca-best-practice-group--mauve .eca-best-practice + .eca-best-practice {
	margin-top: 1.6em;
}

.eca-best-practice-group--mauve .eca-best-practice__header {
	background-color: transparent;
}

.eca-best-practice-group--mauve .eca-best-practice__body {
	background: transparent;
	padding: 0;
}

.eca-best-practice-group--mauve > .heading-subsection {
	margin-top: 0;
}

/* h3 intro block under challenge 10 (e.g. COVID – PDF page 65) */
.eca-section-intro--mauve {
	background: #e1e0e4;
	margin: 1.6em 0 0;
	padding: 1.4em 1.6em 1.6em;
}

.eca-section-intro--mauve > .heading-subsection,
.eca-section-intro--mauve > .eca-best-practice__title {
	margin-top: 0;
}

.eca-section-intro--mauve > p:last-child {
	margin-bottom: 0;
}

/* Two-column text flow (replaces Bootstrap row when copy spans columns / pages) */
.eca-flow-cols {
	column-count: 2;
	column-gap: 2em;
	column-fill: balance;
	width: 100%;
}

.eca-flow-cols > p {
	margin-top: 0;
	margin-bottom: 1em;
	break-inside: auto;
	-webkit-column-break-inside: auto;
	page-break-inside: auto;
}

.eca-flow-cols > .eca-flow-cols__figure {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	margin: 0 0 1em;
}

.eca-flow-cols > .eca-flow-cols__figure img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0;
}

.eca-flow-cols > .eca-best-practice__brace-line,
.eca-flow-cols > .eca-best-practice__more {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
}

@media (max-width: 767px) {
	.eca-flow-cols {
		column-count: 1;
	}
}

/* --------------------------------------------------------------------------
   Foreword – text + profile sidebar (layout-text-sidebar pattern)
   -------------------------------------------------------------------------- */
.variant-sidebar-bg {
	background-color: #fde8d0;
	padding: 30px;
}

.profile-block {
	margin-bottom: 30px;
}

.profile-block:last-child {
	margin-bottom: 0;
}

.profile-block img,
.profile-img {
	width: 100%;
	max-width: 220px;
	height: auto;
	border: 4px solid #ffffff;
}

.profile-block figcaption {
	margin-top: 15px;
	font-size: 0.9em;
	line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Subsection headings (h3) – left-aligned, dark (remark 15: sin subrayado)
   chapter 1: .heading-subsection (navy) | chapter 2+: .heading-subsection--orange
   -------------------------------------------------------------------------- */
.eca-sr h3.heading-subsection {
	color: #0d2847;
	border-bottom: none;
	text-decoration: none;
	display: inline-block;
	padding-bottom: 0;
	margin-top: 2em;
	margin-bottom: 0.8em;
}

.eca-sr h3.heading-subsection--orange {
	color: #000;
}

.eca-sr h3.heading-subsection.heading-subsection--green {
	color: #000;
	border-bottom: none;
	padding-bottom: 0;
}

.eca-sr h3.heading-subsection.heading-subsection--plain {
	color: #000;
	border-bottom: none;
	padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   Societal challenges list (1–10) – PDF style
   Number right-aligned | orange › arrow (::after) | text with blue marker
   Usage: <ol class="challenge-list"><li><mark>…</mark></li></ol>
   <mark> con width:fit-content — el fondo solo cubre el texto, no el <li>
   -------------------------------------------------------------------------- */
ol.challenge-list {
	counter-reset: challenge;
	list-style: none;
	/* margin-left: hereda 20px de .eca-sr ol (plantilla) */
}

ol.challenge-list > li {
	counter-increment: challenge;
	display: grid;
	grid-template-columns: 2.6em 1.1em 1fr;
	column-gap: 0.2em;
	align-items: baseline;
	margin-bottom: 0.55em;
	padding-left: 0;
	list-style: none;
}

ol.challenge-list > li::before {
	grid-column: 1;
	grid-row: 1;
	content: counter(challenge);
	text-align: right;
	font-size: 1.85em;
	font-weight: 700;
	line-height: 1;
	color: #1a1a1a;
}

ol.challenge-list > li::after {
	grid-column: 2;
	grid-row: 1;
	content: "\203A";
	/* Single orange AA token for UI (chevron, underlines): #d78000 ≈3.01:1 on white.
	   4.5:1 (#ab6600) is only required for text; too brown for accents. */
	color: #d78000;
	font-size: 1.35em;
	font-weight: 700;
	line-height: 1;
	align-self: center;
}

ol.challenge-list > li > mark {
	grid-column: 3;
	grid-row: 1;
	justify-self: start;
	width: fit-content;
	max-width: 100%;
	background-color: #e6e9f8;
	color: inherit;
	font-weight: inherit;
	padding: 0.1em 0.2em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	line-height: 1.45;
}

/* --------------------------------------------------------------------------
   h4 enablers (numbered subsections) – PDF uses black, not template grey
   Base eca-sr.css: div.eca-sr h4 { color: #706F6F }
   -------------------------------------------------------------------------- */
div.eca-sr h4 {
	color: #000;
}

/* --------------------------------------------------------------------------
   Hyperlinks in content (remark 16)
   Reposo: subrayado, color de enlace. Hover/focus: sin subrayado + azul más oscuro.
   No aplica a UI (TOC, breadcrumb, mobile-nav están de .eca-sr) ni a .credits-link.
   -------------------------------------------------------------------------- */
div.eca-sr a:not(.credits-link) {
	font-weight: normal;
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

div.eca-sr a:not(.credits-link):hover,
div.eca-sr a:not(.credits-link):focus {
	text-decoration: none;
	/* Oscurece #275B9B de plantilla; !important gana a eca-sr.css a:hover */
	color: #1a447a !important;
}

div.eca-sr a:not(.credits-link) > strong {
	font-weight: 700;
	color: inherit;
}

/* Annex 2 & 3: enlace en negro para contrastar con el texto azul (#034ea2) por accesibilidad (OP pág. 128, 147) */
#annex2 .annex2-link--black,
#annex2 a.annex2-link--black,
#annex3 .annex3-link--black,
#annex3 a.annex3-link--black,
#annex3 p a:not(.eca-sr-btn) {
	color: #000 !important;
	font-weight: inherit;
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

#annex2 .annex2-link--black:hover,
#annex2 .annex2-link--black:focus,
#annex2 a.annex2-link--black:hover,
#annex2 a.annex2-link--black:focus,
#annex3 .annex3-link--black:hover,
#annex3 .annex3-link--black:focus,
#annex3 a.annex3-link--black:hover,
#annex3 a.annex3-link--black:focus,
#annex3 p a:not(.eca-sr-btn):hover,
#annex3 p a:not(.eca-sr-btn):focus {
	color: #000 !important;
	text-decoration: none;
}

/* Iconos de créditos: UI, nunca subrayado */
.eca-sr .credits-link,
.eca-sr .credits-link:hover,
.eca-sr .credits-link:focus {
	text-decoration: none !important;
}

/* Nav operativa: sin subrayado (ni en hover de Bootstrap) */
#toc a,
#toc a:hover,
#toc a:focus,
#mobile-nav a,
#mobile-nav a:hover,
#mobile-nav a:focus,
.breadcrumbs a,
.breadcrumbs a:hover,
.breadcrumbs a:focus,
#globalnav a,
#globalnav a:hover,
#globalnav a:focus {
	text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   bull-list – blue bullets (PDF); overrides template green #0E6A39 and
   generic .eca-sr ul li::before grey ◗
   Absolute bullet + padding-left on li: aligned wraps, no wide gap.
   -------------------------------------------------------------------------- */
.eca-sr ul.bull-list {
	list-style: none;
	padding-left: 0;
}

.eca-sr ul.bull-list li {
	color: #000;
	position: relative;
	padding-left: 1em;
}

.eca-sr ul.bull-list li::before {
	content: "•";
	position: absolute;
	left: 0;
	top: 0;
	width: auto;
	margin-left: 0;
	display: block;
	color: #275B9B;
}

/* Non-breaking typographic units (EUR amounts use &#160;; short phrases use .nobreak) */
.nobreak {
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Main report body text – black (2nd proof C1)
   Scope: ch. 0–6 + endnotes. Annex 1–3 unchanged. Links keep #275B9B.
   -------------------------------------------------------------------------- */
:is(
	#chapter0-omc,
	#chapter0-foreword,
	#chapter1,
	#chapter2,
	#chapter3,
	#chapter4,
	#chapter5,
	#chapter6,
	#chapter7-endnotes
) {
	color: #000;
}

:is(
	#chapter0-omc,
	#chapter0-foreword,
	#chapter1,
	#chapter2,
	#chapter3,
	#chapter4,
	#chapter5,
	#chapter6,
	#chapter7-endnotes
) :is(
	p,
	li,
	cite,
	blockquote:not(.eca-manifesto-quote),
	dd,
	dt,
	td,
	th,
	.eca-best-practice__body,
	.eca-best-practice__more,
	ul.dash-list,
	ul.emdash-list,
	ul.endash-list,
	ul.ndash-ul
) {
	color: #000;
}

/* C1 exceptions – intentional design colors (not conventional body text) */
:is(
	#chapter0-omc,
	#chapter0-foreword,
	#chapter1,
	#chapter2,
	#chapter3,
	#chapter4,
	#chapter5,
	#chapter6,
	#chapter7-endnotes
) blockquote.eca-manifesto-quote,
:is(
	#chapter0-omc,
	#chapter0-foreword,
	#chapter1,
	#chapter2,
	#chapter3,
	#chapter4,
	#chapter5,
	#chapter6,
	#chapter7-endnotes
) blockquote.eca-manifesto-quote :is(p, sup.superscript, .superscript) {
	color: #2a499f;
}

:is(
	#chapter0-omc,
	#chapter0-foreword,
	#chapter1,
	#chapter2,
	#chapter3,
	#chapter4,
	#chapter5,
	#chapter6,
	#chapter7-endnotes
) .eca-best-practices-section__heading,
:is(
	#chapter0-omc,
	#chapter0-foreword,
	#chapter1,
	#chapter2,
	#chapter3,
	#chapter4,
	#chapter5,
	#chapter6,
	#chapter7-endnotes
) .eca-best-practices-section__label {
	color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Content photos in .eca-sr – vertical separation (rhythm matches p 1.2em)
   Single column (default): centred, natural width – not left-aligned.
   Very large images: .img--full (100 % content width).
   Base eca-sr.css div.eca-sr img { width: 100% } is overridden below.
   -------------------------------------------------------------------------- */
div.eca-sr img:not(.profile-img):not(.img_cover):not(.cc_logo):not(.img-responsive):not(.img--full):not(.section-opener) {
	display: block;
	margin: 1.2em auto;
	width: auto;
	max-width: 100%;
	height: auto;
}

/* Inside Bootstrap columns (two-column layouts): fill column width */
div.eca-sr [class*="col-"] > img:not(.profile-img):not(.img_cover):not(.img--full):not([class*="eca-flag-icon--"]) {
	width: 100%;
	max-width: 100%;
	margin-top: 0;
	margin-bottom: 1.2em;
}

/* --------------------------------------------------------------------------
   Layout: columns and images (convention – see _reference/eca-template-map.json)
   Single column: images centred via margin auto or .layout-img-single
   .layout-img-single--8: max 8/12 (~67 %) centred – diagrams like ch03-001
   .img--full: spans full content width (chapter openers, very wide figures)
   -------------------------------------------------------------------------- */
.eca-sr .layout-img-single {
	display: flex;
	justify-content: center;
	margin: 1.2em 0;
}

.eca-sr .layout-img-single img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0;
}

.eca-sr .layout-img-single--8 img {
	max-width: 66.666667%;
}

div.eca-sr img.img--full {
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 1.6em auto;
}

div.eca-sr img.img--full + img.img--full {
	margin-top: 0;
}

/* --------------------------------------------------------------------------
   Section opener – única regla de ancho para cabeceras de capítulo/anexo.
   Ancho visual = 100 % del contenedor .eca-sr (márgenes asimétricos 20px / 30px
   heredados de eca-sr.css). El alineado del dibujo interior depende del recorte
   en los JPEG de origen (igualar ancho en px y recortar márgenes blancos).
   -------------------------------------------------------------------------- */
div.eca-sr > img.section-opener,
div.eca-sr > .annex-opener > img.section-opener,
div.eca-sr > .annex3-hero > img.section-opener {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: top;
	box-sizing: border-box;
}

div.eca-sr > img.section-opener + .cabec {
	margin-top: 1.5em;
}

/* Metaphor / role labels: <p><strong>Marketplace</strong></p> */
div.eca-sr p:has(> strong:only-child) {
	margin-top: 1.6em;
}

/* Two-column role text and similar .row blocks – keep separation from neighbours */
div.eca-sr p + .row,
div.eca-sr .img--full + .row,
div.eca-sr .row + .eca-best-practice,
div.eca-sr .row + .img--full,
div.eca-sr .eca-best-practice + .img--full {
	margin-top: 1.6em;
}

/* --------------------------------------------------------------------------
   IFLA / manifesto block quote – blue italic, 2 columns, opening quote cap
   PDF: ECSquareSansProLight-Ita #2a499f; footnote (2) at end (size ~5.8)
   Usage:
   <blockquote class="eca-manifesto-quote">
     <p><span class="eca-quote-cap">&#x2018;</span>The public library…</p>
     <p>…prison.&#x2019; (<sup>…</sup>)</p>
   </blockquote>
   Inline footnote in body: …culture&#160;(<sup class="superscript"><a href="#note-01" id="ref-note-01">1</a></sup>).
   PDF: parentheses at body size; digit ~58% with slight lift (overrides .superscript { vertical-align: super }).
   -------------------------------------------------------------------------- */
blockquote.eca-manifesto-quote {
	border: none;
	margin: 1.2em 0;
	padding: 0;
	color: #2a499f;
	font-style: italic;
	position: relative;
	column-count: 2;
	column-gap: 2em;
}

/* Stack to 1 column below Bootstrap sm (same as .eca-flow-cols). */
@media (max-width: 767px) {
	blockquote.eca-manifesto-quote {
		column-count: 1;
	}
}

blockquote.eca-manifesto-quote .eca-quote-cap {
	float: left;
	font-size: 2.75em;
	line-height: 0.8;
	font-style: normal;
	font-weight: 300;
	color: #2a499f;
	margin: 0.02em 0.08em 0 0;
}

blockquote.eca-manifesto-quote p {
	margin-bottom: 0.8em;
	color: inherit;
	font-style: inherit;
}

blockquote.eca-manifesto-quote p:last-of-type {
	margin-bottom: 0;
}

blockquote.eca-manifesto-quote sup.superscript {
	font-style: normal;
	line-height: inherit;
	white-space: nowrap;
}

blockquote.eca-manifesto-quote .superscript {
	color: #2a499f;
	font-style: normal;
}

.eca-footnote-ref-normal,
blockquote.eca-manifesto-quote .eca-footnote-ref-normal {
	font-style: normal;
}

.eca-sr sup.superscript {
	font-size: inherit;
	vertical-align: baseline;
	line-height: 0;
	position: relative;
	top: 0;
}

/* Digit raised ~PDF: baseline near mid x-height of body lowercase */
.eca-sr sup.superscript a {
	font-size: 0.58em;
	vertical-align: baseline;
	position: relative;
	top: -0.55em;
	line-height: 0;
	color: inherit;
	font-weight: normal;
	/* underline / hover: reglas generales remark 16 */
}

blockquote.eca-manifesto-quote sup.superscript a {
	top: -0.45em;
	font-size: 0.58em;
}

/* --------------------------------------------------------------------------
   Highlighted stat paragraph – blue text + beige marker (PDF p. 23 / Adobe ~21)
   Usage: <p class="eca-highlight-blue"><mark>…<strong>67 000 public libraries</strong>…</mark></p>
   -------------------------------------------------------------------------- */
p.eca-highlight-blue {
	margin: 1.2em 0;
}

p.eca-highlight-blue mark {
	background-color: #faebdc;
	color: #1e439b;
	font-weight: normal;
	padding: 0.1em 0.2em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	line-height: 1.45;
}

p.eca-highlight-blue mark strong {
	color: inherit;
	font-weight: 700;
}

/* Ch.6 intro – light blue wash + blue text (PDF Call to action; OP 2nd proof)
   Usage: <p class="eca-highlight-panel"><mark>…text…</mark></p> */
p.eca-highlight-panel {
	margin: 0 0 1.2em;
}

p.eca-highlight-panel mark {
	background-color: #eef8f7;
	color: #1e439b;
	font-weight: normal;
	padding: 0.1em 0.2em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	line-height: 1.45;
}

p.eca-highlight-panel mark a {
	color: #275B9B;
	font-weight: normal;
	/* underline / hover: reglas generales remark 16 */
}

p.eca-highlight-panel mark a > strong {
	font-weight: 700;
	color: inherit;
}

/* --------------------------------------------------------------------------
   Endnotes (chapter7-endnotes) + bidirectional footnote refs
   Body: …culture(<sup class="superscript"><a href="#note-01" id="ref-note-01">1</a></sup>).
   Note: <p id="note-01">… <a href="#ref-note-01" class="note-back">↩</a></p>
   -------------------------------------------------------------------------- */
#chapter7-endnotes .cabec h2 {
	color: #000;
}

.eca-sr .endnotes-list p {
	margin-bottom: 0.9em;
	font-size: 0.95em;
	line-height: 1.45;
}

.eca-sr .endnotes-list .note-label {
	font-weight: 700;
}

.eca-sr .endnotes-list .note-back {
	margin-left: 0.35em;
	color: #275B9B;
	/* underline / hover: reglas generales remark 16 */
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Annex 1 / 2 – opener: imagen recortada + banda amarilla + h2 visible (remark 14)
   -------------------------------------------------------------------------- */
.annex-opener {
	--annex-opener-yellow: #fef574;
	--annex-opener-border: #000000;
	--annex-opener-text: #003399; /* mismo azul que div.eca-sr h2 */
	margin-bottom: 2em;
}

.annex-opener__band {
	margin: 0;
	padding: 1em 1.25em 1.35em;
	background: var(--annex-opener-yellow);
}

.annex-opener__title {
	display: inline-block;
	margin: 0;
	padding: 0.32em 0.55em;
	border: 1px solid var(--annex-opener-border);
	background: transparent;
	color: var(--annex-opener-text);
	font-family: "Open Sans", arial, sans-serif;
	font-size: clamp(1.65rem, 3.6vw, 2.35rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: normal;
	text-transform: uppercase;
}

/* Annex 2 thematic title – PDF opener: 2 navy+yellow lines + 2 mauve+navy lines */
.annex-opener--2 {
	--annex2-subtitle-primary-bg: #003399; /* = --annex-opener-text */
	--annex2-subtitle-primary-fg: #fef574; /* = --annex-opener-yellow */
	--annex2-subtitle-secondary-bg: #c5bfd8; /* malva / periwinkle del opener PDF */
	--annex2-subtitle-secondary-fg: #003399;
}

.annex-opener__subtitle {
	display: block;
	margin: 0.85em 0 0;
	padding: 0;
	font-family: "Open Sans", arial, sans-serif;
	font-size: clamp(1.05rem, 2.2vw, 1.45rem);
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
}

.annex-opener__subtitle-line {
	display: block;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 0.2em;
	padding: 0.28em 0.55em;
	box-sizing: border-box;
}

.annex-opener__subtitle-line--primary {
	background: var(--annex2-subtitle-primary-bg);
	color: var(--annex2-subtitle-primary-fg);
}

.annex-opener__subtitle-line--secondary {
	background: var(--annex2-subtitle-secondary-bg);
	color: var(--annex2-subtitle-secondary-fg);
}

/* --------------------------------------------------------------------------
   Annex 1 – blue typography (PDF pp. 120–121)
   -------------------------------------------------------------------------- */
#annex1.eca-sr-annexes h3.heading-subsection--annex {
	color: #034ea2;
	border-bottom: none;
	display: block;
	padding-bottom: 0;
	margin-top: 2em;
	margin-bottom: 1em;
	text-transform: uppercase;
	font-weight: 700;
	line-height: 1.35;
	/* Single continuous title (OP 2nd proof); wrap only if viewport is narrow */
	white-space: normal;
}

#annex1.eca-sr-annexes .annex1-heading-line {
	display: block;
	width: fit-content;
	border-bottom: none; /* remark 15 */
	padding-bottom: 0;
	margin-bottom: 5px;
}

#annex1.eca-sr-annexes .annex1-section--blue p {
	color: #034ea2;
}

#annex1.eca-sr-annexes .annex1-section--blue ul.bull-list li {
	color: #034ea2;
}

#annex1.eca-sr-annexes .annex1-section--blue .bull-list li::before {
	color: #034ea2;
}

/* Three-stage infographic – grid + seam alignment
   Stage 1 graphic flush right, 2 & 3 flush left; shared height scales all PNGs equally
   so cuts from one master meet at column borders without overlap/margins. */
.annex1-stages {
	margin-top: 2em;
	width: 100%;
	/* PNG slice widths (px): 433 + 469 + 564 @ 703h – master cut on grey lines */
	--annex1-cols: 433fr 469fr 564fr;
	--annex1-curve-h: clamp(220px, 22vw, 340px);
}

.annex1-stages__row {
	display: grid;
	grid-template-columns: var(--annex1-cols);
	align-items: start;
	width: 100%;
	gap: 0;
}

.annex1-stage {
	min-width: 0;
	position: relative;
	width: 100%;
}

.annex1-stage__table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: fixed;
}

.annex1-stage__table td {
	padding: 0;
	vertical-align: top;
	width: 100%;
}

.annex1-stage--1 .annex1-stage__graphic-cell {
	text-align: right;
}

.annex1-stage--2 .annex1-stage__graphic-cell,
.annex1-stage--3 .annex1-stage__graphic-cell {
	text-align: left;
}

.annex1-stage__graphic {
	position: relative;
	display: inline-block;
	line-height: 0;
	max-width: 100%;
	vertical-align: top;
	overflow: visible;
}

.annex1-stage__curve {
	display: block;
	width: auto;
	max-width: 100%;
	height: var(--annex1-curve-h);
}

/* Loop intro – overlaid on curve PNG; position with % padding on the overlay box
   (scales with curve height). Tune per stage: --annex1-loop-pt (down), --annex1-loop-pl
   (right), --annex1-loop-mw (max text width, em – same for all stages). */
.annex1-stage__loop-text {
	position: absolute;
	inset: 0;
	text-align: center;
	color: #034ea2;
	font-size: 0.82em;
	line-height: 1.28;
	box-sizing: border-box;
	overflow: visible;
	pointer-events: none;
	padding-top: var(--annex1-loop-pt, 30%);
	padding-left: var(--annex1-loop-pl, 0);
	padding-right: var(--annex1-loop-pr, 0);
}

.annex1-stage__loop-text p {
	display: inline-block;
	max-width: var(--annex1-loop-mw, 66%);
	margin: 0;
	text-align: center;
	vertical-align: top;
	color: inherit;
}

.annex1-stage--1 {
	--annex1-loop-pt: 31%;
	--annex1-loop-pl: 10%;
	--annex1-loop-mw: 13.5em;
}

.annex1-stage--1 .annex1-stage__loop-text {
	font-size: 0.74em;
	line-height: 1.22;
}

.annex1-stage--2 {
	--annex1-loop-pt: 38%;
	--annex1-loop-pl: 11%;
	--annex1-loop-mw: 10.5em;
}

.annex1-stage--3 {
	--annex1-loop-pt: 41%;
	--annex1-loop-pl: 24%;
	--annex1-loop-mw: 14.5em;
}

.annex1-stage--3 .annex1-stage__loop-text {
	color: #034ea2;
	font-size: 0.68em;
	line-height: 1.18;
}

.annex1-stage__body {
	padding-top: 0.6em;
	width: 100%;
	box-sizing: border-box;
}

.annex1-stage--1 .annex1-stage__body-inner,
.annex1-stage--2 .annex1-stage__body-inner {
	padding-right: 1.25em;
	box-sizing: border-box;
}

#annex1 .annex1-stage__body-inner p:not(.annex1-stage__level),
#annex1 .annex1-stage__body-inner ul.bull-list {
	max-width: none;
	width: 100%;
	box-sizing: border-box;
}

#annex1 .annex1-stage__body-inner ul.bull-list {
	padding-right: 0;
}

#annex1 .annex1-stage__body-inner ul.bull-list li {
	color: #034ea2;
}

.annex1-stage__body .annex1-stage__tit {
	margin-top: 0.4em;
}

#annex1.eca-sr-annexes h4.annex1-stage__heading {
	margin: 0;
	padding: 0;
}

#annex1.eca-sr-annexes .annex1-stage__tit {
	color: #034ea2;
	display: block;
	margin: 0 0 0.85em;
	text-transform: uppercase;
	font-weight: 700;
	font-size: 1em;
	line-height: 1.3;
}

#annex1.eca-sr-annexes .annex1-stage__tit .annex1-heading-line {
	font-size: 1em;
}

.annex1-stage__level {
	display: inline-block;
	width: auto;
	max-width: max-content;
	margin: 0 0 1em;
	padding: 0.35em 0.9em;
	border-radius: 999px;
	background-color: #0d2847;
	font-size: 0.78em;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

#annex1.eca-sr-annexes .annex1-section--blue .annex1-stage__level--fundamental {
	color: #fff67e;
}

#annex1.eca-sr-annexes .annex1-section--blue .annex1-stage__level--intermediate {
	color: #d1d2ea;
}

.annex1-stage__level--fundamental {
	color: #fff67e;
}

.annex1-stage__level--intermediate {
	color: #d1d2ea;
}

#annex1.eca-sr-annexes .annex1-section--blue .annex1-stage__level--advanced {
	color: #fff;
}

.annex1-stage__level--advanced {
	color: #fff; /* stage-3 label on dark pill */
}

.annex1-stage__subhead {
	margin: 0.9em 0 0.55em;
	font-weight: 700;
	color: #034ea2;
	font-size: 0.95em;
}

.annex1-stage__body > p:last-child {
	margin-top: 0.9em;
}

@media (min-width: 1200px) {
	#annex1 .annex1-stages {
		margin-left: -20px;
		margin-right: -30px;
		width: calc(100% + 50px);
	}

	#annex1 .annex1-stage__loop-text {
		font-size: clamp(0.76em, 0.62vw, 0.86em);
	}

	#annex1 .annex1-stage--1 .annex1-stage__loop-text {
		font-size: clamp(0.68em, 0.54vw, 0.74em);
		line-height: 1.22;
	}

	#annex1 .annex1-stage--3 .annex1-stage__loop-text {
		font-size: clamp(0.62em, 0.50vw, 0.68em);
		line-height: 1.18;
	}

	.annex1-stage--1 .annex1-stage__body-inner,
	.annex1-stage--2 .annex1-stage__body-inner {
		padding-right: 1.75em;
	}

	#annex1 .annex1-stage__body {
		font-size: 0.96em;
		line-height: 1.4;
	}
}

@media (max-width: 1199px) {
	.annex1-stages {
		--annex1-curve-h: clamp(180px, 24vw, 260px);
	}

	.annex1-stages__row {
		grid-template-columns: 1fr 1fr;
	}

	.annex1-stage--3 {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.annex1-stages {
		--annex1-curve-h: auto;
	}

	.annex1-stages__row {
		grid-template-columns: 1fr;
	}

	.annex1-stage--1 .annex1-stage__graphic-cell {
		text-align: left;
	}

	.annex1-stage--3 {
		grid-column: auto;
	}

	.annex1-stage__graphic {
		display: block;
		width: 100%;
	}

	.annex1-stage__curve {
		width: 100%;
		height: auto;
	}

	.annex1-stage__loop-text {
		position: static;
		text-align: left;
		pointer-events: auto;
		padding: 0;
	}

	.annex1-stage__loop-text p {
		display: block;
		max-width: none;
		margin: 0;
		padding: 0.65em 0 0.25em;
		font-size: 0.95em;
		text-align: left;
	}
}

/* --------------------------------------------------------------------------
   Annex 1 – toolkit intro + self-assessment matrix (PDF pp. 122–124)
   -------------------------------------------------------------------------- */
#annex1 .annex1-matrix-wrap {
	margin-top: 1.5em;
	border: none;
	background: #eef3f8;
	padding: 0.85em 0.65em 0.75em;
	box-sizing: border-box;
}

.annex1-matrix {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0.45em 0.6em;
	table-layout: fixed;
	background: #eef3f8;
}

.annex1-matrix caption {
	caption-side: top;
}

.annex1-matrix thead th {
	border: none;
	background: transparent;
	vertical-align: bottom;
	padding: 0 0.2em 0.35em;
	font-weight: 700;
	text-align: center;
}

.annex1-matrix__domain-col {
	width: 21%;
}

.annex1-matrix__level-col {
	width: 26.3%;
}

.annex1-matrix__domain-label {
	display: block;
	font-weight: 700;
	text-transform: uppercase;
	color: #034ea2;
	font-size: 0.82em;
	letter-spacing: 0.03em;
	text-align: center;
}

/* Horizontal brace image under Domain label (llave.png) */
.annex1-matrix__brace-img {
	display: block;
	width: auto;
	max-width: 2.6em;
	height: auto;
	margin: 0.12em auto 0;
}

#annex1 .annex1-matrix__brace-img {
	width: auto;
	max-width: 2.6em;
	margin-top: 0.12em;
	margin-bottom: 0;
}

.annex1-matrix__level-disc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 6.6em;
	height: 6.6em;
	border-radius: 50%;
	font-weight: 700;
	color: #034ea2;
	font-size: 0.88em;
	line-height: 1.15;
	text-align: center;
	padding: 0.25em;
	box-sizing: border-box;
}

.annex1-matrix__level--basic .annex1-matrix__level-disc {
	background: #fff793;
}

.annex1-matrix__level--intermediate .annex1-matrix__level-disc {
	background: #afb1d9;
	color: #014490; /* AA 4.5:1 on #afb1d9 (2nd proof technical) */
}

.annex1-matrix__level--advanced .annex1-matrix__level-disc {
	background: #0d2847;
	color: #fff;
}

.annex1-matrix__level-arrow {
	display: block;
	margin: 0.2em auto 0;
	color: #034ea2;
	font-size: 0.95em;
	line-height: 1;
}

.annex1-matrix tbody th,
.annex1-matrix tbody td,
.annex1-matrix tfoot td {
	border: none;
}

.annex1-matrix tbody th {
	padding: 0;
	vertical-align: middle;
	background: transparent;
	font-weight: 700;
}

.annex1-matrix__domain-badge {
	display: block;
	background: #0d2847;
	color: #fff;
	font-weight: 700;
	font-size: 0.8em;
	line-height: 1.28;
	padding: 0.7em 1.35em 0.7em 0.7em;
	margin-right: 0.15em;
	clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

.annex1-matrix tbody td {
	background: #fff;
	color: #034ea2;
	font-size: 0.8em;
	line-height: 1.35;
	padding: 0.7em 0.75em;
	vertical-align: top;
	border-radius: 0.35em;
}

.annex1-matrix tfoot td {
	padding: 0.85em 0 0;
	background: transparent;
	vertical-align: top;
}

.annex1-matrix__legend-intro {
	margin: 0 0 0.55em;
	color: #034ea2;
	font-size: 0.92em;
}

.annex1-matrix__legend--intro {
	margin: 0;
	padding: 0;
}

.annex1-matrix__legend--intro .annex1-matrix__legend-stages {
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	row-gap: 0;
}

#annex1 .annex1-matrix__legend-stages {
	margin: 0 !important;
	margin-left: 0 !important;
	padding: 0 !important;
	padding-left: 0 !important;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	row-gap: 0;
}

.annex1-matrix__legend-stages {
	list-style: none;
	margin: 0 !important;
	margin-left: 0 !important;
	padding: 0 !important;
	padding-left: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	row-gap: 0;
}

#annex1 .annex1-matrix__legend-stages > li {
	margin: 0 !important;
	margin-bottom: 0 !important;
	margin-left: 0 !important;
	padding: 0 !important;
	padding-left: 0 !important;
	line-height: 1;
	position: static;
}

#annex1 .annex1-matrix__legend-stages > li::before {
	content: none;
	display: none;
}

/* Stage colours on text only (inline highlight), not full-width blocks */
.annex1-matrix__legend-mark {
	display: inline;
	font-size: 0.88em;
	font-weight: 400;
	line-height: 1.1;
	padding: 0.02em 0.1em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

#annex1 .annex1-matrix__legend-stages .annex1-matrix__legend-mark--basic {
	color: #034ea2;
}

#annex1 .annex1-matrix__legend-stages .annex1-matrix__legend-mark--intermediate {
	color: #014490; /* AA on #e8eaf5 / matrix intermediate disc */
}

#annex1 .annex1-matrix__legend-stages .annex1-matrix__legend-mark strong {
	font-weight: 700;
	color: inherit;
}

.annex1-matrix__legend-mark--basic {
	background-color: #fffce6;
}

.annex1-matrix__legend-mark--intermediate {
	background-color: #e8eaf5;
}

#annex1 .annex1-matrix__legend-stages .annex1-matrix__legend-mark--advanced {
	color: #fff;
	background-color: #000;
}

#annex1 .annex1-matrix__legend-stages .annex1-matrix__legend-mark--advanced strong {
	color: #fff;
}

.annex1-instructions {
	margin-top: 1.75em;
	color: #034ea2;
}

.annex1-instructions__title {
	margin: 0;
	font-size: 0.95em;
}

.annex1-instructions__steps {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0.85em;
	list-style: none;
	padding: 0;
	margin: 0.85em 0 0;
	counter-reset: annex1-step;
}

.annex1-instructions__step {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.annex1-instructions__icon {
	display: block;
	width: auto;
	max-width: 3.75em;
	height: auto;
	margin: 0 0 0.45em;
	align-self: flex-start;
}

#annex1 .annex1-instructions__icon {
	width: auto;
	max-width: 3.75em;
	margin: 0 0 0.45em 0 !important;
}

.annex1-instructions__text {
	margin: 0;
	font-size: 0.82em;
	line-height: 1.38;
	color: #034ea2;
	text-align: left;
	width: 100%;
}

/* Label: larger type; blue highlight hugs text only (not full column width) */
.annex1-instructions__label {
	display: inline;
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1.25;
	color: #034ea2;
	background-color: #e6edf8;
	padding: 0.06em 0.18em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

@media (min-width: 1200px) {
	#annex1 .annex1-matrix tbody td {
		font-size: 0.82em;
	}

	#annex1 .annex1-matrix__domain-badge {
		font-size: 0.82em;
	}
}

@media (max-width: 991px) {
	.annex1-instructions__steps {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 767px) {
	.annex1-matrix {
		border-spacing: 0 0.85em;
	}

	.annex1-matrix thead {
		display: none;
	}

	.annex1-matrix tbody tr {
		display: block;
		margin-bottom: 0.5em;
	}

	.annex1-matrix tbody th,
	.annex1-matrix tbody td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.annex1-matrix__domain-badge {
		clip-path: none;
		border-radius: 0.35em 0.35em 0 0;
		margin-right: 0;
	}

	.annex1-matrix tbody td {
		border-radius: 0;
	}

	.annex1-matrix tbody td:last-child {
		border-radius: 0 0 0.35em 0.35em;
	}

	.annex1-matrix tbody td::before {
		content: attr(data-level);
		display: block;
		font-weight: 700;
		font-size: 0.78em;
		text-transform: uppercase;
		margin-bottom: 0.35em;
		letter-spacing: 0.03em;
	}

	.annex1-matrix tbody td:nth-child(2)::before { content: "Basic"; }
	.annex1-matrix tbody td:nth-child(3)::before { content: "Intermediate"; }
	.annex1-matrix tbody td:nth-child(4)::before { content: "Advanced"; }

	.annex1-matrix__legend-stages {
		flex-direction: column;
	}

	.annex1-instructions__steps {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------------------
   Annex 2 – country factsheets (PDF pp. 125–159)
   -------------------------------------------------------------------------- */
#annex2.eca-sr-annexes {
	color: #034ea2;
	--annex2-yellow: #fef574;
	--annex2-dark: #0d2847;
	--annex2-mauve: #e8eaf5;
}

/* Opener Annex 2: ver .annex-opener (banda + h2 ANNEX 2) */

.annex2-factsheet {
	margin-bottom: 3.5em;
	page-break-inside: avoid;
}

.annex2-factsheet__header {
	margin-bottom: 0.85em;
}

.annex2-factsheet__header-data {
	min-width: 0;
}

/*
 * Bloque apilado dentro de col-md-3.
 *   derecha: fila 1 indentada desde la derecha (ancho auto); filas 2-3 ancladas a la derecha
 *   izquierda: espejo (indentación desde la izquierda en fila 1)
 */
.annex2-factsheet__header-stack {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
	font-size: 10px;
	line-height: 1.15;
}

.annex2-factsheet--header-right .annex2-factsheet__header-stack {
	align-items: flex-end;
}

.annex2-factsheet--header-left .annex2-factsheet__header-stack {
	align-items: flex-start;
}

#annex2 .annex2-factsheet__header-stack p.annex2-factsheet__country-name {
	margin: 0 !important;
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	color: #034ea2 !important;
}

/* Anula p { margin-bottom: 1.2em !important } de eca-sr.css */
#annex2 .annex2-factsheet__header-stack p.annex2-factsheet__kicker {
	margin: 0 0 -1px !important;
	padding: 0.35em 0.55em;
	font-size: 1em;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: center;
	color: #034ea2;
	background: #fff;
	border: 1px solid #034ea2;
	box-sizing: border-box;
	/* Box must wrap full label (PDF); do not cap width below text. */
	width: max-content;
	max-width: 100%;
	white-space: nowrap;
}

/* Escalera PDF: indentación sin reducir el ancho del recuadro bajo el texto */
#annex2 .annex2-factsheet--header-right .annex2-factsheet__header-stack p.annex2-factsheet__kicker {
	margin: 0 1.25em -1px 0 !important;
	align-self: flex-end;
}

#annex2 .annex2-factsheet--header-left .annex2-factsheet__header-stack p.annex2-factsheet__kicker {
	margin: 0 0 -1px 1.25em !important;
	align-self: flex-start;
}

#annex2 .annex2-factsheet__header-stack p.annex2-factsheet__region {
	margin: 0 0 -1px !important;
	padding: 0.35em 0.55em;
	font-size: 1em;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #034ea2;
	background: var(--annex2-mauve);
	border: 1px solid #034ea2;
	box-sizing: border-box;
}

#annex2 .annex2-factsheet--header-right .annex2-factsheet__header-stack p.annex2-factsheet__region {
	width: auto;
	max-width: 100%;
	margin: 0 0 -1px !important;
	white-space: nowrap;
}

#annex2 .annex2-factsheet--header-left .annex2-factsheet__header-stack p.annex2-factsheet__region {
	width: auto;
	max-width: 100%;
	margin: 0 0 -1px !important;
	white-space: nowrap;
}

.annex2-factsheet__kicker {
	padding: 0.35em 0.55em;
	font-size: 1em;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: center;
	color: #034ea2;
	background: #fff;
	border: 1px solid #034ea2;
	width: auto;
	max-width: 100%;
	box-sizing: border-box;
}

.annex2-factsheet__region {
	padding: 0.35em 0.55em;
	font-size: 1em;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #034ea2;
	background: var(--annex2-mauve);
	border: 1px solid #034ea2;
	width: auto;
	max-width: 100%;
	box-sizing: border-box;
}

.annex2-factsheet__country-row {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	margin: 0;
	box-sizing: border-box;
}

.annex2-factsheet--header-right .annex2-factsheet__country-row {
	width: 100%;
	margin-right: 0;
	justify-content: flex-end;
}

.annex2-factsheet--header-left .annex2-factsheet__country-row {
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	justify-content: flex-start;
}

.annex2-factsheet__country-name {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 0.15em 0.45em;
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	color: #034ea2;
	background: #fff;
	border: 1px solid #034ea2;
	box-sizing: border-box;
}

.annex2-factsheet--header-right .annex2-factsheet__country-name {
	border-right: none;
}

.annex2-factsheet--header-left .annex2-factsheet__country-name {
	border-left: none;
}

.annex2-factsheet__country-num {
	flex: 0 0 auto;
	display: flex;
	align-self: stretch;
}

.annex2-factsheet__country-num span {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	align-self: stretch;
	width: 3em;
	min-width: 3em;
	max-width: 3em;
	padding: 0.15em 0.1em;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	color: #fff;
	background: var(--annex2-dark);
	border: 1px solid var(--annex2-dark);
	box-sizing: border-box;
}

.annex2-factsheet__map-band {
	width: 50%;
	max-width: 100%;
	margin-top: 0.35em;
}

.annex2-factsheet--header-right .annex2-factsheet__map-band {
	align-self: flex-start;
}

.annex2-factsheet--header-left .annex2-factsheet__map-band {
	align-self: flex-end;
}

.annex2-factsheet__map {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	margin: 0 !important;
}

/* I2 annex2 map correctives (+/−): default map-band = 50% of col-md-3 */
#annex2 .annex2-factsheet__map-band--down-soft {
	width: 40%;
	max-width: 100%;
}

#annex2 .annex2-factsheet__map-band--down {
	width: 32%;
	max-width: 100%;
}

#annex2 .annex2-factsheet__map-band--up {
	width: 62%;
	max-width: 100%;
}

#annex2 .annex2-factsheet__map-band--up-more {
	width: 80%;
	max-width: 100%;
}

/* Annex 2 map geometry tiers (mirror ch03 eca-flag-icon--wide / --wide-boost).
   Parent ref: col-md-3 header column; default map-band = 50% column width. */
.annex2-factsheet__map-band--wide {
	width: 100%;
	max-width: 100%;
	overflow: visible;
}

.annex2-factsheet__map-band--wide-boost {
	width: 100%;
	max-width: 100%;
	overflow: visible;
}

#annex2 .annex2-factsheet__header-data:has(.annex2-factsheet__map-band--wide-boost),
#annex2 .annex2-factsheet__header-stack:has(.annex2-factsheet__map-band--wide-boost) {
	overflow: visible;
}

#annex2 .annex2-factsheet__map-band--wide .annex2-factsheet__map--wide {
	width: 166.667% !important;
	max-width: 166.667% !important;
	max-height: 8rem !important;
	height: auto !important;
}

#annex2 .annex2-factsheet__map-band--wide-boost .annex2-factsheet__map--wide-boost {
	width: 166.667% !important;
	max-width: 166.667% !important;
	max-height: 10.5rem !important;
	height: auto !important;
}

.annex2-factsheet__note {
	display: inline-block;
	margin: 0 0 1.25em;
	padding: 0.2em 0.45em;
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #034ea2;
	background: #e8eaf5;
}

.annex2-factsheet__body {
	margin-top: 0.5em;
}

/* Bélgica #2: dos comunidades lingüísticas en una ficha, separador vertical de puntos */
.annex2-factsheet__body--split {
	margin-top: 0.5em;
}

.annex2-factsheet__split-col {
	min-width: 0;
}

.annex2-factsheet--split .annex2-factsheet__split-col + .annex2-factsheet__split-col {
	border-left: 2px dotted #4d7aa8;
}

#annex2 .annex2-factsheet__note {
	margin: 0 0 1.25em !important;
}

.annex2-block {
	margin-bottom: 1.35em;
}

/* Separación vertical entre secciones principales (referencia PDF) */
.annex2-block--legislation,
.annex2-block--national-strategy,
.annex2-block--icon,
.annex2-block--titled-prose {
	margin-bottom: 2em;
}

.annex2-block--titled-prose .annex2-block__title {
	display: block;
}

.annex2-block--qa {
	margin-bottom: 1.1em;
}

/* Títulos de ficha: azul (#annex2 / #annex3 futuro). Anula div.eca-sr-annexes h4 { color: #016937 } */
#annex2 .annex2-factsheet h4.annex2-block__title,
#annex3 .annex3-factsheet h4.annex3-block__title {
	margin: 0 0 0.55em;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.25;
	color: #034ea2 !important;
}

#annex2 .annex2-factsheet .annex2-qa-inline strong,
#annex3 .annex3-factsheet .annex3-qa-inline strong {
	color: #034ea2;
	font-weight: 700;
}

.annex2-block__title {
	margin: 0 0 0.55em;
	font-size: 1em;
	font-weight: 700;
	color: #034ea2;
	display: flex;
	align-items: center;
	gap: 0.45em;
}

/* Títulos con icono: izquierda; icono y texto alineados por la base inferior */
#annex2 .annex2-block--icon h4.annex2-block__title,
#annex3 .annex3-block--icon h4.annex3-block__title {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: flex-end;
	text-align: left;
	width: 100%;
	margin-top: 0;
}

#annex2 .annex2-block__title img.annex2-block__icon,
#annex3 .annex3-block__title img.annex3-block__icon {
	--annex2-icon-ref: 1.35em;
	width: calc(var(--annex2-icon-ref) * 0.75 * 1.414213562) !important;
	height: calc(var(--annex2-icon-ref) * 0.75 * 1.414213562);
	max-width: none;
	flex: 0 0 auto;
	flex-shrink: 0;
	align-self: flex-end;
	margin: 0;
	display: block;
	object-fit: contain;
	object-position: left bottom;
}

#annex2 .annex2-block__title img.annex2-block__icon + img.annex2-block__icon {
	margin-left: 0.12em;
}

.annex2-block__icon {
	--annex2-icon-ref: 1.35em;
	width: calc(var(--annex2-icon-ref) * 0.75 * 1.414213562);
	height: calc(var(--annex2-icon-ref) * 0.75 * 1.414213562);
	flex-shrink: 0;
	align-self: flex-end;
	object-fit: contain;
	object-position: left bottom;
}

.annex2-block p {
	margin: 0 0 0.65em;
	font-size: 0.92em;
	line-height: 1.45;
	color: #034ea2;
}

/* Annex 2 lists: flush left like body <p> (PDF factsheet; OP «Please align»).
   !important: beat template ul.bull-list { padding-left:1.8em } and
   .eca-sr ul { padding-left:14px } / hanging ::before width+margin. */
.annex2-block__list {
	margin: 0.35em 0 0.65em;
	padding-left: 0 !important;
	padding-inline-start: 0 !important;
	font-size: 0.92em;
	line-height: 1.45;
	color: #034ea2;
}

#annex2 ul.annex2-block__list,
#annex2 ul.annex2-block__list.bull-list,
#annex2.eca-sr ul.annex2-block__list.bull-list {
	list-style: none !important;
	padding-left: 0 !important;
	padding-inline-start: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

#annex2 ul.annex2-block__list li,
#annex2 ul.annex2-block__list.bull-list li,
#annex2.eca-sr ul.annex2-block__list.bull-list li {
	position: relative;
	padding-left: 0.75em !important;
	margin-left: 0 !important;
	margin-bottom: 0.35em;
	color: #034ea2;
}

#annex2 ul.annex2-block__list li::before,
#annex2 ul.annex2-block__list.bull-list li::before,
#annex2.eca-sr ul.annex2-block__list.bull-list li::before {
	content: "\2022" !important;
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	width: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	display: block !important;
	color: #034ea2 !important;
}

#annex2 .annex2-block--split-list-continuation {
	margin-bottom: 2em;
}

/* Annex 2: caja explicativa (no H4) con fondo malva */
#annex2 .annex2-aside {
	margin: 0.85em 0 0;
	padding: 0.55em 0.65em;
	background: var(--annex2-mauve);
	border: 1px solid #4d7aa8;
	box-sizing: border-box;
}

#annex2 .annex2-aside__title {
	margin: 0 0 0.5em !important;
	font-size: 0.92em;
	line-height: 1.45;
	color: #034ea2;
}

#annex2 .annex2-aside__list {
	margin: 0;
	padding-left: 1.35em;
	font-size: 0.92em;
	line-height: 1.45;
	color: #034ea2;
}

#annex2 .annex2-labeled-prose__title {
	margin: 0 0 0.35em !important;
	font-size: 0.92em;
	line-height: 1.45;
	color: #034ea2;
}

.annex2-kv__row {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: 0.75em;
	padding: 0.35em 0;
	border-bottom: 1px solid #4d7aa8;
	align-items: start;
}

/*
 * Legislation — alineación de valores:
 *   annex2-kv--compact: todos los valores son N/A, No o Yes → 7-5, valor a la derecha
 *   annex2-kv--wide-values: algún valor con texto adicional → 8-4, valor a la izquierda
 */
.annex2-kv--wide-values .annex2-kv__row {
	grid-template-columns: 8fr 4fr;
}

.annex2-kv__row--last {
	border-bottom: none;
}

.annex2-kv__label {
	font-size: 0.9em;
	font-weight: 400;
	/* Was #5a8ec4 (3.44:1 on white). #4d7aa8 ≈4.50:1 WCAG AA normal text. */
	color: #4d7aa8;
}

.annex2-kv__value {
	font-size: 0.9em;
	font-weight: 700;
	color: #034ea2;
	text-align: right;
}

.annex2-kv--wide-values .annex2-kv__value {
	text-align: left;
}

.annex2-lined__row {
	margin: 0 !important;
	padding: 0.4em 0;
	border-bottom: 1px solid #4d7aa8;
	font-size: 0.92em;
	line-height: 1.45;
	color: #034ea2;
}

/* National strategy: línea inferior a ancho completo por fila (como Legislation) */
#annex2 .annex2-block--national-strategy .annex2-lined__row,
#annex3 .annex3-block--national-strategy .annex3-lined__row {
	text-decoration: none;
	border-bottom: 1px solid #4d7aa8;
}

.annex2-lined__row--last {
	border-bottom: none;
}

.annex2-lined__row--prose {
	font-weight: 400;
}

/* National strategy (PDF):
   - no line above first data row (Strategy exists) — prose intro: no border-bottom
   - lines between data rows
   - closing line after last data row (Dedicated budget…)
   - trailing prose after data: no line under the prose */
#annex2 .annex2-block--national-strategy .annex2-lined__row--prose,
#annex3 .annex3-block--national-strategy .annex3-lined__row--prose {
	border-bottom: none;
}

.annex2-lined__label {
	font-weight: 400;
	/* Same as .annex2-kv__label — AA on white */
	color: #4d7aa8;
}

.annex2-lined__row strong {
	font-weight: 700;
	color: #034ea2;
}

.annex2-qa-inline {
	margin: 0 0 0.85em;
	font-size: 0.92em;
	line-height: 1.45;
	color: #034ea2;
}

.annex2-block--qa .annex2-block__title {
	margin-bottom: 0.35em;
}

@media (max-width: 767px) {
	.annex2-factsheet__header {
		grid-template-columns: 1fr;
	}

	.annex2-factsheet--header-left .annex2-factsheet__header {
		grid-template-columns: 1fr;
	}

	.annex2-factsheet__header-side {
		display: none;
	}

	.annex2-kv__value {
		text-align: left;
	}

	.annex2-factsheet--split .annex2-factsheet__split-col + .annex2-factsheet__split-col {
		border-left: 0;
		border-top: 2px dotted #4d7aa8;
		margin-top: 1.5em;
		padding-top: 1.25em;
	}
}

/* Contact: créditos de copyright como lista sin marcadores, interlineado ajustado
   e indentado mínimo (cercano al de un <p>). */
.eca-sr ul.credits-list {
	list-style: none;
	margin: 0 0 0.6em;
	padding-left: 0.15em;
	line-height: 1.2;
}

.eca-sr ul.credits-list + .about-identifiers-set {
	margin-top: 1.8em;
}

.about-identifiers-set + .about-identifiers-set {
	margin-top: 1.2em;
}

.about-identifiers-set__title {
	margin: 0 0 0.5em;
}

/* Columnas alineadas entre Report / Annex 3 / HTML (tablas independientes) */
.about-identifiers-set .about-table {
	table-layout: fixed;
	width: 100%;
}

.about-identifiers-set .about-table td:nth-child(1) {
	width: 10%;
	white-space: nowrap;
}

.about-identifiers-set .about-table td:nth-child(2) {
	width: 30%;
}

.about-identifiers-set .about-table td:nth-child(3) {
	width: 30%;
}

.about-identifiers-set .about-table td:nth-child(4) {
	width: 30%;
}

/* Mobile (eca-sr.css ≤1000px): td → display:block, pero width:30% del layout
   desktop deja cada celda al ~30% del contenedor → ISBN/doi/NC partidos
   («ISBN» / «978-92-68-2912» / «5-2»). Ancho completo + sin soft-break. */
@media screen and (max-width: 1000px) {
	.about-identifiers-set .about-table {
		table-layout: auto;
	}

	.about-identifiers-set .about-table td,
	.about-identifiers-set .about-table td:nth-child(1),
	.about-identifiers-set .about-table td:nth-child(2),
	.about-identifiers-set .about-table td:nth-child(3),
	.about-identifiers-set .about-table td:nth-child(4) {
		display: block;
		width: 100% !important;
		max-width: 100%;
		box-sizing: border-box;
		white-space: nowrap;
		overflow-wrap: normal;
		word-break: normal;
	}

	.about-identifiers-set .about-table tr + tr td:first-child {
		margin-top: 0.85em;
	}
}

.eca-sr ul.credits-list li {
	margin: 0 0 0.1em !important;
	padding-left: 0;
}

.eca-sr ul.credits-list li::before {
	content: none;
}

/* Ítems de primer nivel: un poco más de separación para distinguirlos */
.eca-sr ul.credits-list:not(.credits-list--nested) > li {
	margin-bottom: 0.55em !important;
}

.eca-sr ul.credits-list--nested {
	margin: 0.1em 0 0;
	padding-left: 0.9em;
}

/* Imágenes a ancho de página (portadilla p. 2, infografía OMC, openers…).
   El ancho lo define el contenedor .eca-sr, así se alinean con el texto. */
.report-cover {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 1.5em;
}

/* Infografía OMC (img PDF) + descripción sr-only vía aria-describedby */
.omc-group-figure {
	margin: 0 0 1.5em;
}

.omc-group-figure .report-cover {
	margin-bottom: 0;
}

/* Enlaces con icono SVG dentro de los créditos de fotos */
.eca-sr .credits-icon-group {
	display: inline-flex;
	align-items: center;
	gap: 0.15em;
	padding: 0.15em 0.4em;
	background: #e8f0f7;
	border-radius: 0.4em;
	vertical-align: -0.12em;
	margin-right: 0.2em;
	line-height: 0;
}

.eca-sr .credits-icon-group .credits-link + .credits-link {
	border-left: 1px solid #c5d5e8;
	padding-left: 0.25em;
	margin-left: 0.1em;
}

.eca-sr .credits-link {
	color: #0055A5;
	text-decoration: none;
	display: inline-block;
	margin: 0;
	vertical-align: 0;
	line-height: 0;
}

.eca-sr .credits-link:hover,
.eca-sr .credits-link:focus {
	color: #003d75;
}

.eca-sr .credits-icon {
	width: 1.05em;
	height: 1.05em;
	display: inline-block;
}

/* Anclas de créditos: margen al saltar desde Contact */
[id^="fig-"],
#chapter0-cover {
	scroll-margin-top: 4em;
}

/* --------------------------------------------------------------------------
   Annex 3 – best practices and EU funding (PDF annex 3)
   -------------------------------------------------------------------------- */
#annex3.eca-sr-annexes {
	color: #034ea2;
	--annex2-mauve: #e8eaf5; /* mismo malva claro que fichas annex2 region */
}

.annex3-hero {
	position: relative;
	margin-bottom: 2em;
}

/* h2 sobre annex-03.jpg (remark 14).
   Rejilla JPG: 32 u. H × 16 u. V → 1 u. H ≈ 3.125% · 1 u. V = 6.25% · ½ u. V ≈ 3.13%.
   Ensayo 5: top 59% quedaba solapando LIBRARIES (demasiado arriba).
   Revertir el −½ u. vertical → top 62%; mantener left 35.5% (+½ u. H). */
#annex3.eca-sr .annex3-hero__title {
	position: absolute;
	left: 35.5%;
	top: 62%;
	bottom: auto;
	transform: none;
	z-index: 1;
	margin: 0;
	padding: 0.4em 0.75em;
	border: 2px solid #ffffff !important;
	background: transparent;
	color: #ffffff !important;
	font-size: clamp(1.75rem, 4vw, 2.6rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.03em;
	text-align: left;
	white-space: nowrap;
}

@media (max-width: 575px) {
	#annex3.eca-sr .annex3-hero__title {
		white-space: normal;
		max-width: 90%;
		padding: 0.35em 0.55em;
	}
}

/* ==========================================================================
   NUEVOS ESTILOS PARA ANEXO 3 (LIBRARIES BEST PRACTICES)
   ========================================================================== */
.annex3-cab1 {
	color: #ffffff !important;
	background-color: #1f2a45;
	padding: 0.1em;
	line-height: 1.5;
	text-transform: uppercase; /* remark 17 */
}
.annex3-cab2 {
	color: #1f2a45 !important;
	background-color: #d1d2ea;
	padding: 0.1em;
	line-height: 1.5;
	text-transform: uppercase; /* remark 17 */
}
#annex3 p {
	color: #034ea2 !important;
}

/* Annex 3 part 1 opener – spacing after intro block */
#annex3 .annex3-intro {
	margin-bottom: 4em;
}

#annex3 .annex3-intro .challenge-list {
	margin-bottom: 1.2em;
}
/* H3 – secciones principales (cabeceras annex3-cab1/cab2) */
#annex3 .cabec--chapter3 h3 {
	color: #034ea2 !important;
}
/* H4 – puntos numerados del índice */
#annex3 h4.challenge-section__title {
	color: #034ea2 !important;
	text-decoration: none; /* remark 15 */
	text-transform: uppercase; /* remark 17 */
}
#annex3 #annex3-1 > .challenge-section + .challenge-section,
#annex3 #annex3-2 > .challenge-section + .challenge-section {
	margin-top: 3em;
}
#annex3 #annex3-1 + #annex3-2 {
	margin-top: 3em;
}
#annex3 h4.challenge-section__title .challenge-section__num {
	font-size: 1.4em;
	font-weight: 300;
	color: #034ea2;
	line-height: 1;
	text-decoration: none; /* remark 15 */
}
/* H5 – apartados temáticos (heading-aside) */
#annex3 h4.heading-aside,
#annex3 h5.heading-aside {
	margin-top: 2em;
	color: #034ea2 !important;
	border: none !important;
	background-color: transparent !important;
	display: block;
	padding: 0;
	margin-left: 0;
	font-weight: 600;
	text-align: left;
}
/* H6 – país (bajo temático h5). En §10 sin temático: países van en h5 (mismo estilo). */
#annex3 h5.annex3-country,
#annex3 h6.annex3-country {
	margin-top: 2em;
	margin-bottom: 0;
	line-height: 1.2;
	font-size: 1em;
	color: #034ea2 !important;
	background-color: #ffffff !important;
	border: #034ea2 solid 1px;
	display: inline-block;
	padding: 0.1em 0.35em;
	text-transform: uppercase; /* remark 17 */
}
/* Nombre de la práctica (no es encabezado) */
#annex3 p.annex3-practice-name {
	font-size: 1.2em;
	color: #034ea2 !important;
	margin-top: 0.75em;
	margin-bottom: 0.5em;
}
#annex3 h5.annex3-country + p.annex3-practice-name,
#annex3 h6.annex3-country + p.annex3-practice-name {
	margin-top: 0.7em;
}
/* Multi-practice same country: country → map → yellow (map not under first yellow) */
#annex3 h5.annex3-country + .annex3-map-band,
#annex3 h6.annex3-country + .annex3-map-band {
	margin-top: 0.65em;
	margin-bottom: 0.35em;
}
#annex3 .annex3-map-band + p.annex3-practice-name {
	margin-top: 0.55em;
}
/* Second+ practice under same country (no repeated country box) */
#annex3 .annex3-practice--same-country {
	margin-top: 1.75em;
}
#annex3 .annex3-practice--same-country > p.annex3-practice-name:first-child {
	margin-top: 0;
}
#annex3 p.annex3-practice-name .title {
	background-color: #fdf6ae !important;
	padding: 0.1em;
}

/* Annex 3 country map icons – geometry tiers (img/annex-03-map-icons.json;
   scripts/classify-flag-icons.py annex-03). Replaces annex2 map-band (50% width).
   Ref width ~17.75rem ≈ col-md-3 flag column in ch03–05. */
#annex3 .annex3-map-band {
	display: block;
	width: auto;
	max-width: 100%;
	margin: 0.35em 0 1em;
	overflow: visible;
}

#annex3 .annex3-map {
	display: block;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
}

#annex3 .annex3-map--standard {
	max-width: 17.75rem !important;
}

#annex3 .annex3-map--wide {
	max-width: 22.25rem !important;
	max-height: 8rem !important;
}

#annex3 .annex3-map--wide-boost {
	width: 22.25rem !important;
	max-width: 22.25rem !important;
	max-height: 10.5rem !important;
}

#annex3 .annex3-map--tall {
	max-width: 17.75rem !important;
	max-height: 17rem !important;
}

#annex3 .annex3-map--composite {
	max-width: 22.25rem !important;
	max-height: 22rem !important;
}

/* Legacy selectors – resto del anexo aún sin migrar */
#annex3 h3:not(#annex3-1-title):not(#annex3-2-title) {
	color: #034ea2 !important;
	text-decoration: none; /* remark 15 */
}
#annex3 h3 .challenge-section__num,
#annex3 .challenge-section__num {
	font-size: 1.4em;
	font-weight: 300;
	color: #034ea2;
	line-height: 1;
	text-decoration: none; /* remark 15 */
}
#annex3 h4 {
	margin-top: 2em;
	color: #034ea2 !important;
}
#annex3 h5:not(.heading-aside) {
	margin-top: 2em;
	font-size: 1em;
	color: #034ea2 !important;
	background-color: #ffffff !important;
	border: #034ea2 solid 1px;
}
#annex3 h6 {
	font-size: 1.2em;
	color: #034ea2 !important;
}
#annex3 h6 .title{
	background-color: #fdf6ae !important;
	padding: 0.1em;
}

#annex3 ol.challenge-list {
	counter-reset: challenge;
	list-style: none;
}

#annex3 ol.challenge-list > li {
	counter-increment: challenge;
	display: grid;
	grid-template-columns: 2.6em 1.1em 1fr;
	column-gap: 0.2em;
	align-items: baseline;
	margin-bottom: 0.55em;
	padding-left: 0;
	list-style: none;
}

#annex3 ol.challenge-list > li::before {
	grid-column: 1;
	grid-row: 1;
	content: counter(challenge);
	text-align: right;
	font-size: 1.85em;
	font-weight: 700;
	line-height: 1;
	color: #034ea2;
}

#annex3 ol.challenge-list > li::after {
	grid-column: 2;
	grid-row: 1;
	content: "\203A";
	color: #034ea2;
	font-size: 1.35em;
	font-weight: 700;
	line-height: 1;
	align-self: center;
}

#annex3 ol.challenge-list > li > mark {
	grid-column: 3;
	grid-row: 1;
	justify-self: start;
	width: fit-content;
	max-width: 100%;
	background-color: #e6e9f8;
	color: inherit;
	font-weight: inherit;
	padding: 0.1em 0.2em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	line-height: 1.45;
}

#annex3 .eca-best-practice__more a {
	color: #000000 !important;
	text-decoration: underline;
	text-underline-offset: 0.12em;
	word-break: break-all;
	overflow-wrap: anywhere;
}

#annex3 .eca-best-practice__more a:hover,
#annex3 .eca-best-practice__more a:focus {
	text-decoration: none;
	color: #000000 !important; /* ya negro: el cambio es perder el subrayado */
}

/* Annex 3 lists: flush left like body <p> (PDF; OP «Please align») — same pattern as A2-3 */
#annex3 ul.bullet-list,
#annex3.eca-sr ul.bullet-list {
	list-style: none !important;
	padding-left: 0 !important;
	padding-inline-start: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 1.2em !important;
	color: #034ea2 !important;
}

#annex3 ul.bullet-list li,
#annex3.eca-sr ul.bullet-list li {
	color: #034ea2 !important;
	position: relative;
	padding-left: 0.75em !important;
	margin-left: 0 !important;
	margin-bottom: 0.35em !important;
	font-size: inherit;
	line-height: 1.45;
}

#annex3 ul.bullet-list li:last-child,
#annex3.eca-sr ul.bullet-list li:last-child {
	margin-bottom: 0 !important;
}

#annex3 ul.bullet-list li::before,
#annex3.eca-sr ul.bullet-list li::before {
	content: "\2022" !important;
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	width: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	display: block !important;
	color: #034ea2 !important;
}

#annex3 .eca-best-practice__more img {
    display: inline-block;
    height: 1.1em;
    width: auto;
    vertical-align: middle;
    margin: 0 4px;
    position: relative;
    top: -1px;
    border: none;
}

#annex3 ol.listnumberDot,
#annex3 ol.listnumberDot2,
#annex3.eca-sr ol.listnumberDot,
#annex3.eca-sr ol.listnumberDot2 {
	list-style: none !important;
	counter-reset: list;
	padding-left: 0 !important;
	padding-inline-start: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 1.2em !important;
	color: #034ea2;
}

#annex3 ol.listnumberDot > li,
#annex3 ol.listnumberDot2 > li,
#annex3.eca-sr ol.listnumberDot > li,
#annex3.eca-sr ol.listnumberDot2 > li {
	padding-left: 1.5em !important;
	list-style: none !important;
	position: relative;
	margin-left: 0 !important;
	margin-bottom: 0.35em !important;
	color: #034ea2;
}

#annex3 ol.listnumberDot > li:last-child,
#annex3 ol.listnumberDot2 > li:last-child,
#annex3.eca-sr ol.listnumberDot > li:last-child,
#annex3.eca-sr ol.listnumberDot2 > li:last-child {
	margin-bottom: 0 !important;
}

#annex3 ol.listnumberDot > li::before,
#annex3.eca-sr ol.listnumberDot > li::before {
	counter-increment: list;
	content: counter(list, decimal) ". " !important;
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	width: auto !important;
	margin: 0 !important;
	display: block !important;
	color: #034ea2 !important;
	font-weight: bold !important;
}

#annex3 ol.listnumberDot2 > li::before,
#annex3.eca-sr ol.listnumberDot2 > li::before {
	counter-increment: list;
	content: counter(list, decimal) ". " !important;
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	width: auto !important;
	margin: 0 !important;
	display: block !important;
	color: #034ea2 !important;
	font-weight: bold !important;
}

#annex3 p.eca-programmes-heading,
#annex3 .eca-programmes-heading {
    background-color: #f2f2f2;
    border: 1px solid #d1d1d1;
    color: #1d429b;
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    margin-top: 0;
}

/* H5 – bloque de fichas de proyecto (sección 2): escalera PDF como annex2 kicker + region */
#annex3 .annex3-project-examples-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-top: 2em;
	margin-bottom: 0;
}

#annex3 h5.annex3-project-examples {
	margin: 0 0 -1px 0 !important;
	color: #034ea2 !important;
	border: 1px solid #034ea2;
	background-color: #ffffff !important;
	display: inline-block;
	padding: 0.35em 0.6em;
	font-size: 0.85em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-align: left;
	width: max-content;
	max-width: 100%;
	box-sizing: border-box;
	white-space: nowrap;
}

/* Subtítulo programa: ↪ (programmes-list) + caja malva pegada bajo Project examples */
#annex3 p.annex3-project-programme {
	display: flex;
	align-items: center;
	gap: 0.35em;
	margin: 0 0 0 1.15em !important;
	padding: 0;
	color: #034ea2 !important;
	font-size: 0.85em;
	line-height: 1.2;
}

#annex3 p.annex3-project-programme::before {
	content: "\21AA"; /* ↪ – programmes-list / PDF (inverso vertical de ↩) */
	flex: 0 0 auto;
	color: #034ea2;
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1;
}

#annex3 .annex3-project-programme__label {
	display: inline-block;
	margin: 0;
	padding: 0.35em 0.6em;
	border: 1px solid #034ea2;
	background-color: var(--annex2-mauve, #e8eaf5);
	color: #034ea2;
	font-size: inherit;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	box-sizing: border-box;
	width: max-content;
	max-width: 100%;
	white-space: nowrap;
}

#annex3 .annex3-project-examples-stack + article.project-card {
	margin-top: 2em;
}

#annex3 ul.programmes-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

#annex3 ul.programmes-list > li {
    position: relative;
    padding-left: 25px !important;
    margin-bottom: 10px !important;
    color: #1d429b;
    font-weight: 400;
    line-height: 1.3;
}

#annex3 ul.programmes-list > li::before {
    content: "\21AA";
    position: absolute;
    left: 0;
    top: 0;
    color: #1d429b;
    font-size: 18px;
    font-weight: bold;
}

#annex3 ul.programmes-sublist {
    list-style: none !important;
    padding-left: 20px !important;
    margin-top: 8px !important;
}

#annex3 ul.programmes-sublist li {
    position: relative;
    padding-left: 15px !important;
    margin-bottom: 5px !important;
    font-size: inherit;
    color: #1d429b;
}

#annex3 ul.programmes-sublist li::before {
    content: "\25B8";
    position: absolute;
    left: 0;
    top: 0;
    color: #1d429b;
    font-size: inherit;
}

#annex3 .funding-project-page {
    margin-top: 30px;
}

#annex3 h6.project-title-underlined,
#annex3 .project-title-underlined {
    color: #034ea2;
    font-size: 1.3em;
    font-weight: normal;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
    margin-top: 0;
}

#annex3 h6.project-title-underlined span,
#annex3 .project-title-underlined span {
	background-color: #fdf6ae;
	padding: 0.1em;
}

#annex3 h6.project-title-underlined a,
#annex3 .project-title-underlined a {
	color: #034ea2 !important;
	font-weight: normal;
	text-decoration: underline;
}

#annex3 .project-data-block {
    margin-top: 1.8em;
    margin-bottom: 0.8em;
}

#annex3 .project-data-block p:last-child {
    margin-bottom: 0 !important;
}

#annex3 .data-header {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #034ea2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    padding-bottom: 2px;
}

#annex3 .link-icon {
    height: 1em;
    width: auto;
    vertical-align: middle;
    margin-right: 4px;
    position: relative;
    top: -1px;
}

#annex3 .border-left-blue {
    border-left: 2px solid #034ea2;
    padding-left: 25px;
}

#annex3 .project-divider {
    border-top: 1px solid #034ea2;
    margin: 40px 0;
}

#annex3 .project-card p {
    font-size: 13px;
    line-height: 1.5;
    color: #034ea2;
}

#annex3 .project-card ol.listnumberDot,
#annex3 .project-card ol.listnumberDot2,
#annex3 .project-card ul.bullet-list {
    font-size: 13px;
    line-height: 1.5;
}

#annex3 .project-card ol.listnumberDot > li,
#annex3 .project-card ol.listnumberDot2 > li,
#annex3 .project-card ul.bullet-list li {
    font-size: 13px;
    line-height: 1.5;
}

#annex3 .project-link-row {
    line-height: 1.3;
    margin-bottom: 0 !important;
}

#annex3 .project-link-row a{
    text-decoration: underline;
	text-underline-offset: 0.12em;
	font-weight:bold;
	color: #000000 !important;
}

#annex3 .project-link-row a:hover,
#annex3 .project-link-row a:focus {
	text-decoration: none;
	color: #000000 !important;
}

/* Enlaces en columna derecha de ficha proyecto (= Project link / project-link-row) */
#annex3 .project-card .col-md-7 a {
	text-decoration: underline;
	text-underline-offset: 0.12em;
	font-weight: bold;
	color: #000000 !important;
}

#annex3 .project-card .col-md-7 a:hover,
#annex3 .project-card .col-md-7 a:focus {
	text-decoration: none;
	color: #000000 !important;
}

#annex3 .project-link-row img {
    display: inline-block;
    height: 1.1em;
    width: auto;
    vertical-align: middle;
    margin: 0 4px;
    position: relative;
    top: -1px;
    border: none;
}

#annex3 .data-content {
    font-size: 13px;
    line-height: 1.2em !important;
    color: #034ea2;
    margin-bottom: 2px !important;
    margin-top: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #4d7aa8;
}

#annex3 .data-content strong {
font-weight: 700;
color: #034ea2;
}

#annex3 .data-content a {
    text-decoration: underline;
	text-underline-offset: 0.12em;
	font-weight:bold;
	color: #000000 !important;
}

#annex3 .data-content a:hover,
#annex3 .data-content a:focus {
	text-decoration: none;
	color: #000000 !important;
}

#annex3 .key-actions-wrapper {
    margin-top: 1.5em;
    width: 100%;
}

#annex3 .key-action-block {
    margin-bottom: 2em;
}

#annex3 .key-action-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid #1d429b;
    border-radius: 25px;
    padding: 2px 15px;
    margin-bottom: 8px;
    background-color: #fff;
}

#annex3 .ka-icon {
    font-size: 16px;
    color: #1d429b;
    margin-right: 8px;
    display: inline-block;
    transform: rotate(-15deg);
}

#annex3 .ka-text {
    font-size: 13px;
    font-weight: 700;
    color: #1d429b;
    font-family: sans-serif;
}

#annex3 .ka-title {
    font-size: 15px;
    color: #0d2847;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
    padding-left: 5px;
}

/* Descripción detallada */
#annex3 .ka-description {
    font-size: 14px;
    line-height: 1.5 !important;
    color: #333;
    margin-bottom: 0 !important;
    padding-left: 5px;
    max-width: 95%;
}

#annex3 .link {
    text-decoration: underline;
	text-underline-offset: 0.12em;
	font-weight: bold;
	color: #000000 !important;
}

#annex3 .link:hover,
#annex3 .link:focus {
	text-decoration: none;
	color: #000000 !important;
}

/* Nota al pie del Anexo 3 */
#annex3-endnotes.annex3-endnotes {
	margin-top: 2.5em;
}

#annex3-endnotes .endnotes-list p {
	margin-bottom: 0.8em;
	color: #034ea2 !important;
}

#annex3-endnotes .endnotes-list p a:not(.note-back) {
	color: #000000 !important;
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

#annex3-endnotes .endnotes-list p a:not(.note-back):hover,
#annex3-endnotes .endnotes-list p a:not(.note-back):focus {
	color: #000000 !important;
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Copyright & Publicity / Legal Notice section (#chapter8 & #chapter8-contact)
   OP Correction #35: font color set to black (#000000)
   -------------------------------------------------------------------------- */
#chapter8,
#chapter8-contact {
	color: #000000 !important;
}

#chapter8 p,
#chapter8 ul,
#chapter8 li,
#chapter8 table,
#chapter8 td,
#chapter8 th,
#chapter8 .about-identifiers-set__title,
#chapter8-contact p,
#chapter8-contact ul,
#chapter8-contact li,
#chapter8-contact h3.grey-fg,
#chapter8-contact ul.ndash-ul,
#chapter8-contact ul.ndash-ul li {
	color: #000000 !important;
}

#chapter8-contact ul.ndash-ul li:before,
#chapter8-contact ul.ndash-ul-1 li:before {
	color: #000000 !important;
}

/* OP Correction #36: slightly reduce CC logo size (~80% scale / max-width: 80px) */
#chapter8 img.cc_logo,
#chapter8 #cc-logo,
.eca-sr .cc_logo {
	width: auto !important;
	max-width: 80px !important;
	height: auto !important;
	display: block !important;
	margin-top: 0.4em;
}

/* Portada — dos PDF (Report + Annex 3) */
.available-formats-container .publication-formats.publication-formats--dual-pdf th:nth-child(2),
.available-formats-container .publication-formats.publication-formats--dual-pdf td:nth-child(2) {
	display: table-cell;
}

/* Base plantilla: th { font-size: 10px } — demasiado pequeño (remark 12) */
.available-formats-container .publication-formats.publication-formats--dual-pdf > thead > tr:first-child th {
	font-size: 1em; /* "PDF" ≈ cuerpo */
	font-weight: 700;
	line-height: 1.3;
}

.available-formats-container .publication-formats.publication-formats--dual-pdf .publication-formats__subheads th {
	font-size: 0.9em; /* "Report" / "Annex 3" */
	font-weight: 600;
	line-height: 1.3;
}

.available-formats-container .publication-formats.publication-formats--dual-pdf td img {
	width: 50px;
	height: 50px;
}

/* --------------------------------------------------------------------------
   Annex overflow (template legacy)
   eca-sr.css sets #annex1/#annex2 { min-width:600px } and .container { overflow:hidden }.
   Together they clip body text mid-word on narrow viewports / when TOC shrinks the column.
   -------------------------------------------------------------------------- */
#annex1,
#annex2,
#annex3 {
	min-width: 0 !important;
	max-width: 100%;
	box-sizing: border-box;
}

#annex2 .annex2-factsheet,
#annex2 .annex2-factsheet__body,
#annex2 .annex2-factsheet__header,
#annex2 .annex2-factsheet__col {
	min-width: 0;
	max-width: 100%;
}

/* Below Bootstrap md: soften nowrap header chips that overflow the column */
@media (max-width: 991px) {
	#annex2 .annex2-factsheet--header-right .annex2-factsheet__header-stack p.annex2-factsheet__kicker,
	#annex2 .annex2-factsheet--header-left .annex2-factsheet__header-stack p.annex2-factsheet__kicker {
		max-width: 100%;
		margin-left: 0 !important;
		margin-right: 0 !important;
		white-space: normal;
	}

	#annex2 .annex2-factsheet__header-stack p.annex2-factsheet__region,
	#annex2 .annex2-factsheet__country-name {
		white-space: normal;
		max-width: 100%;
	}

	#annex2 .annex2-factsheet__country-row {
		flex-wrap: wrap;
		max-width: 100%;
	}
}

@media (max-width: 767px) {
	#annex2 .annex2-factsheet--header-right .annex2-factsheet__header-stack,
	#annex2 .annex2-factsheet--header-left .annex2-factsheet__header-stack {
		align-items: stretch;
	}

	#annex2 .annex2-factsheet--header-right .annex2-factsheet__country-row,
	#annex2 .annex2-factsheet--header-left .annex2-factsheet__country-row {
		justify-content: flex-start;
	}
}


/* --------------------------------------------------------------------------
   Header site title — left-aligned, sensible line-height (override template)
   Template centers .site-main-logo under 410px and used line-height:40px inline.
   -------------------------------------------------------------------------- */
.site-main-logo__brand,
.site-main-logo__title-wrap {
	display: inline-block;
	vertical-align: middle;
}

.site-main-logo__title {
	margin: 1em 0;
	color: #004494;
	font-size: 1.6em;
	font-weight: bold;
	line-height: 1.25;
	text-align: left;
}

@media screen and (max-width: 410px) {
	.site-main-logo {
		text-align: left;
	}

	.site-main-logo__brand,
	.site-main-logo__title-wrap {
		display: block;
	}

	.site-main-logo__title {
		margin-top: 0.4em;
		font-size: 1.35em;
		line-height: 1.25;
	}
}

/* Portada h1/subtitle: avoid forced <br> line breaks on small viewports */
@media screen and (max-width: 767px) {
	h1#publication-details-title {
		line-height: 1.25;
	}

	h1#publication-details-title br,
	h1#publication-details-title .subtitle br {
		display: none;
	}

	h1#publication-details-title .subtitle {
		line-height: 1.35;
		margin-top: 0.4em;
		margin-bottom: 1em;
	}
}
