/*
Theme Name: The Plastic Projects
Theme URI: https://theplasticprojects.org/
Description: A solutions-first theme for plastic pollution: a searchable database of organizations, technologies, laws and research, featured partner pages, a Rotary projects page and an automatic daily update of plastic solution headlines. Pages, menus and starter content are created on activation.
Version: 3.6.0
Requires at least: 6.2
Requires PHP: 7.4
Author: Sea 2 Sky Solutions
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: plastics-projects
*/

/* ---------- Tokens ---------- */
:root {
	--paper: #F2F5F3;
	--paper-2: #E3EBE7;
	--card: #FFFFFF;
	--ink: #0F2A2E;
	--ink-2: #455C60;
	--line: #C7D4D0;
	--accent: #0B6F79;
	--on-ink: #F2F5F3;

	/* Colours of sorted plastic flake. Each database type has one. */
	--flake-pet: #2F9BAA;   /* organizations */
	--flake-hdpe: #E3A91B;  /* technologies */
	--flake-pp: #B8336A;    /* laws and bills */
	--flake-ldpe: #4F74C9;  /* research */
	--flake-clear: #BFD9D6;

	--ok: #1F7A4D;

	--display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--body: "Literata", Georgia, "Times New Roman", serif;

	--wrap: 1200px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--measure: 68ch;
	--radius: 3px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #0D1F22;
		--paper-2: #14292D;
		--card: #112528;
		--ink: #E4EEEB;
		--ink-2: #A6BAB6;
		--line: #2B4549;
		--accent: #6CCBD5;
		--on-ink: #0D1F22;
		--flake-pet: #45B4C2;
		--flake-hdpe: #F0BC3C;
		--flake-pp: #D5588B;
		--flake-ldpe: #7896DD;
		--flake-clear: #3E5F5C;
		--ok: #4DB37F;
	}
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.125rem;
	line-height: 1.65;
	font-optical-sizing: auto;
}
img, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--flake-hdpe); outline-offset: 2px; }

h1, h2, h3, h4 {
	font-family: var(--display);
	line-height: 1.12;
	margin: 0 0 0.5em;
	color: var(--ink);
}
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); font-weight: 760; font-stretch: 112%; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; font-stretch: 100%; }
p, ul, ol, dl { margin: 0 0 1.1em; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.tpp-skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--on-ink); padding: 0.6rem 1rem; z-index: 100; }
.tpp-skip:focus { left: 1rem; top: 1rem; }

.tpp-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.tpp-btn {
	display: inline-block;
	font-family: var(--display);
	font-size: 0.95rem;
	font-weight: 650;
	line-height: 1.2;
	padding: 0.65rem 1.05rem;
	border: 2px solid var(--ink);
	border-radius: var(--radius);
	color: var(--ink);
	background: transparent;
	text-decoration: none;
	cursor: pointer;
	margin: 0 0.4rem 0.4rem 0;
}
.tpp-btn:hover { background: var(--ink); color: var(--paper); }
.tpp-btn--solid { background: var(--ink); color: var(--paper); }
.tpp-btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.tpp-btn--light { border-color: var(--on-ink); color: var(--on-ink); }
.tpp-btn--light:hover { background: var(--on-ink); color: var(--ink); }
.tpp-link-out { font-family: var(--display); font-size: 0.95rem; font-weight: 600; }

/* ---------- Header ---------- */
.tpp-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 20; }
.tpp-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.tpp-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.tpp-brand__mark, .tpp-brand__logo { width: 2rem; height: 2rem; flex: none; }
.tpp-brand__name { font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: 1.15rem; letter-spacing: -0.01em; white-space: nowrap; }

.tpp-nav { display: flex; align-items: center; gap: 1rem; }
.tpp-nav__list, .tpp-nav .menu { display: flex; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.tpp-nav li { position: relative; margin: 0; }
.tpp-nav a {
	display: block; padding: 0.5rem 0.6rem;
	font-family: var(--display); font-size: 0.95rem; font-weight: 600;
	color: var(--ink); text-decoration: none; border-radius: var(--radius);
	white-space: nowrap;
}
.tpp-nav a:hover, .tpp-nav .current-menu-item > a, .tpp-nav .current-menu-ancestor > a, .tpp-nav .current_page_item > a { background: var(--paper-2); }
.tpp-nav .sub-menu, .tpp-nav .children {
	position: absolute; left: 0; top: 100%; min-width: 15rem;
	list-style: none; margin: 0; padding: 0.4rem;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: 0 10px 30px rgba(15, 42, 46, 0.12);
	display: none;
}
.tpp-nav li:hover > .sub-menu, .tpp-nav li:focus-within > .sub-menu,
.tpp-nav li:hover > .children, .tpp-nav li:focus-within > .children { display: block; }
.tpp-nav__search input {
	font: inherit; font-family: var(--display); font-size: 0.9rem;
	width: 8.5rem; padding: 0.45rem 0.7rem;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--card); color: var(--ink);
}
.tpp-menu-toggle { display: none; }

@media (max-width: 1100px) {
	.tpp-menu-toggle {
		display: block; font-family: var(--display); font-weight: 650; font-size: 0.95rem;
		padding: 0.5rem 0.9rem; border: 2px solid var(--ink); border-radius: var(--radius);
		background: transparent; color: var(--ink); cursor: pointer;
	}
	.tpp-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0.5rem;
		background: var(--paper); border-bottom: 1px solid var(--line);
		padding: 0.75rem var(--gutter) 1.25rem;
	}
	.tpp-nav.is-open { display: flex; }
	.tpp-nav__list, .tpp-nav .menu { flex-direction: column; }
	.tpp-nav .sub-menu, .tpp-nav .children { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 1rem; background: transparent; min-width: 0; }
	.tpp-nav a { white-space: normal; }
	.tpp-nav__search input { width: 100%; }
}

/* ---------- Flakes ---------- */
.tpp-flakes { display: block; width: 100%; height: 150px; }
.tpp-footer .tpp-flakes { height: 64px; }

/* ---------- Hero ---------- */
.tpp-hero { padding-top: clamp(3rem, 7vw, 6rem); }
.tpp-hero__title {
	font-size: clamp(2.6rem, 6.4vw, 5.4rem);
	font-weight: 800;
	font-stretch: 125%;
	letter-spacing: -0.025em;
	line-height: 0.98;
	max-width: 15ch;
	margin-bottom: 0.4em;
}
.tpp-hero__lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); max-width: 52ch; color: var(--ink-2); margin-bottom: 2rem; }
.tpp-hero__search { max-width: 44rem; margin-bottom: 1.5rem; }
.tpp-hero__search label { display: block; font-family: var(--display); font-weight: 650; font-size: 0.95rem; margin-bottom: 0.4rem; }
.tpp-hero__search-row { display: flex; gap: 0.5rem; }
.tpp-hero__search input {
	flex: 1; min-width: 0;
	font: inherit; font-size: 1.1rem;
	padding: 0.8rem 1rem;
	border: 2px solid var(--ink); border-radius: var(--radius);
	background: var(--card); color: var(--ink);
}
.tpp-hero__search .tpp-btn { margin: 0; padding-inline: 1.4rem; font-size: 1rem; }

.tpp-key { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; list-style: none; padding: 0; margin: 0 0 2.5rem; }
.tpp-key__item a { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-size: 0.98rem; color: var(--ink); text-decoration: none; }
.tpp-key__item a:hover { text-decoration: underline; }
.tpp-key__item strong { font-weight: 800; font-stretch: 115%; }
.tpp-key__item a::before {
	content: ""; width: 0.85rem; height: 0.85rem; flex: none;
	clip-path: polygon(10% 18%, 78% 0, 100% 62%, 40% 100%, 0 70%);
	background: var(--k);
}
.tpp-key__item--org { --k: var(--flake-pet); }
.tpp-key__item--tech { --k: var(--flake-hdpe); }
.tpp-key__item--policy { --k: var(--flake-pp); }
.tpp-key__item--research { --k: var(--flake-ldpe); }

/* ---------- Sections ---------- */
.tpp-section { padding-block: clamp(3rem, 6vw, 5rem); }
.tpp-section + .tpp-section { border-top: 1px solid var(--line); }
.tpp-section__head { max-width: var(--measure); margin-bottom: 2rem; }
.tpp-section__head h2 { margin-bottom: 0.25em; }
.tpp-section__head p { color: var(--ink-2); margin: 0; }

/* ---------- Featured partners ---------- */
.tpp-partners {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 0 clamp(1.5rem, 4vw, 3.5rem);
}
.tpp-partner { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.tpp-partner--lead {
	grid-row: span var(--rows, 3);
	background: var(--ink);
	color: var(--on-ink);
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border: 0;
	border-radius: var(--radius);
	align-self: start;
}
.tpp-partner--lead .tpp-partner__title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-stretch: 118%; }
.tpp-partner--lead .tpp-partner__title a, .tpp-partner--lead a { color: var(--on-ink); }
.tpp-partner--lead .tpp-partner__people, .tpp-partner--lead .tpp-partner__summary { color: var(--on-ink); opacity: 0.88; }
.tpp-partner--lead .tpp-partner__summary { font-size: 1.15rem; }
.tpp-partner--lead .tpp-btn { border-color: var(--on-ink); color: var(--on-ink); }
.tpp-partner--lead .tpp-btn:hover { background: var(--on-ink); color: var(--ink); }
.tpp-partner--lead .tpp-partner__badge { color: var(--flake-hdpe); }
.tpp-partner__badge { font-family: var(--display); font-weight: 650; font-size: 0.9rem; color: var(--accent); margin: 0 0 0.4rem; }
.tpp-partner__title { font-size: 1.45rem; font-stretch: 108%; margin-bottom: 0.2em; }
.tpp-partner__title a { color: var(--ink); text-decoration: none; }
.tpp-partner__title a:hover { text-decoration: underline; }
.tpp-partner__people { font-family: var(--display); font-size: 0.95rem; color: var(--ink-2); margin-bottom: 0.6rem; }
.tpp-partner__summary { margin-bottom: 1rem; }
.tpp-partner__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; margin: 0; }
.tpp-partner__links .tpp-btn { margin: 0; }
.tpp-partners > .tpp-partner:not(.tpp-partner--lead) .tpp-btn { border-width: 0; padding: 0; font-weight: 650; color: var(--accent); text-decoration: underline; }
.tpp-partners > .tpp-partner:not(.tpp-partner--lead) .tpp-btn:hover { background: none; }

/* ---------- Split: feed and policy ---------- */
.tpp-split__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); }
.tpp-feed { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.tpp-feed__item { padding: 0.85rem 0; border-top: 1px solid var(--line); }
.tpp-feed__item a { font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.35; color: var(--ink); text-decoration: none; display: block; }
.tpp-feed__item a:hover { text-decoration: underline; }
.tpp-feed__meta { display: block; font-family: var(--display); font-size: 0.85rem; color: var(--ink-2); margin-top: 0.2rem; }

.tpp-policy-mini { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.tpp-policy-mini li { padding: 0.85rem 0 0.85rem 1rem; border-left: 4px solid var(--flake-pp); margin-bottom: 0.6rem; background: var(--card); }
.tpp-policy-mini a { display: block; font-family: var(--display); font-weight: 650; color: var(--ink); text-decoration: none; line-height: 1.3; margin: 0.3rem 0.8rem 0.2rem 0; }
.tpp-policy-mini a:hover { text-decoration: underline; }
.tpp-policy-mini small { display: block; font-family: var(--display); color: var(--ink-2); font-size: 0.85rem; padding-right: 0.8rem; }

.tpp-status {
	display: inline-block; font-family: var(--display); font-size: 0.78rem; font-weight: 700;
	padding: 0.15rem 0.5rem; border-radius: 99px; border: 1.5px solid currentColor; color: var(--ink-2);
}
.tpp-status--enacted { color: var(--ok); }
.tpp-status--in-implementation { color: var(--accent); }
.tpp-status--pending { color: #9A6B00; }
.tpp-status--negotiating { color: var(--flake-ldpe); }
.tpp-status--not-enacted { color: var(--ink-2); }
@media (prefers-color-scheme: dark) { .tpp-status--pending { color: var(--flake-hdpe); } }

/* ---------- Approaches ---------- */
.tpp-approach-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem); }
.tpp-approach-list li { border-top: 1px solid var(--line); padding: 1.1rem 0 0.4rem; }
.tpp-approach-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; text-decoration: none; color: var(--ink); }
.tpp-approach-list a:hover .tpp-approach-list__name { text-decoration: underline; }
.tpp-approach-list__name { font-family: var(--display); font-weight: 750; font-stretch: 110%; font-size: 1.25rem; }
.tpp-approach-list__count { font-family: var(--display); font-size: 0.85rem; color: var(--ink-2); white-space: nowrap; }
.tpp-approach-list p { color: var(--ink-2); font-size: 1rem; margin: 0.3rem 0 0.6rem; }

/* ---------- Entry lists ---------- */
.tpp-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.tpp-list--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); }
.tpp-row {
	--k: var(--flake-pet);
	position: relative;
	padding: 1.15rem 0 1rem 1.2rem;
	border-top: 1px solid var(--line);
}
.tpp-row::before { content: ""; position: absolute; left: 0; top: 1.3rem; bottom: 1.1rem; width: 4px; background: var(--k); border-radius: 2px; }
.tpp-row--tech { --k: var(--flake-hdpe); }
.tpp-row--policy { --k: var(--flake-pp); }
.tpp-row--research { --k: var(--flake-ldpe); }
.tpp-row[hidden] { display: none; }
.tpp-row__title { font-size: 1.2rem; margin: 0.1rem 0 0.25rem; }
.tpp-row__title a { color: var(--ink); text-decoration: none; }
.tpp-row__title a:hover { text-decoration: underline; }
.tpp-row__detail { font-family: var(--display); font-size: 0.88rem; color: var(--ink-2); margin: 0 0 0.35rem; }
.tpp-row__summary { font-size: 1rem; margin: 0 0 0.5rem; max-width: 75ch; }
.tpp-row__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.tpp-kind { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--display); font-size: 0.82rem; font-weight: 650; color: var(--ink-2); text-decoration: none; }
.tpp-kind__flake { width: 0.7rem; height: 0.7rem; background: var(--k, var(--flake-pet)); clip-path: polygon(10% 18%, 78% 0, 100% 62%, 40% 100%, 0 70%); }
.tpp-kind--tech { --k: var(--flake-hdpe); }
.tpp-kind--policy { --k: var(--flake-pp); }
.tpp-kind--research { --k: var(--flake-ldpe); }

.tpp-tag {
	font-family: var(--display); font-size: 0.8rem; font-weight: 550;
	padding: 0.15rem 0.55rem; border-radius: 99px;
	background: var(--paper-2); color: var(--ink); text-decoration: none;
}
.tpp-tag:hover { background: var(--ink); color: var(--paper); }

/* ---------- Database filters ---------- */
.tpp-db { margin-block: 2rem; }
.tpp-db__filters {
	display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 1.25rem;
	padding: 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	position: sticky; top: 0; z-index: 5;
}
.tpp-field label, .tpp-field legend { display: block; font-family: var(--display); font-weight: 650; font-size: 0.88rem; margin-bottom: 0.3rem; }
.tpp-field input[type="search"], .tpp-field select {
	width: 100%; font: inherit; font-size: 1rem; padding: 0.6rem 0.75rem;
	border: 1.5px solid var(--ink-2); border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
.tpp-field--kinds { order: 5; grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; }
.tpp-field--kinds legend { float: left; margin: 0 0.5rem 0 0; }
.tpp-field--kinds label { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 550; margin: 0; }
.tpp-field--search { grid-column: auto; }
.tpp-db__count { font-family: var(--display); font-size: 0.9rem; color: var(--ink-2); margin: 1rem 0 0.5rem; }
.tpp-db__empty { padding: 1rem; background: var(--paper-2); border-radius: var(--radius); }

/* ---------- Page and entry ---------- */
.tpp-page__head { padding-block: clamp(2.5rem, 5vw, 4rem) 0.5rem; }
.tpp-page__title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 800; font-stretch: 120%; letter-spacing: -0.02em; line-height: 1.02; max-width: 22ch; }
.tpp-crumb { font-family: var(--display); font-size: 0.92rem; font-weight: 600; margin-bottom: 0.8rem; }
.tpp-crumb a { color: var(--ink-2); }
.tpp-lead { font-size: clamp(1.15rem, 1.7vw, 1.32rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.tpp-note { font-family: var(--display); font-size: 0.95rem; color: var(--ink-2); }

.tpp-prose { padding-bottom: 3rem; }
.tpp-prose > p, .tpp-prose > ul, .tpp-prose > ol, .tpp-prose > h2, .tpp-prose > h3, .tpp-prose > h4, .tpp-prose > blockquote { max-width: var(--measure); }
.tpp-prose > h2 { margin-top: 2.2em; }
.tpp-prose > h3 { margin-top: 1.6em; }
.tpp-prose li { margin-bottom: 0.45em; }
.tpp-prose > ol > li::marker { font-family: var(--display); font-weight: 700; }

.tpp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0; margin: 1rem 0 2rem; border-top: 2px solid var(--ink); }
.tpp-facts > div { padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--line); }
.tpp-facts dt { font-family: var(--display); font-size: 0.82rem; font-weight: 650; color: var(--ink-2); }
.tpp-facts dd { margin: 0.1rem 0 0; font-size: 1rem; }
.tpp-facts--stack { grid-template-columns: 1fr; margin-top: 0; }

.tpp-entry__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.tpp-entry__side { position: sticky; top: 1.5rem; padding-bottom: 2rem; }
.tpp-entry__terms { margin-bottom: 1rem; }
.tpp-entry__terms p { font-family: var(--display); font-size: 0.82rem; font-weight: 650; color: var(--ink-2); margin: 0 0 0.35rem; }
.tpp-entry__terms .tpp-tag { display: inline-block; margin: 0 0.3rem 0.35rem 0; }
.tpp-related { padding-block: 2rem 3rem; border-top: 1px solid var(--line); }

.tpp-callout { background: var(--paper-2); padding: 1.5rem 1.75rem; border-left: 4px solid var(--flake-pp); margin: 1.5rem 0 2rem; max-width: calc(var(--measure) + 4rem); border-radius: 0 var(--radius) var(--radius) 0; }
.tpp-callout h2 { font-size: 1.35rem; margin-top: 0; }
.tpp-callout p:last-child { margin-bottom: 0; }

.tpp-video { margin: 1.5rem 0 1rem; max-width: 52rem; }
.tpp-video__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.tpp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tpp-video figcaption { font-family: var(--display); font-size: 0.88rem; color: var(--ink-2); margin-top: 0.4rem; }

.tpp-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem 2rem; margin: 1.5rem 0; max-width: 60rem; }
.tpp-person { border-top: 3px solid var(--flake-pet); padding-top: 0.9rem; }
.tpp-person h3 { font-size: 1.3rem; margin-bottom: 0.1em; }
.tpp-person__role { font-family: var(--display); font-size: 0.92rem; font-weight: 600; color: var(--accent); margin-bottom: 0.5rem; }
.tpp-person p:last-child { font-size: 1rem; }

.tpp-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); margin: 1rem 0 2rem; }
.tpp-project { border-top: 1px solid var(--line); padding: 1.1rem 0 0.6rem; }
.tpp-project h3 { font-size: 1.2rem; }
.tpp-project h3 a { color: var(--ink); }
.tpp-project__meta { font-family: var(--display); font-size: 0.82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 0.35rem; }
.tpp-project p:last-child { font-size: 1rem; }

.tpp-siblings { padding-bottom: 3rem; }
.tpp-siblings__head { font-family: var(--display); font-weight: 700; margin-bottom: 0.5rem; }
.tpp-siblings ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tpp-siblings a { font-family: var(--display); font-weight: 600; font-size: 0.95rem; padding: 0.45rem 0.8rem; border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; display: inline-block; }
.tpp-siblings a:hover { border-color: var(--ink); }

/* ---------- Portraits ---------- */
.tpp-portrait { margin: 0.8rem 0 1.25rem; max-width: 15rem; }
.tpp-portrait img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 10px 24px rgba(10, 36, 48, 0.18); }
.tpp-portrait figcaption { font-family: var(--display); font-size: 0.8rem; color: var(--ink-2); margin-top: 0.4rem; }
.tpp-prose > .tpp-jana-photo { float: right; margin: 0 0 1rem 1.5rem; max-width: 13rem; }
@media (max-width: 700px) { .tpp-prose > .tpp-jana-photo { float: none; margin: 0.5rem 0 1rem; } .tpp-spotlight .tpp-portrait { max-width: 11rem; } }

/* ---------- Page photos ---------- */
.tpp-page-photo { margin: 1rem 0 1.5rem; max-width: 46rem; }
.tpp-page-photo img { width: 100%; height: auto; display: block; border-radius: 6px; }
.tpp-page-photo figcaption { font-family: var(--display); font-size: 0.82rem; color: var(--ink-2); margin-top: 0.4rem; }
.tpp-page-photo--spot { max-width: 34rem; margin-top: 1.25rem; }

/* ---------- Grant lists ---------- */
.tpp-grant-list { list-style: none; padding: 0; max-width: var(--measure); }
.tpp-grant-list li { padding: 0.75rem 0; border-top: 1px solid var(--line); font-size: 1rem; }
.tpp-grant-list strong a { font-family: var(--display); color: var(--ink); }

/* ---------- Tables ---------- */
.tpp-table-wrap { overflow-x: auto; margin: 1rem 0 2rem; border-top: 2px solid var(--ink); }
.tpp-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 44rem; }
.tpp-table th, .tpp-table td { text-align: left; vertical-align: top; padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--line); }
.tpp-table thead th { font-family: var(--display); font-size: 0.82rem; font-weight: 650; color: var(--ink-2); }
.tpp-table tbody th { font-weight: 400; width: 46%; }
.tpp-table tbody th a { font-family: var(--display); font-weight: 650; color: var(--ink); display: block; line-height: 1.3; margin-bottom: 0.2rem; }
.tpp-table tbody th span { display: block; font-size: 0.92rem; color: var(--ink-2); }
.tpp-table td small { display: block; font-family: var(--display); font-size: 0.82rem; color: var(--ink-2); margin-top: 0.3rem; }

/* ---------- Daily archive ---------- */
.tpp-daily-list { list-style: none; padding: 0; margin: 0 0 3rem; }
.tpp-daily-list li { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.tpp-daily-list a { font-family: var(--display); font-weight: 650; font-size: 1.1rem; color: var(--ink); }
.tpp-daily-list small { display: block; font-family: var(--display); color: var(--ink-2); }

/* ---------- Rotary band ---------- */
.tpp-rotary { background: var(--ink); color: var(--on-ink); }
.tpp-rotary h2 { color: var(--on-ink); }
.tpp-rotary p { max-width: 56ch; }
.tpp-rotary__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.tpp-rotary__list { list-style: none; padding: 0; margin: 0; }
.tpp-rotary__list li { padding: 0.9rem 0; border-top: 1px solid rgba(242, 245, 243, 0.25); }
.tpp-rotary__list a { font-family: var(--display); font-weight: 650; color: var(--on-ink); display: block; }
.tpp-rotary__list small { display: block; font-family: var(--display); font-size: 0.85rem; opacity: 0.8; }
@media (prefers-color-scheme: dark) { .tpp-rotary__list li { border-top-color: rgba(13, 31, 34, 0.25); } }

/* ---------- Footer ---------- */
.tpp-footer { margin-top: 2rem; border-top: 1px solid var(--line); }
.tpp-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 2.5rem 1.5rem; }
.tpp-footer__name { font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: 1.2rem; margin-bottom: 0.4rem; }
.tpp-footer__about p { font-size: 1rem; max-width: 40ch; }
.tpp-footer__head { font-family: var(--display); font-weight: 700; font-size: 0.95rem; margin-bottom: 0.5rem; }
.tpp-footer ul { list-style: none; padding: 0; margin: 0; }
.tpp-footer li { margin-bottom: 0.35rem; }
.tpp-footer__col a { font-family: var(--display); font-size: 0.93rem; color: var(--ink); }
.tpp-footer__base { border-top: 1px solid var(--line); padding-block: 1.2rem 2rem; }
.tpp-footer__base p { font-family: var(--display); font-size: 0.85rem; color: var(--ink-2); margin: 0; }

/* ---------- Pagination ---------- */
.pagination .nav-links { display: flex; gap: 0.4rem; font-family: var(--display); margin: 1rem 0 3rem; }
.pagination .page-numbers { padding: 0.4rem 0.75rem; border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Block editor alignment basics ---------- */
.alignwide { max-width: 1100px; }
.alignfull { max-width: none; }
.wp-block-image img { border-radius: var(--radius); }


/* ---------- Eco warrior spotlight ---------- */
.tpp-spotlight { background: var(--paper-2); }
.tpp-spotlight__grid { display: grid; grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.tpp-spotlight__label {
	font-family: var(--display); font-weight: 800; font-stretch: 125%;
	font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; color: var(--flake-pet); margin: 0.2rem 0 0;
}
.tpp-spotlight h2 { font-size: clamp(2rem, 4vw, 3rem); font-stretch: 118%; margin-bottom: 0.15em; }
.tpp-spotlight__role { font-family: var(--display); font-weight: 650; color: var(--accent); }
.tpp-spotlight p { max-width: 62ch; }
.tpp-spotlight .tpp-btn { margin-right: 1rem; }
/* Partners together at EarthX */
.tpp-together { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding-bottom: clamp(2rem, 4vw, 3rem); }
.tpp-together__photo { margin: 0; }
.tpp-together__photo img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); }
.tpp-together h2 { color: var(--foam, #EAF3F2); font-size: clamp(1.7rem, 3vw, 2.4rem); font-stretch: 115%; }
.tpp-together p { color: var(--foam-2, #A9C6C8); max-width: 56ch; }
@media (max-width: 900px) { .tpp-together { grid-template-columns: 1fr; } }

/* Two spotlights in a row share one band. */
.tpp-spotlight + .tpp-spotlight--project { border-top: 1px solid var(--line); }
.tpp-spotlight--project .tpp-spotlight__label { color: var(--flake-hdpe); }
@media (max-width: 700px) { .tpp-spotlight__grid { grid-template-columns: 1fr; gap: 0.5rem; } }


/* ---------- Viewpoint and Loopway ---------- */
.tpp-callout__label { font-family: var(--display); font-weight: 700; font-size: 0.85rem; color: var(--flake-pp); margin: 0 0 0.3rem; }
.tpp-callout--viewpoint { border-left-color: var(--flake-ldpe); }
.tpp-callout--viewpoint .tpp-callout__label { color: var(--flake-ldpe); }
.tpp-callout--advisor { border-left-color: var(--flake-pet); }
.tpp-callout--advisor .tpp-callout__label { color: var(--accent); }
.tpp-callout--news { border-left-color: var(--flake-hdpe); max-width: calc(var(--measure) + 4rem); }
.tpp-callout--news h3 { font-size: 1.3rem; margin: 0.2rem 0 0.5rem; }
.tpp-callout--news .tpp-callout__label { color: #9A6B00; }
.tpp-newsnote { display: block; max-width: 58ch; margin-top: 1.25rem; padding: 0.9rem 1.1rem; border-left: 4px solid var(--flake-hdpe); background: var(--card); text-decoration: none; border-radius: 0 var(--radius) var(--radius) 0; }
.tpp-newsnote:hover .tpp-newsnote__title { text-decoration: underline; }
.tpp-newsnote__label { display: block; font-family: var(--display); font-size: 0.8rem; font-weight: 700; color: #9A6B00; }
.tpp-newsnote__title { display: block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.3; color: var(--ink); margin-top: 0.2rem; }
@media (prefers-color-scheme: dark) { .tpp-callout--news .tpp-callout__label, .tpp-newsnote__label { color: var(--flake-hdpe); } }
.tpp-callout--loopway { border-left-color: var(--ok); font-family: var(--display); font-size: 1rem; }
.tpp-viewpoint { border-top: 3px solid var(--flake-ldpe); padding-top: 0.8rem; margin: 0 0 1.4rem; }
.tpp-viewpoint .tpp-callout__label { color: var(--flake-ldpe); }
.tpp-viewpoint__title { font-family: var(--display); font-weight: 750; font-size: 1.2rem; line-height: 1.25; margin: 0 0 0.3rem; }
.tpp-viewpoint__title a { color: var(--ink); }
.tpp-viewpoint p:last-child { font-size: 1rem; color: var(--ink-2); }



/* ---------- Loopway partner banner ---------- */
.tpp-loopway-banner {
	--loop-bg: #0E3B32;
	--loop-ink: #EAF4EF;
	--loop-light: #BFE3CF;
	--loop-accent: #7BD3A0;
	background: var(--loop-bg);
	color: var(--loop-ink);
	padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.tpp-loopway-banner__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(14rem, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.tpp-loopway-banner__label { font-family: var(--display); font-weight: 700; font-size: 0.9rem; color: var(--loop-accent); margin: 0 0 0.5rem; }
.tpp-loopway-banner h2 {
	color: var(--loop-ink);
	font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; font-stretch: 125%;
	letter-spacing: -0.025em; line-height: 0.95; margin-bottom: 0.35em;
}
.tpp-loopway-banner h2 span {
	display: block; margin-top: 0.35em;
	font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 650; font-stretch: 100%;
	letter-spacing: 0; line-height: 1.25; color: var(--loop-accent);
}
.tpp-loopway-banner__lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 56ch; opacity: 0.92; }
.tpp-loopway-banner__stats { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1.25rem; border-top: 1px solid rgba(234, 244, 239, 0.25); }
.tpp-loopway-banner__stats li { font-family: var(--display); font-size: 0.88rem; line-height: 1.3; padding-top: 0.8rem; }
.tpp-loopway-banner__stats strong { display: block; font-size: 1.9rem; font-weight: 800; font-stretch: 120%; color: var(--loop-ink); line-height: 1.05; }
.tpp-loopway-banner__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-bottom: 1rem; }
.tpp-loopway-banner__links .tpp-btn { margin: 0; }
.tpp-btn--loop { background: var(--loop-accent); border-color: var(--loop-accent); color: #0E3B32; }
.tpp-btn--loop:hover { background: var(--loop-ink); border-color: var(--loop-ink); color: #0E3B32; }
.tpp-loopway-banner .tpp-btn--light { border-color: var(--loop-ink); color: var(--loop-ink); }
.tpp-loopway-banner .tpp-btn--light:hover { background: var(--loop-ink); color: #0E3B32; }
.tpp-loopway-banner__out { font-family: var(--display); font-weight: 650; color: var(--loop-ink); }
.tpp-loopway-banner__more { font-size: 0.98rem; opacity: 0.85; max-width: 60ch; margin: 0; }
.tpp-loopway-banner__more a, .tpp-loopway-banner__out { color: var(--loop-ink); }
.tpp-loop { width: 100%; max-width: 340px; height: auto; display: block; margin-inline: auto; }
.tpp-loop__big { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: 64px; fill: var(--loop-ink); }
.tpp-loop__small { font-family: var(--display); font-weight: 600; font-size: 15px; fill: var(--loop-accent); }
@media (max-width: 900px) {
	.tpp-loopway-banner__grid { grid-template-columns: 1fr; }
	.tpp-loopway-banner__art { order: -1; max-width: 220px; margin-inline: auto; width: 100%; }
	.tpp-loopway-banner__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.25rem; }
}


/* ---------- Global hero: world map and featured partners ---------- */
.tpp-globe {
	--sea: #0A2430;
	--sea-2: #0F3342;
	--foam: #EAF3F2;
	--foam-2: #A9C6C8;
	--glow: #F0BC3C;
	background: radial-gradient(120% 90% at 75% 10%, var(--sea-2) 0%, var(--sea) 60%);
	color: var(--foam);
	padding-top: clamp(2.5rem, 5vw, 4.5rem);
}
.tpp-globe__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.tpp-globe__label { font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--glow); margin: 0 0 0.6rem; }
.tpp-globe__title { color: var(--foam); font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 800; font-stretch: 125%; letter-spacing: -0.025em; line-height: 0.98; margin-bottom: 0.45em; }
.tpp-globe__lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--foam-2); max-width: 50ch; margin-bottom: 1.6rem; }
.tpp-globe .tpp-hero__search label { color: var(--foam); }
.tpp-globe .tpp-hero__search input { border-color: var(--foam); background: #FFFFFF; color: #0F2A2E; }
.tpp-btn--glow { background: var(--glow, #F0BC3C); border-color: var(--glow, #F0BC3C); color: #0A2430; }
.tpp-btn--glow:hover { background: #FFFFFF; border-color: #FFFFFF; color: #0A2430; }
.tpp-globe .tpp-btn--light { border-color: var(--foam); color: var(--foam); }
.tpp-globe .tpp-btn--light:hover { background: var(--foam); color: #0A2430; }
.tpp-key--dark .tpp-key__item a { color: var(--foam); }
.tpp-key--dark { margin-bottom: 0.5rem; }

.tpp-globe__map { margin: 0; }
.tpp-worldmap { display: block; width: 100%; height: auto; }
.tpp-worldmap__grid path { stroke: rgba(234, 243, 242, 0.08); stroke-width: 1; fill: none; }
.tpp-worldmap__land { stroke: rgba(169, 198, 200, 0.42); stroke-width: 3.1; stroke-linecap: round; fill: none; }
.tpp-pin--oeoo { --pin: #F0BC3C; }
.tpp-pin--rr { --pin: #45C4D3; }
.tpp-pin--eps { --pin: #E0679A; }
.tpp-pin--gyres { --pin: #8FA8F0; }
.tpp-gyre__ring { fill: none; stroke: var(--pin); stroke-width: 1.4; stroke-dasharray: 5 4; opacity: 0.75; }
.tpp-gyre__ring--inner { stroke-dasharray: 3 3; opacity: 0.55; }
.tpp-pin--other { --pin: #7FD08A; }
.tpp-pin--rotary { --pin: #17458F; }
.tpp-pin--rotary .tpp-pin__dot { stroke: #F7A81B; stroke-width: 1.6; }
.tpp-pin__wheel { fill: none; stroke: #F7A81B; stroke-width: 2.6; stroke-dasharray: 2.4 1.6; }
.tpp-pin--both { --pin: #FFFFFF; }
.tpp-pin__dot { fill: var(--pin); stroke: #0A2430; stroke-width: 1.5; }
.tpp-pin__halo { fill: var(--pin); opacity: 0.22; }
.tpp-globe__legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; justify-content: center; font-family: var(--display); font-size: 0.88rem; color: var(--foam-2); margin-top: 0.4rem; }
.tpp-legend::before { content: ""; display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; margin-right: 0.4rem; vertical-align: -0.05em; background: var(--pin); }
.tpp-legend--oeoo { --pin: #F0BC3C; }
.tpp-legend--rr { --pin: #45C4D3; }
.tpp-legend--eps { --pin: #E0679A; }
.tpp-legend--gyres { --pin: #8FA8F0; }
.tpp-legend--other { --pin: #7FD08A; }
.tpp-legend--rotary::before { background: #17458F; box-shadow: 0 0 0 2px #0A2430, 0 0 0 4px #F7A81B; }
.tpp-legend--both { --pin: #FFFFFF; }

.tpp-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.25rem); padding-block: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem); }
.tpp-duo__card { background: rgba(234, 243, 242, 0.05); border: 1px solid rgba(234, 243, 242, 0.14); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.tpp-duo__media { position: relative; display: block; aspect-ratio: 2 / 1; background: #06171F; overflow: hidden; }
.tpp-duo__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpp-duo__img--river { object-position: 50% 58%; }
.tpp-duo__credit { position: absolute; right: 0.5rem; bottom: 0.4rem; font-family: var(--display); font-size: 0.72rem; color: #FFFFFF; background: rgba(10, 36, 48, 0.65); padding: 0.1rem 0.45rem; border-radius: 3px; }
.tpp-duo__body { padding: clamp(1.25rem, 2.5vw, 1.9rem); display: flex; flex-direction: column; flex: 1; }
.tpp-duo__body p { color: var(--foam-2); font-size: 1.02rem; }
.tpp-duo__badge { font-family: var(--display); font-weight: 700; font-size: 0.85rem; color: var(--glow) !important; margin: 0 0 0.4rem; }
.tpp-duo__title { color: var(--foam); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; font-stretch: 118%; letter-spacing: -0.015em; margin-bottom: 0.25em; }
.tpp-duo__where { font-family: var(--display); font-size: 0.85rem !important; font-weight: 600; color: var(--foam) !important; opacity: 0.8; }
.tpp-duo__people { font-family: var(--display); font-size: 0.88rem !important; }
.tpp-duo__links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: auto 0 0; padding-top: 0.5rem; }
.tpp-duo__links .tpp-btn { margin: 0; }
.tpp-globe .tpp-flakes { height: 90px; }

/* More partners: three across */
.tpp-partners--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tpp-partners--row .tpp-partner { border-top: 3px solid var(--flake-pet); }

/* EarthX videos while the daily update is gathered */
.tpp-videos { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.tpp-videos .tpp-video { margin: 0; }

@media (max-width: 980px) {
	.tpp-globe__top, .tpp-duo { grid-template-columns: 1fr; }
	.tpp-partners--row { grid-template-columns: 1fr; }
}


/* ---------- Panama update ---------- */
.tpp-page-graphic { margin: 1rem 0 1.5rem; max-width: 520px; }
.tpp-page-graphic img { width: 100%; height: auto; display: block; border-radius: 6px; }
.tpp-page-graphic figcaption { font-family: var(--display); font-size: 0.8rem; color: var(--ink-2); margin-top: 0.4rem; }
.tpp-panama { background: var(--card); }
.tpp-panama__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.tpp-panama__media { margin: 0; }
.tpp-panama__media img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 12px 30px rgba(10, 36, 48, 0.18); }
.tpp-panama__media figcaption { font-family: var(--display); font-size: 0.8rem; color: var(--ink-2); margin-top: 0.4rem; }
.tpp-panama__label { color: #1F5FA8; font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: 0.4rem; }
.tpp-panama h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-stretch: 118%; font-weight: 800; }
.tpp-panama__lede { font-size: 1.15rem; color: var(--ink-2); max-width: 55ch; }
.tpp-panama__facts { list-style: none; padding: 0; margin: 1.25rem 0; border-top: 2px solid var(--ink); }
.tpp-panama__facts li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.tpp-panama__facts strong { font-family: var(--display); font-weight: 800; }
.tpp-panama p { max-width: 58ch; }
.tpp-panama__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; }
.tpp-panama__links .tpp-btn { margin: 0; }
@media (prefers-color-scheme: dark) { .tpp-panama__label { color: #7FB0E8; } }
@media (max-width: 900px) { .tpp-panama__grid { grid-template-columns: 1fr; } .tpp-panama__media { max-width: 460px; } }


/* ---------- Interactive map at the top ---------- */
.tpp-mapwrap__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 2rem; }
.tpp-mapwrap__head .tpp-globe__title { font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: 1.02; margin: 0 0 0.6rem; }
.tpp-mapwrap__head .tpp-globe__label { width: 100%; margin-bottom: 0.3rem; }
.tpp-mapwrap__controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.5rem; margin: 0.4rem 0 0.8rem; }
.tpp-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tpp-chip {
	font-family: var(--display); font-size: 0.85rem; font-weight: 650;
	padding: 0.4rem 0.8rem; border-radius: 99px; cursor: pointer;
	background: rgba(234, 243, 242, 0.06); color: var(--foam, #EAF3F2);
	border: 1.5px solid rgba(234, 243, 242, 0.3);
}
.tpp-chip::before { content: ""; display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; margin-right: 0.4rem; background: var(--chip, transparent); vertical-align: 0; }
.tpp-chip:not([class*="--"])::before, .tpp-chips--zoom .tpp-chip::before { display: none; }
.tpp-chip--oeoo { --chip: #F0BC3C; }
.tpp-chip--rr { --chip: #45C4D3; }
.tpp-chip--eps { --chip: #E0679A; }
.tpp-chip--gyres { --chip: #8FA8F0; }
.tpp-chip--rotary { --chip: #17458F; }
.tpp-chip--rotary::before { box-shadow: 0 0 0 2px #F7A81B; }
.tpp-chip--other { --chip: #7FD08A; }
.tpp-chip:hover { border-color: var(--foam, #EAF3F2); }
.tpp-chip[aria-pressed="true"] { background: var(--foam, #EAF3F2); color: #0A2430; border-color: var(--foam, #EAF3F2); }

.tpp-mapwrap__stage { position: relative; border-radius: 8px; background: rgba(6, 23, 31, 0.45); border: 1px solid rgba(234, 243, 242, 0.1); overflow: hidden; }
.tpp-mapwrap__stage .tpp-worldmap { width: 100%; height: auto; aspect-ratio: 720 / 262; }
.tpp-pin { cursor: pointer; outline: none; transition: opacity 0.2s; }
.tpp-pin__hit { fill: transparent; }
.tpp-pin:hover .tpp-pin__dot, .tpp-pin:focus-visible .tpp-pin__dot, .tpp-pin.is-active .tpp-pin__dot { stroke: #FFFFFF; stroke-width: 2.4; }
.tpp-pin:focus-visible .tpp-pin__hit, .tpp-pin.is-active .tpp-pin__hit { fill: rgba(255, 255, 255, 0.12); stroke: #FFFFFF; stroke-width: 1; }
.tpp-pin.is-dim { opacity: 0.12; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .tpp-pin { transition: none; } }

.tpp-mapinfo {
	background: rgba(10, 36, 48, 0.92); border-top: 1px solid rgba(234, 243, 242, 0.15);
	padding: 0.9rem 1.2rem; color: var(--foam, #EAF3F2); min-height: 5.2rem;
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1.5rem; align-items: center;
}
.tpp-mapinfo .tpp-mapinfo__links { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; }
.tpp-mapinfo p { margin: 0 0 0.35rem; }
.tpp-mapinfo__title { font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.tpp-mapinfo__detail { font-size: 0.92rem; line-height: 1.45; color: var(--foam-2, #A9C6C8); }
.tpp-mapinfo__links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem !important; }
.tpp-mapinfo__link { font-family: var(--display); font-size: 0.8rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 99px; background: var(--glow, #F0BC3C); color: #0A2430; text-decoration: none; }
.tpp-mapinfo__link:hover { background: #FFFFFF; }

.tpp-mapwrap__below { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem 3rem; align-items: start; margin-top: 1.5rem; }
.tpp-mapwrap__below .tpp-globe__lede { margin: 0; }
@media (max-width: 900px) {
	.tpp-mapwrap__below { grid-template-columns: 1fr; }
	.tpp-mapinfo { grid-template-columns: 1fr; }
	.tpp-mapinfo .tpp-mapinfo__links { grid-column: 1; grid-row: auto; justify-content: flex-start; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.tpp-partners, .tpp-split__grid, .tpp-rotary__grid, .tpp-entry__grid { grid-template-columns: 1fr; }
	.tpp-partner--lead { grid-row: auto; margin-bottom: 0.5rem; }
	.tpp-entry__side { position: static; }
	.tpp-footer__grid { grid-template-columns: 1fr 1fr; }
	.tpp-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
	.tpp-approach-list, .tpp-list--two, .tpp-projects { grid-template-columns: 1fr; }
	.tpp-db__filters { grid-template-columns: 1fr; position: static; }
	.tpp-field--search { grid-column: auto; }
	.tpp-hero__search-row { flex-direction: column; }
	.tpp-flakes { height: 96px; }
	body { font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Keep the header on one line on mid-size screens: the database search is on every page anyway. */
@media (min-width: 1101px) and (max-width: 1500px) {
	.tpp-nav__search { display: none; }
}
@media (min-width: 1101px) and (max-width: 1320px) {
	.tpp-nav a { font-size: 0.86rem; padding: 0.45rem 0.4rem; }
	.tpp-header__inner { gap: 0.75rem; }
	.tpp-brand__name { font-size: 1.05rem; }
}
