/*
Theme Name: Solar of The Americas
Theme URI: https://solaroftheamericas.org
Author: Solar of the Americas
Description: A resource theme for solar power and energy storage across every country in the Americas. On activation it builds all pages, menus, the interactive map of the Americas, the glossary, agency directory, incentives directory, nonprofit directory, calculators and community discussion.
Version: 1.4.1
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solar-americas
*/

:root {
	--cell: #16284f;
	--cell-2: #22407a;
	--cell-3: #2e5597;
	--silver: #c9d1dc;
	--silver-2: #e7ebf1;
	--sun: #f4b400;
	--sun-soft: #fff4d1;
	--leaf: #2f6b45;
	--leaf-soft: #e3efe6;
	--paper: #fafaf7;
	--ink: #1a2233;
	--muted: #556070;
	--line: #d8dee6;
	--white: #ffffff;
	--radius-s: 4px;
	--radius-m: 10px;
	--measure: 70ch;
	--wide: 1240px;
	--head: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--body: "Source Serif 4", Georgia, "Times New Roman", serif;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: 1.5rem;
	--step-3: 2rem;
	--step-4: 2.75rem;
	--step-5: clamp(2.2rem, 4.2vw, 3.4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: var(--step-0);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--cell-3); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--cell); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4, h5 {
	font-family: var(--head);
	font-stretch: 112%;
	line-height: 1.15;
	color: var(--cell);
	margin: 1.6em 0 0.5em;
	letter-spacing: -0.01em;
}
h1 { font-size: var(--step-4); font-weight: 800; margin-top: 0; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; }
h4 { font-size: var(--step-0); font-weight: 700; }
p, ul, ol, dl, table, blockquote, figure { margin: 0 0 1.1em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--sun); color: var(--cell); padding: 0.6em 1em; font-family: var(--head); font-weight: 700;
}
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { background: var(--cell); color: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--sun); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--head); font-weight: 800; font-stretch: 118%; font-size: 1.05rem; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; font-stretch: 100%; font-size: 0.78rem; color: var(--silver); }
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; gap: 0.25rem; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: 0.55rem 0.75rem; color: var(--white); text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 0.95rem; border-radius: var(--radius-s); }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { background: var(--cell-2); color: var(--white); }
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--white);
	border: 1px solid var(--line); border-top: 3px solid var(--sun); border-radius: 0 0 var(--radius-m) var(--radius-m);
	padding: 0.4rem; box-shadow: 0 14px 30px rgba(22, 40, 79, 0.18);
	visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.primary-nav .sub-menu a { color: var(--ink); font-weight: 500; }
.primary-nav .sub-menu a:hover { background: var(--silver-2); color: var(--cell); }
.header-search { display: flex; }
.header-search input { width: 170px; border: 1px solid var(--cell-3); background: var(--cell-2); color: var(--white); border-radius: var(--radius-s); padding: 0.45rem 0.7rem; font: inherit; font-family: var(--head); font-size: 0.9rem; }
.header-search input::placeholder { color: var(--silver); }
.nav-toggle { display: none; margin-left: auto; background: transparent; color: var(--white); border: 1px solid var(--cell-3); border-radius: var(--radius-s); padding: 0.45rem 0.8rem; font-family: var(--head); font-weight: 700; cursor: pointer; }
@media (max-width: 1080px) {
	.nav-toggle { display: block; }
	.header-inner { flex-wrap: wrap; }
	.primary-nav, .header-search { display: none; width: 100%; }
	.site-header.is-open .primary-nav, .site-header.is-open .header-search { display: block; }
	.site-header.is-open .header-search { padding-bottom: 1rem; }
	.header-search input { width: 100%; }
	.primary-nav > ul { flex-direction: column; padding: 0.5rem 0; }
	.primary-nav .sub-menu { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; background: transparent; border: 0; padding: 0 0 0 1rem; }
	.primary-nav .sub-menu a { color: var(--silver); }
	.primary-nav .sub-menu a:hover { background: var(--cell-2); color: var(--white); }
}

/* Hero with the map: the one bold element */
.hero {
	background-color: var(--cell);
	background-image:
		linear-gradient(rgba(201, 209, 220, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(201, 209, 220, 0.07) 1px, transparent 1px);
	background-size: 44px 44px;
	color: var(--white);
	padding: 3rem 0 3.5rem;
	overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2.5rem; align-items: start; }
.hero h1 { color: var(--white); font-size: var(--step-5); font-stretch: 118%; line-height: 1.02; margin-bottom: 0.4em; }
.hero-lede { font-size: var(--step-1); color: var(--silver-2); max-width: 34ch; }
.hero-search { display: flex; gap: 0.5rem; margin: 1.6rem 0 1.2rem; max-width: 460px; }
.hero-search input { flex: 1; min-width: 0; padding: 0.85rem 1rem; border-radius: var(--radius-s); border: 2px solid transparent; font: inherit; font-family: var(--head); font-size: 1rem; }
.hero-search input:focus { border-color: var(--sun); outline: none; }
.btn { display: inline-block; background: var(--sun); color: var(--cell); font-family: var(--head); font-weight: 800; padding: 0.8rem 1.2rem; border-radius: var(--radius-s); border: 0; text-decoration: none; cursor: pointer; font-size: 1rem; }
.btn:hover { background: #ffc933; color: var(--cell); text-decoration: none; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.hero-quick a { display: inline-block; color: var(--white); border: 1px solid rgba(201, 209, 220, 0.45); border-radius: 999px; padding: 0.3rem 0.85rem; text-decoration: none; font-family: var(--head); font-size: 0.9rem; }
.hero-quick a:hover { background: var(--sun); color: var(--cell); border-color: var(--sun); }
.hero-stats { display: flex; gap: 2rem; margin-top: 2rem; font-family: var(--head); color: var(--silver); font-size: 0.9rem; }
.hero-stats b { display: block; color: var(--sun); font-size: 1.6rem; font-stretch: 118%; }

.map-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0 1.4rem; align-items: start; }
.map-stage .soa-map { grid-row: 1 / span 2; width: 100%; max-height: 80vh; display: block; margin: 0 auto; }
.map-stage .map-panel { margin-top: 0; }
@media (max-width: 1100px) { .map-stage { grid-template-columns: 1fr; } .map-stage .soa-map { grid-row: auto; max-height: 70vh; } .map-stage .map-panel { margin-top: 1rem; } }
.soa-map-land path { fill: var(--cell-2); stroke: var(--silver); stroke-width: 0.6; stroke-linejoin: round; cursor: pointer; transition: fill 0.15s; }
.soa-map-land path:hover, .soa-map-land path:focus { fill: var(--cell-3); outline: none; }
.soa-map-land path.no-data { fill: #1d3462; }
.soa-map-land path.is-active { fill: var(--sun); stroke: var(--white); }
.soa-map-dots circle { fill: var(--sun); fill-opacity: 0.35; stroke: var(--sun); stroke-width: 1; cursor: pointer; }
.soa-map-dots circle.is-active { fill-opacity: 1; }
.map-tip { position: absolute; pointer-events: none; background: var(--white); color: var(--cell); font-family: var(--head); font-weight: 700; font-size: 0.85rem; padding: 0.25rem 0.55rem; border-radius: var(--radius-s); transform: translate(-50%, -140%); white-space: nowrap; opacity: 0; transition: opacity .1s; }
.map-tip.show { opacity: 1; }
.map-panel { background: var(--white); color: var(--ink); border-radius: var(--radius-m); padding: 1.25rem 1.4rem; border-left: 6px solid var(--sun); margin-top: 1rem; min-height: 150px; }
.map-panel h2 { margin: 0 0 0.3rem; font-size: var(--step-2); }
.map-panel .panel-sub { color: var(--muted); font-family: var(--head); font-size: 0.9rem; margin-bottom: 0.8rem; }
.map-panel ul { margin: 0 0 0.9rem; padding-left: 1.1rem; }
.map-panel li { margin-bottom: 0.3rem; }
.map-panel .panel-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.map-panel .panel-links a { font-family: var(--head); font-weight: 700; font-size: 0.92rem; }
.map-select { margin-top: 0.9rem; display: flex; gap: 0.6rem; align-items: center; font-family: var(--head); font-size: 0.9rem; color: var(--silver-2); flex-wrap: wrap; }
.map-select select { padding: 0.45rem; border-radius: var(--radius-s); font: inherit; max-width: 100%; }
@media (max-width: 1100px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 2rem; } }

/* Home sections */
.band { padding: 3.5rem 0; }
.band-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2 { margin-top: 0; }
.band-intro { max-width: var(--measure); color: var(--muted); margin-bottom: 2rem; }
.paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--cell); }
.path { padding: 1.3rem 1.3rem 1.5rem 0; border-right: 1px solid var(--line); }
.path + .path { padding-left: 1.3rem; }
.path:last-child { border-right: 0; }
.path h3 { margin-top: 0.4rem; }
.path ul { list-style: none; padding: 0; margin: 0; }
.path li { padding: 0.3rem 0; border-bottom: 1px dotted var(--line); }
.path li a { text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 0.97rem; }
.path li a:hover { text-decoration: underline; }
.path-icon { width: 34px; height: 34px; color: var(--leaf); }
@media (max-width: 900px) {
	.paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.path, .path + .path { padding: 1.2rem 1rem 1.2rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) { .paths { grid-template-columns: 1fr; } }
.topic-index { columns: 3 280px; column-gap: 2.5rem; }
.topic-group { break-inside: avoid; margin-bottom: 2rem; }
.topic-group h3 { margin: 0 0 0.6rem; padding-bottom: 0.4rem; border-bottom: 3px solid var(--sun); display: inline-block; }
.topic-group dl { margin: 0; }
.topic-group dt a { font-family: var(--head); font-weight: 700; text-decoration: none; }
.topic-group dt a:hover { text-decoration: underline; }
.topic-group dd { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.97rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.term-card { background: var(--cell); color: var(--white); padding: 1.6rem; border-radius: var(--radius-m); }
.term-card h3 { color: var(--sun); margin: 0 0 0.2rem; font-size: var(--step-2); }
.term-card .term-kicker { font-family: var(--head); color: var(--silver); font-size: 0.9rem; margin-bottom: 0.9rem; }
.term-card a { color: var(--white); }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.post-list a { font-family: var(--head); font-weight: 700; font-size: 1.08rem; text-decoration: none; }
.post-list time { display: block; color: var(--muted); font-size: 0.88rem; font-family: var(--head); }

/* Content pages */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 2.4rem 0 1.8rem; }
.page-head h1 { margin: 0.2rem 0 0.4rem; font-size: clamp(2rem, 4vw, var(--step-4)); }
.page-head .lede { font-size: var(--step-1); color: var(--muted); max-width: var(--measure); margin: 0; }
.crumbs { font-family: var(--head); font-size: 0.88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; padding: 2.5rem 0 4rem; }
.content-layout.full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 980px) { .content-layout { grid-template-columns: 1fr; } .sidebar { order: -1; } .sidebar .toc { position: static; } }
.entry { max-width: var(--measure); min-width: 0; }
.content-layout.full .entry { max-width: none; }
.entry h2 { padding-top: 0.8rem; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.entry > h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.entry h3 { scroll-margin-top: 100px; }
.entry li { margin-bottom: 0.35rem; }
.entry blockquote { border-left: 4px solid var(--sun); margin-left: 0; padding: 0.3rem 0 0.3rem 1.2rem; color: var(--muted); }
.entry table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.entry th, .entry td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); }
.entry th { font-family: var(--head); color: var(--cell); background: var(--silver-2); }
.table-scroll { overflow-x: auto; margin-bottom: 1.2em; }
.table-scroll table { margin: 0; min-width: 560px; }
.callout { background: var(--sun-soft); border-left: 5px solid var(--sun); padding: 1rem 1.2rem; border-radius: 0 var(--radius-m) var(--radius-m) 0; margin: 1.5em 0; }
.callout.leaf { background: var(--leaf-soft); border-color: var(--leaf); }
.callout.cell { background: var(--silver-2); border-color: var(--cell-3); }
.callout p:last-child { margin-bottom: 0; }
.key-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin: 1.5em 0; }
.key-facts div { border-top: 3px solid var(--cell); padding-top: 0.6rem; }
.key-facts b { display: block; font-family: var(--head); font-size: 1.5rem; color: var(--cell); line-height: 1.2; }
.key-facts span { font-size: 0.93rem; color: var(--muted); }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1.2rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--cell); color: var(--sun); font-family: var(--head); font-weight: 800; display: grid; place-items: center; }

.sidebar { font-size: 0.95rem; }
.sidebar .toc, .sidebar .widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.1rem 1.2rem; margin-bottom: 1.2rem; }
.sidebar .toc { position: sticky; top: 96px; }
.sidebar h2, .sidebar .widget-title { font-size: 1rem; margin: 0 0 0.6rem; border: 0; padding: 0; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.25rem 0; }
.sidebar a { text-decoration: none; font-family: var(--head); font-size: 0.92rem; }
.sidebar a:hover { text-decoration: underline; }
.sidebar .toc li.sub { padding-left: 0.9rem; }

/* Directories */
.dir-tools { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-bottom: 1.5rem; position: sticky; top: 71px; background: var(--paper); padding: 0.8rem 0; z-index: 5; border-bottom: 1px solid var(--line); }
.admin-bar .dir-tools { top: 103px; }
.dir-tools input[type="search"], .dir-tools select { padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-s); font: inherit; font-family: var(--head); font-size: 0.95rem; background: var(--white); }
.dir-tools input[type="search"] { flex: 1 1 260px; }
.dir-count { font-family: var(--head); color: var(--muted); font-size: 0.9rem; }
.region-heading { margin-top: 2.2rem; padding-bottom: 0.3rem; border-bottom: 2px solid var(--cell); }
.country-block { padding: 1.2rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 160px; }
.country-block h3 { margin: 0 0 0.5rem; display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.country-block h3 .lang { font-size: 0.8rem; font-weight: 500; color: var(--muted); font-stretch: 100%; }
.org-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0.4rem 1.5rem; }
.org-list li { padding: 0.35rem 0; }
.org-list .org-name { font-family: var(--head); font-weight: 700; }
.org-list .org-role { display: block; color: var(--muted); font-size: 0.9rem; }
.country-note { color: var(--muted); font-size: 0.95rem; margin: 0.6rem 0 0; }
.inc-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.1rem 1.3rem; margin-bottom: 1rem; scroll-margin-top: 160px; }
.inc-block h3 { margin: 0 0 0.5rem; }
.inc-block ul { margin: 0 0 0.6rem; padding-left: 1.1rem; }
.inc-block .inc-links { font-family: var(--head); font-size: 0.9rem; margin: 0; }
.inc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.inc-grid .inc-block { margin: 0; }
.tag { display: inline-block; font-family: var(--head); font-size: 0.75rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--silver-2); color: var(--cell); vertical-align: middle; }
.tag.leaf { background: var(--leaf-soft); color: var(--leaf); }
.tag.sun { background: var(--sun-soft); color: #7a5a00; }
.np-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 2rem; }
.np-item { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.np-item h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.np-item p { margin: 0.3rem 0 0; font-size: 0.97rem; }
.az { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.az a, .az span { font-family: var(--head); font-weight: 700; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: var(--radius-s); text-decoration: none; background: var(--white); border: 1px solid var(--line); font-size: 0.9rem; }
.az span { color: var(--line); }
.az a:hover { background: var(--cell); color: var(--sun); }
.gloss-letter { font-size: var(--step-3); color: var(--cell); margin: 2rem 0 0.5rem; border-bottom: 3px solid var(--sun); display: inline-block; scroll-margin-top: 160px; }
.gloss-list { margin: 0; }
.gloss-item { padding: 0.8rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.5rem; scroll-margin-top: 160px; }
.gloss-item dt { font-family: var(--head); font-weight: 800; color: var(--cell); }
.gloss-item dt .tag { display: table; margin-top: 0.35rem; }
.gloss-item dd { margin: 0; }
@media (max-width: 700px) { .gloss-item { grid-template-columns: 1fr; gap: 0.2rem; } }
.is-hidden { display: none !important; }

/* Tools */
.tool { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--cell); border-radius: var(--radius-m); padding: 1.4rem; margin: 1.8em 0; }
.tool h3 { margin-top: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.tool label { display: block; font-family: var(--head); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--cell); }
.tool input, .tool select { width: 100%; padding: 0.6rem; border: 1px solid var(--line); border-radius: var(--radius-s); font: inherit; font-family: var(--head); background: var(--white); }
.tool .hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }
.tool-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); }
.tool-results div { background: var(--silver-2); border-radius: var(--radius-s); padding: 0.8rem 1rem; }
.tool-results b { display: block; font-family: var(--head); font-size: 1.45rem; color: var(--cell); }
.tool-results span { font-size: 0.88rem; color: var(--muted); }
.tool-note { font-size: 0.88rem; color: var(--muted); margin: 1rem 0 0; }
.flow { margin: 1.8em 0; }
.flow svg { width: 100%; height: auto; display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); }
.flow figcaption { margin-top: 0.5rem; }

/* Posts, comments, footer */
.archive-list { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.archive-list li { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.archive-list h2 { margin: 0 0 0.3rem; font-size: var(--step-1); border: 0; padding: 0; }
.archive-list h2 a { text-decoration: none; }
.meta { font-family: var(--head); font-size: 0.88rem; color: var(--muted); }
.pagination { margin-top: 2rem; font-family: var(--head); }
.pagination .page-numbers { padding: 0.4rem 0.7rem; border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; margin-right: 0.3rem; }
.pagination .current { background: var(--cell); color: var(--white); }
.comments-area { max-width: var(--measure); margin-top: 3rem; padding-top: 2rem; border-top: 3px solid var(--cell); }
.comments-area h2 { margin-top: 0; border: 0; padding: 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.5rem; border-left: 2px solid var(--line); }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-author { font-family: var(--head); font-weight: 700; }
.comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-right: 0.5rem; }
.comment-metadata { font-family: var(--head); font-size: 0.82rem; }
.comment-metadata a { color: var(--muted); }
.comment-form label { display: block; font-family: var(--head); font-weight: 600; font-size: 0.9rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 0.7rem; border: 1px solid var(--line); border-radius: var(--radius-s); font: inherit; }
.comment-form .submit { background: var(--sun); color: var(--cell); font-family: var(--head); font-weight: 800; border: 0; padding: 0.8rem 1.3rem; border-radius: var(--radius-s); cursor: pointer; }
.site-footer { background: var(--cell); color: var(--silver-2); padding: 3rem 0 2rem; font-size: 0.95rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h2 { color: var(--sun); font-size: 1rem; margin: 0 0 0.7rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 0.2rem 0; }
.footer-grid a { text-decoration: none; font-family: var(--head); }
.footer-grid a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--cell-3); margin-top: 2rem; padding-top: 1.2rem; font-size: 0.85rem; color: var(--silver); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 0.88rem; color: var(--muted); font-family: var(--head); }
.bypostauthor > .comment-body .comment-author::after { content: " (author)"; font-weight: 400; color: var(--muted); }
#bbpress-forums { font-family: var(--body); font-size: 1rem; }
#bbpress-forums li.bbp-header { background: var(--cell); color: var(--white); font-family: var(--head); }

.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* Photos */
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.page-head.has-photo .page-head-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.head-photo { margin: 0; }
.head-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-m); border-bottom: 5px solid var(--sun); }
.head-photo figcaption { font-size: 0.78rem; margin-top: 0.4rem; line-height: 1.4; }
.head-photo figcaption a { color: var(--muted); }
@media (max-width: 900px) {
	.page-head.has-photo .page-head-grid { grid-template-columns: 1fr; }
	.head-photo { order: -1; }
}
.photo-tour { padding-top: 0; }
.tour-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.tour-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius-m); text-decoration: none; color: var(--white); background: var(--cell); }
.tour-item:first-child { grid-column: span 2; grid-row: span 2; }
.tour-item img { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; transition: transform .4s; }
.tour-item:hover img, .tour-item:focus img { transform: scale(1.04); }
.tour-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 1rem; background: linear-gradient(transparent, rgba(22, 40, 79, 0.92)); }
.tour-text b { display: block; font-family: var(--head); font-stretch: 112%; font-size: 1.15rem; color: var(--white); }
.tour-text span { display: block; font-size: 0.9rem; color: var(--silver-2); line-height: 1.4; margin-top: 0.2rem; }
.tour-item:hover { color: var(--white); }
@media (max-width: 800px) { .tour-grid { grid-template-columns: 1fr 1fr; } .tour-item:first-child { grid-column: span 2; grid-row: auto; } }
@media (max-width: 520px) { .tour-grid { grid-template-columns: 1fr; } .tour-item:first-child { grid-column: auto; } .tour-text span { display: none; } }
.archive-list li.has-thumb { display: grid; grid-template-columns: 160px minmax(0, 1fr); column-gap: 1.2rem; }
.archive-list li.has-thumb > :not(.archive-thumb) { grid-column: 2; }
.archive-thumb { grid-row: span 3; }
.archive-thumb img { width: 160px; height: 107px; object-fit: cover; border-radius: var(--radius-s); }
@media (max-width: 560px) { .archive-list li.has-thumb { grid-template-columns: 1fr; } .archive-list li.has-thumb > * { grid-column: 1 !important; } }

/* Automatic news */
.news-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.news-tabs button { font-family: var(--head); font-weight: 600; font-size: 0.85rem; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--cell); cursor: pointer; }
.news-tabs button:hover { border-color: var(--cell-3); }
.news-tabs button.is-on { background: var(--cell); border-color: var(--cell); color: var(--sun); }
.news-list a { font-size: 1.02rem; }
.news-more { margin: 1rem 0 0.2rem; font-family: var(--head); font-weight: 700; }

/* Larger map (1.3) */
.hero .wrap { max-width: 1480px; }
.hero-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); }
.map-stage .soa-map { max-height: 92vh; min-height: 420px; }
@media (min-width: 1100px) {
	/* Info panel floats over the empty Pacific in the lower left, so the map can fill the space */
	.map-stage { min-height: 640px; }
	.map-panel {
		position: absolute; left: 0; bottom: 3.2rem; width: min(40%, 360px); margin: 0;
		max-height: 46%; overflow-y: auto; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); font-size: 0.95rem;
	}
	.map-panel h2 { font-size: 1.3rem; }
	.map-select { justify-content: flex-end; }
}
@media (max-width: 900px) {
	.map-stage .soa-map { min-height: 0; max-height: none; }
	.hero-grid { gap: 1.5rem; }
}

/* Extra large map (1.4): headline row on top, map gets the full width below */
.hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.hero-grid > div:first-child { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 3rem; align-items: end; }
.hero-grid > div:first-child h1 { grid-column: 1; margin-bottom: 0.3em; }
.hero-grid > div:first-child .hero-lede { grid-column: 1; max-width: 46ch; margin-bottom: 0; }
.hero-grid > div:first-child .hero-search { grid-column: 2; grid-row: 1; align-self: end; max-width: none; margin: 0 0 1rem; }
.hero-grid > div:first-child .hero-quick { grid-column: 2; grid-row: 2; margin: 0; align-self: start; }
.hero-grid > div:first-child .hero-stats { display: none; }
.map-stage { max-width: 1320px; width: 100%; margin: 0 auto; }
.map-stage .soa-map { width: 100%; max-height: none; min-height: 0; }
@media (min-width: 1100px) {
	.map-panel { width: min(34%, 400px); bottom: 4rem; max-height: 44%; font-size: 1rem; }
	.map-panel h2 { font-size: 1.45rem; }
}
@media (max-width: 900px) {
	.hero-grid > div:first-child { grid-template-columns: minmax(0, 1fr); }
	.hero-grid > div:first-child .hero-search, .hero-grid > div:first-child .hero-quick { grid-column: 1; grid-row: auto; margin-top: 1rem; }
}

/* 1.4.1: the map area is one full-width block (an older rule split it into two columns) */
.map-stage { display: block; }
.map-stage .soa-map { grid-row: auto; width: 100%; max-height: none; }
@media (min-width: 1100px) {
	.map-stage .map-panel { position: absolute; left: 0; bottom: 4rem; width: min(34%, 400px); margin: 0; }
}
@media (max-width: 1099px) {
	.map-stage .map-panel { position: static; width: auto; max-height: none; margin-top: 1rem; }
}
