/* Startup Iloilo — one stylesheet. Mobile first; breakpoints 640 / 1024 / 1280. 8px spacing grid.
 *
 * Direction: the logo's rising arrow is the one loud thing (Home hero only). Everything else is
 * quiet: white paper, river-navy type set in a condensed civic face, flat bordered cards, no shadows.
 */

/* ---------- Tokens ---------- */
:root {
	/* Brand, from the logo */
	--blue: #1159a2;
	--orange: #f26623;
	--yellow: #feb614;
	/* Supporting */
	--river: #0c2e52;      /* text, dark fields */
	--slate: #4a5a70;      /* secondary text (7.1:1 on white) */
	--mist: #eef3f9;       /* alternate sections */
	--rule: #d3dde9;       /* borders */
	--paper: #ffffff;
	--orange-ink: #a83f0c; /* orange as text on light (5.6:1) */

	--display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
	--text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Type scale: 1.25 ratio for text sizes; display sizes jump further because condensed type reads smaller */
	--s-1: 0.875rem;
	--s0: 1.0625rem;
	--s1: 1.25rem;
	--s2: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
	--s3: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
	--s4: clamp(2.75rem, 1.8rem + 4vw, 5rem);
	--s5: clamp(3.25rem, 1.6rem + 6.4vw, 7.5rem);

	--r-card: 6px;
	--r-control: 4px;
	--w: 1200px;
	--gutter: 16px;
	--header-h: 64px;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --header-h: 80px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--river); font: 400 var(--s0)/1.6 var(--text); overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--river); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: 0; margin: 0 0 .4em; color: var(--river); text-wrap: balance; }
h1 { font-size: var(--s4); font-weight: 900; }
h2 { font-size: var(--s3); }
h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.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; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--river); color: #fff; padding: 12px 16px; }
.skip:focus { top: 8px; }
.icon { width: 1.2em; height: 1.2em; flex: none; }

.wrap { width: 100%; max-width: calc(var(--w) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: calc(720px + var(--gutter) * 2); }
.section { padding-block: 64px; }
.section-tight { padding-block: 32px; }
.tint { background: var(--mist); }
@media (min-width: 1024px) { .section { padding-block: 96px; } }

/* Category labels: only where they carry information (story category, podcast) */
.eyebrow { display: inline-block; margin: 0 0 8px; font: 700 var(--s-1)/1.3 var(--text); color: var(--orange-ink); text-decoration: none; }
a.eyebrow:hover { text-decoration: underline; }
.lede { font-size: var(--s1); line-height: 1.5; color: var(--slate); max-width: 58ch; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 2px solid transparent; border-radius: var(--r-control); font: 700 1rem/1.1 var(--text); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--river); color: #fff; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue); color: #fff; }
.btn-light { background: var(--yellow); color: var(--river); }
.btn-light:hover { background: #fff; color: var(--river); }
.btn-small { min-height: 44px; padding: 8px 14px; font-size: .9375rem; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-small:hover { border-color: var(--yellow); color: var(--yellow); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; white-space: nowrap; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-control); background: transparent; color: var(--river); cursor: pointer; }
.icon-btn:hover { background: var(--mist); color: var(--blue); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--rule); }
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.bar { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--river); margin-right: auto; }
.brand .custom-logo { height: 40px; width: auto; }
@media (min-width: 1024px) { .brand .custom-logo { height: 52px; } }
.bar-actions { display: flex; align-items: center; gap: 4px; }
.bar-cta { display: none; }
.menu-btn .icon-close, .menu-open .menu-btn .icon-menu { display: none; }
.menu-open .menu-btn .icon-close { display: block; }

.nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; display: none; flex-direction: column; gap: 24px; padding: 16px var(--gutter) 40px; background: #fff; overflow-y: auto; }
.admin-bar .nav { top: calc(var(--header-h) + 46px); }
.menu-open { overflow: hidden; }
.menu-open .nav { display: flex; }
.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu > li { border-bottom: 1px solid var(--rule); position: relative; }
.menu a { display: flex; align-items: center; min-height: 56px; color: var(--river); text-decoration: none; font: 800 2rem/1 var(--display); }
.menu a:hover, .menu .current-menu-item > a, .menu .current-menu-ancestor > a, .menu .current_page_parent > a { color: var(--blue); }
.sub-toggle { position: absolute; right: 0; top: 6px; width: 44px; height: 44px; border: 0; background: none; color: var(--river); cursor: pointer; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu .sub-menu { display: none; padding: 0 0 12px; }
.menu .is-open > .sub-menu { display: block; }
.menu .sub-menu a { font: 700 1.0625rem/1.3 var(--text); min-height: 44px; }
.nav-cta { align-self: flex-start; }

@media (min-width: 1024px) {
	.nav { position: static; display: flex; flex-direction: row; align-items: center; padding: 0; background: none; overflow: visible; }
	.nav-cta, .menu-btn { display: none !important; }
	.bar-cta { display: inline-flex; margin-left: 8px; }
	.menu { display: flex; gap: 8px; }
	.menu > li { border: 0; display: flex; align-items: center; }
	.menu > li > a { min-height: var(--header-h); padding: 0 10px; font: 700 1rem/1 var(--text); box-shadow: inset 0 -4px 0 transparent; }
	.menu > li > a:hover { color: var(--blue); box-shadow: inset 0 -4px 0 var(--rule); }
	.menu .current-menu-item > a, .menu .current-menu-ancestor > a, .menu .current_page_parent > a { box-shadow: inset 0 -4px 0 var(--orange); }
	.sub-toggle { position: static; width: 28px; height: 28px; margin-left: -6px; }
	.menu .sub-menu { position: absolute; top: calc(100% - 4px); left: 0; min-width: 240px; padding: 8px; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow: 0 12px 32px rgba(12, 46, 82, .14); }
	.menu li:hover > .sub-menu, .menu .is-open > .sub-menu { display: block; }
	.menu .sub-menu a { padding: 0 12px; border-radius: var(--r-control); }
	.menu .sub-menu a:hover { background: var(--mist); }
}

/* Search overlay */
.search-dialog { width: min(720px, calc(100% - 32px)); margin: 12vh auto auto; padding: 0; border: 0; border-radius: var(--r-card); box-shadow: 0 24px 64px rgba(12, 46, 82, .35); }
.search-dialog::backdrop { background: rgba(12, 46, 82, .6); }
.search-dialog form { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 18px; }
.search-dialog form > .icon { color: var(--slate); }
.search-dialog input { flex: 1; min-width: 0; min-height: 48px; border: 0; font: 400 1.125rem var(--text); color: var(--river); background: none; }
.search-dialog input:focus { outline: none; }
.search-dialog .btn { display: none; }
@media (min-width: 640px) { .search-dialog .btn { display: inline-flex; } }

/* ---------- Forms ---------- */
input[type="search"], input[type="email"], input[type="text"], select {
	font: 400 1rem var(--text); color: var(--river); background: #fff; border: 2px solid var(--rule); border-radius: var(--r-control); min-height: 48px; padding: 10px 14px;
}
input:hover, select:hover { border-color: #a9bbd0; }
input:focus-visible, select:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--blue); }
select { appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c2e52' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; cursor: pointer; }
.search-inline { display: flex; gap: 8px; max-width: 640px; }
.search-inline input { flex: 1; min-width: 0; }
.search-inline .btn span { display: none; }
@media (min-width: 640px) { .search-inline .btn span { display: inline; } }
.select { display: inline-flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: var(--s-1); }

/* ---------- Sector badge: a slanted swatch (the logo's angle) and the sector name ---------- */
.badge { display: inline-flex; align-items: center; gap: 8px; font: 700 .875rem/1.2 var(--text); color: var(--orange-ink); white-space: nowrap; }
.badge::before { content: ""; width: 10px; height: 10px; background: var(--orange); transform: skewY(-30deg); }
.chip { display: inline-block; padding: 3px 8px; border-radius: var(--r-control); font-size: .8125rem; font-weight: 700; background: var(--mist); color: var(--slate); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: var(--s-1); color: var(--slate); }
.meta .icon { width: 16px; height: 16px; margin-right: 4px; }


/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid { gap: 24px; } }
.card { position: relative; }
.card h3 a { color: var(--river); text-decoration: none; }
.card h3 a:hover { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; }
.stretched::after { content: ""; position: absolute; inset: 0; }
.card:focus-within { outline: 3px solid var(--yellow); outline-offset: 3px; }
.card .stretched:focus-visible { outline: none; }

/* Listing: flat, bordered; the logo and name carry it */
.listing-card { display: flex; flex-direction: column; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-card); transition: border-color .15s; }
.listing-card:hover { border-color: var(--blue); }
.listing-card-top { display: flex; align-items: flex-start; justify-content: space-between; width: 100%; gap: 12px; margin-bottom: 16px; }
.listing-card h3 { margin: 0 0 6px; font-size: 1.625rem; }
.listing-card p { color: var(--slate); font-size: .9688rem; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listing-card .chip, .listing-card .meta { margin-top: auto; }
.logo { width: 64px; height: 64px; object-fit: contain; border-radius: var(--r-control); background: #fff; }
.initials { display: grid; place-items: center; background: var(--mist); color: var(--blue); font: 900 1.75rem/1 var(--display); }

/* Story: no frame — image, category, headline */
.story-card { display: flex; flex-direction: column; }
.story-card-img { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-card); background: var(--mist); }
.story-card-img img { width: 100%; height: 100%; object-fit: cover; }
.img-fallback { display: block; width: 100%; height: 100%; background:
	linear-gradient(150deg, transparent 52%, var(--yellow) 52%, var(--yellow) 60%, transparent 60%, transparent 66%, var(--orange) 66%, var(--orange) 80%, transparent 80%),
	var(--blue); }
.story-card-body { display: flex; flex-direction: column; flex: 1; padding-top: 16px; }
.story-card h3 { font-size: 1.875rem; margin: 0 0 10px; }
.story-card-body p { color: var(--slate); font-size: .9688rem; }
.story-card-body .meta { margin-top: auto; }
.story-card.large { display: grid; gap: 20px; }
@media (min-width: 1024px) {
	.story-card.large { grid-template-columns: 3fr 2fr; gap: 48px; align-items: center; }
	.story-card.large .story-card-img { aspect-ratio: 4 / 3; }
	.story-card.large .story-card-body { padding: 0; }
	.story-card.large h3 { font-size: var(--s4); font-weight: 900; }
	.story-card.large p { font-size: var(--s1); }
}

/* ---------- Section heading, CTA band, empty, pagination, breadcrumbs ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 32px; }
.section-head h2 { margin-bottom: 0; }
.section-head .lede { margin: 12px 0 0; }

.cta-band { background: var(--river); color: #fff; padding-block: 56px; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; font-size: var(--s3); margin-bottom: 8px; }
.cta-band p { margin: 0; color: #c5d4e6; }

.empty { padding: 48px 24px; border: 2px dashed var(--rule); border-radius: var(--r-card); color: var(--slate); }
.empty p { font-size: var(--s1); margin-bottom: 16px; }

.pagination { margin-top: 48px; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: var(--r-control); border: 2px solid var(--rule); text-decoration: none; font-weight: 700; color: var(--river); }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--river); border-color: var(--river); color: #fff; }
.pagination .dots { border: 0; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; margin: 0 0 24px; padding: 0; font-size: var(--s-1); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: #8b9ab0; }
.crumbs a { color: var(--slate); }
.crumbs [aria-current] { color: var(--river); font-weight: 700; }

/* ---------- Page hero (inner pages): just big type on white ---------- */
.page-hero { padding-block: 40px 48px; border-bottom: 1px solid var(--rule); }
@media (min-width: 1024px) { .page-hero { padding-block: 56px 72px; } }
.page-hero h1 { max-width: 16ch; font-size: var(--s5); line-height: .88; }
.page-hero .lede { margin: 20px 0 0; }

/* ---------- Block content (Home, About, Why Iloilo) ---------- */
.entry > .wp-block-group, .entry > .wp-block-columns, .entry > p, .entry > h2, .entry > h3, .entry > ul, .entry > .wp-block-buttons, .entry > .wp-block-quote, .entry > .wp-block-image {
	padding-inline: max(var(--gutter), calc((100% - var(--w)) / 2));
}
.entry > :first-child:not(.si-hero) { margin-top: 56px; }
.entry > :last-child { margin-bottom: 0; }
.wp-block-group.si-section { padding-block: 64px; margin: 0; }
.wp-block-group.si-section.is-tint { background: var(--mist); }
@media (min-width: 1024px) { .wp-block-group.si-section { padding-block: 104px; } }
.si-section h2 { max-width: 18ch; font-size: var(--s4); font-weight: 900; }
.si-section .is-lede { font-size: var(--s1); line-height: 1.5; color: var(--slate); max-width: 58ch; }
.entry .wp-block-columns { gap: 24px 48px; margin: 40px 0; }
.entry .wp-block-buttons { margin-top: 32px; }
.entry .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: var(--r-control); background: var(--blue); color: #fff; font: 700 1rem/1.1 var(--text); text-decoration: none; border: 2px solid var(--blue); }
.entry .wp-block-button__link:hover { background: var(--river); border-color: var(--river); }
.entry .is-style-outline .wp-block-button__link { background: transparent; color: var(--blue); }
.entry .is-style-outline .wp-block-button__link:hover { background: var(--blue); color: #fff; }
.entry .si-link { font-weight: 700; margin-top: 16px; }
.entry .si-link a { display: inline-flex; align-items: center; min-height: 44px; }

/* Two lists side by side ("The place to build") — top-ruled, not boxed */
.si-panel { border-top: 4px solid var(--orange); padding-top: 20px; }
.si-panel.is-yellow { border-top-color: var(--yellow); }
.si-panel h3 { font-size: var(--s2); font-weight: 800; margin-bottom: 12px; }
.si-panel ul { margin: 0; padding: 0; list-style: none; }
.si-panel li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: var(--s1); }
.si-panel p { color: var(--slate); }

/* ---------- Home hero: the one loud thing ---------- */
.si-hero { position: relative; overflow: hidden; background: var(--blue); color: #fff; margin: 0; isolation: isolate;
	padding-block: 56px 120px !important;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 96px), 0 100%); }
@media (min-width: 1024px) { .si-hero { padding-block: 104px 168px !important; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 128px), 0 100%); } }
.si-hero + .si-section { padding-top: 24px; }
@media (min-width: 1024px) { .si-hero + .si-section { padding-top: 32px; } }
.si-hero .si-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.si-hero:has(.si-hero-photo)::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(12, 46, 82, .92) 0%, rgba(17, 89, 162, .8) 60%, rgba(17, 89, 162, .3) 100%); }
/* Below desktop the mark sits under the buttons in the normal flow, so wrapping text can never run into it. */
.si-hero { display: flex; flex-direction: column; }
.si-hero-art { order: 2; align-self: flex-end; width: min(44vw, 240px); margin-top: 32px; pointer-events: none; overflow: visible; }
@media (min-width: 1024px) { .si-hero { display: block; } .si-hero-art { position: absolute; z-index: -1; margin: 0; width: 25vw; max-width: 380px; right: max(var(--gutter), calc((100vw - var(--w)) / 2)); top: 50%; bottom: auto; transform: translateY(-58%); } }
.si-hero-art .slab { fill: var(--orange); }
.si-hero-art .bar { fill: var(--river); }
.si-hero-art .arrow { fill: var(--yellow); }
.si-hero h1 { color: #fff; max-width: 13ch; font-size: var(--s5); font-weight: 900; line-height: .86; margin-bottom: 32px; }
.si-hero p { font-size: var(--s1); line-height: 1.5; max-width: 46ch; color: #dce8f6; }
.si-hero .wp-block-button__link { background: var(--yellow); border-color: var(--yellow); color: var(--river); }
.si-hero .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--river); }
.si-hero .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.si-hero .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--river); border-color: #fff; }

/* The single motion moment: the arrow rises out of the band on load. */
@media (prefers-reduced-motion: no-preference) {
	.si-hero-art .arrow { animation: si-rise .9s .15s cubic-bezier(.2, .8, .2, 1) both; }
	@keyframes si-rise { from { transform: translate(-60px, 40px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Sectors on Home: a counted list, two columns on wide screens */
.sector-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; column-gap: 48px; border-top: 2px solid var(--river); }
@media (min-width: 1024px) { .sector-list { grid-template-columns: 1fr 1fr; } }
.sector-row { display: grid; grid-template-columns: 3.5rem 1fr; align-items: baseline; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--rule); color: var(--river); text-decoration: none; }
.sector-row:hover { color: var(--blue); }
.sector-row:hover .label { text-decoration: underline; text-decoration-thickness: 2px; }
.sector-row .count { font: 900 2.5rem/1 var(--display); text-align: right; color: inherit; margin: 0; }
.sector-row .label { font: 800 1.75rem/1 var(--display); }

/* Ecosystem (Why Iloilo): open text blocks under a rule; brand colors take turns */
.eco-grid { display: grid; gap: 32px 40px; margin-top: 40px; }
@media (min-width: 640px) { .eco-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .eco-grid { grid-template-columns: repeat(3, 1fr); } }
.eco { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 4px solid var(--orange); }
.eco:nth-child(3n+2) { border-top-color: var(--yellow); }
.eco:nth-child(3n) { border-top-color: var(--blue); }
.eco-icon { color: var(--river); }
.eco-icon .icon { width: 32px; height: 32px; }
.eco h3 { margin: 6px 0 0; font-size: var(--s2); }
.eco p { color: var(--slate); margin: 0; }

/* Audience paths: a list of plain lines on the dark closing band */
.paths { display: grid; margin-top: 32px; border-top: 1px solid rgba(255, 255, 255, .25); }
@media (min-width: 1024px) { .paths { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.path { display: grid; gap: 2px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); color: #fff; text-decoration: none; }
@media (min-width: 640px) { .path { grid-template-columns: 11rem 1fr; align-items: baseline; gap: 16px; } }
.path strong { font: 800 2rem/1 var(--display); color: var(--yellow); }
.path span { color: #c5d4e6; }
.path:hover strong { color: #fff; }
.path:hover span { color: #fff; text-decoration: underline; }
.si-come { background: var(--river); color: #fff; }
.si-come h2 { color: #fff; }
.si-come .is-lede { color: #c5d4e6 !important; }
.si-come .wp-block-button__link { background: var(--yellow); border-color: var(--yellow); color: var(--river); }
.si-come .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--river); }
.si-come .tagline { font: 900 var(--s4)/.9 var(--display); color: #fff; margin: 64px 0 0; }

/* Media row: podcast + newsletter */
.media-row { display: grid; gap: 24px; margin-top: 56px; }
@media (min-width: 1024px) { .media-row { grid-template-columns: 1fr 1fr; } .media-row.single { grid-template-columns: 1fr; max-width: 720px; } }
.podcast { display: flex; gap: 20px; align-items: flex-start; padding: 28px; border-radius: var(--r-card); background: var(--river); color: #fff; }
.podcast h3 { color: #fff; font-size: var(--s2); }
.podcast .eyebrow { color: var(--yellow); }
.podcast a:not(.btn) { color: #fff; }
.podcast-art { width: 96px; height: 96px; border-radius: var(--r-control); object-fit: cover; flex: none; }
.podcast-art.fallback { display: grid; place-items: center; background: var(--orange); color: var(--river); }
.podcast-art.fallback .icon { width: 44px; height: 44px; }
.listen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.newsletter { padding: 28px; border-radius: var(--r-card); background: #fff; border: 2px solid var(--river); }
.newsletter h3 { font-size: var(--s2); font-weight: 800; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter-form input { flex: 1 1 220px; min-width: 0; }
.newsletter .small { font-size: var(--s-1); color: var(--slate); margin: 8px 0 0; }
.newsletter.boxed { margin-block: 56px; }
.newsletter.on-dark { background: transparent; border: 0; padding: 0; }
.newsletter.on-dark h3 { color: #fff; font: 700 1rem/1.2 var(--text); margin-bottom: 8px; }
.newsletter.on-dark p, .newsletter.on-dark .small { color: #a9bdd4; font-size: .9375rem; }
.newsletter.on-dark input { border-color: rgba(255, 255, 255, .3); background: transparent; color: #fff; }
.newsletter.on-dark .btn-primary { background: var(--yellow); color: var(--river); }
.newsletter-embed input[type="email"], .newsletter-embed input[type="text"] { width: 100%; margin-bottom: 8px; }

/* Pull quote */
.pull-quote { margin: 0; max-width: 900px; }
.pull-quote blockquote { margin: 0; }
.pull-quote p { font: 800 var(--s3)/1.02 var(--display); color: var(--river); text-wrap: balance; }
.pull-quote figcaption { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--slate); font-weight: 700; }
.entry .wp-block-quote { border-left: 6px solid var(--orange); margin-block: 32px; padding-block: 4px; }
.entry .wp-block-quote p { font: 800 var(--s2)/1.1 var(--display); }

/* Quality of life rows (Why Iloilo) */
.si-life { display: grid; gap: 0 48px; }
@media (min-width: 640px) { .si-life { grid-template-columns: repeat(2, 1fr); } }
.entry .wp-block-columns.si-life { margin: 0; }
.si-life .wp-block-column { padding-block: 28px; border-top: 1px solid var(--rule); }
.si-life h3 { font-size: var(--s2); }
.si-life p { color: var(--slate); max-width: 46ch; }

.contact-list p { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: var(--s1); }
.contact-list .icon { color: var(--orange-ink); }

/* ---------- Directory ---------- */
.directory { padding-block: 32px 80px; }
.filters { display: grid; gap: 20px; margin-bottom: 32px; }
.filters > * { min-width: 0; }
.tabs { display: flex; gap: 8px; min-width: 0; margin: 0; padding: 0 0 4px; border: 0; overflow-x: auto; scrollbar-width: thin; }
.tab { flex: none; position: relative; }
@media (min-width: 1024px) { .tabs { flex-wrap: wrap; overflow: visible; } }
.tab input { position: absolute; opacity: 0; pointer-events: none; }
.tab span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: var(--r-control); border: 2px solid var(--rule); font-weight: 700; font-size: .9375rem; cursor: pointer; white-space: nowrap; background: #fff; }
.tab span:hover { border-color: var(--blue); }
.tab input:checked + span { background: var(--river); border-color: var(--river); color: #fff; }
.tab input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.extra-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.extra-filters select { min-width: 200px; }
.extra-filters:empty { display: none; }
.clear { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.count { font-weight: 700; color: var(--slate); margin-bottom: 16px; }
#dir-results[aria-busy="true"] { opacity: .55; transition: opacity .15s; }

/* ---------- Profile ---------- */
.profile-head { padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.cover { aspect-ratio: 16 / 6; max-height: 380px; width: 100%; overflow: hidden; background: var(--mist); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback { display: block; width: 100%; height: 100%; background:
	linear-gradient(150deg, transparent 52%, var(--yellow) 52%, var(--yellow) 60%, transparent 60%, transparent 66%, var(--orange) 66%, var(--orange) 80%, transparent 80%),
	var(--blue); }
.profile-head .crumbs { margin-top: 20px; }
.profile-id { display: grid; gap: 16px; }
.profile-logo { width: 104px; height: 104px; margin-top: -64px; border-radius: var(--r-card); border: 4px solid #fff; background: #fff; object-fit: contain; padding: 6px; position: relative; box-shadow: 0 0 0 1px var(--rule); }
.profile-logo.initials { font-size: 2.5rem; }
.profile-id h1 { margin: 10px 0 10px; font-size: var(--s4); }
.profile-id .lede { margin-bottom: 24px; }
@media (min-width: 1024px) {
	.profile-id { grid-template-columns: auto 1fr; gap: 32px; align-items: start; }
	.profile-logo { width: 152px; height: 152px; margin-top: -88px; }
	.profile-head .crumbs { margin-left: 184px; }
}
.profile-body { display: grid; gap: 40px; padding-block: 48px 72px; }
@media (min-width: 1024px) { .profile-body { grid-template-columns: 1fr 320px; gap: 64px; } .facts { order: 2; } }
.facts { align-self: start; border-top: 4px solid var(--orange); padding-top: 8px; }
@media (min-width: 1024px) { .facts { position: sticky; top: calc(var(--header-h) + 24px); } }
.facts dl { margin: 0; display: grid; }
.facts dl > div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: var(--s-1); font-weight: 700; color: var(--slate); margin-bottom: 2px; }
.facts dd { margin: 0; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.facts dd .icon { width: 18px; height: 18px; color: var(--orange-ink); }
.facts .social { margin-top: 20px; }
.profile-main h2 { font-size: var(--s3); }
.profile-main section + section { margin-top: 56px; }
.prose { max-width: 66ch; }
.prose h2 { font-size: var(--s3); margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; font-size: 1.75rem; }
.prose img { border-radius: var(--r-card); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 4px solid var(--orange); font-size: var(--s1); }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .people { grid-template-columns: repeat(2, 1fr); } }
.people li { display: flex; gap: 14px; align-items: center; }
.people img, .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar { display: grid; place-items: center; background: var(--mist); color: var(--blue); font: 900 1.5rem var(--display); }
.people strong { display: block; font: 800 1.375rem/1.1 var(--display); }
.people span { display: block; color: var(--slate); font-size: .9375rem; }
.people a { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -8px 0 -8px -10px; }
.social { margin-top: 20px; }
.profile-main h2 { font-size: var(--s3); }
.profile-main section + section { margin-top: 56px; }
.prose { max-width: 66ch; }
.prose h2 { font-size: var(--s3); margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; font-size: 1.75rem; }
.prose img { border-radius: var(--r-card); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 4px solid var(--orange); font-size: var(--s1); }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .people { grid-template-columns: repeat(2, 1fr); } }
.people li { display: flex; gap: 14px; align-items: center; }
.people img, .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar { display: grid; place-items: center; background: var(--mist); color: var(--blue); font: 900 1.5rem var(--display); }
.people strong { display: block; font: 800 1.375rem/1.1 var(--display); }
.people span { display: block; color: var(--slate); font-size: .9375rem; }
.people a { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -8px 0 -8px -10px; }
.programs { list-style: none; margin: 0; padding: 0; display: grid; }
.programs li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.programs h3 { margin-bottom: 4px; }
.programs p { margin: 0; color: var(--slate); }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-control); border: 2px solid var(--rule); background: #fff; color: var(--river); }
.social a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Stories ---------- */
.stories { padding-block: 40px 80px; }
.featured-story { padding-bottom: 48px; margin-bottom: 40px; border-bottom: 1px solid var(--rule); }
.story-filters { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip-link { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r-control); border: 2px solid var(--rule); color: var(--river); text-decoration: none; font-weight: 700; font-size: .9375rem; white-space: nowrap; }
.chip-link:hover { border-color: var(--blue); color: var(--blue); }
.chip-link.is-active { background: var(--river); border-color: var(--river); color: #fff; }
.media-band .media-row { margin-top: 0; }

.story-head { padding-top: 32px; }
.story-head h1 { font-size: var(--s4); margin: 4px 0 20px; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--slate); }
.story-image { margin-block: 32px 48px; }
.story-image img { width: 100%; border-radius: var(--r-card); }
.story .prose { font-size: 1.1875rem; line-height: 1.7; }
.podcast-player { margin-bottom: 32px; }
.podcast-player iframe { width: 100%; border-radius: var(--r-card); }
.featured-in { margin-top: 56px; padding-top: 32px; border-top: 2px solid var(--river); }
.featured-in h2 { font-size: var(--s3); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 48px; }
.share > span { font-weight: 700; margin-right: 8px; }
.share a, .copy-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--r-control); border: 2px solid var(--rule); background: #fff; color: var(--river); font: 700 .9375rem var(--text); cursor: pointer; text-decoration: none; }
.share a:hover, .copy-link:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Search, 404 ---------- */
.search-page { padding-block: 32px 80px; display: grid; gap: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--river); color: #c5d4e6; padding-top: 64px; border-top: 1px solid rgba(255, 255, 255, .16); }
/* Home already closes on the tagline, so the footer doesn't repeat it there. */
.home .footer-brand .tagline { display: none; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr; gap: 32px; } }
.site-footer h2 { font: 700 1rem/1.2 var(--text); color: #fff; margin: 0 0 12px; }
.site-footer h2:not(:first-child) { margin-top: 24px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.tagline { font: 900 2rem/1 var(--display); color: var(--yellow); margin: 20px 0 8px; }
.site-footer .social a { background: transparent; border-color: rgba(255, 255, 255, .25); color: #fff; }
.site-footer .social a:hover { border-color: var(--yellow); color: var(--yellow); }
.site-footer .brand .custom-logo { height: 56px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: var(--s-1); }
.footer-base p { margin: 0; }

/* ---------- Photos (image blocks in page content) ---------- */
.entry .wp-block-image { margin: 0; }
.entry .wp-block-image img { display: block; width: 100%; height: auto; border-radius: var(--r-card); }

/* Home: a row of event photos tucked under the hero's angled edge; on wide screens every other photo steps down */
.wp-block-group.si-photo-strip { position: relative; z-index: 1; margin: -72px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.si-photo-strip > .wp-block-group__inner-container { display: contents; }
.si-photo-strip .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 1024px) {
	.wp-block-group.si-photo-strip { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -136px; }
	.si-photo-strip .wp-block-image img { aspect-ratio: 4 / 5; }
	.si-photo-strip .wp-block-image:nth-child(even) { margin-top: 48px; }
}

/* Dark closing bands: a photo behind, darkened so white text stays readable */
.wp-block-group.si-come { position: relative; isolation: isolate; overflow: hidden; }
.si-come .wp-block-image.si-bg { position: absolute; inset: 0; z-index: -2; margin: 0; }
.si-come .wp-block-image.si-bg img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.si-come:has(.si-bg)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 46, 82, .96) 0%, rgba(12, 46, 82, .88) 55%, rgba(12, 46, 82, .74) 100%); }

/* Why Iloilo: a photo heads each quality-of-life point */
.si-life .wp-block-column:has(.wp-block-image) { border-top: 0; padding-top: 8px; }
.si-life .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 20px; }

/* About: one wide photo under mission and vision */
.wp-block-image.si-wide-photo { margin-top: 48px; }
.si-wide-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 640px) { .si-wide-photo img { aspect-ratio: 21 / 9; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
