/* Public pages other than home, events and comparator (UI system, 29 October
 * 2026). Built on ui.css; page-specific rules only, prefixed cp-. One section
 * per page group, in the order below.
 */

/* ---- Shared ------------------------------------------------------------- */
.cp-hero { padding-block: var(--u-6); }
.cp-hero .u-h1 { font-size: 40px; }
.cp-hero .u-lead { margin-bottom: 0; }
.cp-hero__actions { margin-top: var(--u-4); }
.cp-hero__aside { min-width: 0; }
.cp-hero__text { min-width: 0; }
.cp-figure__link { color: inherit; text-decoration: none; border-bottom: 2px solid var(--u-blue); }
.cp-figure__link:hover { border-bottom-color: var(--u-green); }
/* The underline sits under the number, never across the label below it. */
.cp-figure__link { display: inline-block; line-height: 1.1; padding-bottom: 2px; }
.cp-hero__figures .u-figure dt { margin-top: 6px; }
/* A word figure (Gaborone) shrinks on a phone instead of breaking inside the word. */
@media (max-width: 639.98px) {
  .cp-hero__figures .u-figure dd { font-size: clamp(22px, 7vw, 36px); overflow-wrap: normal; word-break: keep-all; }
}
.cp-hero__figures { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--u-3); }
.cp-hero__figures .u-figure { background: var(--u-white); border: 1px solid var(--u-line); border-radius: var(--u-radius); padding: var(--u-4); }
.cp-hero__figures:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 991.98px) { .cp-hero__figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cp-cta { margin-top: 0; }
.cp-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--u-3); margin-bottom: var(--u-4); }
.cp-section-head .u-h2 { margin: 0; }
.cp-prose { font: 400 var(--u-t-16)/var(--u-line-height) var(--u-sans); color: var(--u-ink); max-width: 72ch; }
.cp-prose p { margin: 0 0 var(--u-3); }
.cp-prose > :last-child { margin-bottom: 0; }
.cp-icon { width: 20px; height: 20px; flex: none; }
.cp-icon-badge { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--u-radius-sm); background: var(--u-tint-green); color: var(--u-green-deep); }
.cp-icon-badge svg { width: 22px; height: 22px; }
.cp-placeholder { display: grid; place-items: center; gap: var(--u-2); width: 100%; height: 100%; background: var(--u-tint-green); color: var(--u-green-deep); font: 600 var(--u-t-14)/1.3 var(--u-sans); text-align: center; padding: var(--u-3); }
.cp-placeholder svg { width: 40px; height: 40px; }
@media (max-width: 767.98px) {
  .cp-hero { padding-block: var(--u-5); }
  .cp-hero .u-h1 { font-size: 32px; }
}

/* ---- About -------------------------------------------------------------- */
/* Each part of the page is its own grid cell, so two paragraphs can never be
 * laid over each other (the "Who we are" overlap came from a fused run of
 * same-ground blocks with negative margins). */
.cp-prose--lead { font-size: var(--u-t-18); }
.cp-about-who { scroll-margin-top: 80px; }
.cp-about-who__text { min-width: 0; }
.cp-about-sadc { margin-top: var(--u-5); padding-top: var(--u-4); border-top: 1px solid var(--u-line); }
.cp-about-facts .u-h3 { margin-bottom: var(--u-3); }
.cp-about-pillar .u-card__title { font-size: var(--u-t-22); }
.cp-about-history { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--u-4); }
/* Desktop: the four dates run across the page on one rule. */
@media (min-width: 992px) {
  .cp-about-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--u-4); padding: var(--u-5) 0 0; }
  .cp-about-timeline::before { left: 0; right: 0; top: 11px; bottom: auto; width: auto; height: 2px; }
  .cp-about-timeline > li { padding: 0; }
  .cp-about-timeline > li::before { left: 0; top: calc(-1 * var(--u-5) + 4px); }
}
.cp-about-timeline .u-text { margin: 0; }
.cp-about-timeline > li { padding-bottom: var(--u-5); }
.cp-about-timeline > li:last-child { padding-bottom: 0; }
.cp-anchor { display: block; position: relative; top: -80px; visibility: hidden; }
.cp-about-gov .u-card__text { font-size: var(--u-t-16); }
/* Governance headings run long in French and Portuguese; they wrap rather than push the card wider. */
.cp-gov__title { overflow-wrap: anywhere; hyphens: auto; }
.cp-about-people { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--u-6); align-items: start; }
.cp-about-people__grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cp-about-people .u-person__name, .cp-about-people .u-person__role { display: block; }
.cp-about-more { margin-top: var(--u-3); }
@media (max-width: 991.98px) {
  .cp-about-people { grid-template-columns: minmax(0, 1fr); gap: var(--u-4); }
}

/* ---- Contact ------------------------------------------------------------ */
.cp-contact { scroll-margin-top: 80px; }
.cp-contact-map-section { border-top: 1px solid var(--u-line); }
.cp-contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--u-5); align-items: start; }
.cp-contact__form { padding: var(--u-5); }
.cp-contact__help { margin: 0 0 var(--u-4); }
.cp-contact__success { margin-bottom: var(--u-4); }
.cp-contact__success-body { font-weight: 400; margin-top: 2px; }
.cp-contact__errors { margin-bottom: var(--u-3); }
.cp-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--u-4); }
.cp-form__submit { display: grid; gap: var(--u-2); justify-items: start; }
.cp-form .u-error { margin: 0; }
.cp-form .u-help { margin: 0; }
.cp-form .u-select { height: 46px; padding-block: 8px; }
.cp-contact__cards { display: grid; gap: var(--u-3); }
.cp-contact-card { display: flex; gap: var(--u-3); align-items: flex-start; }
.cp-contact-card__title { margin: 0 0 var(--u-1); font: 600 var(--u-t-16)/1.4 var(--u-sans); color: var(--u-ink); }
.cp-contact-card__title--second { margin-top: var(--u-3); }
.cp-contact-card__text { margin: 0; font: 400 var(--u-t-16)/1.5 var(--u-sans); font-style: normal; color: var(--u-ink); }
.cp-contact-card__link { display: inline-flex; align-items: center; min-height: 44px; font: 600 var(--u-t-16)/1.3 var(--u-sans); color: var(--u-green-deep); overflow-wrap: anywhere; }
.cp-contact-social { display: flex; flex-wrap: wrap; gap: var(--u-2); list-style: none; margin: var(--u-1) 0 0; padding: 0; }
.cp-contact-social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.cp-map__label { margin: var(--u-1) 0 0; }
.cp-map { position: relative; height: 420px; border: 1px solid var(--u-line); border-radius: var(--u-radius); overflow: hidden; background: var(--u-pale); }
.cp-map__static { position: absolute; inset: 0; }
.cp-map__static img { width: 100%; height: 100%; object-fit: cover; object-position: 52.6% 55.9%; display: block; }
.cp-map__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); line-height: 0; }
.cp-map__credit { position: absolute; right: 0; bottom: 0; padding: 2px 8px; background: var(--u-white); font: 400 var(--u-t-14)/1.4 var(--u-sans); color: var(--u-ink); }
.cp-map__canvas { position: absolute; inset: 0; z-index: 1; }
.cp-map__marker { background: none; border: 0; }
.cp-map__noscript { position: absolute; left: var(--u-3); bottom: var(--u-3); margin: 0; z-index: 2; }
.cp-map .leaflet-control-attribution { font-size: 14px; }
.cp-map.cp-map .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }
@media (max-width: 991.98px) {
  .cp-contact__grid { grid-template-columns: minmax(0, 1fr); }
  .cp-contact__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639.98px) {
  .cp-form__row { grid-template-columns: minmax(0, 1fr); }
  .cp-contact__cards { grid-template-columns: minmax(0, 1fr); }
  .cp-contact__form { padding: var(--u-4); }
  .cp-map { height: 320px; }
}

/* ---- Members and member page -------------------------------------------- */
.cp-members-map, .cp-members-dir { scroll-margin-top: 80px; }
.cp-member { min-height: 100%; }
.cp-members-map__frame { min-width: 0; }
/* C14: the two map controls in one compact row above the full-width map. */
@media (min-width: 768px) {
  .cp-members-map .c-map-region__control { display: inline-flex; flex-wrap: nowrap; vertical-align: bottom; margin-right: var(--u-5); }
  .cp-members-map .c-map-region__field { flex: 0 1 300px; }
  .cp-members-map .c-map-region__select { width: 300px; max-width: 100%; }
}
/* Legend and export buttons share one row on desktop. */
@media (min-width: 992px) {
  .cp-members-map .c-map-region__exports { float: right; margin: var(--u-3) 0 0 var(--u-5); display: flex; gap: var(--u-2); }
  .cp-members-map .c-map-region__legend { overflow: hidden; }
  .cp-members-map .c-map-region__caption { clear: both; }
}
.cp-members-map .c-map-region__control-label { font-family: var(--u-sans); font-size: var(--u-t-14); }
.cp-members-grid { list-style: none; margin: 0; padding: 0; }
.cp-member__top { display: flex; align-items: center; justify-content: space-between; gap: var(--u-3); }
.cp-member__mark { flex: none; display: grid; place-items: center; width: 96px; height: 48px; padding: 4px; border: 1px solid var(--u-line); border-radius: var(--u-radius-sm); background: var(--u-white); overflow: hidden; }
.cp-member__mark img, .cp-member__mark svg { max-width: 86px; max-height: 38px; width: auto; height: auto; object-fit: contain; }
.cp-member__logo { display: block; }
.cp-member__country { display: inline-flex; align-items: center; gap: var(--u-2); font: 600 var(--u-t-14)/1.3 var(--u-sans); color: var(--u-muted); }
.cp-member__country svg, .cp-member__country img { width: 20px; height: auto; }
.cp-memberpage-hero { scroll-margin-top: 80px; }
.cp-memberpage__back { color: inherit; }
.cp-memberpage__title { display: flex; align-items: center; gap: var(--u-3); flex-wrap: wrap; }
.cp-memberpage__title svg, .cp-memberpage__title img { width: 48px; height: auto; border: 1px solid var(--u-line); }
.cp-memberpage__brand { display: grid; place-items: center; gap: var(--u-3); min-height: 220px; padding: var(--u-5); background: var(--u-white); border: 1px solid var(--u-line); border-radius: var(--u-radius); text-align: center; }
.cp-memberpage__brand .c-member__logo { margin: 0; }
.cp-memberpage__brand .c-member__logo img { max-width: 260px; max-height: 120px; width: auto; height: auto; object-fit: contain; }
.cp-memberpage__flag svg, .cp-memberpage__flag img { width: 160px; height: auto; border: 1px solid var(--u-line); }
.cp-memberpage__acronym { margin: 0; font: 600 var(--u-t-28)/1.2 var(--u-display); color: var(--u-green-deep); }
.cp-memberpage__main { min-width: 0; }
.cp-memberpage__h2 { margin-top: var(--u-6); }
.cp-memberpage__main > :first-child { margin-top: 0; }
.cp-memberpage__main .c-table__sub { display: block; font-size: var(--u-t-14); font-weight: 400; color: var(--u-muted); }
.cp-memberpage__committees, .cp-memberpage__pubs { list-style: none; margin: 0; padding: 0; }
.cp-memberpage__committee { display: flex; gap: var(--u-3); align-items: flex-start; }
.cp-memberpage__committee-name { display: block; margin-bottom: var(--u-1); font: 600 var(--u-t-16)/1.4 var(--u-sans); color: var(--u-ink); }
.cp-memberpage__facts { position: sticky; top: 96px; }
.cp-memberpage__compare { margin-top: var(--u-4); width: 100%; text-align: center; line-height: 1.3; padding-block: 10px; }
@media (max-width: 991.98px) {
  .cp-memberpage__facts { position: static; }
  .cp-memberpage__brand { min-height: 0; padding: var(--u-3); }
}
/* Data table as cards on phones (C3). */
@media (max-width: 639.98px) {
  .cp-cardtable { border: 0; overflow: visible; }
  .cp-cardtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cp-cardtable tr { display: block; margin-bottom: var(--u-3); border: 1px solid var(--u-line); border-radius: var(--u-radius); overflow: hidden; }
  .cp-cardtable th, .cp-cardtable td { display: block; border: 0; padding: 8px 16px; }
  .cp-cardtable tbody th { background: var(--u-tint-blue); padding-block: 12px; }
  .cp-cardtable td::before { content: attr(data-label); display: block; font: 600 var(--u-t-14)/1.4 var(--u-sans); color: var(--u-muted); }
  .cp-cardtable tbody tr:nth-child(even) td { background: transparent; }
}

/* ---- Committees --------------------------------------------------------- */
.cp-com-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--u-5); align-items: start; margin-bottom: var(--u-5); }
.cp-com-head .u-h2 { margin-bottom: var(--u-2); }
.cp-com-intro { margin: 0; }
@media (max-width: 991.98px) { .cp-com-head { grid-template-columns: minmax(0, 1fr); gap: var(--u-3); } }
.cp-com-grid { list-style: none; margin: 0; padding: 0; }
.cp-com-card { list-style: none; }
.cp-com-card__top { display: flex; align-items: center; gap: var(--u-3); }
.cp-com-tally { margin: auto 0 0; padding-top: var(--u-3); border-top: 1px solid var(--u-line); display: flex; flex-wrap: wrap; gap: var(--u-4); }
.cp-com-tally > div { display: flex; flex-direction: column-reverse; }
.cp-com-tally dt { font: 400 var(--u-t-14)/1.4 var(--u-sans); color: var(--u-muted); }
.cp-com-tally dd { margin: 0; min-height: 44px; font: 600 var(--u-t-28)/44px var(--u-display); color: var(--u-green-deep); }
.cp-com-tally dd a { position: relative; z-index: 1; color: var(--u-green-deep); display: inline-block; min-width: 44px; min-height: 44px; line-height: 44px; }
.cp-com-card__dormant { margin: auto 0 0; padding-top: var(--u-3); border-top: 1px solid var(--u-line); font: 400 var(--u-t-14)/1.5 var(--u-sans); color: var(--u-muted); }
.cp-com-note { margin: var(--u-4) 0 0; font-size: var(--u-t-16); }
.cp-com-about .u-h2 { margin: 0; }
.cp-doc-grid { list-style: none; margin: 0; padding: 0; }
.cp-doc-thumb { font: 700 var(--u-t-22)/1 var(--u-sans); color: var(--u-green-deep); }
.cp-meeting { display: flex; gap: var(--u-3); align-items: flex-start; }
.cp-meeting + .cp-meeting { margin-top: var(--u-3); padding-top: var(--u-3); border-top: 1px solid var(--u-line); }
.cp-meeting__title { margin: 0; font: 600 var(--u-t-16)/1.4 var(--u-sans); }
.cp-meeting__title a { color: var(--u-ink); }
.cp-meeting__meta { margin: 2px 0 0; font-size: var(--u-t-14); color: var(--u-muted); }
.cp-side-stack { display: grid; gap: var(--u-4); }
.cp-side-title { margin: 0 0 var(--u-3); font: 600 var(--u-t-18)/1.35 var(--u-sans); color: var(--u-green-deep); }
.cp-chips { display: flex; flex-wrap: wrap; gap: var(--u-2); list-style: none; margin: 0; padding: 0; }
.cp-chips .u-chip { min-height: 44px; }
.cp-com-layout--empty { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--u-5); align-items: start; }
.cp-com-layout--empty .cp-side-stack { grid-template-columns: minmax(0, 1fr); }
.cp-com-empty { display: grid; gap: var(--u-3); justify-items: start; padding: var(--u-5); }
.cp-com-empty .u-text { margin: 0; font-size: var(--u-t-18); }
@media (min-width: 992px) { .cp-com-layout--empty > div .u-h2 { font-size: var(--u-t-28); } }
@media (max-width: 991.98px) { .cp-com-layout--empty { grid-template-columns: minmax(0, 1fr); } }

/* ---- Projects ----------------------------------------------------------- */
.cp-proj-grid { list-style: none; margin: 0; padding: 0; }
.cp-proj-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--u-2); }
.cp-proj-card .u-card__media { background: var(--u-pale); }
.cp-proj-card .cp-placeholder, .cp-proj-photo .cp-placeholder { align-content: center; }
.cp-proj-card .u-card__actions { position: static; }
.cp-proj-open { pointer-events: none; }
.cp-proj-partners { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.cp-proj-partners li { padding: 2px 10px; border: 1px solid var(--u-line); border-radius: 999px; background: var(--u-white); font: 500 var(--u-t-14)/1.6 var(--u-sans); color: var(--u-ink); }
.cp-proj-time { display: grid; gap: 4px; margin-top: auto; }
.cp-proj-time__bar { height: 6px; border-radius: 999px; background: var(--u-tint-blue); overflow: hidden; }
.cp-proj-time__bar span { display: block; height: 100%; background: var(--u-blue); }
.cp-proj-time__ends { display: flex; justify-content: space-between; font: 400 var(--u-t-14)/1.4 var(--u-sans); color: var(--u-muted); }
.cp-proj-aside__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--u-3); }
.cp-proj-aside__list li { display: grid; gap: 2px; padding-top: var(--u-3); border-top: 1px solid var(--u-line); }
.cp-proj-aside__list li:first-child { padding-top: 0; border-top: 0; }
.cp-proj-aside__list a { font: 600 var(--u-t-16)/1.4 var(--u-sans); color: var(--u-green-deep); }
.cp-proj-aside__list .u-muted { font-size: var(--u-t-14); }
.cp-eyebrow-link { color: inherit; }
.cp-proj-aside__partners li { font-size: var(--u-t-16); padding: 6px 14px; }
.cp-proj-aside__note { margin: var(--u-3) 0 0; }
.cp-proj-hero__pills { margin-top: var(--u-2); }
.cp-proj-photo { background: var(--u-pale); }
.cp-proj-photo img { object-fit: cover; }
.cp-proj-quote { margin: 0 0 var(--u-5); padding: var(--u-4) var(--u-5); border-left: 4px solid var(--u-blue); background: var(--u-tint-blue); border-radius: 0 var(--u-radius) var(--u-radius) 0; }
.cp-proj-quote p { margin: 0; font: 500 var(--u-t-22)/1.45 var(--u-display); color: var(--u-green-deep); }
.cp-proj-body h1, .cp-proj-body h2, .cp-proj-body h3 { font: 600 var(--u-t-18)/1.35 var(--u-sans); color: var(--u-ink); margin: var(--u-4) 0 var(--u-2); text-transform: none; }
.cp-proj-body h1:first-child { margin-top: 0; }
@media (min-width: 992px) { .cp-proj-body--cols { column-count: 2; column-gap: var(--u-5); } .cp-proj-body--cols p { break-inside: avoid; } }
.cp-proj-facts-wide .u-facts { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cp-proj-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--u-2); }
.cp-proj-docs a { overflow-wrap: anywhere; }
@media (min-width: 992px) {
  .cp-proj-grid--wide .cp-proj-card { flex-direction: row; }
  .cp-proj-grid--wide .cp-proj-card .u-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 100%; }
  .cp-proj-grid--wide .cp-proj-card .u-card__body { padding-bottom: 88px; }
  .cp-proj-grid--wide .cp-proj-card .u-card__actions { position: absolute; left: 38%; bottom: 0; }
}
.cp-proj-related-note { margin: calc(-1 * var(--u-2)) 0 var(--u-4); }

/* ---- Publications -------------------------------------------------------- */
.cp-pub-browse__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--u-2); }
.cp-pub-browse__link { display: flex; align-items: center; gap: var(--u-3); min-height: 48px; padding: var(--u-2) var(--u-3); border: 1px solid var(--u-line); border-radius: var(--u-radius-sm); background: var(--u-white); color: var(--u-ink); text-decoration: none; font: 600 var(--u-t-16)/1.3 var(--u-sans); transition: border-color var(--u-fast), background var(--u-fast); }
.cp-pub-browse__link:hover { border-color: var(--u-green); background: var(--u-pale); }
.cp-pub-browse__link .c-sector-icon { width: 24px; height: 24px; color: var(--u-green); flex: none; }
/* At 320 px the count wraps under the name instead of pushing the card wider (1.4.10). */
.cp-pub-browse__link { min-width: 0; flex-wrap: wrap; overflow-wrap: anywhere; }
.cp-pub-browse__count { margin-left: auto; font-weight: 400; font-size: var(--u-t-14); color: var(--u-muted); }
.cp-library__grid.c-library { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--u-5); align-items: start; }
.cp-filters { min-width: 0; }
.cp-filters > summary { list-style: none; display: none; }
.cp-filters > summary::-webkit-details-marker { display: none; }
.cp-filters #library-filters, .cp-filters #news-filters { max-width: none; }
.cp-filters .c-facets__legend { font-size: var(--u-t-14); }
.cp-filters .c-facet__count { font-size: var(--u-t-14); }
.cp-library__main { gap: var(--u-4); }
.cp-results { margin: 0; font-size: var(--u-t-16); color: var(--u-ink); }
.cp-doc-grid { list-style: none; margin: 0; padding: 0; }
.cp-doc-grid > li { min-width: 0; }
.cp-doc-card .u-card__media--doc img { object-fit: cover; object-position: 50% 0; background: var(--u-white); }
.cp-doc-card .u-card__media--doc { border-bottom: 1px solid var(--u-line); }
.cp-doc-card .u-card__title { font-size: var(--u-t-16); }
.cp-lang { font-size: var(--u-t-14); padding: 0 8px; }
@media (max-width: 1199.98px) {
  .cp-library .cp-doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .cp-library__grid.c-library { grid-template-columns: minmax(0, 1fr); }
  .cp-filters > summary { display: inline-flex; margin-bottom: var(--u-3); }
}
@media (max-width: 639.98px) {
  .cp-library .cp-doc-grid { grid-template-columns: minmax(0, 1fr); }
  .cp-filters .c-facet { min-height: 44px; }
}
@media (max-width: 639.98px) {
  .cp-doc-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .cp-doc-card .u-card__media--doc { grid-row: 1 / span 2; aspect-ratio: auto; height: 100%; min-height: 128px; border-bottom: 0; border-right: 1px solid var(--u-line); }
  .cp-doc-card .u-card__body { padding: var(--u-3); }
  .cp-doc-card .u-card__actions { grid-column: 2; padding: 0 var(--u-3) var(--u-3); }
  .cp-doc-card .cp-placeholder svg { width: 28px; height: 28px; }
  .cp-doc-card .u-card__media--doc img { object-fit: contain; object-position: 50% 50%; }
}
.cp-pub-browse { align-self: center; }
.cp-filters__toggle { gap: var(--u-2); }
.cp-doc-card__media { position: relative; }
.cp-doc-card__dl { min-width: 0; }
.cp-doc-hero .u-lead { max-width: 80ch; }
.cp-doc-notice { margin-bottom: var(--u-4); }
.cp-doc-main { display: grid; gap: var(--u-5); min-width: 0; }
.cp-viewer { border: 1px solid var(--u-line); border-radius: var(--u-radius); overflow: hidden; background: var(--u-white); }
.cp-viewer__frame { background: var(--u-pale); padding: var(--u-5); display: grid; place-items: center; border-bottom: 1px solid var(--u-line); }
.cp-viewer__page { display: block; width: min(100%, 520px); box-shadow: 0 2px 10px rgba(37, 56, 74, .14); background: var(--u-white); }
.cp-viewer__page img { display: block; width: 100%; height: auto; }
.cp-viewer__empty { min-height: 240px; border-radius: var(--u-radius-sm); }
.cp-viewer__bar { display: grid; gap: var(--u-2); padding: var(--u-4); }
.cp-doc-side { display: grid; gap: var(--u-4); min-width: 0; }
.cp-doc-langs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--u-2); }
.cp-doc-langs__item { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-2); min-height: 32px; }
.cp-doc-langs__item a { color: var(--u-green-deep); font-weight: 600; }
.cp-doc-cite__ref { margin: 0 0 var(--u-2); font-size: var(--u-t-16); overflow-wrap: anywhere; }
.cp-related .cp-doc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 991.98px) {
  .cp-related .cp-doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639.98px) {
  .cp-related .cp-doc-grid { grid-template-columns: minmax(0, 1fr); }
  .cp-viewer__frame { padding: var(--u-3); }
}

/* ---- Newsroom ------------------------------------------------------------ */
.cp-news-grid { list-style: none; margin: 0; padding: 0; }
.cp-news-grid > li { min-width: 0; }
.cp-news-card__line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-2) var(--u-3); }
.cp-news-card__date { font: 400 var(--u-t-14)/1.4 var(--u-sans); color: var(--u-muted); }
.cp-news-card__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cp-news-card__media { position: relative; }
.cp-news-ph { display: grid; place-items: center; align-content: center; gap: var(--u-2); width: 100%; height: 100%; background: var(--u-tint-green); border-bottom: 1px solid var(--u-line); }
.cp-news-ph img { width: 56px; height: 56px; object-fit: contain; }
.cp-news-ph__label { font: 600 var(--u-t-16)/1.3 var(--u-sans); color: var(--u-green-deep); }
.cp-news-card--featured { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 1fr auto; margin-bottom: var(--u-4); }
.cp-news-card--featured .cp-news-card__media { grid-row: 1 / span 2; aspect-ratio: auto; min-height: 340px; }
.cp-news-card--featured .cp-news-card__media > img, .cp-news-card--featured .cp-news-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cp-news-card--featured .u-card__body { padding: var(--u-5) var(--u-5) var(--u-3); }
.cp-news-card--featured .u-card__title { font: 600 var(--u-t-28)/1.25 var(--u-display); color: var(--u-green-deep); }
.cp-news-card--featured .u-card__actions { padding: 0 var(--u-5) var(--u-5); }
.cp-news-card--featured .cp-news-card__text { -webkit-line-clamp: 5; }
.cp-newsroom .cp-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cp-news-controls { display: grid; gap: 0; margin-bottom: var(--u-3); }
.cp-news-controls .u-field { margin-bottom: var(--u-3); }
@media (max-width: 1199.98px) {
  .cp-newsroom .cp-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .cp-news-card--featured { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .cp-news-card--featured .cp-news-card__media { grid-row: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .cp-news-card--featured .cp-news-card__media > img { position: static; }
  .cp-news-card--featured .u-card__body { padding: var(--u-4) var(--u-4) var(--u-3); }
  .cp-news-card--featured .u-card__title { font-size: var(--u-t-22); }
  .cp-news-card--featured .u-card__actions { padding: 0 var(--u-4) var(--u-4); }
}
@media (max-width: 639.98px) {
  .cp-newsroom .cp-news-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639.98px) {
  .cp-news-grid .cp-news-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .cp-news-grid .cp-news-card__media { aspect-ratio: auto; height: 100%; min-height: 112px; }
  .cp-news-grid .cp-news-card .u-card__body { padding: var(--u-3); gap: 4px; }
  .cp-news-grid .cp-news-card__text { display: none; }
  .cp-news-grid .cp-news-ph img { width: 36px; height: 36px; }
  .cp-news-grid .cp-news-ph__label { font-size: var(--u-t-14); }
  .cp-news-grid .cp-news-card .u-card__title { font-size: var(--u-t-16); }
}
.cp-article-hero__line { margin-bottom: var(--u-3); }
.cp-article-hero .u-h1 { font-size: 36px; }
.cp-article-hero__photo { position: relative; }
.cp-article-hero__photo .cp-news-ph img { width: 72px; height: 72px; }
.cp-article__main { min-width: 0; display: grid; gap: var(--u-5); }
.cp-article__body { font-size: var(--u-t-18); line-height: 1.65; max-width: 72ch; }
.cp-article__body img { max-width: 100%; height: auto; }
.cp-article__tags, .cp-article__share-row { display: flex; flex-wrap: wrap; gap: var(--u-2); }
.cp-article__tags .u-chip, .cp-article__share-row .u-chip { min-height: 44px; }
.cp-article__pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--u-3); border-top: 1px solid var(--u-line); padding-top: var(--u-4); }
.cp-article__step { display: grid; gap: 4px; padding: var(--u-3); border: 1px solid var(--u-line); border-radius: var(--u-radius-sm); color: var(--u-ink); text-decoration: none; font-weight: 600; transition: border-color var(--u-fast), background var(--u-fast); }
.cp-article__step:hover { border-color: var(--u-green); background: var(--u-pale); }
.cp-article__step--older { grid-column: 2; text-align: right; }
.cp-article__step-label { font: 600 var(--u-t-14)/1.3 var(--u-sans); color: var(--u-blue-ink); }
.cp-article__side { display: grid; gap: var(--u-4); min-width: 0; position: sticky; top: var(--u-3); }
.cp-article__share { display: grid; gap: var(--u-3); }
.cp-article__share .u-h3 { margin: 0; }
.cp-article__link { margin: 0; }
.cp-article__back { justify-self: start; }
@media (max-width: 991.98px) {
  .cp-article__side { position: static; }
}
@media (max-width: 639.98px) {
  .cp-article-hero .u-h1 { font-size: 28px; }
  .cp-article__body { font-size: var(--u-t-16); }
  .cp-article__pager { grid-template-columns: minmax(0, 1fr); }
  .cp-article__step--older { grid-column: auto; text-align: left; }
}

/* ---- Search -------------------------------------------------------------- */
.cp-search__form { background: var(--u-white); border: 1px solid var(--u-line); border-radius: var(--u-radius); padding: var(--u-4); display: grid; gap: var(--u-2); }
.cp-search__field { position: relative; display: flex; gap: var(--u-2); }
.cp-search__field .u-input { flex: 1; min-width: 0; }
.cp-search__count { margin: 0 0 var(--u-4); font: 600 var(--u-t-18)/1.4 var(--u-sans); color: var(--u-green-deep); }
.cp-search__count:empty { display: none; }
.cp-search__group + .cp-search__group { margin-top: var(--u-6); }
.cp-search__group-title { display: flex; align-items: center; gap: var(--u-3); margin: 0 0 var(--u-3); font: 600 var(--u-t-22)/1.3 var(--u-sans); color: var(--u-ink); }
.cp-search__cards, .cp-linkcards { list-style: none; margin: 0; padding: 0; }
.cp-search mark, .cp-result mark { background: #FFF1C2; color: var(--u-ink); padding: 0 2px; border-radius: 2px; }
/* A snippet is cut from the document text and can hold a long reference or address; it wraps rather than overflow the card. */
.cp-result__snippet { overflow-wrap: anywhere; }
.cp-search__facets { position: sticky; top: 96px; }
.cp-search__facets .c-filters { display: grid; gap: var(--u-3); margin: 0; }
.cp-search__facets .c-filters__legend { font-size: var(--u-t-14); font-weight: 600; color: var(--u-ink); }
.cp-search__facets .c-chip { min-height: 44px; font-size: var(--u-t-14); }
.cp-search__facets .c-chip__count { font-size: var(--u-t-14); }
.cp-search__empty { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--u-5); align-items: start; }
.cp-pager { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-3); margin-top: var(--u-5); color: var(--u-muted); }
@media (max-width: 991.98px) {
  .cp-search__facets { position: static; order: -1; }
  .cp-search__empty { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479.98px) {
  .cp-search__field { flex-direction: column; }
}
@media (max-width: 767.98px) {
  .cp-search__facets .c-filters__options { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: var(--u-2); padding-bottom: 4px; }
  .cp-search__facets .c-chip { flex: none; }
}

/* ---- Sign in and register ------------------------------------------------- */
.cp-auth { background: var(--u-tint-green); padding-block: var(--u-8); }
.cp-auth__card { max-width: 520px; margin-inline: auto; background: var(--u-white); border: 1px solid var(--u-line); border-radius: var(--u-radius); box-shadow: var(--u-shadow-lift); overflow: hidden; }
.cp-auth__card--split { max-width: 960px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cp-auth__main { padding: var(--u-6); }
.cp-auth__brand { display: inline-flex; align-items: center; gap: var(--u-3); text-decoration: none; color: var(--u-green-deep); font: 600 var(--u-t-22)/1 var(--u-display); margin-bottom: var(--u-4); min-height: 44px; }
.cp-auth__title { margin: 0 0 var(--u-2); font: 600 var(--u-t-36)/1.2 var(--u-display); color: var(--u-green-deep); }
.cp-auth__intro { margin: 0 0 var(--u-4); font: 400 var(--u-t-16)/var(--u-line-height) var(--u-sans); color: var(--u-ink); }
.cp-auth__form { margin-top: var(--u-3); }
.cp-auth__form .u-success { margin-bottom: var(--u-4); }
.cp-auth__alert { display: flex; gap: var(--u-2); align-items: flex-start; padding: var(--u-3); margin-bottom: var(--u-4); border-radius: var(--u-radius-sm); background: #FBEDED; color: #9B2226; font-weight: 600; }
.cp-auth__check { display: flex; align-items: center; gap: var(--u-2); min-height: 44px; margin-bottom: var(--u-4); font-size: var(--u-t-16); color: var(--u-ink); }
.cp-auth__check input { width: 22px; height: 22px; accent-color: var(--u-green); }
.cp-auth__submit { width: 100%; }
.cp-auth__link { margin: var(--u-3) 0 0; text-align: center; font-size: var(--u-t-16); }
.cp-auth__link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--u-green-deep); font-weight: 600; }
.cp-auth__help { margin: var(--u-4) 0 0; padding-top: var(--u-3); border-top: 1px solid var(--u-line); }
.cp-auth__side { background: var(--u-tint-blue); padding: var(--u-6) var(--u-5); display: flex; flex-direction: column; gap: var(--u-3); align-items: flex-start; }
.cp-auth__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--u-3); font-size: var(--u-t-16); color: var(--u-ink); }
.cp-auth__list li { display: flex; gap: var(--u-2); align-items: flex-start; }
.cp-auth__list .cp-icon { color: var(--u-green); margin-top: 2px; }
@media (max-width: 767.98px) {
  .cp-auth { padding-block: var(--u-5); }
  .cp-auth__card--split { grid-template-columns: minmax(0, 1fr); }
  .cp-auth__main, .cp-auth__side { padding: var(--u-4); }
  .cp-auth__title { font-size: var(--u-t-28); }
}
.cp-auth .c-pw__toggle { min-width: 44px; min-height: 44px; }

/* ---- Error pages ---------------------------------------------------------- */
.cp-error__bar { border-bottom: 1px solid var(--u-line); background: var(--u-white); padding-block: var(--u-2); }
.cp-error .cp-search__form { align-self: center; }
.cp-linkcards { list-style: none; margin: 0; padding: 0; }
.cp-linkcard .u-card__body { gap: var(--u-2); }

/* ---- Privacy and terms ---------------------------------------------------- */
.cp-legal__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--u-6); align-items: start; }
.cp-legal__grid > :only-child { grid-column: 1 / -1; }
.cp-legal__toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; background: var(--u-tint-blue); border-radius: var(--u-radius); padding: var(--u-4); }
.cp-legal__toc-title { margin: 0 0 var(--u-3); font: 600 var(--u-t-18)/1.3 var(--u-sans); color: var(--u-ink); }
.cp-legal__toc-list { margin: 0; padding: 0 0 0 var(--u-4); display: grid; gap: 2px; font-size: var(--u-t-16); color: var(--u-muted); }
.cp-legal__toc-list a { display: inline-block; padding: 8px 0; color: var(--u-green-deep); text-decoration: none; line-height: 1.35; }
.cp-legal__toc-list a:hover { text-decoration: underline; }
.cp-legal__body { max-width: 72ch; }
.cp-legal__intro { margin: 0 0 var(--u-4); font: 400 var(--u-t-18)/var(--u-line-height) var(--u-sans); color: var(--u-ink); }
.cp-legal__section { padding-block: var(--u-4); border-top: 1px solid var(--u-line); scroll-margin-top: 96px; }
.cp-legal__section:first-of-type { border-top: 0; padding-top: 0; }
.cp-legal__heading { margin: 0 0 var(--u-2); font: 600 var(--u-t-22)/1.3 var(--u-sans); color: var(--u-green-deep); }
.cp-legal__section--group .cp-legal__heading { font: 600 var(--u-t-28)/1.25 var(--u-display); }
.cp-legal__meta .u-facts dd a { color: var(--u-green-deep); }
@media (max-width: 991.98px) {
  .cp-legal__grid { grid-template-columns: minmax(0, 1fr); gap: var(--u-4); }
  .cp-legal__toc { position: static; max-height: none; }
}

/* Partner with us (30 October 2026): card and step lists, numbered steps in CRASA blue. */
.cp-partner-cards, .cp-partner-steps { list-style: none; margin: var(--u-4) 0 0; padding: 0; }
.cp-partner-cards .u-card__body { gap: var(--u-3); }
.cp-partner-step { display: flex; flex-direction: column; gap: var(--u-2); padding: var(--u-4); border-top: 3px solid var(--u-green); background: var(--u-pale); border-radius: var(--u-radius-sm); }
.cp-partner-step__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--u-crasa-blue); color: var(--u-white); font: 600 var(--u-t-18)/1 var(--u-sans); }
.cp-partner-theme { padding-top: var(--u-4); }
.cp-partner-theme .u-panel { margin: 0; }
