/*!
Theme Name: JayNii
Theme URI: https://www.jayniiwise.com
Author: JayNii Foundation
Description: A clean, modern, lightweight theme for the JayNii Foundation — a youth & community nonprofit in Accra, Ghana. Brand colours and kente motif drawn from the foundation logo. Hybrid theme: classic PHP templates with block template parts and an editable block homepage. No build step, PHP 8 ready.
Version: 1.2.0
Requires at least: 6.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jaynii
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	/* Brand palette. The values now live in theme.json so the block editor
	   offers them; these are aliases so every existing var(--navy) keeps
	   working, and so a Global Styles palette edit flows through the design.

	   Direction matters: alias theme.json -> here, never the reverse. The two
	   property names differ, so this resolves at computed-value time and is
	   order-independent. Pointing the theme.json palette at var(--navy) instead
	   would break in the editor iframe and the Style Book, where this
	   stylesheet may not be loaded. */
	--navy:        var(--wp--preset--color--navy);
	--navy-deep:   var(--wp--preset--color--navy-deep);
	--green:       var(--wp--preset--color--green);
	--green-dark:  var(--wp--preset--color--green-dark);
	--orange:      var(--wp--preset--color--orange);
	--orange-dark: var(--wp--preset--color--orange-dark);
	--red:         var(--wp--preset--color--red);
	--gold:        var(--wp--preset--color--gold);

	/* Neutrals */
	--cream:  var(--wp--preset--color--cream);
	--paper:  var(--wp--preset--color--paper);
	--ink:    var(--wp--preset--color--ink);
	--slate:  var(--wp--preset--color--slate);
	--line:   var(--wp--preset--color--line);

	/* Semantic */
	--bg:        var(--cream);
	--text:      var(--ink);
	--muted:     var(--slate);
	--brand:     var(--green);
	--brand-ink: var(--navy);

	/* Layout */
	--container: var(--wp--custom--container);
	--gap:       var(--wp--custom--gap);
	--radius:    var(--wp--custom--radius);
	--radius-sm: var(--wp--custom--radius-sm);

	/* Shadows stay literal: they need rgba() of the navy, which can't be
	   derived from a hex custom property without color-mix() gymnastics. */
	--shadow: 0 1px 2px rgba(20,41,78,.06), 0 8px 24px rgba(20,41,78,.08);
	--shadow-lg: 0 12px 40px rgba(20,41,78,.16);

	--font: var(--wp--preset--font-family--system);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.05rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--green-dark); text-underline-offset: 2px; }
a:hover { color: var(--orange-dark); }

h1, h2, h3, h4 {
	color: var(--brand-ink);
	line-height: 1.18;
	letter-spacing: -0.01em;
	margin: 0 0 .5em;
	font-weight: 800;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1.1rem; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gap); }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--tint { background: var(--paper); }
.section__head { max-width: 60ch; margin-bottom: 2rem; }
.section__head.is-centered { margin-inline: auto; text-align: center; }
.eyebrow {
	display: inline-block; text-transform: uppercase; letter-spacing: .14em;
	font-size: .8rem; font-weight: 700; color: var(--green-dark); margin-bottom: .6rem;
}
.lede { font-size: 1.2rem; color: var(--muted); }

/* Kente accent stripe — recurring brand motif */
.kente-stripe {
	height: 6px; border: 0; margin: 0;
	background: linear-gradient(90deg,
		var(--green) 0 20%, var(--gold) 20% 40%, var(--red) 40% 60%,
		var(--navy) 60% 80%, var(--orange) 80% 100%);
}

/* Accessibility */
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--navy); color: #fff; padding: .75rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .72rem 1.4rem; border-radius: 999px;
	font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none;
	border: 2px solid transparent; cursor: pointer; transition: transform .08s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--accent { background: var(--orange); color: #fff; }
.btn--accent:hover { background: var(--orange-dark); color: #fff; }
.btn--outline { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--on-dark { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--on-dark:hover { background: #fff; color: var(--navy); }

/* ==========================================================================
   Site header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--line);
}
.site-header__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding-block: .7rem;
}
.site-branding { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.site-branding img, .custom-logo { width: auto; height: 56px; }
.site-title { font-size: 1.25rem; font-weight: 800; color: var(--navy); text-decoration: none; line-height: 1.1; }
.site-title span { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

.header-actions { display: flex; align-items: center; gap: .75rem; }

/* Primary navigation */
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.primary-nav a {
	display: block; padding: .5rem .8rem; border-radius: 8px;
	color: var(--navy); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--cream); color: var(--green-dark); }
.primary-nav li { position: relative; }

/* Dropdowns */
.primary-nav .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 220px;
	flex-direction: column; gap: 0; padding: .4rem; background: var(--paper);
	border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-item-has-children > a::after { content: "▾"; margin-left: .3rem; font-size: .8em; opacity: .7; }

/* Mobile nav toggle */
.nav-toggle {
	display: none; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
	background: var(--paper); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	content: ""; display: block; width: 22px; height: 2px; background: var(--navy); position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   Hero (front page)
   ========================================================================== */
.hero {
	position: relative; color: #fff; overflow: hidden;
	background:
		radial-gradient(1200px 600px at 80% -10%, rgba(47,158,65,.45), transparent 60%),
		radial-gradient(900px 500px at 0% 110%, rgba(240,138,31,.35), transparent 55%),
		linear-gradient(160deg, var(--navy-deep), var(--navy));
}
.hero__inner { padding-block: clamp(3rem, 8vw, 6rem); max-width: 760px; }
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255,255,255,.86); font-size: clamp(1.1rem, 2.2vw, 1.4rem); }
.hero__values { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.4rem 0; }
.hero__values li {
	font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	padding: .4rem .8rem; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

/* ==========================================================================
   Focus areas grid
   ========================================================================== */
.focus-grid {
	display: grid; gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.focus-card {
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.4rem; box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease;
}
.focus-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.focus-card .ico { font-size: 1.8rem; line-height: 1; display: block; margin-bottom: .6rem; }
.focus-card h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.focus-card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Feature cards (link to key pages) */
/* .feature-grid and .feature-card__top live in the block mappings section:
   they need to out-specify core's columns and separator rules. */
.feature-card {
	display: flex; flex-direction: column; background: var(--paper);
	border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.feature-card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.feature-card h3 { margin: 0; }
.feature-card p { margin: 0; color: var(--muted); }
.feature-card .more { margin-top: auto; margin-bottom: 0; font-weight: 700; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: rgba(255,255,255,.9); margin: .3rem 0 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ==========================================================================
   Page / entry content
   ========================================================================== */
.page-hero { background: var(--navy); color: #fff; }
.page-hero__inner { padding-block: clamp(2rem, 5vw, 3.2rem); }
.page-hero h1 { color: #fff; margin: 0; }
.breadcrumbs { font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: .5rem; }
.breadcrumbs a { color: rgba(255,255,255,.9); }

.content-area { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; }
.content-area.has-sidebar { grid-template-columns: 1fr; }
@media (min-width: 940px) {
	.content-area.has-sidebar { grid-template-columns: minmax(0,1fr) 260px; }
}

.entry-content { font-size: 1.08rem; }
.entry-content > * { margin-top: 0; }
.entry-content h2 { margin-top: 2rem; }
.entry-content h3 { margin-top: 1.6rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content img { height: auto; border-radius: var(--radius-sm); }
.entry-content a { color: var(--green-dark); }
.entry-content blockquote {
	margin: 1.5rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--orange);
	background: var(--cream); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content figure { margin: 1.5rem 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
/* Responsive video / embeds */
.entry-content iframe,
.entry-content .wp-video,
.entry-content video { display: block; max-width: 100%; margin: 1.5rem 0; }
.entry-content .wp-block-embed__wrapper,
.entry-content iframe[src*="youtube"],
.entry-content iframe[src*="youtu.be"] {
	aspect-ratio: 16 / 9; width: 100%; height: auto;
}

/* Sidebar / subpage nav */
.subnav { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.subnav h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.subnav ul { list-style: none; margin: 0; padding: 0; }
.subnav a { display: block; padding: .4rem .2rem; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); }
.subnav a:hover, .subnav .current a { color: var(--green-dark); }
.subnav li:last-child a { border-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.82); }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
	display: grid; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 3.5rem);
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer .footer-brand p { max-width: 36ch; }
.site-footer img { height: 64px; width: auto; margin-bottom: .8rem; background: #fff; padding: 6px; border-radius: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.contact-list { font-style: normal; }
.contact-list span { display: block; margin-bottom: .5rem; }
.site-footer__bottom {
	border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.2rem;
	display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
	font-size: .9rem; color: rgba(255,255,255,.6);
}

/* ==========================================================================
   404 / search
   ========================================================================== */
.notice-block { text-align: center; padding-block: clamp(3rem, 8vw, 5rem); }
.search-form { display: flex; gap: .5rem; max-width: 420px; }
.search-form input[type="search"] { flex: 1; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.notice-block__search { display: flex; justify-content: center; margin-top: 1.5rem; }

/* Post list (index.php — the blog/archive/search fallback) */
.entry--list { margin-bottom: 2.5rem; }
.entry__title { margin-bottom: .4rem; }
.entry__title a { text-decoration: none; color: var(--navy); }
.entry__title a:hover { color: var(--green-dark); }

/* ==========================================================================
   Responsive — mobile nav
   ========================================================================== */
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		position: fixed; inset: 64px 0 auto 0; background: var(--paper);
		border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
		max-height: 0; overflow: hidden; transition: max-height .25s ease;
	}
	.primary-nav.is-open { max-height: 80vh; overflow-y: auto; }
	.primary-nav ul { flex-direction: column; gap: 0; padding: .5rem var(--gap) 1rem; }
	.primary-nav a { padding: .8rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.primary-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0;
	}
	.header-actions .wp-block-button > .wp-block-button__link { padding: .5rem 1rem; font-size: .9rem; }
}
@media (max-width: 520px) {
	.header-actions .btn-label-long { display: none; }
}

/* ==========================================================================
   Hero media (page header images + homepage hero)
   --------------------------------------------------------------------------
   A real <img> is layered under the hero text rather than a CSS background,
   so WordPress can emit srcset and the browser can pick a size.

   The gradients on .hero / .page-hero above are deliberately left in place:
   they show through whenever there's no usable image (no featured image, or
   one that failed the JAYNII_HERO_MIN_WIDTH guard), so those pages keep the
   flat brand treatment instead of breaking.
   ========================================================================== */

.hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.hero-media__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;   /* faces tend to sit above centre */
	display: block;
}

/* Scrim. Keeps white text legible over an arbitrary photo — the diagonal
   keeps the darkest part behind the text without flattening the whole image. */
.hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(105deg, rgba(10,22,44,.82) 0%, rgba(10,22,44,.55) 55%, rgba(10,22,44,.35) 100%),
		linear-gradient(to top, rgba(10,22,44,.5), transparent 60%);
}

/* Lift the text above the media layer. */
.hero.has-media,
.page-hero.has-media {
	position: relative;
	overflow: hidden;
}

.hero.has-media .hero__inner,
.page-hero.has-media .page-hero__inner {
	position: relative;
	z-index: 1;
}

/* With a photo behind it, the page band needs more room to breathe than the
   flat colour version does. */
.page-hero.has-media .page-hero__inner {
	padding-block: clamp(3rem, 7vw, 5rem);
}

.page-hero.has-media h1 {
	text-shadow: 0 1px 2px rgba(10, 22, 44, .45);
}

.hero.has-media .hero__inner {
	padding-block: clamp(4rem, 10vw, 7.5rem);
}

.hero.has-media h1,
.hero.has-media .lede {
	text-shadow: 0 1px 3px rgba(10, 22, 44, .5);
}

/* Narrow screens crop hard, so bias the framing tighter and keep the band
   from eating the whole viewport. */
@media (max-width: 700px) {
	.hero-media__img { object-position: center 35%; }
	.hero.has-media .hero__inner { padding-block: clamp(2.5rem, 12vw, 4rem); }
}

@media (prefers-contrast: more) {
	.hero-media::after {
		background: rgba(10, 22, 44, .88);
	}
}

/* ==========================================================================
   Homepage brand graphic
   --------------------------------------------------------------------------
   Stands in for the former "Our mission" / "What we do" sections. The artwork
   carries that content visually; the accompanying .screen-reader-text block in
   front-page.php carries it as real text for screen readers and crawlers.
   ========================================================================== */

.brand-graphic .container {
	display: flex;
	justify-content: center;
}

.brand-graphic__img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 900px;   /* square artwork: full container width is overwhelming */
}

/* ==========================================================================
   Block mappings
   --------------------------------------------------------------------------
   The homepage and the header/footer template parts are built from core
   blocks, so the theme's own classes are applied via each block's `className`
   attribute. These rules bridge the two.

   CONVENTION: always compound a theme class with the block class it lands on
   -- `.hero.wp-block-cover`, not `.hero`. Core ships rules like
   `.wp-block-cover .wp-block-cover__background` at specificity (0,2,0); a bare
   theme class at (0,1,0) loses, and a tie would be decided by stylesheet order
   we don't want to depend on.

   The focus areas are still rendered by the jaynii/focus-areas block in PHP,
   so .focus-grid / .focus-card need no mapping -- that markup is unchanged.
   The feature cards became core Columns, so they do; see the end of this
   section.
   ========================================================================== */

/* --- Hero: core/cover ----------------------------------------------------
   Core's cover is a centred flexbox with a 430px floor and 1em padding. This
   hero is a full-bleed band whose height comes from .hero__inner's padding,
   so all four are undone. */
.hero.wp-block-cover {
	display: block;
	min-height: 0;
	padding: 0;
}

.hero.wp-block-cover .wp-block-cover__inner-container {
	width: 100%;
}

/* Matches .hero-media__img, which page.php still uses for its own heroes. */
.hero.wp-block-cover .wp-block-cover__image-background {
	object-position: center 40%;   /* faces tend to sit above centre */
}

/* The scrim, lifted verbatim from .hero-media::after. Core puts this element
   at opacity:.5 and expects a flat dim colour; we want the diagonal gradient
   instead, at full strength. */
/* `span.` is deliberate. Core's own overlay rule --
   `.wp-block-cover .has-background-dim:not([class*=-background-color])` --
   is also (0,3,0), and it paints background-color:#000, which would show
   through the transparent end of the gradient below. The type selector breaks
   the tie outright instead of relying on jaynii-style being enqueued last. */
.hero.wp-block-cover span.wp-block-cover__background {
	opacity: 1;
	background:
		linear-gradient(105deg, rgba(10,22,44,.82) 0%, rgba(10,22,44,.55) 55%, rgba(10,22,44,.35) 100%),
		linear-gradient(to top, rgba(10,22,44,.5), transparent 60%);
}

@media (max-width: 700px) {
	.hero.wp-block-cover .wp-block-cover__image-background { object-position: center 35%; }
}

@media (prefers-contrast: more) {
	.hero.wp-block-cover span.wp-block-cover__background { background: rgba(10, 22, 44, .88); }
}

/* --- Value pills: core/list ---------------------------------------------- */
.hero__values.wp-block-list {
	list-style: none;
	padding: 0;
	margin: 1.4rem 0;
}

/* --- Buttons: core/button -----------------------------------------------
   `classic-theme-styles` is not loaded once a theme has theme.json, so the
   theme owns button appearance outright. Core's remaining rules are
   `.wp-block-button__link` (0,1,0) and `:where(.wp-block-button__link)` (0,0,0),
   both beaten by the child selector below.

   No style selected == .btn--primary. The two registered styles
   (is-style-accent, is-style-on-dark) appear in the editor's Styles panel, so
   picking a button treatment is a menu choice rather than a typed class. */
.wp-block-button > .wp-block-button__link {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .72rem 1.4rem; border-radius: 999px;
	font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none;
	border: 2px solid transparent; cursor: pointer;
	transition: transform .08s ease, background .15s ease, color .15s ease;
	height: auto;   /* core sets height:100%, which stretches in a flex row */
	background: var(--green); color: #fff;
}
.wp-block-button > .wp-block-button__link:hover { background: var(--green-dark); color: #fff; }
.wp-block-button > .wp-block-button__link:active { transform: translateY(1px); }

.wp-block-button.is-style-accent > .wp-block-button__link { background: var(--orange); color: #fff; }
.wp-block-button.is-style-accent > .wp-block-button__link:hover { background: var(--orange-dark); color: #fff; }

.wp-block-button.is-style-on-dark > .wp-block-button__link {
	background: transparent; border-color: rgba(255,255,255,.6); color: #fff;
}
.wp-block-button.is-style-on-dark > .wp-block-button__link:hover { background: #fff; color: var(--navy); }

/* Button rows. Matches .hero__cta / .cta-band__actions, which core would
   otherwise lay out with its own flex rules and a 0.5em fallback gap. */
.hero__cta.wp-block-buttons,
.cta-band__actions.wp-block-buttons {
	display: flex; flex-wrap: wrap; gap: .75rem;
}
.hero__cta.wp-block-buttons { margin-top: 1.6rem; }

/* --- Brand graphic: core/image ------------------------------------------- */
.brand-graphic .wp-block-image {
	margin: 0;
	width: 100%;
	max-width: 900px;   /* square artwork: full container width is overwhelming */
}
.brand-graphic .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* --- Feature cards: core/columns + core/separator ------------------------
   These were a PHP array until the cards became editable content. The card
   colour is now a palette choice on a core/separator rather than an inline
   style, so it's a dropdown in the editor.

   Two core rules have to be beaten outright rather than on source order:
     .wp-block-columns                                        display: flex
     .wp-block-separator:not(.is-style-wide):not(.is-style-dots)  width: 100px
   The second is (0,3,0), so the separator selector below is deliberately
   four classes deep. */
/* Grid rather than core's flex, so the cards keep the auto-fit behaviour used
   elsewhere on the page instead of core's stack-below-782px. That also makes
   core's flex-wrap and column-width rules inert, so they need no undoing.
   .feature-card itself needs no mapping: core/column contributes only
   flex-grow / min-width / overflow-wrap, none of which the card chrome uses. */
.feature-grid.wp-block-columns {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card.wp-block-column .feature-card__top.wp-block-separator {
	width: 100%;
	max-width: none;
	height: 6px;
	border: 0;
	margin: 0;
}

/* "Learn more" was a bare <a>; as a block it's a paragraph wrapping the link,
   so the auto margin that pins it to the card's base moves to the paragraph. */
/* Only the underline needs suppressing: the base `a` rule already supplies
   var(--green-dark) and var(--orange-dark) on hover, which is exactly what this
   link used when .more was the anchor itself. */
.feature-card .more a {
	text-decoration: none;
}

/* --- Kente stripe as an insertable core/separator ------------------------ */
.wp-block-separator.is-style-kente {
	height: 6px; border: 0; margin: 0; max-width: none;
	background: linear-gradient(90deg,
		var(--green) 0 20%, var(--gold) 20% 40%, var(--red) 40% 60%,
		var(--navy) 60% 80%, var(--orange) 80% 100%);
}

/* --- Header branding: core/site-logo, core/site-title, core/site-tagline ---
   The tagline used to be a <span> nested inside the site-title link. Core
   gives two sibling blocks instead, so .site-branding__text stacks them and
   these rules carry the old .site-title / .site-title span declarations. */
.site-branding .wp-block-site-logo { line-height: 0; }
.site-branding .wp-block-site-logo img { height: 56px; width: auto; max-width: none; }

.site-branding__text { min-width: 0; }

.site-branding .wp-block-site-title {
	margin: 0;
	font-size: 1.25rem; font-weight: 800; line-height: 1.1;
}
.site-branding .wp-block-site-title a {
	color: var(--navy); text-decoration: none;
}
.site-branding .wp-block-site-tagline {
	margin: 0;
	display: block; font-size: .72rem; font-weight: 600;
	color: var(--muted); letter-spacing: .02em;
}

/* The Donate button now sits inside a core/buttons wrapper. */
.header-actions .wp-block-buttons { display: flex; margin: 0; }

/* --- Footer columns ------------------------------------------------------
   The contact block was an <address> holding <span>s. core/group can't render
   an <address> (tagName allows div/header/main/section/article/aside/footer
   only), so it is a group of paragraphs -- one per line, each independently
   editable and reorderable. */
.contact-list p { display: block; margin: 0 0 .5rem; }

.site-footer .footer-brand .wp-block-site-logo { line-height: 0; }
