/* Generic page blocks rendered from the admin (Page layout).
   Kept separate from style.css so the design file can be replaced without losing these. */
section.block-cards .container,
section.block-text .container { display: flex; flex-direction: column; gap: 60px; }
section.block-text .container { gap: 30px; }
section.block-text .head-wrapper,
section.block-cards .head-wrapper { max-width: 1100px; margin: 0 auto; text-align: center; align-items: center; }
section.block-text .rich > *:first-child,
section.block-cards .rich > *:first-child { margin-top: 0; }
section.block-text .rich p + p, section.block-cards .rich p + p { margin-top: 1em; }
section.block-cards .card-grid { justify-content: center; }
section.block-cards.tone-dark .card-grid .card:not(.dark) { background: var(--white); }
section.block-cards.tone-dark .card-grid .card:not(.dark) h4,
section.block-cards.tone-dark .card-grid .card:not(.dark) h5,
section.block-cards.tone-dark .card-grid .card:not(.dark) p { color: var(--text); }
section.block-cards.tone-dark .card-grid .card h6 { color: var(--amber); }
section.block-cards .card-grid .card { text-decoration: none; }
section.block-cards .card-grid.center-cards .card { align-items: center; text-align: center; }
section.block-cards .card-grid .card.dark h6 { color: var(--sand); }
section.block-cards .card .btn-arrow { margin-top: auto; }
section.block-cards .card-grid.grid-2 .card, section.block-cards .card-grid.grid-3 .card,
section.block-cards .card-grid.grid-4 .card, section.block-cards .card-grid.grid-5 .card { flex: 1 1 240px; }
section.block-cards .card img.card-img { width: 100%; }
section.block-cards .card img.logo { width: 100%; max-width: 186px; }
section.block-cards .split-head { width: 100%; }

/* Extra page furniture */
section.page-tags .container, section.page-refs .container, section.page-picks .container { display: flex; flex-direction: column; gap: 30px; }
section.page-refs .refs { max-width: 900px; margin: 0 auto; width: 100%; font-size: 15px; }
section.page-refs .refs a { text-decoration: underline; }
section.page-tags .head-wrapper, section.page-picks .head-wrapper, section.page-refs .head-wrapper { margin: 0 auto; text-align: center; align-items: center; }
section.page-tags .pills-list { justify-content: center; }
.article-meta { color: var(--ink-soft, #a6aa9f); font-size: 15px; }
.article-body { max-width: 820px; margin: 0 auto; }
.article-body img { max-width: 100%; border-radius: 16px; }
.article-figure { margin: 0 auto 40px; max-width: 900px; }
.article-figure img { width: 100%; border-radius: 20px; }
.article-figure figcaption { font-size: 14px; margin-top: 10px; color: var(--ink-soft, #a6aa9f); }
.result-list { display: flex; flex-direction: column; gap: 20px; max-width: 900px; margin: 0 auto; width: 100%; }
.result-list .result { display: block; padding: 28px 32px; border-radius: 20px; background: var(--bg-tint); border: 1px solid var(--border-color); text-decoration: none; }
.result-list .result h4 { margin-bottom: 10px; }
.result-list .result .kind { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.result-list .result .meta { font-size: 14px; margin-top: 10px; opacity: .7; }
.pager { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pager a, .pager span { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border-color); text-decoration: none; }
.pager span.current { background: var(--primary); color: var(--white); border-color: var(--primary); }
.glossary-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; width: 100%; }
.glossary-list details { background: var(--bg-tint); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px 26px; }
.glossary-list summary { cursor: pointer; font-weight: 700; font-size: 20px; }
.glossary-list .def { margin-top: 14px; }
.inner-banner .search-again { display: flex; gap: 10px; width: 100%; max-width: 560px; }
.inner-banner .search-again .form-field { flex: 1; }

/* The design's dropdown only opens on :hover, which doesn't exist on a phone. Below the
   mobile breakpoint, show a submenu inline (always expanded) once the mobile menu is open,
   so a menu item's dropdown pages stay reachable rather than permanently hidden. */
@media (max-width: 1024px) {
  ul.navlinks .submenu { position: static; opacity: 1; visibility: visible; display: none; padding: 4px 0 4px 16px; background: transparent; box-shadow: none; }
  .navbar.active ul.navlinks .submenu { display: flex; }
}

/* The design file only styled the first (Home) breadcrumb link; subsection pages
   add a middle crumb (Home / Natural capital / Forests), so style every crumb link the same way. */
ul.breadcrumbs li a { color: var(--text); opacity: 1; text-decoration: none; }
ul.breadcrumbs li a:hover { text-decoration: underline; }

header .logo .logo-img, footer .logo .logo-img { display:block; max-width:100%; }

/* jump links to a section on the same page (e.g. /natural-capital#forests) */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }

/* =====================================================================
   Section options set in Admin > Page layout (all designs):
   spacing, text alignment, background colour / image
   ===================================================================== */
section.sp-none  { padding-top: 0 !important;    padding-bottom: 0 !important; }
section.sp-small { padding-top: 40px !important;  padding-bottom: 40px !important; }
section.sp-large { padding-top: 150px !important; padding-bottom: 150px !important; }

section.ta-left   { text-align: left; }
section.ta-center { text-align: center; }
section.ta-right  { text-align: right; }
section.ta-left   :is(.head-wrapper, .media-text) { align-items: flex-start; text-align: left;  margin-left: 0;    margin-right: auto; }
section.ta-center :is(.head-wrapper, .media-text) { align-items: center;     text-align: center; margin-left: auto; margin-right: auto; }
section.ta-right  :is(.head-wrapper, .media-text) { align-items: flex-end;   text-align: right;  margin-left: auto; margin-right: 0; }

section.has-bg { position: relative; isolation: isolate; background-size: cover; background-position: center; background-repeat: no-repeat; }
section.has-bg::before { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--ov, .45); z-index: -1; pointer-events: none; }

section.txt-light { color: #fff; }
section.txt-light :is(.head-wrapper, .col-left, .col-right, .media-text, .rich, .quote-wrap) :is(h1, h2, h3, h4, h5, h6, p, li, span, a, blockquote, em, strong):not(.button) { color: #fff; }
section.txt-dark  { color: var(--text); }
section.txt-dark  :is(.head-wrapper, .col-left, .col-right, .media-text, .rich, .quote-wrap) :is(h1, h2, h3, h4, h5, h6, p, li, span, a, blockquote, em, strong):not(.button) { color: var(--text); }

/* =====================================================================
   New section types: Image + text, Video, Gallery, FAQ, Numbers, Quote
   ===================================================================== */
section.block-video .container, section.block-gallery .container, section.block-faq .container,
section.block-stats .container, section.block-quote .container { display: flex; flex-direction: column; gap: 50px; }
section.block-media .head-wrapper, section.block-video .head-wrapper, section.block-gallery .head-wrapper,
section.block-faq .head-wrapper, section.block-stats .head-wrapper { max-width: 1100px; margin: 0 auto; text-align: center; align-items: center; display: flex; flex-direction: column; gap: 14px; }
section.block-media .rich > *:first-child, section.block-video .rich > *:first-child, section.block-quote .rich > *:first-child { margin-top: 0; }
section.dark.block-media, section.dark.block-video, section.dark.block-gallery, section.dark.block-faq, section.dark.block-stats, section.dark.block-quote { color: #fff; }
section.dark.block-media :is(h6), section.dark.block-video :is(h6), section.dark.block-gallery :is(h6), section.dark.block-faq :is(h6), section.dark.block-stats :is(h6) { color: var(--sand); }
section.dark.block-media .rich p, section.dark.block-video .rich p, section.dark.block-gallery .rich p, section.dark.block-faq .rich p, section.dark.block-stats .rich p, section.dark.block-quote .rich p { color: #fff; }

/* Image + text */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.media-row.pos-none { grid-template-columns: 1fr; }
.media-row.pos-top { grid-template-columns: 1fr; gap: 40px; }
.media-row.pos-top .media-text { max-width: 900px; margin: 0 auto; text-align: center; align-items: center; }
.media-text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.media-text .rich p + p { margin-top: 1em; }
.media-text .button { margin-top: 14px; }
.media-img img { width: 100%; height: auto; display: block; border-radius: 20px; object-fit: cover; }

/* Video */
.video-frame { width: 100%; max-width: 1000px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; display: block; }

/* Gallery */
.gallery { display: grid; gap: 20px; }
.gallery.grid-2 { grid-template-columns: repeat(2, 1fr); }
.gallery.grid-3 { grid-template-columns: repeat(3, 1fr); }
.gallery.grid-4 { grid-template-columns: repeat(4, 1fr); }
.gallery.grid-5 { grid-template-columns: repeat(5, 1fr); }
.gal-item { margin: 0; }
.gal-item a { display: block; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; background: var(--bg-tint); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.gal-item a:hover img { transform: scale(1.05); }
.gal-item figcaption { margin-top: 10px; font-size: 15px; font-family: var(--body-font); }
.lb { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .9); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.lb img { max-width: 92vw; max-height: 78vh; border-radius: 8px; }
.lb p { color: #fff; margin-top: 14px; font-size: 16px; text-align: center; }
.lb button { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 24px; cursor: pointer; line-height: 1; padding: 0; }
.lb button:hover { background: rgba(255, 255, 255, .3); }
.lb .lb-x { top: 18px; right: 18px; } .lb .lb-prev { left: 18px; top: 50%; } .lb .lb-next { right: 18px; top: 50%; }

/* FAQ */
.faq-list { max-width: 900px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 14px; }
.faq-list details { background: var(--bg-tint); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px 26px; }
.faq-list summary { cursor: pointer; font-family: var(--primary-font); font-weight: 700; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 28px; line-height: 1; flex: none; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-a { margin-top: 14px; line-height: 1.6; font-family: var(--body-font); font-size: 18px; }
section.dark .faq-list details { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }

/* Numbers */
.stats-grid { display: grid; gap: 30px; }
.stats-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
.stats-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.stats-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stats-grid.grid-5 { grid-template-columns: repeat(5, 1fr); }
.stat { text-align: center; padding: 34px 20px; border-radius: 20px; background: var(--bg-tint); border: 1px solid var(--border-color); }
.stat-num { display: block; font-family: var(--primary-font); font-size: 56px; font-weight: 700; line-height: 1.1; color: var(--secondary); }
.stat-cap { display: block; margin-top: 10px; font-size: 18px; }
section.dark .stat { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
section.dark .stat-cap { color: #fff; }

/* Quote */
.quote-wrap { max-width: 900px; margin: 0 auto; text-align: center; }
.quote-wrap blockquote { margin: 0; font-family: var(--primary-font); font-size: 30px; line-height: 1.4; font-weight: 500; }
.quote-wrap blockquote::before { content: "\201C"; display: block; font-size: 90px; line-height: .7; color: var(--secondary); margin-bottom: 10px; }
.quote-wrap blockquote p { font-size: inherit; font-family: inherit; line-height: inherit; }
.quote-wrap figcaption { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 30px; text-align: left; }
.quote-wrap figcaption strong { display: block; font-family: var(--primary-font); font-size: 18px; }
.quote-wrap figcaption em { display: block; font-style: normal; opacity: .7; font-size: 15px; margin-top: 2px; }
.quote-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

@media (max-width: 1024px) {
  .gallery.grid-4, .gallery.grid-5, .stats-grid.grid-4, .stats-grid.grid-5 { grid-template-columns: repeat(2, 1fr); }
  .gallery.grid-3, .stats-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .media-row { grid-template-columns: 1fr; gap: 30px; }
  .media-row.pos-right .media-img { order: -1; }
  section.sp-large { padding-top: 90px !important; padding-bottom: 90px !important; }
}
@media (max-width: 560px) {
  .gallery, .gallery.grid-2, .gallery.grid-3, .gallery.grid-4, .gallery.grid-5, .stats-grid, .stats-grid.grid-2, .stats-grid.grid-3, .stats-grid.grid-4, .stats-grid.grid-5 { grid-template-columns: 1fr; }
  .quote-wrap blockquote { font-size: 23px; }
  .stat-num { font-size: 44px; }
}
@media (max-width: 767px) {

.card-grid.grid-3 a.card {
    width: calc(100% / 2 - 10px) !important;
    flex: unset !important;
}
 
.card-grid.grid-3 {
    gap: 20px !important;
    flex-direction: row !important;
}
 
.card-grid .card .btn-arrow {
    justify-content: center;
}
}

/* =====================================================================
   News / opinion listing, article page, glossary page, contact form, pager
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card { display: flex; flex-direction: column; background: var(--bg-tint); border: 1px solid var(--border-color); border-radius: 20px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .08); }
.news-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-tint); }
.news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; opacity: .75; }
.news-kind { text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; font-size: 12px; color: var(--secondary); opacity: 1; }
.news-body h3 { font-size: 24px; line-height: 1.25; margin: 0; }
.news-body h3 a { text-decoration: none; color: inherit; }
.news-body h3 a:hover { text-decoration: underline; }
.news-body p { margin: 0; font-size: 16px; line-height: 1.55; }
.read-more { margin-top: auto; padding-top: 6px; font-weight: 700; text-decoration: none; color: var(--secondary); }
.read-more:hover { text-decoration: underline; }
.empty-note { text-align: center; padding: 40px 0; }
.listing-search { display: flex; gap: 12px; max-width: 640px; margin: 0 auto 40px; }
.listing-search input { flex: 1; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--border-color); font: inherit; background: #fff; }
.pager { margin-top: 50px; align-items: center; }
.pager .pg { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border-color); text-decoration: none; color: inherit; }
.pager a.pg:hover { background: var(--bg-tint); }
.pager .pg.cur { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager .pg.gap { border: 0; padding: 10px 4px; }

.article-meta { opacity: .85; }
.article-page .container { max-width: 900px; }
.article-figure { margin: 0 0 36px; }
.article-figure img { width: 100%; height: auto; display: block; border-radius: 20px; }
.article-figure figcaption { margin-top: 10px; font-size: 14px; opacity: .75; }
.article-lead { font-size: 22px; line-height: 1.5; font-weight: 500; margin: 0 0 24px; }
.article-body .rich p { margin: 0 0 1.1em; line-height: 1.7; }
.article-body .rich img { max-width: 100%; height: auto; border-radius: 12px; }
.article-refs { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-color); font-size: 15px; }
.article-refs h2 { font-size: 24px; margin-bottom: 12px; }
.article-tags { margin: 30px 0 10px; }
.back-link { display: inline-block; margin-top: 20px; }
section.related .news-grid { margin-top: 30px; }

.glossary-tools { max-width: 900px; margin: 0 auto 30px; display: flex; flex-direction: column; gap: 18px; }
.glossary-tools input { padding: 14px 18px; border-radius: 999px; border: 1px solid var(--border-color); font: inherit; background: #fff; }
.gl-letters { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-letters a { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-color); text-decoration: none; font-weight: 700; color: inherit; }
.gl-letters a:hover { background: var(--primary); color: #fff; }
.gl-letter { font-size: 32px; margin: 26px 0 0; }
.glossary-list details[hidden], .gl-letter[hidden] { display: none; }

.contact-wrap { max-width: 720px; margin: 0 auto; }
.contact-form { position: relative; display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.contact-form input, .contact-form textarea { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border-color); font: inherit; background: #fff; font-weight: 400; }
.contact-form .button { align-self: flex-start; }
.form-note { padding: 16px 20px; border-radius: 12px; margin-bottom: 22px; }
.form-note.ok { background: #e8f4ec; border: 1px solid #b7dcc4; }
.form-note.bad { background: #fdecea; border: 1px solid #f3bcb6; }
.subscribe .form-note { margin: 14px 0 0; color: #000; }

@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } .listing-search { flex-direction: column; } }

.article-topics { margin: 34px 0 6px; }
.article-topics h2 { font-size: 22px; margin-bottom: 12px; }
section.page-related .news-grid { margin-top: 30px; }

/* Glossary terms inside text: dotted underline, definition pop-up */
a.gloss-term { text-decoration: underline dotted; text-underline-offset: 3px; color: inherit; cursor: help; }
a.gloss-term:hover, a.gloss-term:focus { text-decoration-style: solid; }
.gloss-tip { position: absolute; z-index: 9998; max-width: 320px; padding: 14px 16px; background: #fff; color: #222; border: 1px solid var(--border-color, #ddd); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); font: 400 15px/1.45 var(--body-font, sans-serif); pointer-events: none; }
.gloss-tip strong { display: block; font-family: var(--primary-font, inherit); font-size: 16px; margin-bottom: 4px; }
.gloss-tip small { display: block; margin-top: 8px; opacity: .7; }

/* =====================================================================
   Client feedback: colours, smaller headings, footer layout, tag cloud
   (colours and the heading size are editable in Admin > Settings)
   ===================================================================== */
:root { --hs: 1; --title-color: #15523F; --subtitle-color: #82526E; --shade-color: #EDE0E7; --block-color: #D5C1CD; }

h2 { font-size: calc(clamp(28px, 3.4vw, 40px) * var(--hs)) !important; }
h3 { font-size: calc(clamp(24px, 2.6vw, 32px) * var(--hs)) !important; }
h4 { font-size: calc(clamp(19px, 2vw, 22px) * var(--hs)) !important; }

/* the shaded colour is used for the diagonal shape only, not across the whole page */
/* .inner-banner { background: linear-gradient(70deg, var(--bg) 50%, var(--shade-color) 50%) !important; }
.hero { background: linear-gradient(70deg, var(--bg) 50%, var(--shade-color) 50%) !important; } */
.inner-banner { background: linear-gradient(70deg, var(--bg) 50%, var(--shade-color) 50%) !important; }
.hero { background: linear-gradient(70deg, var(--bg) 50%, var(--shade-color) 50%) !important; }
body.is-home > section:first-of-type:not(.has-bg):not(.dark):not(.tone-dark):not([style*="background"]) { background: linear-gradient(70deg, var(--bg) 50%, var(--shade-color) 50%); }
.button.secondary { background: var(--block-color); border-color: var(--block-color); color: var(--text); }
.button.secondary:hover { background: transparent; color: var(--text); }
.inner-banner h1 { color: var(--title-color); }
h6 { color: var(--subtitle-color); }
section.dark h6, section.tone-dark h6, section.hero h6, section.cta h6, section.subscribe h6, .dark h6 { color: var(--sand, #E3D2B0); }
.news-card { background: var(--block-color); border-color: transparent; }

/* footer: 1 to 4 link columns, disclaimer, credit line at the far right */
@media (min-width: 861px) {
  footer[class*="cols-"] .foot-grid .col.menu { width: auto; flex: 1; }
  footer[class*="cols-"] .foot-grid .col.brand { width: auto; flex: 1.6; }
}
.copyright { flex-wrap: wrap; }
.copyright .credit { margin-left: auto; }
.copyright .credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* section summary cards: Read more */
.card .read-more { display: inline-block; margin-top: 14px; padding-top: 0; font-weight: 700; color: var(--secondary); }
.card:hover .read-more { text-decoration: underline; }
.rich.card-text p { margin: 0 0 .7em; }
.rich.card-text p:last-child { margin-bottom: 0; }

/* tag cloud section */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: center; align-items: baseline; max-width: 1000px; margin: 0 auto; }
.tag-cloud a { text-decoration: none; font-weight: 600; line-height: 1.25; }
.tag-cloud a:hover { text-decoration: underline; }
.tc-1 { font-size: 16px; } .tc-2 { font-size: 20px; } .tc-3 { font-size: 26px; } .tc-4 { font-size: 32px; } .tc-5 { font-size: 40px; }
.tc-c0 { color: var(--title-color); } .tc-c1 { color: var(--subtitle-color); } .tc-c2 { color: var(--secondary); } .tc-c3 { color: var(--green); }
section.dark .tag-cloud a, section.tone-dark .tag-cloud a { color: #fff; }

/* newsletter sign-up section */
.subscribe-box { max-width: 640px; margin: 0 auto; text-align: center; }
.subscribe-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.subscribe-form .form-field { flex: 1 1 260px; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--border-color); font: inherit; background: #fff; color: #000; }
section.block-subscribe .head-wrapper { max-width: 700px; margin: 0 auto 24px; text-align: center; align-items: center; display: flex; flex-direction: column; gap: 14px; }

/* footer text: the same size and style as the body text everywhere on the site (not smaller) */
footer, footer p, footer a, footer li, footer h5, footer input, footer button, .copyright, .copyright a, .copyright span, .footer-disclaimer {
  font-family: var(--body-font) !important; font-size: 18px !important; line-height: 1.5 !important; }
footer .foot-grid .col h5 { text-transform: none; font-weight: 700; letter-spacing: 0; }
footer .foot-grid .col.brand p { max-width: 480px; margin: 0; }
.footer-disclaimer { color: var(--white, #fff); }
.footer-subscribe { margin-top: 26px; width: 100%; }
.footer-subscribe h5 { margin: 0 0 8px; }
.footer-subscribe p { margin: 0 0 12px; }
.footer-subscribe-form { display: flex; flex-direction: column; gap: 10px; }
.footer-subscribe-form input[type=email] { padding: 12px 16px; border-radius: 999px; border: 1px solid #ffffff55; background: #ffffff1a; color: #fff; }
.footer-subscribe-form input::placeholder { color: #ffffffbb; }
.footer-subscribe-form .button { align-self: flex-start; }
footer .form-note { padding: 10px 14px; border-radius: 10px; color: #000; }

/* subsection pages: two columns of text and one column for the tag cloud (desktop); the cloud follows the text on small screens */
.sub-layout.has-aside { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: start; }
.sub-aside { position: sticky; top: 110px; }
.sub-aside h3 { margin: 0 0 16px; color: var(--subtitle-color); }
.sub-aside .tag-cloud { justify-content: flex-start; gap: 10px 18px; }
.sub-aside .tc-4, .sub-aside .tc-5 { font-size: 26px; }
section.page-cloud .head-wrapper { text-align: center; margin: 0 auto 26px; }
@media (max-width: 860px) {
  .sub-layout.has-aside { grid-template-columns: 1fr; gap: 36px; }
  .sub-aside { position: static; }
  .sub-aside .tag-cloud { justify-content: center; }
}
/* =====================================================================
   Phase 2 launch fixes: tag cloud block, tag listing, linked cards, SDG icons
   ===================================================================== */
/* tag cloud section: text across the full width, tags below */
section.block-tagcloud .container { display: flex; flex-direction: column; align-items: center; gap: 36px; }
section.block-tagcloud .head-wrapper { width: 100%; max-width: 900px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
section.block-tagcloud .tag-cloud { width: 100%; }

/* tag listing page: plain text, no coloured background */
.tag-results { list-style: none; margin: 0 auto; padding: 0; max-width: 960px; }
.tag-results li { padding: 14px 0; border-bottom: 1px solid var(--border-color); background: none; font-size: 18px; line-height: 1.55; }
.tag-results .sep { opacity: .55; white-space: pre; }
.tag-results a { font-weight: 700; }

/* cards that link to another page change colour when the mouse is over them */
a.card, .card-grid a.card { transition: background-color .2s ease, border-color .2s ease; }
a.card:hover, a.card:focus-visible, .card-grid a.card:hover, .card-grid a.card:focus-visible { background: var(--block-color) !important; border-color: var(--block-color) !important; }
a.card:hover, a.card:hover h2, a.card:hover h3, a.card:hover h4, a.card:hover h5, a.card:hover p, a.card:hover span, a.card:hover li { color: var(--text) !important; }

/* smaller cards on a phone */
@media (max-width: 640px) {
  .card-grid { gap: 12px !important; }
  .card-grid .card { padding: 16px 18px !important; gap: 8px !important; min-height: 0 !important; width: 100% !important; max-width: 100% !important; border-radius: 14px !important; }
  .card-grid .card .content { gap: 6px !important; }
  .card-grid .card h3, .card-grid .card h4, .card-grid .card h5 { font-size: 18px !important; line-height: 1.25 !important; margin: 0 !important; }
  .card-grid .card p { font-size: 16px !important; line-height: 1.45 !important; margin: 0 !important; }
  .card-grid .card img { max-height: 56px; width: auto; }
}

/* SDG icons (use the official icons unaltered) */
.sdg-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 1100px; margin: 0 auto; }
.sdg-item { margin: 0; width: 150px; }
.sdg-item a { display: block; }
.sdg-item img { display: block; width: 100%; height: auto; }   /* never stretched, cropped or recoloured */
.sdg-item a:hover img, .sdg-item a:focus-visible img { opacity: .85; }
.sdg-fallback { display: flex; flex-direction: column; gap: 6px; justify-content: center; align-items: center; text-align: center; aspect-ratio: 1; padding: 12px; border: 2px dashed var(--border-color); border-radius: 6px; font-size: 14px; line-height: 1.3; }
@media (max-width: 640px) { .sdg-item { width: calc(50% - 9px); max-width: 150px; } }
.footer-subscribe-form input[type=email] {
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid #ffffff55;
    background: #ffffff1a;
    color: #fff;
    width: 100% !important;
}
 
.footer-subscribe-form {
    align-items: flex-start !important;
}
 
 
footer .footer-subscribe-form button {
    border: 1px solid var(--primary) !important;
    background-color: #fff;
    color: var(--primary) !important;
}