/*
Theme Name: Ichijiku NPO
Theme URI: https://1zk.or.jp/
Author: NPO法人無花果
Description: NPO法人無花果 公式サイト用のブロックテーマ。トップページの各セクションはパターンとして分割されており、サイトエディターから文言・画像を編集できます。お知らせ（投稿）と、役員名簿・定款などのファイルを掲載する情報公開ページに対応。
Version: 1.0.0
Requires at least: 6.6
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: ichijiku-npo
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--ink: var(--wp--preset--color--ink, #241a15);
	--paper: var(--wp--preset--color--paper, #fff8ee);
	--cream: var(--wp--preset--color--cream, #fbf0df);
	--plum: var(--wp--preset--color--plum, #4f3347);
	--plum-deep: var(--wp--preset--color--plum-deep, #2e1c29);
	--coral: var(--wp--preset--color--coral, #e2664b);
	--coral-deep: var(--wp--preset--color--coral-deep, #a83d28);
	--mint: var(--wp--preset--color--mint, #dfead0);
	--mint-deep: var(--wp--preset--color--mint-deep, #3e5528);
	--blush: var(--wp--preset--color--blush, #f7e1d6);
	--gold: var(--wp--preset--color--gold, #f0b429);
	--gold-deep: var(--wp--preset--color--gold-deep, #8a5a12);
	--line: rgba(36, 26, 21, 0.14);
	--ink-78: rgba(36, 26, 21, 0.78);
	--ink-65: rgba(36, 26, 21, 0.65);
	--radius-card: 22px;
	--shadow-soft: 0 26px 54px -26px rgba(46, 28, 41, 0.45);
	--shadow-card: 0 18px 36px -24px rgba(36, 26, 21, 0.25);
	--site-width: 1144px;
	--gutter: 28px;
	--font-display: var(--wp--preset--font-family--display);
	--font-serif: var(--wp--preset--font-family--serif);
	--font-num: var(--wp--preset--font-family--num);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}

body {
	-webkit-font-smoothing: antialiased;
}

:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

.wp-block-group.site-main > * {
	margin-block-start: 0;
}

/* Scroll reveal (only active on the front end, once JS is running) */
html.js-reveal .reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js-reveal .reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.wp-block-button > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: 2px solid transparent;
	box-shadow: 0 14px 30px -12px rgba(168, 61, 40, 0.55);
	text-decoration: none;
	transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s, color 0.25s;
}

.wp-block-button > .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 36px -12px rgba(168, 61, 40, 0.65);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--ink);
	border: 2px solid var(--ink);
	box-shadow: none;
	padding: 1rem 2rem;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--ink);
	color: var(--paper);
	transform: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 248, 238, 0.9);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

.site-header {
	padding: 14px var(--gutter);
}

.site-header > .site-header__inner {
	max-width: var(--site-width);
	margin-inline: auto;
	gap: 16px;
}

.site-header .wp-block-site-title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 1.25rem;
	letter-spacing: 0.02em;
	line-height: 1.4;
}

.site-header .wp-block-site-title a {
	color: var(--ink);
	text-decoration: none;
}

.site-header .site-header__nav {
	gap: 22px;
}

.site-header .wp-block-navigation {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.9rem;
}

.site-header .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--ink);
}

.site-header .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--coral-deep);
}

.site-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--paper);
	color: var(--ink);
}

.site-header .wp-block-button > .wp-block-button__link {
	padding: 0.625rem 1.375rem;
	font-size: 0.82rem;
	white-space: nowrap;
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section {
	padding: 100px var(--gutter);
}

.section > * {
	max-width: var(--site-width);
	margin-left: auto;
	margin-right: auto;
}

.section--donate {
	background: linear-gradient(155deg, var(--coral), var(--coral-deep));
	color: #fff;
}

.section > .section-head {
	margin-top: 0;
	margin-bottom: 52px;
}

.section-head > * {
	max-width: 620px;
}

.section-head--center {
	text-align: center;
}

.section-head--center > * {
	margin-left: auto;
	margin-right: auto;
}

.section-head h2 {
	margin-top: 0;
	margin-bottom: 0;
}

.section-head .section-lead {
	margin-top: 16px;
	margin-bottom: 0;
	opacity: 0.75;
}

.eyebrow {
	margin-top: 0;
	margin-bottom: 16px;
	font-family: var(--font-serif);
	font-size: 0.95rem;
	letter-spacing: 0.05em;
	color: var(--gold-deep);
}

.eyebrow::before {
	content: "";
	display: inline-block;
	vertical-align: middle;
	width: 22px;
	height: 1px;
	margin-right: 0.6em;
	background: currentColor;
}

.eyebrow.eyebrow--plain::before {
	content: none;
}

.has-plum-background-color .eyebrow {
	color: var(--gold);
}

.has-coral-background-color .eyebrow,
.section--donate .eyebrow {
	color: #fff;
}

.section-head .icon-circle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-top: 0;
	margin-bottom: 16px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid rgba(62, 85, 40, 0.22);
}

.section-head .icon-circle img {
	width: 32px;
	height: 32px;
}

.section .section-actions {
	margin-top: 40px;
	justify-content: center;
}

/* Generic 3-column card grid */
.card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.wp-block-group.card-grid > *,
.wp-block-group.stat-grid > *,
.wp-block-group.logo-grid > *,
.wp-block-group.story > *,
.wp-block-group.message > *,
.wp-block-group.footer-grid > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.wp-block-cover.hero {
	min-height: 640px;
	padding: 110px var(--gutter) 56px;
	color: var(--paper);
}

.wp-block-cover.hero .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--site-width);
	margin-inline: auto;
	color: var(--paper);
}

.hero .hero__badge {
	display: inline-block;
	margin: 0 0 22px;
	padding: 8px 18px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.2);
	font-family: var(--font-serif);
	font-size: 1.05rem;
	color: var(--gold);
}

.hero h1 {
	margin: 0;
	font-size: clamp(2.5rem, 5.4vw, 4.2rem);
	line-height: 1.4;
	color: var(--paper);
	text-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}

.hero .hero__lead {
	margin: 22px 0 0;
	max-width: 52ch;
	font-size: 1.08rem;
	opacity: 0.9;
}

.hero .wp-block-buttons {
	margin-top: 34px;
}

/* Donation progress band */
.donation-band {
	padding: 34px var(--gutter);
	background: var(--gold);
	border: 1.5px dashed var(--ink);
	color: var(--ink);
}

.donation-band > .donation-band__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 22px;
	max-width: var(--site-width);
	margin-inline: auto;
}

.donation-band__inner > * {
	margin-block: 0;
}

.donation-band .donation-band__main {
	flex: 0 1 auto;
	max-width: 640px;
}

.donation-band .pill {
	display: inline-block;
	margin: 0;
	padding: 8px 18px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--gold);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.82rem;
}

.donation-band__amount strong:first-child {
	margin-left: 0;
}

.donation-band .donation-band__amount {
	margin: 10px 0 0;
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 1.5rem;
	line-height: 1.4;
}

.donation-band__amount strong {
	margin: 0 10px;
	font-family: var(--font-num);
	font-size: 2.2rem;
	font-weight: 700;
}

.donation-band .donation-bar {
	height: 16px;
	margin-top: 16px;
	border-radius: 999px;
	background: rgba(36, 26, 21, 0.18);
	overflow: hidden;
}

.donation-bar .donation-bar__fill {
	width: 3%;
	min-width: 8px;
	height: 100%;
	margin: 0;
	border-radius: 999px;
	background: var(--coral);
	color: transparent;
	font-size: 0;
	line-height: 0;
	overflow: hidden;
}

/* In the editor the percentage stays readable so it can be edited. */
.editor-styles-wrapper .donation-bar .donation-bar__fill {
	min-width: 3.5em;
	color: #fff;
	font-size: 11px;
	line-height: 16px;
	text-align: center;
}

.donation-band .donation-band__remaining {
	margin: 0;
	padding: 12px 20px;
	border-radius: 14px;
	background: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	white-space: nowrap;
}

/* ==========================================================================
   Story (Voice)
   ========================================================================== */
.story {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 52px;
	align-items: start;
}

.section > .story {
	margin-top: 0;
	margin-bottom: 96px;
}

.section > .story:last-child {
	margin-bottom: 0;
}

.story.story--reverse {
	grid-template-columns: 1.15fr 0.85fr;
}

.story--reverse > .story__media {
	order: 2;
}

.story__media {
	position: relative;
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
}

.story__media .wp-block-image {
	margin: 0;
}

.story__media .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.story__media .story__tag {
	position: absolute;
	top: 24px;
	left: 24px;
	z-index: 2;
	margin: 0;
	padding: 10px 18px;
	border-radius: 12px;
	background: rgba(255, 248, 238, 0.95);
	color: var(--plum-deep);
	font-family: var(--font-display);
	font-weight: 700;
}

.story__tag strong {
	margin-right: 6px;
	font-family: var(--font-num);
	font-size: 1.05rem;
	color: var(--coral-deep);
}

.story__body .story__lead {
	margin: 0;
	font-family: var(--font-serif);
	font-size: 1.55rem;
	line-height: 1.7;
	color: var(--gold);
}

.story__body p:not(.story__lead) {
	margin: 1.5rem 0 0;
	font-size: 0.98rem;
	opacity: 0.9;
}

.story__body .story__lead + p {
	margin-top: 22px;
}

/* ==========================================================================
   Data (Fact)
   ========================================================================== */
.stat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.stat-card {
	padding: 30px 22px;
	border-radius: 18px;
	background: #fff;
	border: 1px solid rgba(62, 85, 40, 0.22);
	text-align: center;
}

.stat-card .wp-block-image {
	width: 44px;
	margin: 0 auto 16px;
}

.stat-card .wp-block-image img {
	display: block;
	width: 44px;
	height: 44px;
}

.stat-card .stat-num {
	margin: 0;
	font-family: var(--font-num);
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--mint-deep);
}

.stat-num strong {
	margin-right: 2px;
	font-size: clamp(1.9rem, 3vw, 2.4rem);
	font-weight: 600;
	color: var(--coral-deep);
}

.stat-card .stat-label {
	margin: 10px 0 0;
	font-size: 0.85rem;
	line-height: 1.7;
	color: rgba(36, 26, 21, 0.75);
}

.section > .source-note {
	margin-top: 44px;
	margin-bottom: 0;
	font-size: 0.78rem;
	text-align: center;
	color: var(--mint-deep);
	opacity: 0.8;
}

/* ==========================================================================
   Programs (いちじくわぁるど)
   ========================================================================== */
.section > .card-grid--programs {
	margin-top: 66px;
}

.program-card {
	position: relative;
	border-radius: var(--radius-card);
	background: #fff;
	border: 1px solid var(--line);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: transform 0.3s;
}

.program-card:hover {
	transform: translateY(-4px);
}

.program-card .wp-block-image {
	height: 200px;
	margin: 0;
}

.program-card .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.program-card .program-card__no {
	position: absolute;
	top: 16px;
	left: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.3);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	font-family: var(--font-num);
	font-size: 1.2rem;
	line-height: 1;
	color: #fff;
}

.program-card .program-card__text {
	margin: 0;
	padding: 28px;
	font-size: 0.92rem;
	color: var(--ink-78);
}

/* ==========================================================================
   Partners (logos)
   ========================================================================== */
.logo-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
}

.logo-grid .wp-block-image {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
}

.logo-grid .wp-block-image img {
	position: absolute;
	top: 20px;
	left: 20px;
	width: calc(100% - 40px);
	height: calc(100% - 40px);
	object-fit: contain;
}

/* ==========================================================================
   Voices
   ========================================================================== */
.quote-card {
	padding: 30px;
	border-radius: var(--radius-card);
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.quote-card::before {
	content: "\0022";
	display: block;
	font-family: var(--font-num);
	font-size: 2.4rem;
	line-height: 1;
	opacity: 0.6;
}

.quote-card .quote-card__text {
	margin: 8px 0 0;
	font-size: 0.94rem;
}

.quote-card .quote-card__by {
	margin: 20px 0 0;
	font-size: 0.82rem;
	opacity: 0.85;
}

.card-grid.card-grid--tight {
	gap: 22px;
}

.voice-card {
	padding: 26px;
	border-radius: var(--radius-card);
	background: #fff;
	border: 1px solid var(--line);
}

.voice-card .voice-card__text {
	margin: 0;
	font-size: 0.92rem;
	color: var(--ink-78);
}

.voice-card .voice-card__by {
	margin: 16px 0 0;
	font-size: 0.82rem;
	color: rgba(36, 26, 21, 0.6);
}

.voice-card__by strong {
	display: block;
	font-weight: 700;
	color: var(--coral-deep);
}

/* ==========================================================================
   Message
   ========================================================================== */
.message {
	display: grid;
	grid-template-columns: 0.65fr 1.35fr;
	gap: 52px;
	align-items: start;
}

.message > .wp-block-image {
	aspect-ratio: 4 / 5;
	margin: 0;
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
}

.message > .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.message__body .message__role {
	margin: 0;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--coral-deep);
}

.message__body .message__name {
	margin: 8px 0 0;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.5;
}

.message__body p:not(.message__role) {
	margin: 18px 0 0;
	color: var(--ink-78);
}

/* ==========================================================================
   Donate plans
   ========================================================================== */
.card-grid.plan-grid {
	gap: 22px;
	align-items: start;
}

.plan-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 32px 26px;
	border-radius: var(--radius-card);
	background: #fff;
	color: var(--ink);
}

.plan-card.plan-card--featured {
	top: -8px;
	outline: 3px solid var(--gold);
}

.plan-card .plan-card__badge {
	position: absolute;
	top: -13px;
	right: 22px;
	margin: 0;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--gold);
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.5;
}

.plan-card .plan-card__price {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--ink-65);
}

.plan-card__price strong {
	font-family: var(--font-num);
	font-size: 1.9rem;
	font-weight: 600;
	color: var(--coral-deep);
}

.plan-card .plan-card__desc {
	flex: 1;
	margin: 14px 0 0;
	font-size: 0.9rem;
	color: var(--ink-78);
}

.plan-card .wp-block-buttons {
	margin-top: 22px;
}

.plan-card .wp-block-button,
.plan-card .wp-block-button__link {
	width: 100%;
}

.section > .donate-note {
	margin-top: 38px;
	margin-bottom: 0;
	text-align: center;
	font-size: 0.85rem;
	opacity: 0.85;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.section > .faq {
	max-width: 760px;
}

.faq > .faq-item {
	margin: 0;
	border-bottom: 1px solid var(--line);
}

.faq-item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 0;
	list-style: none;
	cursor: pointer;
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.5;
}

.faq-item > summary::-webkit-details-marker {
	display: none;
}

.faq-item > summary::after {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	background:
		linear-gradient(var(--coral-deep), var(--coral-deep)) center / 100% 2.5px no-repeat,
		linear-gradient(var(--coral-deep), var(--coral-deep)) center / 2.5px 100% no-repeat;
	transition: background-size 0.25s;
}

.faq-item[open] > summary::after {
	background-size: 100% 2.5px, 2.5px 0;
}

.faq-item > p {
	max-width: 64ch;
	margin: 0;
	padding-bottom: 22px;
	font-size: 0.94rem;
	color: rgba(36, 26, 21, 0.75);
}

/* ==========================================================================
   Tables (企業概要 / 役員名簿)
   ========================================================================== */
.wp-block-table.info-table,
.wp-block-table.roster-table {
	border-radius: var(--radius-card);
	background: #fff;
	border: 1px solid var(--line);
	overflow: hidden;
}

.section > .info-table {
	max-width: 760px;
}

.info-table table,
.roster-table table {
	width: 100%;
	border-collapse: collapse;
}

.wp-block-table.info-table td,
.wp-block-table.roster-table td,
.wp-block-table.roster-table th {
	padding: 20px 28px;
	border: 0;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
	text-align: left;
	color: rgba(36, 26, 21, 0.85);
}

.wp-block-table.info-table tr:last-child td,
.wp-block-table.roster-table tbody tr:last-child td {
	border-bottom: 0;
}

.wp-block-table.info-table td:first-child {
	box-sizing: border-box;
	width: 180px;
	background: rgba(255, 248, 238, 0.6);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--ink);
}

.info-table a {
	font-family: var(--font-num);
	color: var(--coral-deep);
	text-decoration: none;
	border-bottom: 1px solid var(--line);
}

.info-table a[href^="tel:"] {
	color: rgba(36, 26, 21, 0.85);
	border-bottom: 0;
}

.wp-block-table.roster-table thead {
	border-bottom: 0;
}

.wp-block-table.roster-table th {
	background: rgba(255, 248, 238, 0.6);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--ink);
}

.wp-block-table.roster-table td:first-child {
	font-family: var(--font-display);
	font-weight: 700;
}

.wp-block-table.info-table figcaption,
.wp-block-table.roster-table figcaption {
	margin: 0;
	padding: 12px 28px 16px;
	font-size: 0.8rem;
	text-align: left;
	color: var(--ink-65);
	border-top: 1px solid var(--line);
}

/* ==========================================================================
   Posts (お知らせ)
   ========================================================================== */
.wp-block-post-template.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	max-width: none;
}

.wp-block-post-template.post-grid > li {
	margin: 0;
}

.post-card {
	height: 100%;
	border-radius: var(--radius-card);
	background: #fff;
	border: 1px solid var(--line);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: transform 0.3s;
}

.post-card:hover {
	transform: translateY(-4px);
}

.post-card .wp-block-post-featured-image {
	margin: 0;
}

.post-card:not(:has(.wp-block-post-featured-image))::before {
	content: "";
	display: block;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--mint), var(--blush));
}

.post-card > .post-card__body {
	margin: 0;
	padding: 22px 24px 26px;
}

.post-card .wp-block-post-date {
	font-family: var(--font-num);
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--coral-deep);
}

.post-card .wp-block-post-title {
	margin: 6px 0 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.6;
}

.post-card .wp-block-post-title a {
	color: var(--ink);
	text-decoration: none;
}

.post-card .wp-block-post-title a:hover {
	color: var(--coral-deep);
}

.post-card .wp-block-post-excerpt {
	margin: 10px 0 0;
	font-size: 0.88rem;
	line-height: 1.8;
	color: rgba(36, 26, 21, 0.75);
}

.post-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.post-loop .wp-block-query-pagination {
	margin-top: 48px;
	font-family: var(--font-num);
	font-weight: 600;
}

.post-loop .wp-block-query-pagination a {
	text-decoration: none;
}

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
	padding: 72px var(--gutter) 56px;
	background: var(--cream);
	border-bottom: 1px solid var(--line);
}

.page-hero > * {
	max-width: var(--site-width);
	margin-left: auto;
	margin-right: auto;
}

.page-hero h1 {
	margin-top: 0;
	margin-bottom: 0;
}

.page-hero .wp-block-post-date,
.page-hero .wp-block-post-terms {
	margin-top: 14px;
	font-size: 0.85rem;
	color: var(--ink-65);
}

.page-hero .page-hero__meta {
	margin-top: 14px;
	gap: 14px;
	font-size: 0.85rem;
}

.page-hero .page-hero__meta > * {
	margin: 0;
}

.page-hero .wp-block-post-date {
	font-family: var(--font-num);
	font-weight: 600;
	color: var(--coral-deep);
}

.page-hero .wp-block-post-terms a {
	display: inline-block;
	padding: 2px 12px;
	border-radius: 999px;
	background: var(--mint);
	color: var(--mint-deep);
	font-weight: 700;
	text-decoration: none;
}

.page-body {
	padding-top: 64px;
	padding-bottom: 100px;
}

.page-body--wide {
	padding: 64px var(--gutter) 100px;
}

.page-body--wide > * {
	max-width: var(--site-width);
	margin-left: auto;
	margin-right: auto;
}

.page-body .wp-block-post-featured-image {
	margin-bottom: 40px;
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
}

.entry-content {
	line-height: 1.9;
}

.entry-content h2 {
	margin-top: 2.6em;
	padding-bottom: 0.4em;
	border-bottom: 2px solid var(--gold);
	font-size: 1.6rem;
}

.entry-content h3 {
	margin-top: 2.2em;
	font-size: 1.25rem;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content img {
	border-radius: 12px;
}

.entry-content h2 + .wp-block-file {
	margin-top: 1.2rem;
}

.entry-content .wp-block-file {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 20px;
	font-size: 1rem;
	padding: 16px 22px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--line);
}

.post-footer {
	margin-top: 64px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.post-footer .post-footer__nav {
	gap: 16px;
	font-size: 0.9rem;
}

.post-footer .wp-block-post-navigation-link a {
	text-decoration: none;
}

.post-footer .wp-block-buttons {
	margin-top: 32px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	padding: 56px var(--gutter) 28px;
	background: var(--ink);
	color: rgba(255, 248, 238, 0.75);
	font-size: 0.85rem;
}

.site-footer > * {
	max-width: var(--site-width);
	margin-left: auto;
	margin-right: auto;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 248, 238, 0.14);
}

.site-footer .wp-block-site-title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 1.25rem;
	letter-spacing: 0.02em;
}

.site-footer .wp-block-site-title a {
	color: var(--paper);
	text-decoration: none;
}

.site-footer .footer-heading {
	margin: 0 0 16px;
	font-family: var(--font-display);
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	color: var(--paper);
}

.site-footer .footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .footer-links li {
	margin: 0 0 10px;
}

.site-footer .footer-links a {
	color: rgba(255, 248, 238, 0.72);
	text-decoration: none;
}

.site-footer .footer-links a:hover {
	color: var(--gold);
}

.site-footer .site-footer__copy {
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 24px;
	font-size: 0.78rem;
	color: rgba(255, 248, 238, 0.42);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
	.wp-block-post-template.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 781px) {
	.card-grid,
	.story,
	.story.story--reverse,
	.message {
		grid-template-columns: minmax(0, 1fr);
	}

	.story {
		gap: 30px;
	}

	.section > .story {
		margin-bottom: 64px;
	}

	.story--reverse > .story__media {
		order: 0;
	}

	.stat-grid,
	.logo-grid,
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.message > .wp-block-image {
		max-width: 260px;
	}

	.plan-card.plan-card--featured {
		top: 0;
	}

	.wp-block-cover.hero {
		padding-top: 90px;
		padding-bottom: 44px;
	}

	.donation-band > .donation-band__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.donation-band .donation-band__main {
		flex: none;
		width: 100%;
	}

	.wp-block-table.info-table tr,
	.wp-block-table.info-table td {
		display: block;
		width: auto;
	}

	.wp-block-table.info-table td:first-child {
		width: auto;
		padding-bottom: 0;
		border-bottom: 0;
		background: transparent;
	}

	.wp-block-table.info-table td:nth-child(2) {
		padding-top: 8px;
	}

	.wp-block-table.info-table tr:last-child td:first-child {
		border-bottom: 0;
	}

	.wp-block-table.roster-table td,
	.wp-block-table.roster-table th {
		padding: 14px 16px;
		font-size: 0.88rem;
	}
}

@media (max-width: 600px) {
	.section {
		padding-top: 72px;
		padding-bottom: 72px;
	}

	.wp-block-cover.hero {
		min-height: 560px;
	}

	.wp-block-post-template.post-grid,
	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.site-header .site-header__nav {
		gap: 12px;
	}

	.donation-band .donation-band__remaining {
		white-space: normal;
	}
}

/* Section head without the 620px text limit */
.section-head.section-head--wide > * {
	max-width: none;
}

/* File rows on the disclosure page */
.entry-content .wp-block-file > a:not(.wp-block-file__button) {
	font-family: var(--font-display);
	font-weight: 700;
}

.entry-content .wp-block-file .wp-block-file__button {
	margin-left: 0;
	padding: 0.5rem 1.25rem;
	font-size: 0.82rem;
	color: #fff;
	text-decoration: none;
}

.entry-content .wp-block-file .wp-block-file__embed {
	order: 3;
	flex: 0 0 100%;
	margin-bottom: 0;
}
