/* ==========================================================================
   Insight for Living — theme styles
   Design values (colours, fonts, sizes) come from theme.json as --wp--preset--* and --wp--custom--*
   properties; a site changes them through WordPress's wp_theme_json_data_theme filter, never by editing
   this file. One type scale on a 16px root: the 14px "interface" size is 0.875rem.
   Measured reference: docs/developer-reference/IFL-Theme-Reference-Look.md
   Breakpoints: 1100px (tablet) and 800px (phone menu).
   ========================================================================== */

/* --- Local shorthands ---------------------------------------------------------------------------------- */
:root {
	--ifl-t-blue: var(--wp--preset--color--blue);
	--ifl-t-red: var(--wp--preset--color--red);
	--ifl-t-text: var(--wp--preset--color--text);
	--ifl-t-border: var(--wp--preset--color--border);
	--ifl-t-body-font: var(--wp--preset--font-family--body);
	--ifl-t-body-weight: var(--wp--custom--font-weight--body);
	--ifl-t-wrap: var(--wp--style--global--content-size, 1200px);
	--ifl-t-gutter: 20px;
	--ifl-t-admin-bar: 0px;
}
.admin-bar { --ifl-t-admin-bar: 32px; }
@media screen and (max-width: 782px) { .admin-bar { --ifl-t-admin-bar: 46px; } }

/* Chinese text has no Open Sans, Georgia or system-UI glyphs: use the reader's system Chinese fonts (never a
   web font that must cross the Great Firewall), at a weight that stays readable. All three families switch,
   because a family without Chinese glyphs makes the browser fall back to its default Song/Ming face (measured
   on the phone menu, October 28th). `html:` outranks the `:root` rule WordPress prints for the presets.
   Keyed to the page language, so Simplified and Traditional pages each get their own fonts. */
html:lang(zh-Hans), html:lang(zh-CN), html:lang(zh-SG) {
	--ifl-t-cjk-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", sans-serif;
}
html:lang(zh-Hant), html:lang(zh-TW), html:lang(zh-HK) {
	--ifl-t-cjk-font: "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Source Han Sans TC", "Noto Sans TC", sans-serif;
}
html:lang(zh) {
	--ifl-t-body-font: var(--ifl-t-cjk-font);
	--ifl-t-body-weight: 400;
	--wp--preset--font-family--serif: var(--ifl-t-cjk-font);
	--wp--preset--font-family--ui: var(--ifl-t-cjk-font);
}

/* --- Base ---------------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--wp--preset--color--page);
	color: var(--ifl-t-text);
	font-family: var(--ifl-t-body-font);
	font-size: var(--wp--preset--font-size--chrome);
	font-weight: var(--ifl-t-body-weight);
	line-height: var(--wp--custom--line-height--chrome);
	-webkit-font-smoothing: antialiased;
}
body.ifl-phone-menu-open { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--ifl-t-red); }
a:hover, a:focus { color: var(--wp--preset--color--red-dark); }
:focus-visible { outline: 2px solid var(--ifl-t-blue); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; line-height: var(--wp--custom--line-height--heading); margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

/* The content area is 1200px wide inside the side gutters, as on live insight.org (logo at x 40 on a 1280px screen). */
.ifl-wrap { width: 100%; max-width: calc(var(--ifl-t-wrap) + 2 * var(--ifl-t-gutter)); margin: 0 auto; padding: 0 var(--ifl-t-gutter); }
.ifl-icon { width: 1em; height: 1em; flex-shrink: 0; }

.ifl-screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ifl-skip-link {
	position: absolute; left: 8px; top: -100px; z-index: 10000;
	background: #fff; color: var(--ifl-t-blue); padding: 10px 16px; font-weight: 700;
}
.ifl-skip-link:focus { top: calc(8px + var(--ifl-t-admin-bar)); }
.ifl-missing { border: 2px dashed var(--ifl-t-red); padding: 8px; color: var(--ifl-t-red); }

/* --- Header -------------------------------------------------------------------------------------------- */
.ifl-header {
	position: sticky;
	top: var(--ifl-t-admin-bar);
	z-index: 900;
	background: #fff;
}
.ifl-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	align-items: flex-start;
	min-height: 107px;
}
.ifl-logo { display: inline-flex; align-items: center; text-decoration: none; }
.ifl-header .ifl-logo--default .ifl-logo__text { line-height: 107px; }
.ifl-logo__img { display: block; height: var(--wp--custom--header--logo-height); width: auto; }
.ifl-logo__img--whiten { filter: brightness(0) invert(1); }
.ifl-logo__text {
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--ifl-t-blue);
}
.ifl-logo--inverse .ifl-logo__text { color: #fff; }

.ifl-header__utility { margin-top: 20px; display: flex; align-items: center; gap: 8px; }
.ifl-utility__list { display: flex; margin: 0; padding: 0; list-style: none; }
.ifl-utility__list a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 14px;
	color: var(--ifl-t-blue);
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
}
.ifl-utility__list a:hover, .ifl-utility__list a:focus { color: var(--wp--preset--color--blue-deep); text-decoration: underline; }
.ifl-utility__list .ifl-icon { width: 18px; height: 18px; }
.ifl-utility__list .nav-mobile-give { display: none; }

.ifl-menu-button { display: none; }

/* --- Main menu (the blue bar) -------------------------------------------------------------------------- */
.ifl-primary {
	background: var(--ifl-t-blue);
	border-top: 1px solid #c3cbdc;
	box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.15);
}
.ifl-primary__inner { display: flex; align-items: center; }
.ifl-primary__list {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ifl-primary__list li { position: relative; }
.ifl-primary__list > li > a {
	display: block;
	padding: 14px 18px;
	border-bottom: 2px solid transparent;
	color: #fff;
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--nav);
	font-weight: 400;
	letter-spacing: 0.3px;
	line-height: 1;
	text-decoration: none;
}
.ifl-primary__list > li > a:hover,
.ifl-primary__list > li > a:focus,
.ifl-primary__list > .current-menu-item > a,
.ifl-primary__list > .current-menu-ancestor > a { border-color: #fff; color: #fff; }
.ifl-primary__list > .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px; height: 6px;
	margin: 0 0 3px 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

/* Dropdowns. Timing matches insight.org's Genesis Superfish menu (measured October 28th): a panel fades in and
   unrolls downward over 0.4s, and fades out over 0.2s. navigation.js adds insight.org's hover intent (open once
   the pointer settles on an item) and close delay (0.1s), then marks the item .is-open; until the script runs, or
   without it, plain :hover opens the panel. :focus-within opens it for the keyboard, and also keeps a panel open
   while a field inside it has focus, so a browser autocomplete list under a search box stays clickable. */
.ifl-primary__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 950;
	width: 250px;
	margin: 0;
	padding: 0;
	list-style: none;
	border-radius: var(--wp--custom--radius--large);
	box-shadow: var(--wp--custom--shadow--menu);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	clip-path: inset(-40px -40px 100% -40px); /* Rolled up; the -40px margins leave room for the drop shadow. */
	transition: opacity 0.2s ease, clip-path 0.2s ease, visibility 0s linear 0.2s;
}
.ifl-primary:not(.ifl-primary--js) .ifl-primary__list li:hover > .sub-menu,
.ifl-primary__list li.is-open > .sub-menu,
.ifl-primary__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	clip-path: inset(-40px);
	transition: opacity 0.4s ease, clip-path 0.4s ease, visibility 0s;
}
.ifl-primary__list .sub-menu .sub-menu { top: 0; left: 100%; }
.ifl-primary__list .sub-menu a {
	display: block;
	padding: 12px 20px;
	background: var(--ifl-t-border);
	color: #222;
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--chrome);
	font-weight: 400;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.ifl-primary__list .sub-menu a:hover,
.ifl-primary__list .sub-menu a:focus,
.ifl-primary__list .sub-menu .current-menu-item > a { background: var(--ifl-t-blue); color: #fff; }

/* The give item (menu class nav-donate-link) is the red button. */
.ifl-primary__list > .nav-donate-link > a {
	margin: 3px 8px;
	padding: 9px 22px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: var(--wp--custom--radius--large);
	background: var(--ifl-t-red);
	font-weight: 700;
	letter-spacing: 0.5px;
	line-height: 1.4;
}
.ifl-primary__list > .nav-donate-link > a:hover,
.ifl-primary__list > .nav-donate-link > a:focus { background: var(--wp--preset--color--red-dark); border-color: transparent; }
.ifl-primary__list > .nav-donate-link .sub-menu { left: auto; right: 0; }

.ifl-search-toggle {
	display: flex; align-items: center; justify-content: center;
	padding: 10px 18px;
	background: none; border: 0; cursor: pointer;
	color: #fff;
}
.ifl-search-toggle .ifl-icon { width: 24px; height: 24px; }
.ifl-search-toggle:hover .ifl-icon, .ifl-search-toggle:focus .ifl-icon { opacity: 0.7; }

.ifl-search-panel {
	position: absolute; left: 0; right: 0; top: 100%;
	padding: 12px 0;
	background: var(--wp--preset--color--blue-dark);
	border-bottom: 3px solid var(--ifl-t-blue);
}
.ifl-search-panel .ifl-search-form__submit { display: none; }

/* --- Search form --------------------------------------------------------------------------------------- */
.ifl-search-form { display: flex; gap: 8px; width: 100%; margin: 0 0 1.5em; }
.ifl-search-panel .ifl-search-form, .ifl-phone-menu__search .ifl-search-form { margin: 0; }
.ifl-search-form__input {
	flex: 1;
	min-height: 42px;
	padding: 11px 16px;
	border: 1px solid #bbb;
	border-radius: 3px;
	background: #fff;
	color: #333;
	font-size: 15px;
	-webkit-appearance: none;
	appearance: none;
}
.ifl-search-form__input:focus { border-color: var(--ifl-t-blue); box-shadow: 0 0 0 1px var(--ifl-t-blue); outline: none; }
.ifl-search-form__submit,
.ifl-button {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 9px 18px;
	border: 0;
	border-radius: var(--wp--custom--radius--medium);
	background: var(--ifl-t-blue);
	color: #fff;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}
.ifl-search-form__submit:hover, .ifl-button:hover { background: var(--wp--preset--color--blue-deep); color: #fff; }
/* The outlined button the cards and boxes use ("Read Now", "Shop Now"). */
.ifl-button--outline {
	background: #fff;
	border: 1px solid #ccc;
	color: #333;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.ifl-button--outline:hover, .ifl-button--outline:focus { background: #f4f4f4; color: #000; }

/* --- Breadcrumbs --------------------------------------------------------------------------------------- */
.ifl-breadcrumbs ol {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
	min-height: 36px;
	margin: 12px 0 0; padding: 0 30px; list-style: none;
	font-size: var(--wp--preset--font-size--body);
	font-weight: 700;
}
.ifl-breadcrumbs li + li::before { content: "»"; margin: 0 8px; color: var(--ifl-t-red); font-weight: 400; }
.ifl-breadcrumbs a { color: var(--ifl-t-red); }

/* --- Layout: left column, then the white card (content + right column) -------------------------------- */
.ifl-layout { display: flex; align-items: flex-start; gap: 20px; padding-top: 6px; padding-bottom: 40px; }
.ifl-card {
	flex: 1;
	min-width: 0;
	background: #fff;
	box-shadow: var(--wp--custom--shadow--card);
}
.ifl-card__head {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 18px 40px;
	background: linear-gradient(#ffffff, #f4f4f4);
	border-bottom: 1px solid var(--ifl-t-border);
}
.ifl-card__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.3;
}
.ifl-card__subtitle {
	margin: 6px 0 0;
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.125rem;
}
.ifl-card__body { display: flex; align-items: flex-start; gap: 40px; padding: 30px 40px 40px; }
.ifl-card__content { flex: 1; min-width: 0; }
/* A comfortable reading width: narrower beside two columns, wider when only the right one is there. */
.ifl-card__body--has-right .ifl-card__content { max-width: 760px; }
.ifl-layout--has-left .ifl-card__body--has-right .ifl-card__content { max-width: 600px; }

.ifl-column { flex: 0 0 200px; font-size: var(--wp--preset--font-size--small); }
.ifl-column--left { flex-basis: 200px; padding-top: 4px; }
.ifl-widget { margin-bottom: 28px; }
.ifl-widget__title { font-size: var(--wp--preset--font-size--chrome); font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid #ccc; }
.ifl-widget ul { margin: 0; padding: 0; list-style: none; }
.ifl-widget li { margin: 0 0 6px; }
.ifl-column--right .ifl-widget { padding: 16px; border: 1px solid var(--ifl-t-border); box-shadow: var(--wp--custom--shadow--card); }
.ifl-column--right .ifl-widget__title { text-align: center; text-transform: uppercase; font-size: var(--wp--preset--font-size--small); }

/* --- Entry ---------------------------------------------------------------------------------------------- */
.ifl-entry__title { font-size: var(--wp--preset--font-size--x-large); font-weight: 200; margin-bottom: 0.4em; }
:lang(zh) .ifl-entry__title { font-weight: 400; }
.ifl-entry__meta {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
	margin: 0 0 1.6em;
	font-size: var(--wp--preset--font-size--small);
}
.ifl-entry__content {
	font-size: var(--wp--preset--font-size--body);
	line-height: var(--wp--custom--line-height--body);
}
.ifl-entry__content h2 { font-size: var(--wp--preset--font-size--large); margin-top: 1.4em; }
.ifl-entry__content h3 { font-size: 1.125rem; font-weight: 600; margin-top: 1.4em; }
.ifl-entry__content blockquote { margin: 1.5em 0 1.5em 2em; padding: 0; }
.ifl-entry__content ul, .ifl-entry__content ol { padding-left: 1.5em; margin: 0 0 1em; }
.ifl-entry__content li { margin-bottom: 0.4em; }
.ifl-entry__content figure { margin: 1.5em 0; }
.ifl-entry__content figcaption { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.ifl-entry__content .alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.ifl-entry__content .alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.ifl-entry__content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.ifl-entry__content::after { content: ""; display: table; clear: both; }

/* --- Lists (archives, search) -------------------------------------------------------------------------- */
.ifl-list__title { font-size: var(--wp--preset--font-size--x-large); font-weight: 200; }
.ifl-list__item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--ifl-t-border); }
.ifl-list__image { flex: 0 0 160px; }
.ifl-list__item-title { font-size: var(--wp--preset--font-size--large); margin-bottom: 0.2em; }
.ifl-list__item-title a { color: var(--ifl-t-text); text-decoration: none; }
.ifl-list__item-title a:hover, .ifl-list__item-title a:focus { color: var(--ifl-t-red); text-decoration: underline; }
.ifl-list__date { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); margin: 0 0 0.5em; }
.ifl-list__excerpt p { margin: 0; }
.ifl-list__empty { padding: 20px 0; }

/* --- Section home pages (inc/sections.php) ------------------------------------------------------------- */
.ifl-section-list { list-style: none; margin: 24px 0 0; padding: 0; columns: 2; column-gap: 40px; }
.ifl-section-list li { break-inside: avoid; padding: 0 0 14px; }
.ifl-section-list--books { columns: 4; }
.ifl-section-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.ifl-section-grid__item a { display: block; color: var(--ifl-t-text); text-decoration: none; }
.ifl-section-grid__item a:hover .ifl-section-grid__title, .ifl-section-grid__item a:focus .ifl-section-grid__title { color: var(--ifl-t-red); text-decoration: underline; }
.ifl-section-grid__image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ifl-section-grid__title { display: block; margin-top: 8px; }
.ifl-section-heading { margin: 36px 0 0; font-size: 1.35rem; }
.ifl-broadcasts { margin-top: 24px; }
.ifl-broadcast { padding: 16px 0; border-bottom: 1px solid var(--ifl-t-border); }
.ifl-broadcast .ifl-list__date { margin: 0; }
.ifl-broadcast__title { margin: 4px 0 10px; font-size: 1.15rem; }
.ifl-broadcast__audio { display: block; width: 100%; max-width: 560px; }
.ifl-broadcast__words { margin-top: 12px; }
.ifl-broadcast-today .ifl-broadcast__title { font-size: 1.5rem; }
.ifl-section-heading a { color: var(--ifl-t-text); text-decoration: none; }
.ifl-section-heading a:hover, .ifl-section-heading a:focus { color: var(--ifl-t-red); text-decoration: underline; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.nav-links .page-numbers { padding: 6px 12px; border: 1px solid var(--ifl-t-border); text-decoration: none; }
.nav-links .page-numbers.current { background: var(--ifl-t-blue); border-color: var(--ifl-t-blue); color: #fff; }

/* --- Social links -------------------------------------------------------------------------------------- */
.ifl-social { display: flex; align-items: center; gap: 8px; }
.ifl-social__label { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: var(--wp--preset--font-size--small); }
.ifl-social ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ifl-social a {
	display: flex; align-items: center; justify-content: center;
	width: 26px; height: 26px;
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--charcoal);
	color: #fff;
}
.ifl-social .ifl-icon { width: 16px; height: 16px; }

/* --- Footer -------------------------------------------------------------------------------------------- */
.ifl-footer {
	background: var(--wp--preset--color--footer);
	color: var(--wp--preset--color--charcoal);
	font-size: var(--wp--preset--font-size--x-small);
}
.ifl-footer__columns { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 40px; padding-bottom: 40px; }
.ifl-footer__column { padding: 0 24px; border-left: 1px solid #b5adaa; }
.ifl-footer__column:last-child { border-right: 1px solid #b5adaa; }
.ifl-footer__heading { font-size: var(--wp--preset--font-size--small); font-weight: 700; margin: 0 0 16px; }
.ifl-footer__links { margin: 0; padding: 0; list-style: none; }
.ifl-footer__links li { margin: 0 0 6px; }
.ifl-footer__links a { color: var(--wp--preset--color--charcoal); }
.ifl-footer__bottom {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding-top: 18px; padding-bottom: 30px;
	border-top: 1px solid #c8c8c8;
}
.ifl-footer__copyright { margin: 0; }

/* --- Phone menu (hidden until opened; only reachable at 800px and narrower) ---------------------------- */
.ifl-phone-menu {
	position: fixed;
	inset: var(--ifl-t-admin-bar) 0 0 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	padding: 20px 24px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--ifl-t-blue);
	color: #fff;
	transform: translateY(-100%);
	transition: transform 0.3s ease-in-out;
}
.ifl-phone-menu[hidden] { display: none; }
.ifl-phone-menu.is-open { transform: translateY(0); }
.ifl-phone-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ifl-phone-menu .ifl-logo__img { height: 50px; }
.ifl-phone-menu__close { padding: 8px; background: none; border: 0; color: #fff; cursor: pointer; }
.ifl-phone-menu__close .ifl-icon { width: 28px; height: 28px; }
.ifl-phone-menu__search { margin-bottom: 20px; }
.ifl-phone-menu__search .ifl-search-form__input { border: 0; border-radius: var(--wp--custom--radius--small); font-size: 16px; }
.ifl-phone-menu__search .ifl-search-form__submit { display: none; }
.ifl-phone-menu__nav { flex: 1; }
.ifl-phone-menu__list, .ifl-phone-menu__list .sub-menu { margin: 0; padding: 0; list-style: none; }
.ifl-phone-menu__list li { position: relative; }
.ifl-phone-menu__list > li > a {
	display: block;
	padding: 14px 48px 14px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	color: #fff;
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--nav);
	font-weight: 700;
	letter-spacing: 0.5px;
	text-decoration: none;
}
.ifl-phone-menu__list .sub-menu a {
	display: block;
	padding: 12px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: var(--wp--preset--font-size--body);
	text-decoration: none;
}
.ifl-phone-menu__list .sub-menu a:hover, .ifl-phone-menu__list .sub-menu a:focus { background: #e8edf5; color: var(--ifl-t-blue); }
.ifl-phone-menu__list > .is-expanded { background: rgba(0, 0, 0, 0.12); margin: 0 -24px; padding: 0 24px; }
.ifl-phone-menu__expand {
	position: absolute; right: 0; top: 8px;
	display: flex; align-items: center; justify-content: center;
	width: 42px; height: 36px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--wp--custom--radius--small);
	color: #fff;
	cursor: pointer;
}
.ifl-phone-menu__list > .is-expanded > .ifl-phone-menu__expand { right: 24px; }
.ifl-phone-menu__expand svg { width: 20px; height: 20px; transition: transform 0.2s ease; }
.ifl-phone-menu__expand[aria-expanded="true"] svg { transform: rotate(180deg); }
/* The give item is a red row across the full width. */
.ifl-phone-menu__list > .nav-donate-link { background: var(--ifl-t-red); margin: 0 -24px; padding: 0 24px; }
.ifl-phone-menu__list > .nav-donate-link > a { border-bottom: 0; }
.ifl-phone-menu__list > .nav-donate-link > .ifl-phone-menu__expand { right: 24px; }

.ifl-phone-menu__utility-list { display: flex; justify-content: space-around; gap: 8px; margin: 28px 0 16px; padding: 0; list-style: none; }
.ifl-phone-menu__utility-list a {
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	color: #fff;
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}
.ifl-phone-menu__utility-list .ifl-icon { width: 30px; height: 30px; stroke-width: 1.5; }
.ifl-phone-menu__utility-list .nav-mobile-give { display: none; }
.ifl-phone-menu__give-now {
	display: block;
	padding: 18px;
	border-radius: var(--wp--custom--radius--large);
	background: #fff;
	color: var(--ifl-t-blue);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
}

/* --- Tablet -------------------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.ifl-primary__list > li > a { padding: 14px 10px; font-size: 0.9375rem; }
	.ifl-primary__list > .nav-donate-link > a { padding: 8px 14px; margin: 3px 4px; }
	.ifl-search-toggle { padding: 10px; }
	.ifl-column--left { display: none; }
	.ifl-card__head, .ifl-card__body { padding-left: 24px; padding-right: 24px; }
}

/* --- Phone --------------------------------------------------------------------------------------------- */
@media (max-width: 800px) {
	.ifl-header { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
	.ifl-header__inner { justify-content: center; align-items: center; min-height: 50px; padding-top: 6px; padding-bottom: 6px; }
	.ifl-breadcrumbs ol { margin-top: 0; padding: 6px 0; font-size: var(--wp--preset--font-size--chrome); }
	.ifl-logo__img { height: var(--wp--custom--header--logo-height-phone); }
	.ifl-header__utility, .ifl-primary, .ifl-search-panel { display: none; }
	.ifl-menu-button {
		position: absolute; right: 8px; top: 50%;
		display: flex; align-items: center; justify-content: center;
		width: 48px; height: 44px;
		transform: translateY(-50%);
		background: none; border: 0; cursor: pointer;
	}
	.ifl-menu-button__lines, .ifl-menu-button__lines::before, .ifl-menu-button__lines::after {
		display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--ifl-t-blue);
	}
	.ifl-menu-button__lines { position: relative; }
	.ifl-menu-button__lines::before, .ifl-menu-button__lines::after { content: ""; position: absolute; left: 0; }
	.ifl-menu-button__lines::before { top: -8px; }
	.ifl-menu-button__lines::after { top: 8px; }

	.ifl-layout { flex-direction: column; padding-left: 0; padding-right: 0; }
	.ifl-card { width: 100%; }
	.ifl-card__head { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
	.ifl-card__body { flex-direction: column; padding: 20px; gap: 24px; }
	.ifl-card__body--has-right .ifl-card__content { max-width: none; }
	.ifl-column { flex-basis: auto; width: 100%; }
	.ifl-column--left { display: block; order: 2; padding: 0 20px; }
	.ifl-list__item { flex-direction: column; }
	.ifl-list__image { flex-basis: auto; }
	.ifl-section-list { columns: 1; }
	.ifl-section-list--books { columns: 2; }

	.ifl-footer__columns { grid-template-columns: 1fr 1fr; row-gap: 28px; }
	.ifl-footer__column, .ifl-footer__column:last-child { border: 0; padding: 0; }
	.ifl-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	.ifl-phone-menu, .ifl-primary__list .sub-menu, .ifl-primary__list li > .sub-menu, .ifl-phone-menu__expand svg { transition: none !important; }
}

/* ---------------------------------------------------------------------------------------------------------------
 * Content-area slots and Hub blocks (inc/slots.php, layouts/; IFL-Hub-Design-Elements.md §5–§6). The Hub renders
 * each block with `ifl-b ifl-b--{type}`; the theme only styles those classes.
 * ------------------------------------------------------------------------------------------------------------ */
.ifl-slot--meta { margin-bottom: 1.25em; }
.ifl-slot--meta .ifl-entry__meta { margin: 0; }
.ifl-slot--summary { font-size: 1.0625rem; color: var(--wp--preset--color--charcoal); margin-bottom: 1.25em; }
.ifl-slot--media { margin: 0 0 1.5em; }
.ifl-slot--scripture { margin: 0 0 1.25em; }
.ifl-slot--footnotes { border-top: 1px solid var(--ifl-t-border); margin-top: 2em; padding-top: 1em; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.ifl-slot--download { margin: 1.5em 0; }
.ifl-slot--navigation { border-top: 1px solid var(--ifl-t-border); margin-top: 2em; padding-top: 1em; }

.ifl-b--quote, .ifl-b--scripture { margin: 1.5em 0 1.5em 2em; padding: 0; }
.ifl-b--scripture { margin-left: 0; padding: 0.75em 1em; border-left: 3px solid var(--ifl-t-blue); background: #f7f8fb; }
.ifl-b--quote p:last-of-type, .ifl-b--scripture p:last-of-type { margin-bottom: 0.25em; }
.ifl-b--quote cite, .ifl-b--scripture cite { display: block; font-style: normal; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.ifl-b--table { margin: 1.5em 0; overflow-x: auto; }
.ifl-b--table table { border-collapse: collapse; width: 100%; }
.ifl-b--table th, .ifl-b--table td { border: 1px solid var(--ifl-t-border); padding: 0.5em 0.75em; text-align: start; vertical-align: top; }
.ifl-b--table th { background: #f4f4f4; font-weight: 600; }
.ifl-b--image img { max-width: 100%; height: auto; }
.ifl-b--video video, .ifl-b--audio audio { width: 100%; max-width: 100%; }
.ifl-b--file a { font-weight: 600; }
.ifl-b--file .ifl-b__size { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.ifl-b--separator { border: 0; border-top: 1px solid var(--ifl-t-border); margin: 2em 0; }
.ifl-b--html { margin: 1em 0; }
.ifl-b--html iframe { max-width: 100%; }

/* --- insight.org page templates (inc/page-templates.php) ----------------------------------------------- */
.ifl-section-menu__title { margin: 0 0 8px; font-weight: 700; }
.ifl-section-menu__title a { color: inherit; text-decoration: none; }
.ifl-section-menu ul { margin: 0; padding: 0; list-style: none; }
.ifl-section-menu ul ul { padding-left: 14px; }
.ifl-section-menu li { margin: 0; border-bottom: 1px solid var(--ifl-t-border); }
.ifl-section-menu li a { display: block; padding: 6px 0; text-decoration: none; }
.ifl-section-menu .current_page_item > a { font-weight: 700; }
.ifl-layout-full-width .ifl-card__content { max-width: none; }
