/*
 * africaninnovation.org - restored design of the archived Avada theme (snapshot 2022-08-02).
 * Tokens taken from the archived Avada dynamic CSS: Ubuntu 300, text #53565a, primary #05c3de,
 * header/footer #53565a, site width 1250px, cream_dust background pattern.
 */

/* ------------------------------------------------------------------ fonts (self-hosted) */
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/ubuntu-300-latin.woff) format("woff"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/ubuntu-300-latin-ext.woff) format("woff"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ubuntu-400-latin.woff) format("woff"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ubuntu-400-latin-ext.woff) format("woff"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/ubuntu-700-latin.woff) format("woff"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/ubuntu-700-latin-ext.woff) format("woff"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Ubuntu"; font-style: italic; font-weight: 300 400; font-display: swap; src: url(../fonts/ubuntu-400i-latin.woff) format("woff"); }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ptsans-400-latin.woff) format("woff"); }

/* ------------------------------------------------------------------ tokens */
:root {
	--site-width: 1250px;
	--gutter: 30px;
	--text: #53565a;
	--muted: #747474;
	--primary: #05c3de;
	--grey: #53565a;
	--grey-hover: #607d8b;
	--light: #f6f6f6;
	--line: #e0dede;
	--programs: #df5461;
	--events: rgba(255, 235, 59, .3);
	--partners: #88d482;
	--blue: #0088cc;
	--font: "Ubuntu", "Helvetica Neue", Arial, sans-serif;
	--font-btn: "PT Sans", "Ubuntu", Arial, sans-serif;
	--header-h: 92px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
	margin: 0;
	font: 300 16px/1.5 var(--font);
	color: var(--text);
	background: #fafafa url(../img/cream_dust.png) repeat;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--grey); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 300; color: var(--text); margin: 1em 0 .7em; }
h1 { font-size: 35px; line-height: 1.14; }
h2 { font-size: 30px; line-height: 1.23; }
h3 { font-size: 27px; line-height: 1.22; }
h4 { font-size: 23px; line-height: 1.3; }
h5 { font-size: 20px; line-height: 1.4; }
h6 { font-size: 17px; line-height: 1.47; }
p { margin: 0 0 20px; }
ul, ol { margin: 0 0 20px; padding-left: 1.4em; }
blockquote { margin: 0 0 20px; padding: 20px 24px; background: var(--light); border-left: 4px solid var(--primary); font-style: italic; }
hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
figure { margin: 0 0 20px; }
figcaption, .wp-caption-text { font-size: 13px; color: var(--muted); margin-top: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 10px; top: -60px; z-index: 1000; padding: 10px 16px; background: #fff; color: var(--grey); font-weight: 400; }
.skip-link:focus { top: 10px; }
.wrap { width: 100%; max-width: calc(var(--site-width) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------------ header */
.site-header {
	position: absolute; top: 0; left: 0; right: 0; z-index: 100;
	background: rgba(83, 86, 90, .5);
	transition: background-color .3s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-sticky { position: fixed; background: var(--grey); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.site-header.is-sticky .brand__img { max-height: 60px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); padding-top: 1px; padding-bottom: 1px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand__img, .custom-logo { width: auto; max-height: 90px; transition: max-height .3s; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a {
	display: flex; align-items: center; height: var(--header-h); padding: 0 17.5px;
	font: 400 17px/1 var(--font); color: #fff;
}
.primary-nav .menu > li > a:hover, .primary-nav .menu > li > a:focus-visible { color: rgba(255, 255, 255, .65); }
.primary-nav .menu-item-has-children > a::after {
	content: ""; width: 6px; height: 6px; margin-left: 8px; margin-top: -3px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: 0; position: absolute; top: 100%; left: 0; min-width: 240px;
	background: var(--grey); box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.primary-nav .menu-item--lang .sub-menu { left: auto; right: 0; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu, .primary-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 7px 20px; font: 300 17px/1.5 var(--font); color: #fff; border-bottom: 1px solid var(--grey); }
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu a:focus-visible { background: var(--grey-hover); color: #fff; }

/* ------------------------------------------------------------------ main */
.site-main { display: block; padding: calc(var(--header-h) + 6px) 0 20px; min-height: 60vh; background: rgba(255, 255, 255, .16); }
.site-main--home { padding-top: 0; }
.page-title { margin-top: 30px; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > :first-child { margin-top: 0; }
.page-article .entry-content { padding-top: 20px; }

/* ------------------------------------------------------------------ buttons */
.aif-button, .entry-content .aif-button {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px;
	border: 2px solid #333; border-radius: 2px; background: transparent; color: #333;
	font: 400 12px/1.4 var(--font-btn); text-transform: uppercase; letter-spacing: .02em; cursor: pointer;
	transition: background-color .25s, color .25s;
}
.aif-button:hover, .aif-button:focus-visible { background: #333; color: #fff; }
.aif-button--solid { background: #a0ce4e; border-color: #a0ce4e; color: #fff; }
.aif-button--solid:hover { background: #96c346; border-color: #96c346; }

/* ------------------------------------------------------------------ hero (home) */
.hero { position: relative; height: min(100vh, 900px); min-height: 480px; background: #171717; overflow: hidden; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity .6s ease-in-out; }
.hero__slide.is-active { opacity: 1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__caption { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; padding: 0 16px; }
.hero__title, .hero__rotator {
	display: inline-block; margin: 0 auto 10px; padding: 0 6px; background: rgba(10, 10, 10, .3);
	color: #fff; font-weight: 300; line-height: 1.33;
}
.hero__title { font-size: 48px; }
.hero__rotator { display: table; font-size: 36px; }
.hero__words { display: inline-block; min-width: 3ch; text-align: left; }
.hero__words b { display: inline-block; font-weight: 700; animation: aif-word .55s ease-out; }
@keyframes aif-word { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ home sections */
.home-content > .aif-section { padding: 60px var(--gutter); }
.aif-section > * { max-width: var(--site-width); margin-left: auto; margin-right: auto; }
.aif-section > h1:first-child { margin-top: 0; }
.aif-section h1 { text-align: center; }
.aif-section--foundation { text-align: center; padding-top: 70px; }
.aif-section--foundation h3 { font-size: 23px; max-width: 920px; }
.aif-section--foundation .aif-row--3 h3 { color: var(--blue); font-size: 27px; line-height: 1.4; }
.aif-section--foundation .aif-row--3 h4 { color: #888; font-size: 14px; line-height: 1.5; font-weight: 300; }
.aif-section--foundation img { display: block; margin: 0 auto; }
.aif-section--programs { background: var(--programs); color: #fff; }
.aif-section--programs h1, .aif-section--programs h5 { color: #fff; text-align: center; }
.aif-section--programs h5 { max-width: 1000px; margin-bottom: 40px; }
.aif-section--testimonials { background: rgba(255, 255, 255, .01); }
.aif-section--events { background: var(--events); }
.aif-section--events .aif-row { align-items: center; }
.aif-section--events .aif-col + .aif-col { border-left: 2px solid var(--grey); padding-left: 16px; }
.aif-section--partners { background: var(--partners); }
.aif-section--partners h1, .aif-section--partners h2, .aif-section--partners h3, .aif-section--partners h4, .aif-section--partners h5 { text-align: center; }
.aif-section--contact .contact-form-wrap, .aif-section--contact .aif-contact-email { max-width: 760px; }

/* rows / columns from the archived builder rows */
.aif-row { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 30px; margin-bottom: 20px; }
.aif-row--2 { --cols: 2; } .aif-row--3 { --cols: 3; } .aif-row--4 { --cols: 4; } .aif-row--5 { --cols: 5; } .aif-row--6 { --cols: 6; }
.aif-col > :first-child { margin-top: 0; }

/* program cards (archived "cube boxes") */
.aif-card { background: #fff; color: #555; border: 5px solid #fff; margin: 10px; display: flex; flex-direction: column; height: calc(100% - 20px); }
.aif-card__image { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f3f3f3; }
.aif-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.aif-card__body h3 { margin: 0 0 12px; color: #333; font-size: 23px; }
.aif-card__body p { font-size: 16px; }
.aif-card__body p:last-child { margin: auto 0 0; }
.aif-section--programs .aif-row { gap: 0; }

/* testimonials */
.aif-testimonials { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 16px; }
.aif-testimonials > .aif-testimonial { flex: 0 0 calc(50% - 8px); scroll-snap-align: start; }
.aif-testimonial { position: relative; margin: 0 0 20px; padding: 25px 25px 25px 150px; min-height: 160px; background: #f3f3f3; border: 0; font-style: normal; color: #000; }
.aif-testimonial__photo, .aif-testimonial > img:first-child { position: absolute; left: 25px; top: 25px; width: 100px; height: 100px; object-fit: cover; border-radius: 100px; }
.aif-testimonial p { font-size: 16px; margin-bottom: 14px; }
.aif-testimonial cite { display: block; font-style: normal; font-size: 20px; line-height: 1.3; }
.aif-testimonial cite strong { font-weight: 400; }
.carousel-nav { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.carousel-nav button { width: 36px; height: 36px; border: 0; border-radius: 2px; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; font-size: 18px; }
.carousel-nav button:hover { background: rgba(0, 0, 0, .7); }

/* people / winners grid (archived Essential Grid) */
.aif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 0 auto 30px; }
.aif-section--organization .aif-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aif-grid__item { margin: 0; text-align: center; background: #fff; padding: 0 0 14px; }
.aif-grid__item img { width: 100%; aspect-ratio: 280 / 290; object-fit: cover; filter: grayscale(100%); transition: filter .3s; }
.aif-grid__item:hover img, .aif-grid__item:focus-within img { filter: none; }
.aif-grid__item figcaption { margin: 12px 10px 0; font-size: 14px; color: var(--muted); }
.aif-grid__item figcaption strong { display: block; font-size: 18px; font-weight: 400; color: var(--text); }
.aif-grid__item figcaption a { color: var(--text); }
.aif-grid__item figcaption a:hover { color: var(--primary); }

/* stats, steps (IPA page) */
.aif-stat { text-align: center; font-size: 20px; }
.aif-stat strong { display: block; font-size: 48px; line-height: 1.2; font-weight: 300; color: var(--blue); }
.aif-step { text-align: center; }
.aif-step h4 { color: var(--blue); }

/* news board tabs */
.aif-tabs__nav { display: flex; justify-content: center; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; border-bottom: 2px solid #ddd; }
.aif-tabs__nav button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -2px; padding: 10px 18px; font: 300 27px/1.2 var(--font); color: var(--text); cursor: pointer; }
.aif-tabs__nav button[aria-selected="true"], .aif-tabs__nav button:hover { border-bottom-color: var(--blue); color: var(--blue); }
.aif-tabs.is-ready .aif-tab__title { display: none; }
.aif-tab { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; padding-top: 20px; color: #6b6b6b; line-height: 1.75; }
.aif-tab > .aif-tab__title, .aif-tab > .news-grid, .aif-tab > .aif-more { grid-column: 1 / -1; }
.aif-tab[hidden] { display: none; }
.aif-report { text-align: center; }
.aif-report img { margin-bottom: 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.aif-report h4 { font-size: 20px; margin: 10px 0 6px; }
.aif-report h5 { font-size: 15px; margin: 0 0 4px; }
.aif-more { text-align: right; }

/* news cards */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; margin: 20px 0 30px; }
.news-card { background: #fff; padding-bottom: 14px; }
.news-card__media { display: block; aspect-ratio: 3 / 2; background: #ebeaea; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__placeholder { display: block; width: 100%; height: 100%; }
.news-card__title { font-size: 20px; line-height: 1.4; margin: 14px 16px 6px; }
.news-card__title a { color: var(--text); }
.news-card__title a:hover { color: var(--primary); }
.news-card__date { margin: 0 16px; font-size: 12px; color: var(--muted); }

/* partner logos */
.aif-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 0 auto 30px; }
.aif-logos > a, .aif-logos > img { display: flex; align-items: center; justify-content: center; padding: 12px; background: #f3f3f3; min-height: 110px; transition: background-color .2s; }
.aif-logos > :nth-child(even) { background: #f7f7f7; }
.aif-logos > a:hover { background: #e9e9e9; }
.aif-logos img { max-height: 86px; width: auto; }

/* ------------------------------------------------------------------ contact form */
.contact-form-wrap { margin: 0 auto 20px; }
.form-field { margin: 0 0 16px; }
.form-field label { display: block; margin-bottom: 6px; }
.form-field input, .form-field textarea, .search-form__input {
	width: 100%; padding: 10px 12px; border: 1px solid #d2d2d2; border-radius: 0; background: #fff;
	font: 300 15px/1.4 var(--font); color: var(--text);
}
.form-field input:focus, .form-field textarea:focus, .search-form__input:focus { border-color: var(--primary); outline: 0; box-shadow: 0 0 0 2px rgba(5, 195, 222, .25); }
.form-field--hp { position: absolute; left: -9999px; }
.form-note { padding: 12px 16px; border-left: 4px solid; }
.form-note--success { border-color: #65bc7b; background: #eef8f0; }
.form-note--error { border-color: #9d1111; background: #fbeeee; }
.aif-contact-email { text-align: center; }

/* ------------------------------------------------------------------ single / persons / listings */
.single-article .entry-title { margin: 30px 0 20px; }
.entry-media { margin: 0 0 30px; }
.entry-meta { font-size: 12px; color: var(--muted); margin: 30px 0 20px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.entry-meta .sep { margin: 0 6px; }
.entry-meta a { color: var(--muted); }
.entry-meta a:hover { color: var(--primary); }
.share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; background: var(--light); margin: 0 0 30px; }
.share__title { margin: 0; font-size: 17px; }
.share__list { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.share__btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 4px; background: #e8e8e8; color: #bebdbd; cursor: pointer; transition: background-color .2s, color .2s; }
.share__btn:hover, .share__btn:focus-visible { background: var(--grey); color: #fff; }
.share__status { flex-basis: 100%; margin: 0; font-size: 12px; min-height: 1em; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 40px; font-size: 14px; }
.post-nav__next { margin-left: auto; text-align: right; }

.person { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 30px; padding-top: 10px; }
.person__photo img { width: 100%; max-width: 290px; }
.person__placeholder { display: block; aspect-ratio: 280 / 290; background: #ebeaea; max-width: 290px; }
.person__name { font-size: 27px; line-height: 1.22; margin: 27px 0 0; }
.person__role { font-size: 23px; line-height: 1.3; margin: 23px 0 20px; }

.archive-head { padding: 20px 0 10px; }
.post-list { display: grid; gap: 50px; margin: 20px 0 40px; }
.entry { padding-bottom: 40px; border-bottom: 1px solid #ebeaea; }
.entry__media { display: block; margin-bottom: 20px; }
.entry__title { font-size: 20px; line-height: 1.4; margin: 0 0 12px; }
.entry__title a { color: var(--text); }
.entry__title a:hover { color: var(--primary); }
.entry .entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 10px 0 0; }
.entry__more { margin-left: auto; }
.nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 0 0 40px; }
.nav-links .page-numbers { min-width: 30px; padding: 2px 6px; border: 1px solid #ccc; text-align: center; font-size: 12px; color: var(--text); }
.nav-links .page-numbers.current, .nav-links a.page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.empty-state { padding: 40px 0; }
.search-form { display: flex; max-width: 520px; margin: 10px 0 20px; }
.search-form__submit { flex: 0 0 auto; width: 46px; border: 0; background: var(--grey); color: #fff; cursor: pointer; }
.not-found { text-align: center; padding-top: 40px; padding-bottom: 60px; }
.not-found .search-form { margin: 20px auto; }
.not-found__code { font-size: 120px; line-height: 1; margin: 0; color: #ebeaea; font-weight: 700; }

/* ------------------------------------------------------------------ footer */
.site-footer__widgets { background: var(--grey); border-top: 12px solid #e9eaee; padding: 32px 0; color: #8c8989; }
.footer-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: center; text-align: center; }
.footer-logos img { max-height: 60px; width: auto; }
.footer-widget__title { color: #ddd; font-size: 16px; }
.site-footer__bottom { background: var(--grey); border-top: 1px solid var(--grey); padding: 8px 0; }
.site-footer__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; }
.copyright { margin: 0; font-size: 12px; color: #fff; }
.social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social__link { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 4px; color: #fff; background: #333; }
.social__link--facebook { background: #3b5998; }
.social__link--twitter { background: #55acee; }
.social__link--youtube { background: #cd201f; }
.social__link--flickr { background: #0063dc; }
.social__link:hover { color: #fff; opacity: .85; }
.social--person { margin-top: 10px; }
.social--person .social__link { background: var(--grey); }
.to-top { position: fixed; right: 20px; bottom: 0; z-index: 90; display: flex; align-items: center; justify-content: center; width: 48px; height: 35px; border-radius: 4px 4px 0 0; background: #333; color: #fff; opacity: 0; visibility: hidden; transition: opacity .3s; }
.to-top.is-visible { opacity: .9; visibility: visible; }
.to-top:hover { color: #fff; opacity: 1; }

/* ------------------------------------------------------------------ responsive (no archived mobile capture: logical adaptation) */
@media (max-width: 1100px) {
	.aif-row--5, .aif-row--6 { --cols: 3; }
	.aif-row--4 { --cols: 2; }
	.aif-section--organization .aif-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
	:root { --gutter: 16px; --header-h: 70px; }
	.admin-bar .site-header { top: 46px; }
	.brand__img, .custom-logo { max-height: 62px; }
	.nav-toggle { display: inline-flex; }
	.primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: #f9f9f9; display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; box-shadow: 0 4px 8px rgba(0, 0, 0, .15); }
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { flex-direction: column; }
	.primary-nav .menu > li > a { height: auto; padding: 0 20px; line-height: 44px; font-size: 14px; color: #333; border-top: 1px solid #dadada; }
	.primary-nav .menu > li > a:hover { color: var(--primary); background: #f6f6f6; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; background: #fff; box-shadow: none; }
	.primary-nav li.is-open > .sub-menu { display: block; }
	.primary-nav .sub-menu a { color: #333; font-size: 14px; padding: 10px 20px 10px 36px; border-top: 1px solid #dadada; border-bottom: 0; }
	.hero { height: 70vh; min-height: 360px; }
	.hero__title { font-size: 28px; }
	.hero__rotator { font-size: 22px; }
	.home-content > .aif-section { padding: 40px var(--gutter); }
	h1 { font-size: 28px; } h2 { font-size: 25px; } h3 { font-size: 22px; } h4 { font-size: 20px; }
	.aif-row, .aif-row--2, .aif-row--3, .aif-row--4, .aif-row--5, .aif-row--6 { --cols: 1; }
	.aif-section--events .aif-col + .aif-col { border-left: 0; padding-left: 0; border-top: 2px solid var(--grey); padding-top: 16px; }
	.aif-testimonials > .aif-testimonial { flex-basis: 100%; }
	.aif-testimonial { padding: 25px; }
	.aif-testimonial__photo, .aif-testimonial > img:first-child { position: static; display: block; margin-bottom: 14px; }
	.aif-stat strong { font-size: 36px; }
	.person { grid-template-columns: 1fr; }
	.person__name { margin-top: 0; }
	.footer-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__bar { flex-direction: column; justify-content: center; text-align: center; padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 480px) {
	.aif-section--organization .aif-grid { grid-template-columns: 1fr 1fr; }
	.aif-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aif-tabs__nav button { font-size: 22px; }
}
