/*
Theme Name: Agrilytics
Theme URI: https://agrilytics.co.zw
Description: Agrilytics brand add-on for Twenty Twenty-Five. Applies the Agrilytics logo guideline and app branding standard (green #264131, black, white, light surface #F5F7F5; Taviraj, IBM Plex Sans and IBM Plex Mono), plus ready-made section patterns.
Author: Agrilytics
Author URI: https://agrilytics.co.zw
Template: twentytwentyfive
Version: 2.9.5
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agrilytics
*/

/* Faint repeating logo pattern on green or black sections */
.is-style-agl-pattern {
	background-image: url("assets/images/pattern-tile.png");
	background-size: 320px 320px;
	background-repeat: repeat;
}

/* Faint logo watermark in the bottom-right corner of light sections */
.is-style-agl-watermark {
	background-image: url("assets/images/watermark-green.png");
	background-repeat: no-repeat;
	background-position: right -90px bottom -140px;
	background-size: 460px auto;
}

/* White card with a soft border and 10px corners */
.is-style-agl-card {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 10px;
	padding: 28px;
}

/* Browser-window frame for AgriHub screenshots */
.is-style-agl-screen img {
	border-radius: 0 0 12px 12px;
}
.is-style-agl-screen {
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(38, 65, 49, 0.18);
	background: var(--wp--preset--color--accent-2);
	padding-top: 30px;
	position: relative;
}
.is-style-agl-screen::before {
	content: "";
	position: absolute;
	top: 10px;
	left: 14px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	box-shadow: 17px 0 0 rgba(255, 255, 255, 0.3), 34px 0 0 rgba(255, 255, 255, 0.3);
}

/* Small label above headlines */
.agl-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 15px;
	color: var(--wp--preset--color--accent-1);
	margin-bottom: 0;
}
.has-accent-1-background-color .agl-eyebrow,
.has-accent-2-background-color .agl-eyebrow {
	color: rgba(255, 255, 255, 0.8);
}

/* Status chips, always an icon or dot plus a word */
.agl-chip {
	display: inline-block;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 14px;
	border: 1.5px solid currentColor;
	border-radius: 999px;
	padding: 3px 12px;
}

/* Keyboard focus that is always visible */
:where(a, button, input, select, textarea, .wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-1);
	outline-offset: 3px;
}

/* Comfortable reading width for long paragraphs */
.entry-content > p,
.wp-block-post-content > p {
	max-width: 68ch;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* Header and footer spacing */
.agl-tagline { margin: 0; font-family: var(--wp--preset--font-family--mono); font-size: 13px; color: var(--wp--preset--color--accent-4); }
.agl-header .wp-block-group { row-gap: 3px; }
html[data-theme="dark"] .agl-tagline { color: rgba(255, 255, 255, 0.8); }
.agl-header { padding: 16px 32px; border-bottom: 1px solid var(--wp--preset--color--accent-6); }
.agl-header .wp-block-button__link { padding: 10px 20px; }
.agl-footer { padding: 72px 32px 36px; border-top: 1px solid var(--wp--preset--color--accent-6); }
.agl-footer .agl-footer-title { font-size: clamp(44px, 6vw, 72px); line-height: 0.95; color: var(--wp--preset--color--accent-1); }
.agl-footer .agl-footer-title a { color: var(--wp--preset--color--accent-1); }
.agl-footer .agl-eyebrow { color: var(--wp--preset--color--accent-4); }
.agl-footer a { color: var(--wp--preset--color--accent-1); text-decoration: none; }

/* Section spacing for Agrilytics patterns */
.agl-section { padding: clamp(64px, 8vw, 104px) 32px; }
.agl-section.has-accent-3-background-color, .agl-border-top { border-top: 1px solid var(--wp--preset--color--accent-6); }

/* White buttons inside green sections */
.has-accent-1-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.has-accent-2-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--accent-1);
	border-color: var(--wp--preset--color--base);
}
.has-accent-1-background-color .wp-block-button.is-style-outline .wp-block-button__link,
.has-accent-2-background-color .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--base);
}
.has-accent-1-background-color :where(h1, h2, h3, h4),
.has-accent-2-background-color :where(h1, h2, h3, h4) { color: var(--wp--preset--color--base); }

/* ---------- Light and dark mode toggle ---------- */
.agl-theme-toggle {
	position: relative; width: 76px; height: 38px; padding: 0 10px; box-sizing: border-box;
	display: inline-flex; align-items: center; justify-content: space-between;
	border-radius: 999px; border: 1.5px solid var(--wp--preset--color--accent-6);
	background: var(--wp--preset--color--accent-3); color: var(--wp--preset--color--accent-4); cursor: pointer;
}
.agl-theme-toggle .agl-knob {
	position: absolute; left: 3px; top: 3px; width: 30px; height: 30px; border-radius: 50%;
	background: var(--wp--preset--color--accent-1); transition: transform 0.2s ease;
}
.agl-theme-toggle .agl-ic { position: relative; }
.agl-theme-toggle .agl-ic-sun { color: #FFFFFF; }
html[data-theme="dark"] .agl-theme-toggle { background: #264131; border-color: rgba(255, 255, 255, 0.35); color: rgba(255, 255, 255, 0.8); }
html[data-theme="dark"] .agl-theme-toggle .agl-knob { transform: translateX(38px); background: #FFFFFF; }
html[data-theme="dark"] .agl-theme-toggle .agl-ic-sun { color: rgba(255, 255, 255, 0.8); }
html[data-theme="dark"] .agl-theme-toggle .agl-ic-moon { color: #264131; }

/* ---------- Dark mode: the green colourway (app branding standard 4.6) ---------- */
html[data-theme="dark"] body,
html[data-theme="dark"] .wp-site-blocks,
html[data-theme="dark"] .has-base-background-color { background-color: #264131; color: #FFFFFF; }
html[data-theme="dark"] .has-accent-3-background-color { background-color: #264131; }
html[data-theme="dark"] .has-accent-1-background-color { background-color: #264131; }
html[data-theme="dark"] .has-accent-2-background-color { background-color: #264131; }
html[data-theme="dark"] :where(h1, h2, h3, h4, h5, h6),
html[data-theme="dark"] .wp-block-site-title, html[data-theme="dark"] .wp-block-site-title a,
html[data-theme="dark"] .has-contrast-color, html[data-theme="dark"] .has-base-color,
html[data-theme="dark"] .wp-block-navigation a { color: #FFFFFF; }
html[data-theme="dark"] a:where(:not(.wp-element-button)) { color: #FFFFFF; }
html[data-theme="dark"] .has-accent-4-color,
html[data-theme="dark"] .wp-block-post-date,
html[data-theme="dark"] .wp-element-caption { color: rgba(255, 255, 255, 0.8); }
html[data-theme="dark"] .agl-eyebrow { color: rgba(255, 255, 255, 0.8); }
html[data-theme="dark"] .agl-header { background-color: #264131; border-bottom-color: rgba(255, 255, 255, 0.18); }
html[data-theme="dark"] .agl-footer { background-color: #264131; border-top-color: rgba(255, 255, 255, 0.18); }
html[data-theme="dark"] .agl-footer .agl-footer-title, html[data-theme="dark"] .agl-footer .agl-footer-title a,
html[data-theme="dark"] .agl-footer a { color: #FFFFFF; }
html[data-theme="dark"] .agl-footer .agl-eyebrow { color: rgba(255, 255, 255, 0.8); }
html[data-theme="dark"] .wp-block-separator,
html[data-theme="dark"] .agl-border-top, html[data-theme="dark"] .agl-section.has-accent-3-background-color { border-color: rgba(255, 255, 255, 0.25); }
html[data-theme="dark"] .wp-block-site-logo img { filter: brightness(0) invert(1); }
html[data-theme="dark"] .is-style-agl-watermark { background-image: url("assets/images/watermark-white.png"); }

/* Buttons on the green: white with green text; outline buttons in white */
html[data-theme="dark"] .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #FFFFFF; color: #264131; border-color: #FFFFFF; }
html[data-theme="dark"] .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }

/* Cards, quotes and screenshots stay as they are: white cards keep black text and green headings */
html[data-theme="dark"] .is-style-agl-card:not(.has-background) { background-color: #FFFFFF; color: #000000; border-color: transparent; }
html[data-theme="dark"] .is-style-agl-card:not(.has-background) :where(h1, h2, h3, h4, a) { color: #264131; }
html[data-theme="dark"] .is-style-agl-card:not(.has-background) .has-accent-4-color,
html[data-theme="dark"] .is-style-agl-card:not(.has-background) .wp-block-post-date { color: #5B6B60; }
html[data-theme="dark"] .is-style-agl-card:not(.has-background) .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #264131; color: #FFFFFF; border-color: #264131; }

/* Form fields: white fields, white outlines */
html[data-theme="dark"] :where(input, textarea, select) { background: #FFFFFF; color: #000000; border-color: #FFFFFF; }

/* Hover: fade rather than darken (brand v2.1) */
a:hover, .wp-element-button:hover { opacity: 0.85; }

/* Dark mode, v2.3.1 fix: WordPress core prints colour preset classes with !important,
   so the dark colourway has to match that to take effect on the header, footer and sections. */
html[data-theme="dark"] .has-base-background-color,
html[data-theme="dark"] .has-accent-1-background-color,
html[data-theme="dark"] .has-accent-2-background-color,
html[data-theme="dark"] .has-accent-3-background-color { background-color: #264131 !important; }
html[data-theme="dark"] .has-contrast-color,
html[data-theme="dark"] .has-base-color { color: #FFFFFF !important; }
html[data-theme="dark"] .has-accent-4-color,
html[data-theme="dark"] .has-accent-5-color { color: rgba(255, 255, 255, 0.8) !important; }
html[data-theme="dark"] .is-style-agl-card:not(.has-background) .has-contrast-color { color: #000000 !important; }
html[data-theme="dark"] .is-style-agl-card:not(.has-background) .has-accent-4-color,
html[data-theme="dark"] .is-style-agl-card:not(.has-background) .has-accent-5-color { color: #5B6B60 !important; }
html[data-theme="dark"] .agl-footer .wp-social-link { background-color: #FFFFFF !important; color: #264131 !important; }
html[data-theme="dark"] .wp-block-navigation__responsive-container.is-menu-open { background-color: #264131 !important; color: #FFFFFF !important; }

/* ==========================================================================
   v2.4.0: website page sections (Homepage first). Every rule is scoped to an
   agl- class so pages built from the designs look right and stay editable.
   ========================================================================== */

/* Small icons drawn in CSS so they follow the text colour (light and dark). */
.agl-chip--live::before, .agl-chip--soon::before, .agl-check::before, .agl-badge::before {
	content: ""; display: inline-block; flex: none; width: 14px; height: 14px; background: currentColor;
	-webkit-mask: var(--agl-ic) center / contain no-repeat; mask: var(--agl-ic) center / contain no-repeat;
}
.agl-chip--live, .agl-check, .agl-badge {
	--agl-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E");
}
.agl-chip--soon {
	--agl-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.5'/%3E%3Cpath d='M8 7.2v4M8 4.8v.1'/%3E%3C/svg%3E");
}

/* Status chips: "Live today", "Coming soon", "In the field now". */
.agl-chip { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin: 0; line-height: 1.5; color: var(--wp--preset--color--accent-1); white-space: nowrap; }
.agl-chip--live, .agl-chip--soon { padding: 3px 12px 3px 9px; }
.has-accent-1-background-color .agl-chip, .has-accent-2-background-color .agl-chip { color: #FFFFFF; }

/* Page sections sit edge to edge, with no gaps between the colour bands */
.wp-block-post-content > .agl-section.alignfull, .wp-block-post-content > .agl-band { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.agl-band { padding: 0 !important; }

/* Section headings and intro text */
.agl-section .agl-intro { max-width: 640px; }
.agl-section h2.wp-block-heading { margin-top: 0; }
.agl-head-row { gap: 24px; }
.agl-head-row > .wp-block-group:first-child { max-width: 700px; }

/* Hero: photo with the floating "synced" badge */
.agl-hero h1 { margin-top: 18px; }
.agl-hero-media { position: relative; }
.agl-hero-media .wp-block-image { margin: 0; }
.agl-hero-media .wp-block-image img { width: 100%; height: clamp(300px, 40vw, 520px); object-fit: cover; border-radius: 10px; display: block; }
.agl-badge {
	position: absolute; left: -20px; bottom: 36px; margin: 0 !important; display: flex; align-items: center; gap: 12px;
	background: #FFFFFF; color: #000000; border: 1px solid var(--wp--preset--color--accent-6); border-radius: 10px;
	padding: 16px 20px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.15);
	font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 16px; line-height: 1.3;
}
.agl-badge::before { color: var(--wp--preset--color--accent-1); }
@media (max-width: 781px) { .agl-badge { left: 12px; bottom: 12px; padding: 10px 14px; } }

/* Rows with a round icon, a heading and a line of text (the problem list) */
.agl-rows { border-top: 3px solid var(--wp--preset--color--accent-1); gap: 0 !important; }
.agl-row { padding: 16px 0; border-bottom: 1px solid var(--wp--preset--color--accent-6); gap: 18px !important; margin: 0 !important; }
.agl-row > .wp-block-image { margin: 0; flex: none; }
.agl-row > .wp-block-image img { width: 52px; height: 52px; display: block; }
.agl-row h3, .agl-item h3 { font-size: 22px; margin: 0 0 4px; }
.agl-row p, .agl-item p { margin: 0; font-size: 16px; }
.agl-row > .wp-block-group { gap: 4px; }

/* Photo beside text, rounded */
.agl-photo img { border-radius: 10px; width: 100%; object-fit: cover; display: block; }
.agl-photo { margin: 0; }

/* Module cards with their icons along the bottom */
.agl-mod-grid { gap: 20px !important; }
.agl-mod-card { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px !important; }
.agl-mod-card h3 { font-size: 26px; margin: 0; }
.agl-mod-card > p { margin: 0; font-size: 16px; }
.agl-icons { margin-top: auto !important; padding-top: 18px; border-top: 1px solid var(--wp--preset--color--accent-6); gap: 16px 8px !important; }
.agl-icon { display: flex; flex-direction: column; align-items: center; gap: 6px !important; text-align: center; margin: 0 !important; }
.agl-icon .wp-block-image { margin: 0; }
.agl-icon .wp-block-image img { width: 48px; height: 48px; display: block; }
.agl-icon .agl-icon-wide img { width: 44px; height: 28px; margin: 10px 2px; }
.agl-icon p { margin: 0; font-family: var(--wp--preset--font-family--mono); font-size: 11px; line-height: 1.3; color: var(--wp--preset--color--accent-4); }

/* Heading with a 72px module icon beside it (AgriHub) */
.agl-icon-head { gap: 20px !important; align-items: center; }
.agl-icon-head > .wp-block-image { margin: 0; flex: none; }
.agl-icon-head > .wp-block-image img { width: 72px; height: 72px; display: block; }
.agl-icon-head h2 { margin: 4px 0 0; }

/* Screenshot caption */
.agl-caption { font-family: var(--wp--preset--font-family--mono); font-size: 13px; color: var(--wp--preset--color--accent-4); margin-top: 12px; }

/* Check-mark lists: "Live today" and "Coming soon" columns */
.agl-checks { border-top: 3px solid var(--wp--preset--color--accent-1); gap: 0 !important; margin-top: 16px !important; }
.agl-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--wp--preset--color--accent-6); margin: 0 !important; }
.agl-check::before { margin-top: 7px; color: var(--wp--preset--color--accent-1); }
.agl-check > * { margin: 0; }
.agl-check h3 { font-size: 21px; margin: 0 0 2px; }
.agl-check p { margin: 0; font-size: 16px; }
.agl-check-text { flex: 1; }

/* Cards with a green line across the top (automation) */
.agl-card-grid { gap: 20px !important; }
.agl-top-card { border-top: 3px solid var(--wp--preset--color--accent-1) !important; display: flex; flex-direction: column; gap: 12px; margin: 0 !important; }
.agl-top-card > * { margin: 0 !important; }
.agl-top-card .wp-block-image img { width: 40px; height: 40px; display: block; }
.agl-top-card h3 { font-size: 26px; }
.agl-top-card p:not(.agl-chip) { font-size: 16px; }

/* AgriPay band */
.agl-agripay-lockup { gap: 16px !important; align-items: center; }
.agl-agripay-lockup .wp-block-image { margin: 0; flex: none; }
.agl-agripay-lockup .wp-block-image img { width: 92px; height: 58px; display: block; }
.agl-agripay-name { font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 52px; line-height: 1; margin: 0 !important; color: #FFFFFF; }
.agl-agripay-tag { font-family: var(--wp--preset--font-family--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin: 6px 0 0 !important; color: rgba(255, 255, 255, 0.8); }
.agl-partner { gap: 16px !important; align-items: center; }
.agl-partner p { margin: 0; font-family: var(--wp--preset--font-family--mono); font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.agl-partner .wp-block-image { margin: 0; background: #FFFFFF; border-radius: 8px; padding: 8px 14px; }
.agl-partner .wp-block-image img { height: 46px; width: auto; display: block; }
.agl-rows--light { border-top-color: #FFFFFF; }
.agl-rows--light .agl-row { border-bottom-color: rgba(255, 255, 255, 0.24); display: block; padding: 18px 0; }
.agl-rows--light .agl-row h3 { color: #FFFFFF; margin-bottom: 6px; }
.agl-rows--light .agl-row p { color: rgba(255, 255, 255, 0.85); }

/* Sprout: icon rows and the chat illustration */
.agl-sprout-rows { gap: 18px !important; }
.agl-sprout-rows .agl-row { border: 0; padding: 0; align-items: flex-start; }
.agl-sprout-rows .agl-row > .wp-block-image img { width: 48px; height: 48px; }
.agl-sprout-rows .agl-row h3 { font-size: 22px; }
.agl-chat { background: var(--wp--preset--color--accent-1); color: #FFFFFF; border-radius: 12px; padding: 22px; box-shadow: 0 24px 60px rgba(38, 65, 49, 0.25); display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.5; }
.agl-chat__top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 17px; }
.agl-chat__top img { width: 22px; height: 23px; }
.agl-chat__q { align-self: flex-end; max-width: 80%; background: #FFFFFF; color: #000000; border-radius: 10px; padding: 10px 14px; }
.agl-chat__a { align-self: flex-start; max-width: 88%; background: rgba(255, 255, 255, 0.12); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.agl-chat__bar { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; font-family: var(--wp--preset--font-family--mono); font-size: 12px; }
.agl-chat__bar i { display: block; height: 7px; background: #FFFFFF; border-radius: 2px; }
.agl-chat__note { font-family: var(--wp--preset--font-family--mono); font-size: 11px; color: rgba(255, 255, 255, 0.7); }

/* Four points with a green line on top (About) */
.agl-points { gap: 32px !important; }
.agl-item { border-top: 3px solid var(--wp--preset--color--accent-1); padding-top: 16px; margin: 0 !important; }
.agl-item h3 { margin-bottom: 8px; }

/* Results: client case cards */
.agl-case { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.agl-case > .wp-block-image { margin: 0; }
.agl-case > .wp-block-image img { width: 100%; height: 260px; object-fit: cover; display: block; border-radius: 0; }
.agl-case-body { padding: 24px 32px 32px; display: flex; flex-direction: column; gap: 18px; }
.agl-case-body > * { margin: 0 !important; }
.agl-case-brand { justify-content: space-between; align-items: center; gap: 12px; }
.agl-case-brand .wp-block-image { margin: 0; }
.agl-case-brand .wp-block-image img { height: 70px; width: auto; display: block; }
.agl-case-brand p { margin: 0; font-family: var(--wp--preset--font-family--mono); font-size: 12px; color: var(--wp--preset--color--accent-4); }
.agl-case h3 { font-size: 30px; line-height: 1.2; }
.agl-stats { gap: 12px !important; }
.agl-stat { background: var(--wp--preset--color--accent-3); border-radius: 10px; padding: 18px 20px; gap: 2px !important; margin: 0 !important; }
.agl-stat > * { margin: 0 !important; }
.agl-stat-num { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 34px; line-height: 1.1; color: var(--wp--preset--color--accent-1); }
.agl-stat-label { font-size: 15px; line-height: 1.4; color: var(--wp--preset--color--accent-4); }
.agl-case .agl-check strong { font-family: var(--wp--preset--font-family--heading); font-size: 18px; color: var(--wp--preset--color--accent-1); }
.agl-case .agl-checks { border-top-width: 1px; border-top-color: var(--wp--preset--color--accent-6); margin-top: 0 !important; }
.agl-case .agl-check { padding: 12px 0; }
.agl-case .agl-check::before { margin-top: 6px; }
.agl-quote { background: var(--wp--preset--color--accent-1); color: #FFFFFF; border-radius: 10px; padding: 26px 28px !important; gap: 18px !important; align-items: flex-start !important; margin-top: auto !important; }
.agl-quote .wp-block-image { margin: 0; flex: none; }
.agl-quote .wp-block-image img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid #FFFFFF; display: block; }
.agl-quote-text { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 20px; line-height: 1.4; color: #FFFFFF; }
.agl-quote-by { margin: 10px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.agl-logos { gap: 16px !important; }
.agl-logos .wp-block-image { margin: 0; border: 1px solid var(--wp--preset--color--accent-6); border-radius: 10px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; height: 132px; padding: 12px; }
.agl-logos .wp-block-image img { max-height: 105px; width: auto; display: block; }

/* News: latest posts as cards */
.agl-news .wp-block-post-template { gap: 24px; }
.agl-news .wp-block-post { border: 1px solid var(--wp--preset--color--accent-6); border-radius: 10px; overflow: hidden; background: #FFFFFF; display: flex; flex-direction: column; }
.agl-news .wp-block-post-featured-image { margin: 0; }
.agl-news .wp-block-post-featured-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.agl-news-body { padding: 20px 24px 24px; gap: 10px !important; flex: 1; }
.agl-news-body > * { margin: 0 !important; }
.agl-news-meta { gap: 6px !important; font-family: var(--wp--preset--font-family--mono); font-size: 12px; color: var(--wp--preset--color--accent-4); }
.agl-news-meta a { color: inherit; text-decoration: none; }
.agl-news .wp-block-post-title { font-size: 22px; line-height: 1.25; }
.agl-news .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--accent-1); }
.agl-news .wp-block-read-more { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 16px; color: var(--wp--preset--color--accent-1); margin-top: auto !important; }

/* Contact band */
.agl-contact-links p { margin: 0; }
.agl-contact-links a { color: #FFFFFF; font-size: 19px; }
.agl-form-card { background: #FFFFFF; color: #000000; border-radius: 12px; padding: 32px !important; }

/* Dark mode for the new sections */
html[data-theme="dark"] .agl-badge { background: #FFFFFF; color: #000000; }
html[data-theme="dark"] .agl-rows, html[data-theme="dark"] .agl-checks, html[data-theme="dark"] .agl-item { border-top-color: #FFFFFF; }
html[data-theme="dark"] .agl-row, html[data-theme="dark"] .agl-check { border-bottom-color: rgba(255, 255, 255, 0.24); }
html[data-theme="dark"] .agl-check::before, html[data-theme="dark"] .agl-chip { color: #FFFFFF; }
html[data-theme="dark"] .is-style-agl-card .agl-chip, html[data-theme="dark"] .is-style-agl-card .agl-check::before { color: #264131; }
html[data-theme="dark"] .is-style-agl-card .agl-check, html[data-theme="dark"] .is-style-agl-card .agl-row { border-bottom-color: var(--wp--preset--color--accent-6); }
html[data-theme="dark"] .is-style-agl-card .agl-checks { border-top-color: var(--wp--preset--color--accent-6); }
html[data-theme="dark"] .agl-icon p, html[data-theme="dark"] .agl-caption, html[data-theme="dark"] .agl-news-meta { color: rgba(255, 255, 255, 0.8); }
html[data-theme="dark"] .is-style-agl-card .agl-icon p, html[data-theme="dark"] .agl-case-brand p, html[data-theme="dark"] .agl-news .agl-news-meta { color: #5B6B60; }
html[data-theme="dark"] .agl-news .wp-block-post { background: #FFFFFF; color: #000000; }
html[data-theme="dark"] .agl-news .wp-block-post-title a, html[data-theme="dark"] .agl-news .wp-block-read-more { color: #264131; }
html[data-theme="dark"] .agl-stat { background-color: #F5F7F5 !important; }
html[data-theme="dark"] .agl-stat .agl-stat-num { color: #264131; }
html[data-theme="dark"] .agl-stat .agl-stat-label { color: #5B6B60; }
html[data-theme="dark"] .agl-quote, html[data-theme="dark"] .agl-chat { box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.24); }
html[data-theme="dark"] .agl-form-card { color: #000000; }
html[data-theme="dark"] .agl-form-card :where(h1, h2, h3, label) { color: #264131; }
html[data-theme="dark"] .agl-logos .wp-block-image { border-color: transparent; }

/* v2.4.1: Homepage review fixes */
.agl-rows > .agl-row, .agl-checks > .agl-check, .agl-sprout-rows > .agl-row { align-self: stretch; }
.agl-chip { margin-bottom: 0; }
.agl-chip:not(:first-child) { margin-top: var(--wp--style--block-gap, 1.2rem); }
.agl-top-card > .agl-chip { margin-top: 0 !important; }
.agl-icon p { font-size: 10.5px; letter-spacing: -0.02em; }
.agl-stat { padding: 16px !important; }
.agl-stat-num { font-size: clamp(24px, 2.3vw, 32px); white-space: nowrap; }
.agl-form-card :where(h1, h2, h3, h4) { color: var(--wp--preset--color--accent-1); }
.wp-site-blocks > footer.wp-block-template-part { margin-block-start: 0; }
html[data-theme="dark"] .agl-news .agl-news-meta, html[data-theme="dark"] .agl-news .agl-news-meta a, html[data-theme="dark"] .agl-news .wp-block-post-date { color: #5B6B60 !important; }
html[data-theme="dark"] .agl-rows:not(.agl-rows--light) .agl-row > .wp-block-image img { border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4); }

/* ==========================================================================
   v2.5.0: Modules page sections and the Community Benchmark band
   ========================================================================== */

/* Jump links under the page headline, drawn as pills */
.agl-pills { gap: 10px !important; padding-top: 12px; }
.agl-pills .wp-block-button__link { border-radius: 999px; border-width: 1.5px; padding: 7px 16px; font-size: 16px; font-weight: 600; }
.agl-pills .wp-block-button__link:hover { opacity: 0.8; }

/* Full-width photo between sections */
.wp-block-post-content > .agl-band-photo { margin-block: 0 !important; }
.agl-band-photo img { width: 100%; height: clamp(220px, 28vw, 380px); object-fit: cover; display: block; }

/* Section headline and its one-line introduction */
.agl-lede { font-size: 19px; line-height: 1.65; max-width: 36em; margin-top: 12px !important; }

/* Module cards: icon and status chip on top, crop tag at the foot */
.agl-module-grid, .agl-feature-grid, .agl-hw-grid { gap: 20px !important; margin-top: 40px !important; }
.agl-module { display: flex; flex-direction: column; gap: 14px; margin: 0 !important; }
.agl-module > * { margin: 0 !important; }
.agl-module-top { justify-content: space-between; align-items: flex-start !important; gap: 12px; }
.agl-module-top .wp-block-image { margin: 0; flex: none; }
.agl-module-top .wp-block-image img { width: 72px; height: 72px; display: block; }
.agl-module h3 { font-size: 27px; line-height: 1.2; }
.agl-crop { margin-top: auto !important; padding-top: 12px; border-top: 1px solid var(--wp--preset--color--accent-6); font-family: var(--wp--preset--font-family--mono); font-size: 13px; color: var(--wp--preset--color--accent-4); }
.agl-shot { margin-top: 48px !important; }

/* Built-in features: icon beside the text */
.agl-feature { gap: 18px !important; align-items: flex-start !important; margin: 0 !important; }
.agl-feature > .wp-block-image { margin: 0; flex: none; width: 64px; }
.agl-feature > .wp-block-image img { width: 64px; height: 64px; object-fit: contain; display: block; }
.agl-feature h3 { font-size: 26px; margin: 0 0 8px; }
.agl-feature p { margin: 0; }

/* Hardware cards on the green band */
.agl-hw { border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 10px; padding: 28px !important; display: flex; flex-direction: column; gap: 14px; margin: 0 !important; }
.agl-hw > * { margin: 0 !important; }
.agl-hw .wp-block-image img { width: 44px; height: 44px; display: block; }
.agl-hw h3 { font-size: 26px; color: #FFFFFF; }
.agl-hw p:not(.agl-chip) { color: rgba(255, 255, 255, 0.85); }

/* Closing call to action */
.agl-cta-row { justify-content: space-between; align-items: center !important; gap: 24px; }
.agl-cta-row > .wp-block-group { max-width: 640px; }
.agl-cta-row p { color: rgba(255, 255, 255, 0.85); }

/* Community Benchmark: text beside a sample bulletin */
.agl-smallprint { font-size: 14px; color: var(--wp--preset--color--accent-4); max-width: 34em; }
.agl-bench { background: #FFFFFF; color: #000000; border: 1px solid var(--wp--preset--color--accent-6); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(38, 65, 49, 0.14); font-size: 15px; line-height: 1.45; }
.agl-bench__head { background: var(--wp--preset--color--accent-1); color: #FFFFFF; padding: 18px 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.agl-bench__kicker { font-family: var(--wp--preset--font-family--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.agl-bench__farm { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 24px; line-height: 1.1; margin-top: 4px; }
.agl-bench__against { font-family: var(--wp--preset--font-family--mono); font-size: 11px; text-align: right; color: rgba(255, 255, 255, 0.8); }
.agl-bench__body { padding: 8px 22px 18px; }
.agl-bench__row { padding: 16px 0; border-bottom: 1px solid var(--wp--preset--color--accent-6); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.agl-bench__label { font-family: var(--wp--preset--font-family--mono); font-size: 12px; color: var(--wp--preset--color--accent-4); }
.agl-bench__tag { justify-self: end; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 12px; border-radius: 999px; padding: 2px 10px; border: 1.5px solid var(--wp--preset--color--accent-1); color: var(--wp--preset--color--accent-1); white-space: nowrap; }
.agl-bench__tag--good { background: var(--wp--preset--color--accent-1); color: #FFFFFF; }
.agl-bench__tag--watch { border-color: var(--wp--preset--color--accent-4); color: var(--wp--preset--color--accent-4); }
.agl-bench__value { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 26px; color: var(--wp--preset--color--accent-1); line-height: 1.1; }
.agl-bench__avg { justify-self: end; font-size: 12px; color: var(--wp--preset--color--accent-4); }
.agl-bench__bar { grid-column: 1 / -1; position: relative; height: 6px; border-radius: 3px; background: var(--wp--preset--color--accent-3); border: 1px solid var(--wp--preset--color--accent-6); margin-top: 10px; }
.agl-bench__bar::before { content: ""; position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; background: var(--wp--preset--color--accent-5); }
.agl-bench__bar i { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--wp--preset--color--accent-1); border: 2px solid #FFFFFF; box-shadow: 0 0 0 1px var(--wp--preset--color--accent-1); }
.agl-bench__scale { grid-column: 1 / -1; display: flex; justify-content: space-between; font-family: var(--wp--preset--font-family--mono); font-size: 10px; color: var(--wp--preset--color--accent-4); }
.agl-bench__mods { padding-top: 16px; }
.agl-bench__mods-title { font-family: var(--wp--preset--font-family--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--accent-4); margin-bottom: 10px; }
.agl-bench__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.agl-bench__chips span { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 13px; border-radius: 8px; padding: 6px 10px; background: var(--wp--preset--color--accent-1); color: #FFFFFF; }
.agl-bench__chips span.is-locked { background: var(--wp--preset--color--accent-3); color: var(--wp--preset--color--accent-4); border: 1px dashed var(--wp--preset--color--accent-6); }
.agl-bench__note { font-family: var(--wp--preset--font-family--mono); font-size: 11px; color: var(--wp--preset--color--accent-4); padding: 12px 22px 16px; border-top: 1px solid var(--wp--preset--color--accent-6); }

/* Dark mode */
html[data-theme="dark"] .agl-crop, html[data-theme="dark"] .agl-smallprint { color: rgba(255, 255, 255, 0.8); }
html[data-theme="dark"] .is-style-agl-card .agl-crop { color: #5B6B60; border-top-color: var(--wp--preset--color--accent-6); }
html[data-theme="dark"] .agl-bench { box-shadow: none; border-color: transparent; }
html[data-theme="dark"] .agl-bench, html[data-theme="dark"] .agl-bench__body { color: #000000; }

/* v2.5.1: grids with a set number of columns need WordPress's own 1.2rem gap, or the last column wraps */
.agl-module-grid, .agl-feature-grid, .agl-hw-grid { gap: 1.2rem !important; }
.agl-points { gap: 32px 1.2rem !important; }
/* v2.5.2: long status chips drop below the icon on phones instead of running off the screen */
@media (max-width: 600px) { .agl-module-top { flex-wrap: wrap !important; } .agl-module-top .agl-chip { white-space: normal; } }
/* v2.5.3: the photo band sits within the page width with rounded corners, so a smaller photo stays sharp */
.wp-block-post-content > .agl-band-photo { max-width: 1240px; margin: 0 auto !important; padding-bottom: clamp(56px, 7vw, 96px); box-sizing: content-box; }
.agl-band-photo img { border-radius: 10px; height: clamp(200px, 24vw, 320px); }
.wp-block-post-content > .agl-section:has(+ .agl-band-photo) { padding-bottom: clamp(40px, 4vw, 56px); }
.wp-block-image.agl-band-photo img { height: clamp(200px, 24vw, 320px); object-fit: cover; }

/* ==========================================================================
   v2.6.0: Sprout page sections
   ========================================================================== */
.agl-chip-row { gap: 10px !important; }
.agl-chip-row > .agl-chip { margin-top: 0 !important; }
.agl-q-grid { gap: 1.2rem !important; margin-top: 32px !important; }
.agl-q { padding: 20px 22px !important; margin: 0 !important; }
.agl-q p { margin: 0; font-size: 17px; line-height: 1.45; }
.agl-steps { margin-top: 40px !important; }
.agl-item .agl-step-num { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 48px; line-height: 1; margin: 0 0 10px !important; }
.has-accent-1-background-color .agl-item { border-top-color: #FFFFFF; }
.has-accent-1-background-color .agl-item h3, .has-accent-1-background-color .agl-step-num { color: #FFFFFF; }
.has-accent-1-background-color .agl-item p:not(.agl-step-num) { color: rgba(255, 255, 255, 0.85); }
.agl-phone { max-width: 340px; margin: 0 auto; border: 10px solid #000000; border-radius: 40px; overflow: hidden; box-shadow: 0 24px 60px rgba(38, 65, 49, 0.25); }
.agl-phone .agl-chat { border-radius: 0; box-shadow: none; min-height: 420px; padding-top: 28px; }
html[data-theme="dark"] .agl-phone { border-color: #000000; box-shadow: none; }
html[data-theme="dark"] .agl-phone .agl-chat { border: 0; }
/* v2.6.1: Sprout page spacing */
.agl-chip-row + .wp-block-heading { margin-top: 24px !important; }
.agl-points.agl-steps { gap: 32px 40px !important; }

/* ==========================================================================
   v2.7.0: About, Blog, Article and Contact pages
   ========================================================================== */

/* Headlines that wrap earlier, as in the designs */
.agl-h1-narrow { max-width: 13em; }
.agl-h2-narrow { max-width: 16em; }

/* About: rounded photo beside text */
.agl-photo { margin: 0; }
.wp-block-image.agl-photo img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 10px; display: block; }

/* About: team cards */
.agl-team-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 40px 32px !important; margin-top: 40px !important; }
@media (max-width: 1000px) { .agl-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 760px) { .agl-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 32px 20px !important; } }
.agl-team { display: flex; flex-direction: column; gap: 4px; margin: 0 !important; }
.agl-team > * { margin: 0 !important; }
.agl-team > .wp-block-image { margin-bottom: 12px !important; }
.wp-block-image.agl-team img, .agl-team .wp-block-image img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 10px; display: block; }
.agl-team h3 { font-size: 22px; line-height: 1.25; }
.agl-team-role { font-size: 16px; line-height: 1.45; color: var(--wp--preset--color--accent-4); }
.agl-team-bio { font-size: 15px; line-height: 1.55; margin-top: 8px !important; }
@media (max-width: 480px) { .agl-team h3 { font-size: 19px; } .agl-team-role { font-size: 14px; } .agl-team-bio { font-size: 14px; } }

/* About: industry membership logo */
.agl-hdc-logo { margin: 0 0 0 auto !important; width: fit-content; }
.wp-block-image.agl-hdc-logo img { width: 260px; max-width: 100%; height: auto; border-radius: 8px; display: block; }
@media (max-width: 781px) { .agl-hdc-logo { margin: 8px 0 0 !important; } }

/* Blog: category pills */
.agl-cat-pills { gap: 10px !important; align-items: center !important; }
.agl-cat-pills > * { margin: 0 !important; }
.agl-cat-pills ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.agl-cat-pills li { margin: 0; }
.agl-cat-pills .cat-item-1 { display: none; }
.agl-cat-pills a { display: inline-block; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 16px; line-height: 1.3; padding: 8px 16px; border: 1.5px solid var(--wp--preset--color--accent-6); border-radius: 999px; background: #FFFFFF; color: var(--wp--preset--color--accent-1); text-decoration: none; }
.agl-cat-pills a:hover { border-color: var(--wp--preset--color--accent-1); opacity: 1; }
.agl-cat-pills a[aria-current], .agl-cat-pills .current-cat > a { background: var(--wp--preset--color--accent-1); border-color: var(--wp--preset--color--accent-1); color: #FFFFFF; }

/* Blog: the latest article, shown large */
.agl-featured { margin-top: 32px !important; }
.agl-featured .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.agl-featured .wp-block-post { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--wp--preset--color--accent-6); border-radius: 10px; overflow: hidden; background: #FFFFFF; }
.agl-featured .wp-block-post-featured-image { margin: 0; height: 100%; }
.agl-featured .wp-block-post-featured-image a { display: block; height: 100%; }
.agl-featured .wp-block-post-featured-image img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; display: block; }
.agl-featured-body { padding: 40px !important; gap: 14px !important; justify-content: center; }
.agl-featured-body > * { margin: 0 !important; }
.agl-featured .wp-block-post-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; }
.agl-featured .wp-block-post-title a { color: var(--wp--preset--color--accent-1); text-decoration: none; }
.agl-featured .wp-block-post-excerpt__excerpt { margin: 0; font-size: 17px; }
.agl-featured .wp-block-read-more { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 16px; color: var(--wp--preset--color--accent-1); }
@media (max-width: 781px) {
	.agl-featured .wp-block-post { grid-template-columns: minmax(0, 1fr); }
	.agl-featured .wp-block-post-featured-image img { min-height: 0; height: 220px; }
	.agl-featured-body { padding: 24px !important; }
}

/* Blog: article grid and page numbers */
.agl-blog-grid { margin-top: 24px !important; }
.agl-blog-grid .wp-block-query-pagination { margin-top: 40px !important; gap: 8px !important; font-family: var(--wp--preset--font-family--heading); font-weight: 600; }
.agl-blog-grid .wp-block-query-pagination-numbers { display: flex; gap: 8px; margin: 0; }
.agl-blog-grid .wp-block-query-pagination a, .agl-blog-grid .wp-block-query-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 14px; margin: 0; border: 1.5px solid var(--wp--preset--color--accent-6); border-radius: 8px; background: #FFFFFF; color: var(--wp--preset--color--accent-1); text-decoration: none; font-size: 16px; box-sizing: border-box; }
.agl-blog-grid .wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--accent-1); border-color: var(--wp--preset--color--accent-1); color: #FFFFFF; }
.agl-blog-grid .wp-block-query-pagination .page-numbers.dots { border: 0; background: none; padding: 0 4px; min-width: 0; }

/* Article page */
.agl-article-top { padding: clamp(40px, 5vw, 64px) 32px 0; }
.agl-article-top > * { margin-top: 0; }
.agl-back { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 16px; }
.agl-back a { color: var(--wp--preset--color--accent-1); }
.agl-article-top .agl-news-meta { margin-top: 20px !important; }
.agl-article-top .wp-block-post-title { font-size: clamp(36px, 5vw, 64px); line-height: 1.08; margin-top: 12px !important; }
.agl-summary { margin-top: 16px !important; font-size: clamp(19px, 2vw, 22px); line-height: 1.55; color: var(--wp--preset--color--accent-4); }
.agl-summary .wp-block-post-excerpt__excerpt { margin: 0; }
.agl-article-image { padding: 40px 32px 0; }
.agl-article-image .wp-block-post-featured-image { margin: 0; }
.agl-article-image .wp-block-post-featured-image img { width: 100%; height: clamp(240px, 40vw, 480px); object-fit: cover; border-radius: 10px; display: block; }
.agl-article-body { padding: 48px 32px 0; }
.agl-article-body.wp-block-post-content > p { max-width: 720px; }
.agl-article-body .wp-block-quote { border-left: 3px solid var(--wp--preset--color--accent-1); padding: 4px 0 4px 24px; margin-block: 32px; }
.agl-article-body .wp-block-quote p { font-family: var(--wp--preset--font-family--heading); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; color: var(--wp--preset--color--accent-1); }
.agl-article-body .wp-block-quote cite { font-size: 15px; font-style: normal; color: var(--wp--preset--color--accent-4); }
.agl-article-cta-wrap { padding: 40px 32px clamp(64px, 8vw, 96px); }
.agl-article-cta { background: var(--wp--preset--color--accent-3); border: 1px solid var(--wp--preset--color--accent-6); border-radius: 10px; padding: 24px 28px !important; gap: 16px !important; }
.agl-article-cta h3 { font-size: 26px; margin: 0; }
.agl-related .wp-block-post-template > li:nth-child(n+4) { display: none; }
.agl-archive .wp-block-query-title { margin-top: 12px; }

/* Contact: booking and message cards */
.agl-contact-card { display: flex; flex-direction: column; gap: 16px; padding: 32px !important; margin: 0 !important; }
.agl-contact-card > * { margin: 0 !important; }
.agl-contact-card + .agl-contact-card { margin-top: 24px !important; }
.agl-contact-card h2, .agl-side h2 { font-size: clamp(28px, 3vw, 36px); }
.agl-contact-card .wp-block-buttons { margin-top: 4px !important; }
.agl-bookings { border: 1px solid var(--wp--preset--color--accent-6); border-radius: 8px; overflow: hidden; background: #FFFFFF; }
.agl-bookings iframe { display: block; width: 100%; height: 640px; border: 0; }
.agl-form-placeholder { border: 1px dashed var(--wp--preset--color--accent-6); border-radius: 8px; padding: 32px 24px; text-align: center; font-family: var(--wp--preset--font-family--mono); font-size: 13px; color: var(--wp--preset--color--accent-4); }
@media (max-width: 600px) { .agl-contact-card { padding: 22px !important; } .agl-bookings iframe { height: 720px; } }

/* Contact: direct details beside the cards */
.agl-side > * { margin-top: 0; }
.agl-side h3 { font-size: 26px; margin-top: 36px !important; }
.agl-side p { margin-top: 10px; }
.agl-side .wp-block-buttons { margin-top: 16px; }
.agl-side-link { font-size: 21px; margin-top: 8px !important; }
.agl-side-link a { color: var(--wp--preset--color--accent-1); }

/* Contact: common questions */
.agl-faq { margin-top: 32px !important; }
.agl-faq .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--accent-6); padding: 18px 0; margin: 0 !important; }
.agl-faq summary { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 22px; line-height: 1.3; color: var(--wp--preset--color--accent-1); cursor: pointer; }
.agl-faq .wp-block-details p { margin: 12px 0 0; max-width: 46em; font-size: 16px; }

/* Dark mode */
html[data-theme="dark"] .agl-team-role, html[data-theme="dark"] .agl-summary { color: rgba(255, 255, 255, 0.8); }
html[data-theme="dark"] .agl-cat-pills a { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.4); }
html[data-theme="dark"] .agl-cat-pills a[aria-current], html[data-theme="dark"] .agl-cat-pills .current-cat > a { background: #FFFFFF; color: #264131; border-color: #FFFFFF; }
html[data-theme="dark"] .agl-featured .wp-block-post { background: #FFFFFF; color: #000000; border-color: transparent; }
html[data-theme="dark"] .agl-featured .wp-block-post-title a, html[data-theme="dark"] .agl-featured .wp-block-read-more, html[data-theme="dark"] .agl-featured .agl-chip { color: #264131; }
html[data-theme="dark"] .agl-featured .agl-news-meta, html[data-theme="dark"] .agl-featured .agl-news-meta a, html[data-theme="dark"] .agl-featured .wp-block-post-date { color: #5B6B60 !important; }
html[data-theme="dark"] .agl-blog-grid .wp-block-query-pagination a, html[data-theme="dark"] .agl-blog-grid .wp-block-query-pagination .page-numbers { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.4); }
html[data-theme="dark"] .agl-blog-grid .wp-block-query-pagination .page-numbers.current { background: #FFFFFF; color: #264131; border-color: #FFFFFF; }
html[data-theme="dark"] .agl-blog-grid .wp-block-query-pagination .page-numbers.dots { border: 0; }
html[data-theme="dark"] .agl-back a, html[data-theme="dark"] .agl-side-link a, html[data-theme="dark"] .agl-faq summary { color: #FFFFFF; }
html[data-theme="dark"] .agl-article-body .wp-block-quote { border-left-color: #FFFFFF; }
html[data-theme="dark"] .agl-article-body .wp-block-quote p { color: #FFFFFF; }
html[data-theme="dark"] .agl-article-body .wp-block-quote cite { color: rgba(255, 255, 255, 0.8); }
html[data-theme="dark"] .agl-article-cta { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.24); }
html[data-theme="dark"] .agl-faq .wp-block-details { border-bottom-color: rgba(255, 255, 255, 0.25); }
html[data-theme="dark"] .agl-contact-card .agl-form-placeholder { color: #5B6B60; }
html[data-theme="dark"] .agl-bookings { border-color: var(--wp--preset--color--accent-6); }
html[data-theme="dark"] .is-style-agl-card:not(.has-background) .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #264131; border-color: #264131; }

/* v2.7.1: category pills flow together on narrow screens */
.agl-cat-pills ul.wp-block-categories-list { display: contents; }
.agl-cat-pills ul.wp-block-categories-list > li { list-style: none; }

/* ==========================================================================
   v2.8.0: AgriPay page
   ========================================================================== */

/* Opening section: AgriPay leads, with a large faint AgriPay mark behind it */
.agl-ap-hero { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1586 1000'%3E%3Cpath d='M500,0 H1586 V500 A500,500 0 0 1 1086,1000 H0 V500 A500,500 0 0 1 500,0 Z' fill='%23264131' fill-opacity='0.06'/%3E%3Crect x='0' y='160' width='1586' height='200' fill='%23FFFFFF'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right -140px bottom -90px; background-size: 760px auto; }
.agl-ap-lockup { gap: 30px !important; align-items: center !important; }
.agl-ap-lockup > * { margin: 0 !important; }
.agl-ap-lockup .wp-block-image { flex: none; }
.agl-ap-lockup .wp-block-image img { width: 150px; height: auto; display: block; }
.agl-ap-lockup .agl-ap-mark-d { display: none !important; }
.agl-ap-word { font-family: var(--wp--preset--font-family--heading); font-weight: 400; font-size: clamp(60px, 8vw, 92px); line-height: 0.95; color: var(--wp--preset--color--accent-1); margin: 0 !important; }
.agl-ap-tag { font-family: var(--wp--preset--font-family--mono); font-size: clamp(13px, 1.4vw, 18px); letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--accent-4); margin: 8px 0 0 !important; }
.wp-block-heading.agl-ap-h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.06; max-width: 17em; }
.agl-partner--light p { color: var(--wp--preset--color--accent-4); }
.agl-partner--light .wp-block-image { border: 1px solid var(--wp--preset--color--accent-6); }
@media (max-width: 600px) { .agl-ap-lockup { gap: 18px !important; } .agl-ap-lockup .wp-block-image img { width: 96px; } }

/* How AgriPay works: records, AgriPay, paid */
.agl-flow { gap: 12px !important; align-items: stretch !important; margin-top: 48px !important; }
.agl-flow > * { margin: 0 !important; }
.agl-flow-box { flex: 1 1 260px; min-width: 0; background: #FFFFFF; border: 1px solid var(--wp--preset--color--accent-6); border-radius: 12px; padding: 28px !important; gap: 14px !important; }
.agl-flow-box > * { margin: 0 !important; }
.agl-flow-box.agl-flow-box--green { border-color: var(--wp--preset--color--accent-1); }
.agl-flow-label { font-family: var(--wp--preset--font-family--mono); font-size: 13px; color: var(--wp--preset--color--accent-4); }
.agl-flow-box--green .agl-flow-label { color: rgba(255, 255, 255, 0.8); }
.agl-flow-mod { gap: 12px !important; align-items: center !important; }
.agl-flow-mod > * { margin: 0 !important; }
.agl-flow-mod .wp-block-image { flex: none; }
.agl-flow-mod .wp-block-image img { width: 48px; height: 48px; display: block; }
.agl-flow-mod p { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 19px; line-height: 1.25; color: var(--wp--preset--color--accent-1); }
.wp-block-image.agl-flow-mark img { width: 96px; height: auto; display: block; }
.agl-flow-box--green h3 { font-size: 24px; color: #FFFFFF; }
.agl-flow-box--green p:not(.agl-flow-label) { font-size: 16px; color: #FFFFFF; }
.agl-dest { border: 1px solid var(--wp--preset--color--accent-6); border-radius: 10px; padding: 16px 18px !important; gap: 2px !important; }
.agl-dest > * { margin: 0 !important; }
.agl-dest-name { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 20px; color: var(--wp--preset--color--accent-1); }
.agl-dest p:not(.agl-dest-name), .agl-flow-note { font-size: 15px; color: var(--wp--preset--color--accent-4); }
.agl-flow-arrow { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: var(--wp--preset--color--accent-1); padding: 0 4px; }
.agl-flow-arrow svg { display: block; width: 40px; height: 40px; }
@media (max-width: 900px) { .agl-flow-arrow { flex-basis: 100%; } .agl-flow-arrow svg { transform: rotate(90deg); } }

/* Worker's phone view (illustration) */
.agl-pay-phone { width: 300px; max-width: 100%; margin: 0 auto; border: 10px solid #000000; border-radius: 40px; background: #FFFFFF; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); color: #000000; font-size: 15px; line-height: 1.5; }
.agl-pay-phone__top { background: #264131; color: #FFFFFF; padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.agl-pay-phone__brand { display: flex; align-items: center; gap: 10px; font-family: var(--wp--preset--font-family--heading); font-size: 20px; }
.agl-pay-phone__brand img { width: 34px; height: auto; display: block; }
.agl-pay-phone__label { font-family: var(--wp--preset--font-family--mono); font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.agl-pay-phone__amount { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 40px; line-height: 1; }
.agl-pay-phone__rows { padding: 6px 20px 18px; }
.agl-pay-phone__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #C9D2CB; }
.agl-pay-phone__row span { color: #5B6B60; }
.agl-pay-phone__row b { font-family: var(--wp--preset--font-family--heading); font-weight: 600; color: #264131; }
.agl-pay-phone__note { margin-top: 14px; font-family: var(--wp--preset--font-family--mono); font-size: 11px; color: #5B6B60; }
.agl-note-light { font-size: 15px; color: rgba(255, 255, 255, 0.8); }

/* Closing band */
.agl-ap-cta-text { max-width: 30em; gap: 16px; }
.agl-ap-cta-text > * { margin: 0 !important; }
.agl-ap-cta-text .wp-block-buttons { margin-top: 16px !important; }

/* Dark mode */
html[data-theme="dark"] .agl-ap-hero { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1586 1000'%3E%3Cpath d='M500,0 H1586 V500 A500,500 0 0 1 1086,1000 H0 V500 A500,500 0 0 1 500,0 Z' fill='%23FFFFFF' fill-opacity='0.06'/%3E%3Crect x='0' y='160' width='1586' height='200' fill='%23264131'/%3E%3C/svg%3E"); }
html[data-theme="dark"] .agl-ap-lockup .agl-ap-mark-l { display: none !important; }
html[data-theme="dark"] .agl-ap-lockup .agl-ap-mark-d { display: block !important; }
html[data-theme="dark"] .agl-ap-word { color: #FFFFFF; }
html[data-theme="dark"] .agl-ap-tag, html[data-theme="dark"] .agl-partner--light p { color: rgba(255, 255, 255, 0.8); }
html[data-theme="dark"] .agl-partner--light .wp-block-image { border-color: transparent; }
html[data-theme="dark"] .agl-flow-box:not(.agl-flow-box--green) { background: #FFFFFF; color: #000000; border-color: transparent; }
html[data-theme="dark"] .agl-flow-box.agl-flow-box--green { border-color: rgba(255, 255, 255, 0.3); }
html[data-theme="dark"] .agl-flow-arrow { color: #FFFFFF; }
html[data-theme="dark"] .agl-flow-box .agl-flow-mod p, html[data-theme="dark"] .agl-dest-name { color: #264131; }
html[data-theme="dark"] .agl-flow-box:not(.agl-flow-box--green) .agl-flow-label, html[data-theme="dark"] .agl-dest p:not(.agl-dest-name), html[data-theme="dark"] .agl-flow-note { color: #5B6B60; }
html[data-theme="dark"] .agl-pay-phone { box-shadow: none; }

/* v2.8.1: flow card contents fill the card width */
.agl-flow-box > * { align-self: stretch; }

/* v2.8.2: no faint AgriPay mark behind the text on phones */
@media (max-width: 781px) { .agl-ap-hero, html[data-theme="dark"] .agl-ap-hero { background-image: none; } }

/* ==========================================================================
   v2.9.0: contact form (Contact Form 7) and the FAQs page
   ========================================================================== */

/* Contact form */
.wpcf7 form { display: flex; flex-direction: column; gap: 18px; }
.wpcf7 form p { margin: 0; }
.wpcf7 form br { display: none; }
.wpcf7 .agl-cf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px 16px; }
.wpcf7 label, .wpcf7 .agl-cf-interests legend { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 15px; line-height: 1.3; color: #000000; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea { display: block; width: 100%; box-sizing: border-box; border: 1.5px solid var(--wp--preset--color--accent-6); border-radius: 8px; padding: 12px 14px; font-family: var(--wp--preset--font-family--body); font-size: 16px; line-height: 1.4; background: #FFFFFF; color: #000000; }
.wpcf7 textarea { min-height: 120px; resize: vertical; }
.wpcf7 input[type="text"]:focus, .wpcf7 input[type="email"]:focus, .wpcf7 input[type="tel"]:focus, .wpcf7 textarea:focus { border-color: var(--wp--preset--color--accent-1); outline: 2px solid var(--wp--preset--color--accent-1); outline-offset: 1px; }
.wpcf7 .agl-cf-interests { border: 0; padding: 0; margin: 0; min-width: 0; }
.wpcf7 .agl-cf-interests legend { padding: 0; margin-bottom: 8px; }
.wpcf7 .wpcf7-checkbox { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 4px 16px; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-list-item label { display: flex; align-items: center; gap: 10px; min-height: 36px; font-family: var(--wp--preset--font-family--body); font-weight: 400; font-size: 15px; cursor: pointer; }
.wpcf7 .wpcf7-list-item input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #264131; }
.wpcf7 .wpcf7-submit { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 17px; background: #264131; color: #FFFFFF; border: 2px solid #264131; border-radius: 10px; padding: 13px 26px; cursor: pointer; }
.wpcf7 .wpcf7-submit:hover { opacity: 0.85; }
.wpcf7 .wpcf7-spinner { margin: 0 12px; vertical-align: middle; }
.wpcf7 .wpcf7-not-valid { border-color: #000000 !important; border-width: 2px !important; }
.wpcf7 .wpcf7-not-valid-tip { margin-top: 6px; font-size: 14px; font-weight: 600; color: #000000; }
.wpcf7 form .wpcf7-response-output { margin: 0; border: 1.5px solid #000000; border-radius: 8px; padding: 12px 16px; font-size: 15px; color: #000000; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--wp--preset--color--accent-1); background: var(--wp--preset--color--accent-3); }
html[data-theme="dark"] .wpcf7 input[type="text"], html[data-theme="dark"] .wpcf7 input[type="email"], html[data-theme="dark"] .wpcf7 input[type="tel"], html[data-theme="dark"] .wpcf7 textarea { border-color: var(--wp--preset--color--accent-6); }
html[data-theme="dark"] .wpcf7 label, html[data-theme="dark"] .wpcf7 .agl-cf-interests legend, html[data-theme="dark"] .wpcf7 .wpcf7-not-valid-tip { color: #000000; }
html[data-theme="dark"] .wpcf7 .wpcf7-submit { background: #264131; color: #FFFFFF; border-color: #264131; }

/* FAQs page: question groups */
.agl-faq-page > .agl-faq-group { margin: 0 auto !important; padding: 36px 0 44px; border-top: 1px solid var(--wp--preset--color--accent-6); }
.agl-faq-page > .agl-faq-group:first-child { border-top: 0; padding-top: 0; }
.agl-faq-group > .wp-block-columns { margin: 0; }
.agl-faq-title { font-size: clamp(26px, 2.6vw, 34px) !important; position: sticky; top: 24px; }
.agl-faq--page { margin-top: 0 !important; border-top: 1px solid var(--wp--preset--color--accent-6); }
.agl-faq--page .wp-block-details:first-child { padding-top: 18px; }
.agl-faq .wp-block-details p a { color: var(--wp--preset--color--accent-1); }
@media (max-width: 781px) { .agl-faq-title { position: static; } }
html[data-theme="dark"] .agl-faq-page > .agl-faq-group, html[data-theme="dark"] .agl-faq--page { border-color: rgba(255, 255, 255, 0.25); }
html[data-theme="dark"] .agl-faq .wp-block-details p a { color: #FFFFFF; }

/* v2.9.1: FAQs groups divided by one line each; Client login stands out in the footer menu */
.agl-faq--page { border-top: 0; }
.agl-faq-page > .agl-faq-group:first-child .agl-faq--page { border-top: 1px solid var(--wp--preset--color--accent-6); }
.agl-faq-page > .agl-faq-group:not(:first-child) .agl-faq--page .wp-block-details:first-child { padding-top: 0; }
.agl-footer .agl-nav-login a, .agl-footer .agl-nav-login .wp-block-navigation-item__content { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* v2.9.5: article body spacing (as designed), press source line */
.agl-article-body > h2 { font-size: clamp(26px, 3vw, 34px) !important; line-height: 1.15; margin-top: 48px !important; }
.agl-article-body > h3 { margin-top: 36px !important; }
.agl-article-body > .wp-block-image { margin-block: 32px !important; }
.agl-article-body > .wp-block-image img { border-radius: 10px; }
.agl-article-body .agl-source { font-size: 15px; color: var(--wp--preset--color--accent-4); margin-top: 28px !important; }
.agl-article-body > .wp-block-buttons { margin-top: 20px !important; }
html[data-theme="dark"] .agl-article-body .agl-source { color: rgba(255, 255, 255, 0.8); }
