/* Robokids Africa WordPress theme: main styles
   Palette: robot blue, signal orange, sunshine yellow, ink navy, sky and butter tints. */

:root {
	--blue: #1f5fd6;
	--blue-dark: #1747a3;
	--orange: #ff8a1f;
	--orange-dark: #f07400;
	--yellow: #ffd23f;
	--ink: #13224a;
	--text: #2b3553;
	--muted: #5a6582;
	--sky: #eaf3ff;
	--butter: #fff4cc;
	--white: #ffffff;
	--line: rgba(19, 34, 74, 0.12);
	--ok: #1f8a4c;
	--err: #c0341d;

	--display: "Baloo 2", "Nunito", system-ui, sans-serif;
	--sans: "Nunito", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--head: var(--display);
	--body: var(--sans);
	--heading-weight: 800;

	--wrap: 1180px;
	--gutter: clamp(20px, 5vw, 48px);
	--section: clamp(56px, 8vw, 104px);
	--header-h: 76px;
	--r-lg: 24px;
	--r-md: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font: 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.1; margin: 0 0 .45em; font-weight: 700; }
h1, h2 { font-weight: var(--heading-weight, 800); }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--text); max-width: 60ch; }
.muted { color: var(--muted); }

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section.sky { background: var(--sky); }
.section.butter { background: var(--butter); }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ================= Buttons ================= */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
	font: 800 1rem/1 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-donate { background: var(--orange); color: var(--ink); border-color: var(--orange); box-shadow: 0 4px 0 var(--orange-dark); }
.btn-donate:hover { background: #ff9a3d; color: var(--ink); }
.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 4px 0 var(--blue-dark); }
.btn-blue:hover { background: #2a6ee8; color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ================= Top bar and header ================= */
.topbar { background: var(--ink); color: rgba(255, 255, 255, .85); font-size: .9rem; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .study { margin-left: auto; font-weight: 700; color: var(--yellow); }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: var(--ink); font: 800 1.5rem/1 var(--head); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand img { max-height: 54px; width: auto; }
.brand .africa { color: var(--blue); }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; flex-direction: column; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 16px 30px rgba(19, 34, 74, .1); z-index: 5; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: flex; }
.site-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; }
.site-nav a:hover { background: var(--sky); color: var(--blue-dark); }
.site-nav a[aria-current="page"], .site-nav .current-menu-item > a { background: var(--sky); color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { min-height: 44px; padding: 0 20px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); font-size: 1.3rem; cursor: pointer; }

/* ================= Photos: placeholder + "brick" frame ================= */
.ph { position: relative; overflow: hidden; border-radius: var(--r-md); background: linear-gradient(135deg, #d9e8ff, #fff0b8); aspect-ratio: 4 / 3; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph::after {
	content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 72px 16px 16px;
	font: 700 1.05rem/1.25 var(--head); color: rgba(19, 34, 74, .55);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%2313224a' stroke-opacity='.25' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='8' width='14' height='11' rx='3'/%3E%3Cpath d='M12 4v4M9 13h.01M15 13h.01M9 16h6M2 12v3M22 12v3'/%3E%3C/svg%3E") center calc(50% - 22px) / 44px no-repeat;
}
.ph.has-img::after { content: none; }

.brick { position: relative; padding: 14px; border-radius: 28px; background: var(--yellow); }
.brick::before {
	content: ""; position: absolute; left: 32px; right: 32px; top: -14px; height: 18px;
	background: radial-gradient(circle at 16px 12px, var(--brick-stud, #ffc21a) 11px, transparent 12px) 0 0 / 56px 18px repeat-x;
}
.brick.blue { background: var(--blue); --brick-stud: #3b78e6; }
.brick.orange { background: var(--orange); --brick-stud: #ff9f45; }
.brick .ph { border-radius: 16px; }

/* ================= Hero ================= */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); background: linear-gradient(180deg, var(--sky) 0%, #fff 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-photo .ph { aspect-ratio: 5 / 4; }
.award-pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 6px 16px 6px 8px; border-radius: 999px; background: #fff; border: 2px solid var(--yellow); font-weight: 700; color: var(--ink); font-size: .95rem; text-decoration: none; }
.award-pill .medal { width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
.fact { background: #fff; border: 2px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.fact strong { display: block; font: 800 1.6rem/1.1 var(--head); color: var(--blue); }
.fact span { color: var(--muted); font-size: .95rem; }

/* ================= Content blocks ================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
.photo-pair { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; align-items: end; }
.photo-pair .ph:first-child { aspect-ratio: 4 / 5; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { background: #fff; border-radius: var(--r-lg); padding: 14px 14px 22px; border: 2px solid var(--line); }
.value .ph { aspect-ratio: 1 / 1; margin-bottom: 16px; border-radius: 16px; }
.value h3 { font-size: 1.3rem; padding: 0 6px; }
.value p { color: var(--muted); padding: 0 6px; margin: 0; font-size: 1rem; }

/* Programme levels: a real progression, shown as steps */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: end; }
.level { border-radius: var(--r-lg); padding: 28px 26px; color: var(--ink); }
.level:nth-child(1) { background: #d7e6ff; min-height: 360px; }
.level:nth-child(2) { background: #ffe1c2; min-height: 420px; }
.level:nth-child(3) { background: #fff0b0; min-height: 480px; }
.level .step { display: inline-block; padding: 4px 14px; border-radius: 999px; background: #fff; font-weight: 800; font-size: .9rem; margin-bottom: 14px; }
.level h3 { font-size: 1.6rem; margin-bottom: 6px; }
.level .ages { font-weight: 800; color: var(--blue-dark); margin-bottom: 12px; }
.level ul { margin: 12px 0 0; padding-left: 20px; }
.level li { margin-bottom: 4px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 2px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.card .ph { border-radius: 0; aspect-ratio: 16 / 10; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); flex: 1; }
.card-body .btn { align-self: flex-start; margin-top: 8px; }
.tagline { align-self: flex-start; display: inline-block; margin-bottom: 10px; font-weight: 800; font-size: .9rem; color: var(--blue-dark); background: var(--sky); padding: 3px 12px; border-radius: 999px; }
.tagline.orange { background: #ffe8d1; color: #9a4700; }
.tagline.green { background: #dcf3e5; color: var(--ok); }

.award { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--ink); color: rgba(255, 255, 255, .88); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); }
.award h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.award p { margin: 0; max-width: 64ch; }
.award .medal-big { width: 110px; height: 110px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255, 210, 63, .2); }
.award .medal-big svg { width: 58px; height: 58px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery .ph { aspect-ratio: 1 / 1; }
.gallery .ph:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.partners { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.partner { padding: 14px 22px; border-radius: var(--r-md); background: #fff; border: 2px solid var(--line); font: 700 1.05rem var(--head); color: var(--ink); }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.person .ph { aspect-ratio: 1 / 1; border-radius: 50%; margin-bottom: 14px; max-width: 220px; }
.person h3 { font-size: 1.3rem; margin-bottom: 2px; }
.person p { color: var(--muted); margin-bottom: 4px; }

.faq { max-width: 820px; }
.faq details { background: #fff; border: 2px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font: 700 1.15rem var(--head); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--text); }

/* Donate band */
.give-band { background: var(--blue); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.give-band::after { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -120px; border-radius: 50%; background: var(--yellow); opacity: .18; }
.give-band h2 { color: #fff; }
.give-band p { color: rgba(255, 255, 255, .9); margin: 0; }
.quick-amounts { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.quick-amounts a { flex: 1 1 40%; text-align: center; padding: 14px 10px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .35); color: #fff; text-decoration: none; font-weight: 800; }
.quick-amounts a:hover { background: #fff; color: var(--blue-dark); }
.quick-amounts .btn { flex: 1 1 100%; }
.quick-amounts a.btn-donate { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.quick-amounts a.btn-donate:hover { background: #ff9a3d; color: var(--ink); }

/* ================= Page intro (inner pages) ================= */
.page-intro { background: var(--sky); padding: clamp(40px, 6vw, 72px) 0; }
.crumbs { font-size: .95rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.page-intro h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); }

/* ================= Forms ================= */
.panel { background: #fff; border: 2px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); }
.field { margin-bottom: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label, .label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 2px solid rgba(19, 34, 74, .18); background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 95, 214, .15); }
input[aria-invalid="true"] { border-color: var(--err); }
.hint { font-size: .92rem; color: var(--muted); margin: 6px 0 0; }
.error-text { color: var(--err); font-weight: 700; }
.form-ok { color: var(--ok); font-weight: 700; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend { font: 700 1.2rem var(--head); color: var(--ink); margin-bottom: 12px; padding: 0; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.choice { position: relative; margin: 0; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: block; height: 100%; padding: 14px 16px; border-radius: 14px; border: 2px solid rgba(19, 34, 74, .15); background: #fff; font-weight: 700; color: var(--ink); cursor: pointer; }
.choice span small { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.choice input:checked + span { border-color: var(--blue); background: var(--sky); box-shadow: inset 0 0 0 1px var(--blue); }
.choice input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }

.causes { grid-template-columns: repeat(2, 1fr); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.amounts .choice span { text-align: center; font-size: 1.05rem; }
.amount-input { position: relative; }
.amount-input .cur { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--muted); }
.amount-input input { padding-left: 64px; font-size: 1.2rem; font-weight: 800; }

.phone-wrap { display: flex; }
.phone-wrap .prefix { display: grid; place-items: center; padding: 0 14px; border: 2px solid rgba(19, 34, 74, .18); border-right: 0; border-radius: 12px 0 0 12px; background: var(--sky); font-weight: 700; color: var(--muted); }
.phone-wrap input { border-radius: 0 12px 12px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); }

/* Donate page layout */
.donate-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 28px; align-items: start; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary dl { margin: 0 0 18px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.summary .total dd { font: 800 1.5rem var(--head); color: var(--blue); }
.secure { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); margin-top: 12px; }

.pay-state { text-align: center; padding: 20px 0; }
.pay-state h2 { font-size: 2rem; }
.spinner { width: 54px; height: 54px; margin: 0 auto 20px; border-radius: 50%; border: 5px solid var(--sky); border-top-color: var(--blue); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-mark { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.pay-mark.ok { background: #dcf3e5; color: var(--ok); }
.pay-mark.fail { background: #fde2dc; color: var(--err); }
.receipt { display: inline-block; text-align: left; margin: 12px 0 24px; padding: 14px 20px; border-radius: 14px; background: var(--sky); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 520px)); gap: 32px; justify-content: center; }
.map { position: relative; min-height: 460px; border-radius: var(--r-lg); overflow: hidden; border: 2px solid var(--line); background: var(--sky); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; color: var(--ink); font-family: var(--head); font-size: 1.1rem; }

/* ================= Footer ================= */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .8); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: #fff; font-size: 1.25rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer .brand { color: #fff; margin-bottom: 12px; display: inline-flex; }
.site-footer .menu { list-style: none; margin: 0; padding: 0; }
.site-footer .menu a { color: #fff; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ================= Floating: chat and back to top ================= */
.wa-chat { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-bubble { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: 800 1rem var(--body); cursor: pointer; box-shadow: 0 10px 26px rgba(19, 34, 74, .25); }
.wa-bubble svg { width: 22px; height: 22px; }
.wa-panel { width: min(340px, calc(100vw - 40px)); background: #fff; border: 2px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 18px 48px rgba(19, 34, 74, .2); }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--sky); }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); font: 800 .95rem var(--head); color: var(--ink); flex: none; }
.wa-name { margin: 0; font-weight: 800; color: var(--ink); }
.wa-status { margin: 0; font-size: .85rem; color: var(--muted); }
.wa-close { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; font-size: 1.4rem; cursor: pointer; color: var(--muted); }
.wa-body { padding: 16px; }
.wa-msg { margin: 0; padding: 10px 14px; background: var(--butter); border-radius: 4px 16px 16px 16px; max-width: 88%; }
.wa-form { padding: 0 16px 16px; }
.wa-form textarea { min-height: 76px; margin-bottom: 10px; }
.wa-note { margin: 8px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.to-top { position: fixed; right: 20px; bottom: 88px; z-index: 65; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(19, 34, 74, .15); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ================= Responsive ================= */
/* ================= WordPress parts ================= */
.custom-logo-link { display: inline-flex; align-items: center; margin-right: auto; }
.custom-logo { max-height: var(--logo-h, 54px); width: auto; display: block; }
.brand .robot-mark { width: 40px; height: 40px; flex: none; }
.site-footer .brand .robot-mark { width: 36px; height: 36px; }
.admin-bar .site-header { top: 32px; }
.panel-title { font-size: 1.8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.after-grid { margin-top: 28px; }
.grant-fields { margin-top: 16px; }
.pay-extra { margin-top: 16px; }
.pay-extra .field { margin-top: 14px; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-media { display: block; }
.card h3 a, .card-title a { color: inherit; text-decoration: none; }
.card h3 a:hover, .card-title a:hover { color: var(--blue); }
.card-title { font-size: 1.45rem; }
.post-date { color: var(--muted); font-size: .95rem; margin-bottom: 6px; }
.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 28px; margin-bottom: 40px; }
.contact-grid.is-single { grid-template-columns: minmax(0, 720px); }
.partner.has-logo { padding: 10px 18px; }
.partner img { max-height: 48px; width: auto; }
.partner-cta { color: var(--blue); text-decoration: none; border-style: dashed; }
.partner-cta:hover { background: var(--sky); }
.progress { margin: 6px 0 18px; }
.progress .bar { height: 14px; border-radius: 999px; background: var(--sky); overflow: hidden; border: 2px solid rgba(19, 34, 74, .08); }
.progress .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--yellow)); border-radius: 999px; }
.progress p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.progress strong { color: var(--ink); }
.rk-admin-hint { background: #fff3cd; border: 2px dashed #e0b400; color: #5c4800; padding: 12px 16px; border-radius: 12px; font-size: .95rem; }
.entry-content { max-width: 780px; }
.project-split .entry-content { max-width: none; }
.entry-content > * + * { margin-top: 1em; }
.entry-content img { border-radius: var(--r-md); height: auto; }
.entry-content h2 { margin-top: 1.4em; }
.entry-photo { width: 100%; border-radius: var(--r-lg); margin-bottom: 24px; }
.pagination .nav-links { display: flex; gap: 8px; margin-top: 32px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.search-form { display: flex; gap: 10px; max-width: 520px; margin-bottom: 24px; }
.search-form label { flex: 1; margin: 0; }
.search-form .search-submit { min-height: 50px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--blue); color: #fff; font-weight: 800; cursor: pointer; }
.comments { margin-top: 48px; }
.comment-list { padding-left: 20px; }
.wp-caption-text, .gallery-caption { color: var(--muted); font-size: .9rem; }
.alignwide { max-width: 1100px; }
.aligncenter { margin-left: auto; margin-right: auto; }
/* Elementor: our sections set their own spacing */
.elementor-widget-container > .section, .elementor-widget-container > .hero, .elementor-widget-container > .page-intro { margin: 0; }
.elementor-section.elementor-section-boxed > .elementor-container { max-width: none; }
.elementor .ph img, .ph img { width: 100%; height: 100%; object-fit: cover; }
.elementor .brick .ph img, .elementor .value .ph img, .elementor .card .ph img { height: 100%; }

@media (max-width: 1040px) {
	.nav-toggle { display: inline-grid; place-items: center; }
	.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 18px; box-shadow: 0 16px 30px rgba(19, 34, 74, .08); }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; }
	.site-nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; }
	.cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
	.site-nav a { padding: 12px 14px; font-size: 1.1rem; }
	.hero-grid, .split, .give-band, .donate-grid, .contact-grid { grid-template-columns: 1fr; }
	.split.flip > :first-child { order: 0; }
	.values, .facts { grid-template-columns: repeat(2, 1fr); }
	.cards, .team { grid-template-columns: repeat(2, 1fr); }
	.levels { grid-template-columns: 1fr; }
	.level:nth-child(n) { min-height: 0; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.summary { position: static; }
}
@media (max-width: 640px) {
	.topbar .hide-sm { display: none; }
	.topbar .study { margin-left: 0; }
	.header-actions .btn-donate { padding: 0 16px; }
	.values, .cards, .cards.cols-2, .cards.cols-4, .team, .row, .footer-grid { grid-template-columns: 1fr; }
	.facts { grid-template-columns: 1fr 1fr; }
	.amounts { grid-template-columns: 1fr 1fr; }
	.causes { grid-template-columns: 1fr; }
	.gallery { grid-template-columns: 1fr 1fr; }
	.award { grid-template-columns: 1fr; text-align: left; }
	.award .medal-big { width: 80px; height: 80px; }
	.wa-bubble span { display: none; }
	.wa-bubble { width: 58px; height: 58px; padding: 0; justify-content: center; }
	.brand { font-size: 1.25rem; }
	.brand svg { width: 34px; height: 34px; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.spinner { animation-duration: 3s; }
	.btn, .to-top { transition: none; }
}
