/* ==========================================================================
   AiGreenTools — Design layer v3  ·  "Vivid directory"
   --------------------------------------------------------------------------
   Brand range: #10B981 (emerald) · #0D9488 (teal) · #06B6D4 (cyan). No black.
   One file, loaded AFTER the existing CSS. Every rule is scoped under
   body.agt-v3: removing that one body class restores today's design.
   Fonts are the ones the site already loads (Sora + Inter).
   ========================================================================== */

/* === 0. TOKENS =========================================================== */
body.agt-v3 {
  --g-emerald: #10B981; --g-teal: #0D9488; --g-cyan: #06B6D4;
  --g-teal-700: #0F766E;            /* text links, small green text (AA) */
  --g-ink: #134E4A;                 /* headings: deep teal, not black */
  --g-ink-2: #2F524E;               /* body text */
  --g-ink-3: #4F6B67;               /* metadata */
  --g-bg: #F6FCFA; --g-surface: #FFFFFF;
  --g-tint: #ECFDF5; --g-tint-2: #ECFEFF; --g-tint-3: #F0FDFA;
  --g-line: #D5EFE8; --g-line-2: #A7E3D6;
  --g-on-grad: #053B36;             /* text on the bright gradient */
  --g-grad: linear-gradient(135deg, #34D399 0%, #2DD4BF 50%, #22D3EE 100%);   /* buttons: light and bright */
  --g-grad-3: linear-gradient(135deg, #10B981 0%, #0D9488 50%, #06B6D4 100%);
  --g-grad-text: linear-gradient(100deg, #047857 0%, #0F766E 45%, #0E7490 100%);
  --g-shadow-1: 0 1px 2px rgba(13,148,136,.06), 0 4px 14px -6px rgba(13,148,136,.14);
  --g-shadow-2: 0 14px 30px -16px rgba(19,78,74,.22), 0 4px 10px -6px rgba(19,78,74,.10);   /* hover: light and soft */
  --g-glow: 0 10px 24px -12px rgba(20,184,166,.6), inset 0 1px 0 rgba(255,255,255,.45);
  --g-r-s: 10px; --g-r-m: 14px; --g-r-l: 20px;
  --g-wrap: 1200px; --g-gutter: clamp(18px, 4vw, 40px);
  --g-display: 'Sora', 'Inter', system-ui, sans-serif;
  --g-text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --g-ease: cubic-bezier(.22, 1, .36, 1);
}

/* === 1. BASE ============================================================= */
body.agt-v3, body.agt-v3.wp-singular {
  background-color: var(--g-bg) !important;
  background-image:
    radial-gradient(52rem 30rem at 8% -6rem, rgba(16,185,129,.13), transparent 62%),
    radial-gradient(52rem 30rem at 94% -8rem, rgba(6,182,212,.14), transparent 62%) !important;
  background-size: auto !important; background-attachment: scroll !important; background-repeat: no-repeat !important;
  color: var(--g-ink-2); font-family: var(--g-text); font-size: 1.0625rem; line-height: 1.6;
}
body.agt-v3 ::selection { background: #A7F3D0; color: var(--g-on-grad); }
body.agt-v3.home #page, body.agt-v3.single-ai_tool #page { max-width: none; }
body.agt-v3.home #content.site-content, body.agt-v3.single-ai_tool #content.site-content { max-width: none; padding-left: var(--g-gutter); padding-right: var(--g-gutter); }
body.agt-v3.home .entry-content { margin-top: 0; }

/* Entrance animation: content is visible by default. It only starts hidden
   when the small footer script has confirmed it can reveal it (html.agt-motion). */
body.agt-v3 .ait-reveal { opacity: 1; transform: none; }
html.agt-motion body.agt-v3 .ait-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--g-ease), transform .6s var(--g-ease); }
html.agt-motion body.agt-v3 .ait-reveal.ait-in { opacity: 1; transform: none; }

/* === 2. HEADER =========================================================== */
body.agt-v3 .site-header {
  background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--g-line);
}
body.agt-v3.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.agt-v3.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { body.agt-v3.admin-bar .site-header { top: 0; } }
body.agt-v3 .site-header::after { height: 2px; bottom: -2px; opacity: .9; background: linear-gradient(90deg, #A7E3D6 0%, #10B981 30%, #06B6D4 50%, #10B981 70%, #A7E3D6 100%); background-size: 200% 100%; animation: agt-flow 9s linear infinite; }
@keyframes agt-flow { from { background-position: 0% 0; } to { background-position: -200% 0; } }
body.agt-v3 .inside-header { min-height: 70px; max-width: calc(var(--g-wrap) + 2 * var(--g-gutter)); padding-left: var(--g-gutter); padding-right: var(--g-gutter); }
body.agt-v3 .main-navigation .inside-navigation { justify-content: flex-end; }
body.agt-v3 .main-navigation .main-nav > ul { gap: .15rem; }
body.agt-v3 .main-navigation .main-nav ul li a {
  font-family: var(--g-text); font-size: .95rem; font-weight: 600; color: var(--g-ink-2);
  padding: .55rem .85rem; line-height: 1.4; border-radius: 999px; background: transparent; transition: color .15s ease, background-color .15s ease;
}
body.agt-v3 .main-navigation .main-nav ul li a::after { display: none; }
body.agt-v3 .main-navigation .main-nav ul li a:hover,
body.agt-v3 .main-navigation .main-nav ul li.sfHover > a { color: var(--g-ink); background: var(--g-tint); }
body.agt-v3 .main-navigation .main-nav > ul > li.current-menu-item > a { color: var(--g-teal-700); background: var(--g-tint); box-shadow: inset 0 0 0 1px var(--g-line-2); }
body.agt-v3 .main-navigation .main-nav ul li.menu-item-has-children > a { padding-right: .35rem; }
body.agt-v3 .menu-item-has-children .dropdown-menu-toggle { padding-left: .3rem; padding-right: .45rem; color: var(--g-teal); }
body.agt-v3 .main-navigation .main-nav ul ul {
  background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r-m); padding: .45rem; margin-top: .35rem;
  box-shadow: var(--g-shadow-2); min-width: 255px !important;
}
body.agt-v3 .main-navigation .main-nav ul ul ul { margin-top: 0; }
body.agt-v3 .main-navigation .main-nav ul ul li a { font-size: .9rem; font-weight: 500; border-radius: var(--g-r-s); padding: .55rem .75rem !important; }
body.agt-v3 .main-navigation .main-nav ul ul .dropdown-menu-toggle { padding: 0 0 0 .5rem; margin: 0; transform: rotate(-90deg); }
/* bridge the small gap so the menu does not close while the pointer travels */
body.agt-v3 .main-navigation .main-nav > ul > li.menu-item-has-children > ul::before { content: ""; position: absolute; left: 0; right: 0; top: -.5rem; height: .5rem; }
@media (min-width: 769px) {
  /* Closed dropdowns stay in the tab order (keyboard access) but are parked
     off-screen to the left, so they can never widen the page. */
  body.agt-v3 .main-navigation .main-nav ul ul { visibility: visible; left: -9999px; }
  body.agt-v3 .main-navigation .main-nav ul li:hover > ul,
  body.agt-v3 .main-navigation .main-nav ul li:focus-within > ul,
  body.agt-v3 .main-navigation .main-nav ul li.sfHover > ul { opacity: 1; visibility: visible; pointer-events: auto; left: 0; height: auto; overflow: visible; }
  body.agt-v3 .main-navigation .main-nav ul ul li:hover > ul,
  body.agt-v3 .main-navigation .main-nav ul ul li:focus-within > ul,
  body.agt-v3 .main-navigation .main-nav ul ul li.sfHover > ul { left: 100%; top: 0; }
  /* the last top-level dropdown opens towards the left edge of its item */
  body.agt-v3 .main-navigation .main-nav > ul > li:nth-last-child(-n+3):hover > ul,
  body.agt-v3 .main-navigation .main-nav > ul > li:nth-last-child(-n+3):focus-within > ul,
  body.agt-v3 .main-navigation .main-nav > ul > li:nth-last-child(-n+3).sfHover > ul { left: auto; right: 0; }
}
/* small laptops and tablets in landscape: keep the menu on one line */
@media (min-width: 769px) and (max-width: 1040px) {
  body.agt-v3 .site-logo img { max-height: 32px; }
  body.agt-v3 .main-navigation .main-nav > ul { gap: 0; }
  body.agt-v3 .main-navigation .main-nav > ul > li > a { font-size: .86rem; padding: .5rem .5rem; }
  body.agt-v3 .main-navigation .main-nav ul li.menu-item-has-children > a { padding-right: .15rem; }
  body.agt-v3 .menu-item-has-children .dropdown-menu-toggle { padding-left: .15rem; padding-right: .3rem; }
}
body.agt-v3 .main-navigation .main-nav ul li.nav-cta { position: static; transform: none; margin-left: .6rem; }
body.agt-v3 .main-navigation .main-nav ul li.nav-cta a { padding: .6rem 1.25rem; }
body.agt-v3 .main-navigation .main-nav ul li.nav-cta a,
body.agt-v3 .main-navigation .main-nav ul li.nav-cta a:hover { background: var(--g-grad); color: var(--g-on-grad) !important; font-weight: 700; box-shadow: var(--g-glow); }
@media (max-width: 768px) {
  body.agt-v3 .inside-header { min-height: 62px; }
  body.agt-v3 .inside-header .site-logo img { top: 0; }
  body.agt-v3 .menu-toggle { color: var(--g-ink); font-size: 1.25rem; line-height: 1; padding: .7rem; min-width: 46px; min-height: 46px; border-radius: var(--g-r-s); background: var(--g-tint); }
  body.agt-v3 .main-navigation .main-nav { left: calc(-1 * var(--g-gutter)); right: calc(-1 * var(--g-gutter)); box-shadow: var(--g-shadow-2); border-top: 1px solid var(--g-line); max-height: calc(100vh - 62px); overflow-y: auto; }
  body.agt-v3 .main-navigation .main-nav ul li a { border-radius: 0; border-bottom: 1px solid var(--g-line); font-size: 1rem; padding-left: var(--g-gutter) !important; padding-right: var(--g-gutter) !important; }
  body.agt-v3 .main-navigation .main-nav > ul > li.current-menu-item > a { box-shadow: none; }
  body.agt-v3 .main-navigation .main-nav ul ul { background: var(--g-tint-3) !important; margin-top: 0 !important; }
  body.agt-v3 .main-navigation .main-nav ul ul li a { padding-left: calc(var(--g-gutter) + 1rem) !important; }
  body.agt-v3 .main-navigation .main-nav ul ul ul li a { padding-left: calc(var(--g-gutter) + 2rem) !important; }
  body.agt-v3 .main-navigation .main-nav ul ul .dropdown-menu-toggle { transform: none; }
}

/* === 3. BUTTONS, PILLS, FOCUS ============================================ */
body.agt-v3 .agt-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  font-family: var(--g-display); font-size: .98rem; font-weight: 700; line-height: 1.2;
  color: var(--g-teal-700); background: #fff; border: 1px solid var(--g-line-2);
  transition: transform .18s var(--g-ease), box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
body.agt-v3 .agt-btn:hover { transform: translateY(-2px); border-color: var(--g-teal); box-shadow: var(--g-shadow-1); }
body.agt-v3 .agt-btn--primary { color: var(--g-on-grad); background: var(--g-grad); border-color: transparent; box-shadow: var(--g-glow); }
body.agt-v3 .agt-btn--primary:hover { box-shadow: 0 16px 32px -12px rgba(20,184,166,.7), inset 0 1px 0 rgba(255,255,255,.45); border-color: transparent; }
body.agt-v3 .agt-pill {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0; padding: .4rem .95rem; border-radius: 999px;
  font-family: var(--g-text); font-size: .86rem; font-weight: 600; color: var(--g-teal-700);
  background: rgba(255,255,255,.8); border: 1px solid var(--g-line-2);
}
body.agt-v3 .agt-pill::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--g-grad); box-shadow: 0 0 0 4px rgba(16,185,129,.18); animation: agt-pulse 2.6s ease-in-out infinite; }
@keyframes agt-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,.22); } 50% { box-shadow: 0 0 0 7px rgba(16,185,129,.06); } }
body.agt-v3 a:focus-visible, body.agt-v3 button:focus-visible, body.agt-v3 select:focus-visible,
body.agt-v3 input:focus-visible, body.agt-v3 [tabindex]:focus-visible { outline: 3px solid var(--g-teal-700) !important; outline-offset: 2px !important; }

/* 3b — one colour per domain, the same everywhere: homepage tiles and orbit,
   the label at the top of a profile, category pages and article labels.
   Light tints only, so the brand green stays in charge. --cat = the colour,
   --cat-tint = its pale background, --cat-ink = its readable text shade. */
body.agt-v3 { --cat: var(--g-emerald); --cat-tint: var(--g-tint); --cat-ink: var(--g-teal-700); --cat-ring: rgba(16,185,129,.32); }
body.agt-v3 .agt-cat--esg, body.agt-v3 .ait-home-cat-card[href*="esg-sustainab"], body.agt-v3 .ait-hero__eyebrow[style*="#10b981" i] { --cat: #10B981; --cat-tint: #D1FAE5; --cat-ink: #065F46; --cat-ring: rgba(16,185,129,.38); }
body.agt-v3 .agt-cat--carbon, body.agt-v3 .ait-home-cat-card[href*="carbon"], body.agt-v3 .ait-hero__eyebrow[style*="#3b82f6" i] { --cat: #06B6D4; --cat-tint: #CFFAFE; --cat-ink: #155E75; --cat-ring: rgba(6,182,212,.4); }
body.agt-v3 .agt-cat--ehs, body.agt-v3 .ait-home-cat-card[href*="ehs"], body.agt-v3 .ait-hero__eyebrow[style*="#f59e0b" i] { --cat: #F97316; --cat-tint: #FFEDD5; --cat-ink: #9A3412; --cat-ring: rgba(249,115,22,.36); }
body.agt-v3 .agt-cat--compliance, body.agt-v3 .ait-home-cat-card[href*="compliance"], body.agt-v3 .ait-hero__eyebrow[style*="#8b5cf6" i] { --cat: #3B82F6; --cat-tint: #DBEAFE; --cat-ink: #1E40AF; --cat-ring: rgba(59,130,246,.36); }
body.agt-v3 .agt-cat--industrial, body.agt-v3 .ait-home-cat-card[href*="industrial"], body.agt-v3 .ait-hero__eyebrow[style*="#ef4444" i] { --cat: #8B5CF6; --cat-tint: #EDE9FE; --cat-ink: #5B21B6; --cat-ring: rgba(139,92,246,.36); }
body.agt-v3 .agt-cat--energy, body.agt-v3 .ait-home-cat-card[href*="energy"], body.agt-v3 .ait-hero__eyebrow[style*="#06b6d4" i] { --cat: #EAB308; --cat-tint: #FEF9C3; --cat-ink: #854D0E; --cat-ring: rgba(234,179,8,.45); }
/* category pages: the page takes the colour of its domain (read from the breadcrumb the template colours) */
body.agt-v3:has(.ait-tax-breadcrumb span[style*="#10b981" i]) { --cat: #10B981; --cat-tint: #D1FAE5; --cat-ink: #065F46; --cat-ring: rgba(16,185,129,.38); }
body.agt-v3:has(.ait-tax-breadcrumb span[style*="#3b82f6" i]) { --cat: #06B6D4; --cat-tint: #CFFAFE; --cat-ink: #155E75; --cat-ring: rgba(6,182,212,.4); }
body.agt-v3:has(.ait-tax-breadcrumb span[style*="#f59e0b" i]) { --cat: #F97316; --cat-tint: #FFEDD5; --cat-ink: #9A3412; --cat-ring: rgba(249,115,22,.36); }
body.agt-v3:has(.ait-tax-breadcrumb span[style*="#8b5cf6" i]) { --cat: #3B82F6; --cat-tint: #DBEAFE; --cat-ink: #1E40AF; --cat-ring: rgba(59,130,246,.36); }
body.agt-v3:has(.ait-tax-breadcrumb span[style*="#ef4444" i]) { --cat: #8B5CF6; --cat-tint: #EDE9FE; --cat-ink: #5B21B6; --cat-ring: rgba(139,92,246,.36); }
body.agt-v3:has(.ait-tax-breadcrumb span[style*="#06b6d4" i]) { --cat: #EAB308; --cat-tint: #FEF9C3; --cat-ink: #854D0E; --cat-ring: rgba(234,179,8,.45); }

/* AI type: violet for AI Native, sky blue for AI Enhanced (cards, filters) */
body.agt-v3 .ait-badge.ait-badge--ai-native, body.agt-v3 .agt-home .ait-home-badge.agt-ai-native { color: #5B21B6; background: #F5F3FF; border-color: #DDD6FE; }
body.agt-v3 .ait-badge.ait-badge--ai-enhanced, body.agt-v3 .agt-home .ait-home-badge.agt-ai-enhanced { color: #075985; background: #F0F9FF; border-color: #BAE6FD; }
body.agt-v3 .ait-filter-btn[href*="ai_type=ai-native"]:not(.is-active) { color: #5B21B6 !important; background: #FAF8FF; border-color: #DDD6FE; }
body.agt-v3 .ait-filter-btn[href*="ai_type=ai-native"]:not(.is-active):hover { background: #F5F3FF; border-color: #A78BFA; }
body.agt-v3 .ait-filter-btn[href*="ai_type=ai-enhanced"]:not(.is-active) { color: #075985 !important; background: #F7FCFF; border-color: #BAE6FD; }
body.agt-v3 .ait-filter-btn[href*="ai_type=ai-enhanced"]:not(.is-active):hover { background: #F0F9FF; border-color: #38BDF8; }

/* 3c — one style for every section title, on every page: centred, with the
   short gradient line centred under it */
body.agt-v3 .agt-sec-title, body.agt-v3 .ait-blog-section-title, body.agt-v3 .ait-res-section-title {
  margin: 0; text-align: center; text-wrap: balance; font-family: var(--g-display); font-weight: 800; color: var(--g-ink);
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.15rem); line-height: 1.12; letter-spacing: -.03em;
}
body.agt-v3 .agt-sec-title::after, body.agt-v3 .ait-blog-section-title::after, body.agt-v3 .ait-res-section-title::after {
  content: ""; display: block; width: 56px; height: 5px; margin: .9rem auto 0; border-radius: 5px; background: var(--g-grad-3); transition: width .7s var(--g-ease) .15s;
}

/* === 4. HOMEPAGE — HERO WITH SEARCH ====================================== */
body.agt-v3 .agt-home { max-width: var(--g-wrap); margin: 0 auto; }
body.agt-v3 .agt-hero3 {
  position: relative; isolation: isolate; text-align: center;
  margin: clamp(1rem, 3vw, 2rem) 0 0; padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 3.25rem);
  border-radius: clamp(20px, 3vw, 32px); overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDFA 100%); border: 1px solid var(--g-line); box-shadow: var(--g-shadow-1);
}
/* two soft colour clouds that drift slowly */
body.agt-v3 .agt-hero3::before, body.agt-v3 .agt-hero3::after {
  content: ""; position: absolute; z-index: -1; width: 46rem; height: 30rem; border-radius: 50%; filter: blur(60px); opacity: .55;
  animation: agt-drift 16s ease-in-out infinite alternate;
}
body.agt-v3 .agt-hero3::before { left: -14rem; top: -12rem; background: radial-gradient(closest-side, rgba(16,185,129,.55), transparent); }
body.agt-v3 .agt-hero3::after { right: -14rem; top: -10rem; background: radial-gradient(closest-side, rgba(6,182,212,.55), transparent); animation-delay: -8s; }
@media (max-width: 768px) { body.agt-v3 .agt-hero3::before, body.agt-v3 .agt-hero3::after { animation: none; } }
@keyframes agt-drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(5rem, 2.5rem, 0) scale(1.12); } }
body.agt-v3 .agt-hero3-grid { display: none !important; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(13,148,136,.16) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 20%, transparent 78%); mask-image: radial-gradient(70% 70% at 50% 30%, #000 20%, transparent 78%); }
body.agt-v3 .agt-hero3-title {
  margin: 1.2rem auto 1rem; max-width: 19ch; font-family: var(--g-display); font-weight: 800; color: var(--g-ink);
  font-size: clamp(2.05rem, 1.1rem + 3.6vw, 3.75rem); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance;
}
body.agt-v3 .agt-grad-text { background: linear-gradient(100deg, #047857 0%, #0F766E 30%, #0E7490 55%, #0F766E 80%, #047857 100%); background-size: 220% 100%; animation: agt-shift 9s ease-in-out infinite alternate; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
body.agt-v3 .agt-hero3-sub { margin: 0 auto 1.75rem; max-width: 52ch; font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); line-height: 1.55; color: var(--g-ink-2); }

body.agt-v3 .agt-search {
  position: relative; display: flex; align-items: center; gap: .5rem; max-width: 680px; margin: 0 auto; padding: .4rem .4rem .4rem 1.1rem;
  background: #fff; border-radius: 999px; border: 1px solid transparent;
  border-width: 2px; background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, #10B981, #06B6D4, #0D9488, #10B981); background-size: 100% 100%, 300% 100%; background-origin: border-box; background-clip: padding-box, border-box;
  animation: agt-border 8s linear infinite;
  box-shadow: 0 16px 40px -18px rgba(13,148,136,.5); transition: box-shadow .2s ease;
}
body.agt-v3 .agt-search:focus-within { box-shadow: 0 0 0 5px rgba(16,185,129,.18), 0 18px 44px -18px rgba(13,148,136,.6); }
body.agt-v3 .agt-search svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--g-teal); }
body.agt-v3 .agt-search input[type="search"] {
  flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 .3rem; border: 0; background: transparent; box-shadow: none;
  font-family: var(--g-text); font-size: 1.05rem; color: var(--g-ink); -webkit-appearance: none; appearance: none;
}
body.agt-v3 .agt-search input[type="search"]:focus-visible { outline: none !important; }
body.agt-v3 .agt-search input::placeholder { color: var(--g-ink-3); opacity: 1; }
body.agt-v3 .agt-search button {
  flex: 0 0 auto; min-height: 48px; padding: 0 1.5rem; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--g-display); font-size: .98rem; font-weight: 700; color: var(--g-on-grad); background: var(--g-grad);
  box-shadow: var(--g-glow); transition: transform .18s var(--g-ease), box-shadow .18s ease;
}
body.agt-v3 .agt-search button:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(20,184,166,.75), inset 0 1px 0 rgba(255,255,255,.45); }
/* very small phones: no magnifier icon and a little less padding, so the placeholder is not cut */
@media (max-width: 360px) { body.agt-v3 .agt-search { gap: .35rem; padding-left: .85rem; } body.agt-v3 .agt-search svg { display: none; } body.agt-v3 .agt-search input[type="search"] { padding: 0; font-size: .95rem; } body.agt-v3 .agt-search button { padding: 0 .9rem; } }
@keyframes agt-shift { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@keyframes agt-border { from { background-position: 0 0, 0% 0; } to { background-position: 0 0, -300% 0; } }
body.agt-v3 .agt-hero3-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.4rem; }

/* 4b — the mascot: the robot floats in front of the data globe and the six
   domains orbit around it. This is the signature motion of the site.
   The robot sits right of the globe's centre, so most of the Earth stays visible. */
@property --agt-a { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --agt-b { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --agt-k { syntax: '<number>'; inherits: true; initial-value: 1; }
body.agt-v3 .agt-hero3--mascot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1rem clamp(1rem, 3vw, 3rem); align-items: center; text-align: left; }
body.agt-v3 .agt-hero3--mascot .agt-hero3-title { margin-left: 0; max-width: 17ch; font-size: clamp(2rem, 1rem + 2.6vw, 3.25rem); }
body.agt-v3 .agt-hero3--mascot .agt-hero3-sub { margin-left: 0; max-width: 46ch; }
body.agt-v3 .agt-hero3--mascot .agt-search { margin: 0; max-width: 600px; }
body.agt-v3 .agt-hero3.agt-hero3--mascot .agt-hero3-actions,
body.agt-v3 .agt-hero3.agt-hero3--mascot .ait-home-stats { justify-content: flex-start; }
body.agt-v3 .agt-mascot { --r: 236px; --g: 400px; --rw: 245px; position: relative; align-self: stretch; min-height: 540px; }
body.agt-v3 .agt-mascot.agt-play { animation: agt-turn 1.7s cubic-bezier(.45, 0, .2, 1); }
@keyframes agt-turn { from { --agt-b: 0deg; } to { --agt-b: 360deg; } }
body.agt-v3 .agt-mascot-globe { position: absolute; left: 50%; top: 50%; width: var(--g); height: var(--g); max-width: none; margin: calc(var(--g) / -2) 0 0 calc(var(--g) / -2); border-radius: 50%;
  filter: drop-shadow(0 26px 40px rgba(13,148,136,.38)); animation: agt-breathe 7s ease-in-out infinite alternate; }
@keyframes agt-breathe { from { filter: drop-shadow(0 22px 34px rgba(13,148,136,.30)); } to { filter: drop-shadow(0 30px 54px rgba(6,182,212,.50)); } }
body.agt-v3 .agt-mascot-path { position: absolute; left: 50%; top: 50%; width: calc(2 * var(--r)); height: calc(2 * var(--r)); margin: calc(-1 * var(--r)) 0 0 calc(-1 * var(--r)); border-radius: 50%; border: 1.5px dashed rgba(13,148,136,.34); animation: agt-spin 120s linear infinite reverse; }
body.agt-v3 .agt-orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: agt-orbit-in 1.7s var(--g-ease) both, agt-orbit 64s linear 1.7s infinite; }
@keyframes agt-orbit-in { from { --agt-a: -220deg; --agt-k: 0; opacity: 0; } to { --agt-a: 0deg; --agt-k: 1; opacity: 1; } }
@keyframes agt-orbit { from { --agt-a: 0deg; } to { --agt-a: 360deg; } }
@keyframes agt-spin { to { transform: rotate(360deg); } }
body.agt-v3 .agt-orbit-item {
  position: absolute; left: -27px; top: -27px; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; line-height: 1;
  border-radius: 17px; background: linear-gradient(150deg, #fff 30%, var(--cat-tint) 100%); border: 1.5px solid var(--cat-ring); box-shadow: 0 10px 24px -10px var(--cat-ring), 0 4px 10px -6px rgba(13,148,136,.35);
  transform: rotate(calc(var(--agt-a) + var(--agt-b) + var(--i) * 60deg)) translateY(calc(-1 * var(--r) * var(--agt-k))) rotate(calc(-1 * (var(--agt-a) + var(--agt-b) + var(--i) * 60deg)));
}
body.agt-v3 .agt-robot { position: absolute; left: calc(50% + var(--g) * .05); top: calc(50% - var(--rw) * .62); width: var(--rw); aspect-ratio: 494 / 721;
  filter: drop-shadow(0 20px 22px rgba(5,59,54,.28)); animation: agt-arrive 1s var(--g-ease) both, agt-float 5.5s ease-in-out 1s infinite alternate; }
@keyframes agt-arrive { from { opacity: 0; transform: translateY(46px) scale(.9); } to { opacity: 1; transform: translateY(8px) rotate(-1.5deg); } }
@keyframes agt-float { from { transform: translateY(8px) rotate(-1.5deg); } to { transform: translateY(-10px) rotate(1.5deg); } }
body.agt-v3 .agt-robot img { position: absolute; max-width: none; height: auto; display: block; }
body.agt-v3 .agt-robot-body { left: 0; top: 0; width: 100%; }
body.agt-v3 .agt-wing--r { left: 59.51%; top: 36.2%; width: 40.49%; transform-origin: 3% 59.5%; }
body.agt-v3 .agt-wing--l { left: 0; top: 38.7%; width: 11.54%; transform-origin: 94.7% 56.9%; }
body.agt-v3 .agt-eye { position: absolute; border-radius: 50%; opacity: 0; background: radial-gradient(ellipse at center, #2F4C57 0 58%, rgba(47,76,87,0) 80%); }
body.agt-v3 .agt-eye::after { content: ""; position: absolute; left: 20%; right: 20%; top: 50%; height: 10%; border-radius: 99px; background: #5EEAD4; box-shadow: 0 0 6px 1px rgba(94,234,212,.9); }
body.agt-v3 .agt-eye--l { left: 8.3%; top: 14.9%; width: 12.2%; height: 7.2%; }
body.agt-v3 .agt-eye--r { left: 27.9%; top: 14.6%; width: 14.6%; height: 7.4%; }
/* once on arrival: the wings beat three times and the eyes blink twice */
body.agt-v3 .agt-mascot:not(.agt-done) .agt-wing--r { animation: agt-flap-r .44s ease-in-out 1s 3; }
body.agt-v3 .agt-mascot:not(.agt-done) .agt-wing--l { animation: agt-flap-l .44s ease-in-out 1s 3; }
body.agt-v3 .agt-mascot:not(.agt-done) .agt-eye { animation: agt-blink 1.5s linear 1.5s 1; }
/* again whenever the visitor points at (or taps) the robot */
body.agt-v3 .agt-mascot.agt-play .agt-wing--r { animation: agt-flap-r2 .44s ease-in-out 3; }
body.agt-v3 .agt-mascot.agt-play .agt-wing--l { animation: agt-flap-l2 .44s ease-in-out 3; }
body.agt-v3 .agt-mascot.agt-play .agt-eye { animation: agt-blink2 1.5s linear 1; }
@keyframes agt-flap-r { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-17deg); } }
@keyframes agt-flap-r2 { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-17deg); } }
@keyframes agt-flap-l { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(15deg); } }
@keyframes agt-flap-l2 { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(15deg); } }
@keyframes agt-blink { 0%, 6%, 20%, 26%, 100% { opacity: 0; } 9%, 17% { opacity: 1; } 29%, 37% { opacity: 1; } 40% { opacity: 0; } }
@keyframes agt-blink2 { 0%, 6%, 20%, 26%, 100% { opacity: 0; } 9%, 17% { opacity: 1; } 29%, 37% { opacity: 1; } 40% { opacity: 0; } }
@media (max-width: 1180px) { body.agt-v3 .agt-mascot { --r: 192px; --g: 320px; --rw: 199px; min-height: 450px; } }
@media (max-width: 900px) {
  body.agt-v3 .agt-hero3--mascot { grid-template-columns: minmax(0, 1fr); text-align: center; }
  body.agt-v3 .agt-hero3--mascot .agt-hero3-title, body.agt-v3 .agt-hero3--mascot .agt-hero3-sub { margin-left: auto; margin-right: auto; }
  body.agt-v3 .agt-hero3--mascot .agt-hero3-title { max-width: 19ch; }
  body.agt-v3 .agt-hero3--mascot .agt-search { margin: 0 auto; }
  body.agt-v3 .agt-hero3.agt-hero3--mascot .agt-hero3-actions, body.agt-v3 .agt-hero3.agt-hero3--mascot .ait-home-stats { justify-content: center; }
  body.agt-v3 .agt-mascot { --r: 150px; --g: 248px; --rw: 154px; min-height: 350px; margin-top: .5rem; }
  body.agt-v3 .agt-orbit-item { width: 44px; height: 44px; left: -22px; top: -22px; font-size: 1.2rem; border-radius: 14px; }
}
@media (max-width: 380px) { body.agt-v3 .agt-mascot { --r: 128px; --g: 212px; --rw: 131px; min-height: 310px; } }
/* The robot, globe and orbit scale with the width of their own column, so the
   six icons never touch the text and are never cut by the edge of the hero.
   (The fixed sizes above stay as a fallback for browsers without container units.) */
@supports (width: 1cqw) {
  body.agt-v3 .agt-mascot { container-type: inline-size; min-height: 0; left: 4px; --r: min(236px, calc(50cqw - 8px)); --g: calc(var(--r) * 1.695); --rw: calc(var(--r) * 1.04); }
  body.agt-v3 .agt-mascot::before { content: ""; display: block; padding-top: min(546px, calc(100% + 64px)); }
  @media (max-width: 900px) {
    body.agt-v3 .agt-mascot { left: 0; --r: min(185px, calc(50cqw - 18px)); }
    body.agt-v3 .agt-mascot::before { padding-top: min(440px, calc(100% + 34px)); }
  }
  @media (max-width: 600px) {
    body.agt-v3 .agt-mascot { --r: min(150px, calc(50cqw - 18px)); }
    body.agt-v3 .agt-mascot::before { padding-top: min(370px, calc(100% + 34px)); }
  }
}
/* two-column hero on small laptops and tablets in landscape: the label wraps on two even lines */
@media (min-width: 901px) and (max-width: 1180px) { body.agt-v3 .agt-hero3--mascot .agt-pill { max-width: 18.5rem; text-wrap: balance; } }

/* [ait_stats] inside the hero: a quiet proof line */
body.agt-v3 .agt-hero3 .ait-home-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem 2.25rem; max-width: none; margin: 2rem 0 0; padding: 0; }
body.agt-v3 .agt-hero3 .ait-home-stat { display: flex; align-items: baseline; gap: .5rem; padding: 0; margin: 0; background: none; border: 0; border-radius: 0; box-shadow: none; transform: none; text-align: left; }
body.agt-v3 .agt-hero3 .ait-home-stat::before { display: none; }
body.agt-v3 .agt-hero3 .ait-home-stat:hover { transform: none; box-shadow: none; }
body.agt-v3 .agt-hero3 .ait-home-stat-num { font-family: var(--g-display); font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums;
  background: var(--g-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
body.agt-v3 .agt-hero3 .ait-home-stat-label { font-family: var(--g-text); font-size: .95rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--g-ink-2); }
@media (max-width: 560px) {
  body.agt-v3 .agt-search { padding-left: .9rem; }
  body.agt-v3 .agt-search svg { display: none; }
  body.agt-v3 .agt-search button { padding: 0 1.1rem; }
  body.agt-v3 .agt-hero3-actions .agt-btn { flex: 1 1 100%; }
}

/* === 5. HOMEPAGE — SECTIONS ============================================== */
body.agt-v3 .agt-section { padding: clamp(2.5rem, 5.5vw, 4rem) 0 0; }
body.agt-v3 .agt-sec-head { display: block; margin: 0 0 1.75rem; text-align: center; }
html.agt-motion body.agt-v3 .agt-sec-head.ait-reveal:not(.ait-in) .agt-sec-title::after { width: 0; }
/* "Browse all tools", "Read the methodology", "Visit the blog": centred under their section */
body.agt-v3 .agt-sec-more { display: flex; justify-content: center; margin: 1.6rem 0 0; }
body.agt-v3 .agt-sec-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .6rem 1.45rem; border-radius: 999px;
  font-family: var(--g-display); font-size: .95rem; font-weight: 700; color: var(--g-teal-700); background: #fff; border: 1px solid var(--g-line-2); text-decoration: none;
  box-shadow: var(--g-shadow-1); transition: transform .18s var(--g-ease), border-color .18s ease, background-color .18s ease, color .18s ease;
}
body.agt-v3 .agt-sec-link:hover { transform: translateY(-2px); color: var(--g-on-grad); background: var(--g-grad); border-color: transparent; box-shadow: var(--g-glow); }

/* 5a — categories */
body.agt-v3 .agt-home .ait-home-cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: none; margin: 0; padding: 0; }
body.agt-v3 .agt-home .ait-home-cat-card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon name arrow" "icon count arrow";
  align-items: center; column-gap: 1rem; row-gap: .1rem; padding: 1.15rem 1.2rem; text-align: left; overflow: hidden;
  background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r-l); box-shadow: var(--g-shadow-1); text-decoration: none !important;
  transition: transform .22s var(--g-ease), box-shadow .22s ease, border-color .22s ease;
}
body.agt-v3 .agt-home .ait-home-cat-card::after { display: none; }
body.agt-v3 .agt-home .ait-home-cat-card:hover { transform: translateY(-3px); box-shadow: var(--g-shadow-2); border-color: var(--cat-ring); }
body.agt-v3 .agt-home .ait-home-cat-emoji {
  grid-area: icon; width: 54px; height: 54px; margin: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 1.55rem; line-height: 1;
  border-radius: 16px; background: linear-gradient(140deg, var(--cat-tint) 0%, #fff 135%); box-shadow: inset 0 0 0 1.5px var(--cat-ring), 0 8px 18px -12px var(--cat); transition: transform .22s var(--g-ease);
}
body.agt-v3 .agt-home .ait-home-cat-emoji::before, body.agt-v3 .agt-home .ait-home-cat-emoji::after { display: none; }
body.agt-v3 .agt-home .ait-home-cat-card:hover .ait-home-cat-emoji { transform: scale(1.08) rotate(-4deg); }
body.agt-v3 .agt-home .ait-home-cat-name { grid-area: name; align-self: end; margin: 0; font-family: var(--g-display); font-size: 1.06rem; font-weight: 700; letter-spacing: -.015em; color: var(--g-ink); }
body.agt-v3 .agt-home .ait-home-cat-count { grid-area: count; align-self: start; margin: 0; padding: 0; background: none; border: 0; font-family: var(--g-text); font-size: .95rem; font-weight: 500; color: var(--g-ink-3); }
body.agt-v3 .agt-home .ait-home-cat-arrow {
  grid-area: arrow; position: static; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  font-size: 1rem; color: var(--g-teal-700); background: var(--g-tint); opacity: 1; transform: none; transition: transform .22s var(--g-ease), background .22s ease, color .22s ease;
}
body.agt-v3 .agt-home .ait-home-cat-card:hover .ait-home-cat-arrow { background: var(--g-grad); color: var(--g-on-grad); box-shadow: var(--g-glow); }
@media (max-width: 900px) { body.agt-v3 .agt-home .ait-home-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { body.agt-v3 .agt-home .ait-home-cat-grid { grid-template-columns: minmax(0, 1fr); gap: .7rem; } body.agt-v3 .agt-home .ait-home-cat-card { padding: .9rem 1rem; } body.agt-v3 .agt-home .ait-home-cat-emoji { width: 46px; height: 46px; font-size: 1.3rem; border-radius: 14px; } }

/* 5b — tool cards ([ait_top_tools] and [ait_latest_tools]) */
body.agt-v3 .agt-home .ait-home-tools-grid { max-width: none; margin: 0; padding: 0; gap: 1.1rem; }
body.agt-v3 .agt-home .ait-home-tool-card {
  position: relative; display: flex; flex-direction: column; gap: .85rem; padding: 1.3rem 1.3rem 1.2rem; overflow: hidden;
  background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r-l); box-shadow: var(--g-shadow-1);
  transition: transform .22s var(--g-ease), box-shadow .22s ease, border-color .22s ease;
}
body.agt-v3 .agt-home .ait-home-tool-card::after { content: none; display: none; } /* no line on hover */
body.agt-v3 .agt-home .ait-home-tool-card:hover { transform: translateY(-3px); box-shadow: var(--g-shadow-2); border-color: var(--g-line-2); }
body.agt-v3 .agt-home .ait-home-tool-head { display: flex; align-items: center; gap: .85rem; margin: 0; padding: 0 5.9rem 0 0; border: 0; min-height: 52px; }
body.agt-v3 .agt-home .ait-home-tool-logo { width: 52px; height: 52px; flex: 0 0 auto; padding: 4px; object-fit: contain; border-radius: 14px; background: #fff; border: 1px solid var(--g-line); box-shadow: none; transition: transform .22s var(--g-ease); }
body.agt-v3 .agt-home .ait-home-tool-card:hover .ait-home-tool-logo { transform: scale(1.06); }
body.agt-v3 .agt-home .ait-home-tool-logo--ph { display: inline-flex; align-items: center; justify-content: center; padding: 0; background: linear-gradient(140deg, #D1FAE5, #CFFAFE); color: var(--g-teal-700); font-family: var(--g-display); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; }
body.agt-v3 .agt-home .ait-home-tool-title { margin: 0; font-family: var(--g-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; color: var(--g-ink); }
body.agt-v3 .agt-home .ait-home-tool-title::first-letter { text-transform: uppercase; }
body.agt-v3 .agt-home .ait-home-tool-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
body.agt-v3 .agt-home .ait-home-badge {
  display: inline-block; padding: .28rem .7rem; margin: 0; border-radius: 999px; white-space: nowrap;
  font-family: var(--g-text); font-size: .84rem; font-weight: 600; line-height: 1.4; color: var(--g-teal-700);
  background: var(--g-tint-3); border: 1px solid var(--g-line); box-shadow: none;
}
body.agt-v3 .agt-home .ait-home-badge::first-letter { text-transform: uppercase; }
/* the first badge is the AiGreenTools Score (shortcode order) */
body.agt-v3 .agt-home .ait-home-badge:first-child {
  position: absolute; top: 1.3rem; right: 1.3rem; padding: .3rem .8rem .3rem .65rem; border: 2px solid transparent;
  font-family: var(--g-display); font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.5; color: var(--g-ink);
  background: linear-gradient(#fff, #fff) padding-box, var(--g-grad) border-box; box-shadow: 0 4px 12px -6px rgba(20,184,166,.4);
}
/* fixed height (3 lines): the text never grows with the card, so no half-hidden extra line can show */
body.agt-v3 .agt-home .ait-home-tool-bestfor { margin: 0; flex: 0 0 auto; max-height: 4.65em; font-family: var(--g-text); font-size: .97rem; line-height: 1.55; color: var(--g-ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
body.agt-v3 .agt-home .ait-home-tool-bestfor strong { color: var(--g-ink); font-weight: 700; }
body.agt-v3 .agt-home .ait-home-tool-btn,
body.agt-v3 .agt-home .ait-home-tool-btn:hover {
  display: flex; align-items: center; justify-content: center; align-self: stretch; gap: .4rem; min-height: 44px; margin: auto 0 0; padding: .55rem 1rem; border-radius: 999px;
  font-family: var(--g-display); font-size: .9rem; font-weight: 700; color: var(--g-teal-700) !important; text-decoration: none !important;
  background: var(--g-tint); border: 1px solid var(--g-line-2); box-shadow: none; transform: none; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
body.agt-v3 .agt-home .ait-home-tool-card:hover .ait-home-tool-btn { background: var(--g-grad); border-color: transparent; color: var(--g-on-grad) !important; }
body.agt-v3 .agt-home .ait-home-tool-btn span[aria-hidden] { transition: transform .2s var(--g-ease); }
body.agt-v3 .agt-home .ait-home-tool-card:hover .ait-home-tool-btn span[aria-hidden] { transform: translateX(4px); }

/* 5c — how we score */
body.agt-v3 .agt-method3 {
  margin: clamp(2.5rem, 5.5vw, 4rem) 0 0; padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: clamp(20px, 3vw, 28px);
  background: linear-gradient(135deg, #ECFDF5 0%, #F0FDFA 45%, #ECFEFF 100%); border: 1px solid var(--g-line);
}
body.agt-v3 .agt-pillars3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; }
body.agt-v3 .agt-pillar3 { margin: 0; padding: 1.1rem 1rem 1.15rem; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r-m); box-shadow: var(--g-shadow-1); transition: transform .22s var(--g-ease), box-shadow .22s ease; }
body.agt-v3 .agt-pillar3:hover { transform: translateY(-3px); box-shadow: var(--g-shadow-2); }
body.agt-v3 .agt-pillar3-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
body.agt-v3 .agt-pillar3-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; border-radius: 12px; background: linear-gradient(140deg, #D1FAE5, #CFFAFE); }
body.agt-v3 .agt-pillar3-max { font-family: var(--g-display); font-size: .82rem; font-weight: 800; color: var(--g-on-grad); background: var(--g-grad); padding: .2rem .6rem; border-radius: 999px; }
body.agt-v3 .agt-pillar3-name { margin: 0 0 .35rem; font-family: var(--g-display); font-size: 1rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--g-ink); }
body.agt-v3 .agt-pillar3-desc { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--g-ink-2); }
@media (min-width: 1001px) { body.agt-v3 .agt-pillar3-name { min-height: 2.5em; } }
@media (max-width: 1000px) { body.agt-v3 .agt-pillars3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  body.agt-v3 .agt-pillars3 { grid-template-columns: minmax(0, 1fr); }
  body.agt-v3 .agt-pillar3 { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .9rem; }
  body.agt-v3 .agt-pillar3-top { grid-row: 1 / span 2; flex-direction: column; align-items: center; justify-content: flex-start; margin: 0; }
  body.agt-v3 .agt-pillar3-name { align-self: end; }
}

/* 5d — articles */
body.agt-v3 .agt-home .ait-home-articles-grid { max-width: none; margin: 0; padding: 0; gap: 1.1rem; }
body.agt-v3 .agt-home .ait-home-article-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none !important;
  background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r-l); box-shadow: var(--g-shadow-1);
  transition: transform .22s var(--g-ease), box-shadow .22s ease, border-color .22s ease;
}
body.agt-v3 .agt-home .ait-home-article-card:hover { transform: translateY(-3px); box-shadow: var(--g-shadow-2); border-color: var(--g-line-2); }
body.agt-v3 .agt-home .ait-home-article-thumb { aspect-ratio: 16 / 9; height: auto; overflow: hidden; background: linear-gradient(140deg, #D1FAE5, #CFFAFE); border-radius: 0; }
body.agt-v3 .agt-home .ait-home-article-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--g-ease); }
body.agt-v3 .agt-home .ait-home-article-card:hover .ait-home-article-img { transform: scale(1.05); }
body.agt-v3 .agt-home .ait-home-article-body { display: flex; flex-direction: column; gap: .55rem; flex: 1 1 auto; padding: 1.1rem 1.2rem 1.2rem; }
body.agt-v3 .agt-home .ait-home-article-cat { align-self: flex-start; margin: 0; padding: .22rem .7rem; border-radius: 999px; font-family: var(--g-text); font-size: .78rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--g-teal-700); background: var(--g-tint); border: 1px solid var(--g-line); }
body.agt-v3 .agt-home .ait-home-article-title { margin: 0; font-family: var(--g-display); font-size: 1.1rem; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; color: var(--g-ink); }
body.agt-v3 .agt-home .ait-home-article-excerpt { margin: 0; flex: 0 0 auto; max-height: 3.1em; font-size: .97rem; line-height: 1.55; color: var(--g-ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
body.agt-v3 .agt-home .ait-home-article-meta { display: block; margin-top: auto; padding-top: .2rem; font-family: var(--g-text); font-size: .9rem; font-weight: 600; color: var(--g-teal-700); }

/* 5e — newsletter (MailPoet markup untouched). MailPoet prints its own
   styles with the form's ID, and its form settings write colours, fonts and
   sizes on the field and the button. The form rules below are scoped with two
   IDs and carry !important, so the v3 look wins; the small script removes the
   style written on the field and the button (look only). */
body.agt-v3 .agt-news3 {
  position: relative; isolation: isolate; overflow: hidden; display: block; text-align: center;
  margin: clamp(2.5rem, 5.5vw, 4rem) 0 clamp(2.5rem, 6vw, 4.5rem); padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 3rem) clamp(1.75rem, 4vw, 2.5rem); border-radius: clamp(20px, 3vw, 28px);
  background: linear-gradient(135deg, #D1FAE5 0%, #CFFAFE 100%); color: var(--g-ink); border: 1px solid var(--g-line-2); box-shadow: var(--g-shadow-1);
}
body.agt-v3 .agt-news3::before { content: ""; position: absolute; z-index: -1; right: -8rem; top: -10rem; width: 30rem; height: 30rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.55), transparent); }
body.agt-v3 .agt-news3::after { content: ""; position: absolute; z-index: -1; left: -9rem; bottom: -12rem; width: 28rem; height: 28rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.4), transparent); }
body.agt-v3 .agt-news3 .agt-sec-head { margin-bottom: 1.5rem; }
body.agt-v3 .agt-news3-form { max-width: 580px; margin: 0 auto; text-align: left; }
body.agt-v3 #agt-newsletter #agt-news-form .mailpoet_form { width: 100% !important; margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
/* label on its own line, then the field and the button side by side */
body.agt-v3 #agt-newsletter #agt-news-form form.mailpoet_form {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label label" "field submit" "error error" "msg msg"; gap: .5rem .6rem; align-items: center;
}
body.agt-v3 #agt-newsletter #agt-news-form .mailpoet_paragraph { display: contents; }
body.agt-v3 #agt-newsletter #agt-news-form .mailpoet_text_label { grid-area: label; display: block; margin: 0 0 0 1.15rem; font-family: var(--g-text); font-size: .92rem !important; font-weight: 600 !important; line-height: 1.3; color: var(--g-ink) !important; }
body.agt-v3 #agt-newsletter #agt-news-form .mailpoet_required { color: var(--g-teal-700); }
body.agt-v3 #agt-newsletter #agt-news-form .mailpoet_text {
  grid-area: field; display: block; width: 100% !important; min-height: 54px; margin: 0 !important; padding: 0 1.2rem !important;
  font-family: var(--g-text) !important; font-size: 1rem !important; line-height: 1.4 !important; height: auto !important; color: var(--g-ink) !important; background: #fff !important; border: 1.5px solid var(--g-line-2) !important; border-radius: 999px !important;
  box-shadow: 0 10px 24px -16px rgba(5,59,54,.45); transition: border-color .18s ease, box-shadow .18s ease;
}
body.agt-v3 #agt-newsletter #agt-news-form .mailpoet_text::placeholder { color: var(--g-ink-3) !important; opacity: 1; font-family: var(--g-text); }
body.agt-v3 #agt-newsletter #agt-news-form .mailpoet_text:hover { border-color: var(--g-teal) !important; }
body.agt-v3 #agt-newsletter #agt-news-form .mailpoet_text:focus { border-color: var(--g-teal) !important; box-shadow: 0 0 0 4px rgba(16,185,129,.2), 0 10px 24px -16px rgba(5,59,54,.45); }
body.agt-v3 #agt-newsletter #agt-news-form .mailpoet_submit {
  grid-area: submit; width: auto !important; min-height: 54px; margin: 0 !important; padding: 0 1.9rem !important; border: 0 !important; border-radius: 999px !important; cursor: pointer;
  font-family: var(--g-display) !important; font-size: 1rem !important; font-weight: 700 !important; line-height: 1.2 !important; height: auto !important; color: var(--g-on-grad) !important; background: var(--g-grad) !important; box-shadow: var(--g-glow); transition: transform .18s var(--g-ease), box-shadow .18s ease;
}
body.agt-v3 #agt-newsletter #agt-news-form .mailpoet_submit:hover, body.agt-v3 #agt-newsletter #agt-news-form .mailpoet_submit:focus { transform: translateY(-1px); box-shadow: 0 16px 32px -12px rgba(20,184,166,.7), inset 0 1px 0 rgba(255,255,255,.45); }
body.agt-v3 #agt-newsletter #agt-news-form [class*="mailpoet_error"], body.agt-v3 #agt-newsletter #agt-news-form .parsley-errors-list { grid-area: error; }
body.agt-v3 #agt-newsletter #agt-news-form .parsley-errors-list { margin: 0 0 0 1.15rem; padding: 0; list-style: none; font-size: .9rem; font-weight: 600; color: #B91C1C; }
body.agt-v3 #agt-newsletter #agt-news-form .mailpoet_form_loading { grid-column: 2; grid-row: 3; justify-self: center; }
body.agt-v3 #agt-newsletter #agt-news-form .mailpoet_message { grid-area: msg; margin: 0 !important; padding: 0 !important; }
body.agt-v3 #agt-newsletter #agt-news-form .mailpoet_validate_success, body.agt-v3 #agt-newsletter #agt-news-form .mailpoet_validate_error { margin: .3rem 0 0 1.15rem; font-size: .95rem; font-weight: 600; }
body.agt-v3 #agt-newsletter #agt-news-form .mailpoet_validate_success { color: #047857 !important; }
body.agt-v3 #agt-newsletter #agt-news-form .mailpoet_validate_error { color: #B91C1C !important; }
body.agt-v3 .agt-news3-note { margin: 1rem 0 0; text-align: center; text-wrap: balance; font-size: .9rem; font-weight: 500; color: var(--g-ink-2); }
@media (max-width: 520px) {
  body.agt-v3 #agt-newsletter #agt-news-form form.mailpoet_form { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "field" "submit" "error" "msg"; }
  body.agt-v3 #agt-newsletter #agt-news-form .mailpoet_submit { width: 100% !important; }
  body.agt-v3 #agt-newsletter #agt-news-form .mailpoet_form_loading { grid-column: 1; grid-row: 4; }
}

/* === 6. FOOTER =========================================================== */
body.agt-v3 .ait-footer { background: linear-gradient(180deg, #F0FDFA 0%, #ECFEFF 100%); border-top: 1px solid var(--g-line); color: var(--g-ink-2); font-family: var(--g-text); padding: clamp(2.5rem, 5vw, 3.5rem) var(--g-gutter) 1.5rem; position: relative; }
body.agt-v3 .ait-footer::before { content: ""; display: block; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--g-grad-3); opacity: 1; }
body.agt-v3 .ait-footer::after { display: none; }
body.agt-v3 .ait-footer-inner { max-width: var(--g-wrap); margin: 0 auto; padding: 0; }
body.agt-v3 .ait-footer .wp-block-columns, body.agt-v3 .ait-footer .wp-block-column { margin: 0; padding: 0; display: block; }
body.agt-v3 .ait-footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3rem); margin: 0; }
body.agt-v3 .ait-footer-grid figure { margin: 0 0 1rem; }
body.agt-v3 .ait-footer-grid p { margin: 0; }
body.agt-v3 .ait-footer-grid > div:first-child p { font-size: .95rem; line-height: 1.5; color: var(--g-ink-2); max-width: 30ch; }
body.agt-v3 .ait-footer-grid > div:first-child p strong { font-weight: 500; }
body.agt-v3 .ait-footer-col-title { margin: 0 0 .7rem; padding: 0; font-family: var(--g-display) !important; font-size: .98rem !important; font-weight: 800; letter-spacing: -.01em; text-transform: none; color: var(--g-ink); }
body.agt-v3 .ait-footer-col-title::after { display: none; }
body.agt-v3 .ait-footer-grid a { display: inline-block; padding: .32rem 0; font-size: .95rem !important; font-weight: 500; color: var(--g-ink-2); text-decoration: none; transform: none; transition: color .15s ease, transform .18s var(--g-ease); }
body.agt-v3 .ait-footer-grid a:hover { color: var(--g-teal-700); transform: translateX(3px); padding-left: 0; }
body.agt-v3 .ait-footer-grid p[style] { font-size: .95rem !important; }
body.agt-v3 .ait-footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
body.agt-v3 .ait-footer-social a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 14px; background: #fff; border: 1px solid var(--g-line-2); color: var(--g-teal-700); box-shadow: none; }
body.agt-v3 .ait-footer-social a:hover { background: var(--g-grad); border-color: transparent; color: var(--g-on-grad); transform: translateY(-2px); }
body.agt-v3 .ait-footer-social svg { width: 18px; height: 18px; fill: currentColor; }
body.agt-v3 .ait-footer-bottom { margin-top: 2.25rem; padding-top: 1.2rem; border-top: 1px solid var(--g-line-2); background: none; }
body.agt-v3 .ait-footer-bottom p { margin: 0; text-align: center !important; font-size: .92rem; color: var(--g-ink-3); }
@media (max-width: 800px) { body.agt-v3 .ait-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.agt-v3 .ait-footer-grid > div:first-child { grid-column: 1 / -1; } }

/* === 7. SOFTWARE PROFILE (single-ai_tool.php, HTML unchanged) ============ */
body.agt-v3 .ait-single-wrap {
  --ink: var(--g-ink); --ink-soft: var(--g-ink-2); --ink-faint: var(--g-ink-3); --line: var(--g-line); --surface: #fff; --surface-2: var(--g-tint-3);
  --emerald: #047857; --emerald-2: var(--g-emerald); --teal: var(--g-teal-700); --cyan: var(--g-cyan);
  --shadow-sm: var(--g-shadow-1); --shadow-md: var(--g-shadow-2); --shadow-lg: var(--g-shadow-2); --radius: var(--g-r-l); --radius-sm: var(--g-r-m);
  max-width: var(--g-wrap); margin: 0 auto; padding: clamp(1rem, 3vw, 2rem) 0 3.5rem !important; font-family: var(--g-text); color: var(--g-ink-2);
}
body.agt-v3 .ait-single-wrap .entry-content, body.agt-v3 .ait-single-wrap .ait-hero, body.agt-v3 .ait-single-wrap .ait-scores-grid,
body.agt-v3 .ait-single-wrap .ait-breakdown, body.agt-v3 .ait-single-wrap .ait-shot-frame, body.agt-v3 .ait-single-wrap .ait-details-grid,
body.agt-v3 .ait-single-wrap .ait-features-vertical, body.agt-v3 .ait-single-wrap .ait-proscons-grid, body.agt-v3 .ait-single-wrap .ait-faq-section,
body.agt-v3 .ait-single-wrap .ait-tax-links { max-width: none; margin-left: 0; margin-right: 0; }

/* identity card: the existing animated aurora stays; its grid of squares does not */
body.agt-v3 .ait-single-wrap .ait-hero::after { content: none; display: none; }
body.agt-v3 .ait-hero { margin: 0; padding: clamp(1.5rem, 4vw, 2.75rem); gap: 1.6rem; border-radius: clamp(20px, 3vw, 28px); border: 1px solid var(--g-line); box-shadow: var(--g-shadow-1); background: linear-gradient(180deg, #fff 0%, #F0FDFA 100%); }
body.agt-v3 .ait-logo { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 14px 30px -14px rgba(13,148,136,.55), inset 0 0 0 1px var(--g-line); }
body.agt-v3 .ait-hero__eyebrow { font-family: var(--g-text); font-size: .8rem; font-weight: 700; letter-spacing: .02em; text-transform: none; color: var(--cat-ink) !important; background: linear-gradient(135deg, #fff 0%, var(--cat-tint) 100%) !important; border: 1px solid var(--cat-ring) !important; padding: .32rem .8rem; }
body.agt-v3 .ait-hero__eyebrow span { width: 8px; height: 8px; background: var(--cat) !important; box-shadow: 0 0 0 3px var(--cat-ring) !important; }
body.agt-v3 .ait-hero__title { font-family: var(--g-display); font-weight: 800; color: var(--g-ink); font-size: clamp(2.15rem, 1.4rem + 3.2vw, 3.5rem); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 .6rem; }
body.agt-v3 .ait-hero__tagline { max-width: 62ch; font-size: clamp(1.04rem, .98rem + .3vw, 1.16rem); line-height: 1.6; color: var(--g-ink-2); }
body.agt-v3 .ait-try-btn, body.agt-v3 .ait-try-btn:hover { min-height: 48px; padding: .7rem 1.5rem; background: var(--g-grad); color: var(--g-on-grad) !important; font-family: var(--g-display); font-weight: 700; box-shadow: var(--g-glow); }
body.agt-v3 .ait-compare-inline-select { min-height: 48px; font-family: var(--g-text); font-size: .95rem; color: var(--g-ink); background-color: #fff; border: 1px solid var(--g-line-2); max-width: 100%; }
body.agt-v3 .ait-compare-inline-select:focus { border-color: var(--g-teal); box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
body.agt-v3 .ait-compare-inline-btn { min-height: 48px; font-family: var(--g-display); font-weight: 700; color: var(--g-teal-700); background: #fff; border: 1px solid var(--g-line-2); }
body.agt-v3 .ait-compare-inline-btn:hover:not(:disabled) { background: var(--g-tint); }
body.agt-v3 .ait-compare-inline-btn:disabled { opacity: 1; color: var(--g-ink-3); background: var(--g-tint-3); }
/* no arrow on the "Compare" button of the profile (the arrow is a separate decorative span) */
body.agt-v3 .ait-compare-inline-btn > span[aria-hidden="true"] { display: none; }

/* scorecard */
body.agt-v3 .ait-scores-grid { gap: .9rem; margin: 1.25rem 0 0; }
body.agt-v3 .ait-score-card { background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r-l); box-shadow: var(--g-shadow-1); padding: 1.3rem 1.1rem 1.4rem; }
body.agt-v3 .ait-score-card::before { height: 4px; background: var(--g-grad-3); opacity: 1; }
body.agt-v3 .ait-score-card:hover { border-color: var(--g-line-2); box-shadow: var(--g-shadow-2); }
body.agt-v3 .ait-score-label { font-family: var(--g-text); font-size: .9rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--g-ink-2); margin-bottom: .8rem; }
body.agt-v3 .ait-progress-ring-bg { stroke: #D5F5EC; }
body.agt-v3 .ait-score-value .num { font-family: var(--g-display); color: var(--g-ink); }
body.agt-v3 .ait-score-unit { font-size: .85rem; color: var(--g-ink-3); }
body.agt-v3 .ait-progress-circle { width: 140px; height: 140px; }
body.agt-v3 .ait-progress-ring { width: 100%; height: 100%; }
body.agt-v3 .ait-score-value .num { font-size: 2.3rem; }
body.agt-v3 .ait-score-number { font-family: var(--g-display); color: var(--g-ink); }
body.agt-v3 .ait-stars { color: #B45309; }
body.agt-v3 .ait-score-sub { font-size: .85rem; letter-spacing: 0; color: var(--g-ink-3); }
body.agt-v3 .ait-pricing-pill { font-family: var(--g-display); color: var(--g-teal-700); background: var(--g-tint); border: 1px solid var(--g-line-2); border-radius: 999px; }
body.agt-v3 .ait-pricing-pill::first-letter { text-transform: uppercase; }

body.agt-v3 .ait-breakdown { margin: .9rem 0 0; padding: 1.3rem 1.4rem 1.4rem; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r-l); box-shadow: var(--g-shadow-1); }
body.agt-v3 .ait-breakdown-title { font-family: var(--g-display); font-size: 1.05rem; font-weight: 800; color: var(--g-ink); }
body.agt-v3 .ait-breakdown-link { font-family: var(--g-display); font-size: .88rem; font-weight: 700; color: var(--g-teal-700); background: var(--g-tint); border: 1px solid var(--g-line-2); min-height: 40px; }
body.agt-v3 .ait-pillar-name { font-size: .97rem; font-weight: 600; color: var(--g-ink); }
body.agt-v3 .ait-pillar { margin-bottom: 1.15rem; }
body.agt-v3 .ait-pillar-val { font-family: var(--g-display); color: var(--g-ink); }
body.agt-v3 .ait-pillar-val { font-size: 1rem; }
body.agt-v3 .ait-pillar-val small { color: var(--g-ink-3); font-size: .85rem; }
body.agt-v3 .ait-pillar-track { height: 12px; background: #D5F5EC; }
body.agt-v3 .ait-pillar-fill { background: var(--g-grad) !important; }
body.agt-v3 .ait-single-wrap > p:not(.ait-tax-links) { margin: .9rem 0 0 !important; }

/* section headings inside the profile */
body.agt-v3 .ait-single-wrap .ait-section-title {
  text-align: center !important; text-wrap: balance; max-width: 30ch; margin: 3rem auto 1.4rem !important;
  font-family: var(--g-display) !important; font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.15rem) !important; font-weight: 800 !important;
  letter-spacing: -.03em !important; line-height: 1.12 !important; color: var(--g-ink) !important;
}
body.agt-v3 .ait-single-wrap .ait-section-title::before { content: none !important; display: none !important; }
body.agt-v3 .ait-single-wrap .ait-section-title::after { content: "" !important; display: block !important; position: static !important; width: 56px !important; height: 5px !important; margin: .9rem auto 0 !important; border-radius: 5px !important; background: var(--g-grad-3) !important; transform: none !important; box-shadow: none !important; }

/* key information */
body.agt-v3 .ait-details-grid { gap: .9rem; margin: 0; }
body.agt-v3 .ait-detail-card { background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r-m); box-shadow: var(--g-shadow-1); padding: 1.1rem 1.25rem 1.15rem 1.4rem; }
body.agt-v3 .ait-detail-card::before { width: 4px; background: var(--g-grad-3); opacity: 1; }
body.agt-v3 .ait-detail-label { font-size: .9rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--g-ink-2); }
body.agt-v3 .ait-detail-value { font-family: var(--g-display); font-weight: 700; color: var(--g-ink); }
body.agt-v3 .ait-scope-badge { font-size: .88rem; color: #047857; background: var(--g-tint); border-color: var(--g-line-2); }

/* the written review */
body.agt-v3 .ait-content { margin: 1.5rem 0 0; padding: clamp(1.1rem, 3vw, 2rem); background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r-l); box-shadow: var(--g-shadow-1); font-family: var(--g-text); font-size: 1.08rem; line-height: 1.75; color: var(--g-ink-2); }
body.agt-v3 .ait-content h2 { margin: 2.4rem 0 .9rem; padding: 0 0 0 .9rem; border-left: 5px solid var(--g-emerald); border-image: var(--g-grad-3) 1; font-family: var(--g-display); font-size: clamp(1.35rem, 1.15rem + .9vw, 1.7rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.2; color: var(--g-ink); }
body.agt-v3 .ait-content h3 { margin: 1.8rem 0 .6rem; font-family: var(--g-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.015em; color: var(--g-ink); }
body.agt-v3 .ait-content strong { color: var(--g-ink); }
body.agt-v3 .ait-content p, body.agt-v3 .ait-content li { max-width: 74ch; }
body.agt-v3 .ait-content a { color: var(--g-teal-700); font-weight: 600; text-decoration: underline; text-decoration-color: var(--g-line-2); text-underline-offset: 3px; text-decoration-thickness: 2px; }
body.agt-v3 .ait-content a:hover { text-decoration-color: var(--g-teal); }
body.agt-v3 .ait-content table { display: table; white-space: normal; width: 100% !important; margin: .7rem 0 0; font-size: .98rem; line-height: 1.55; border: 1px solid var(--g-line); border-radius: var(--g-r-m); border-collapse: separate; border-spacing: 0; overflow: hidden; }
body.agt-v3 .ait-content table td, body.agt-v3 .ait-content table th { min-width: 0; padding: .8rem 1rem; font-size: .98rem; border: 0; border-bottom: 1px solid var(--g-line); vertical-align: top; word-break: normal; overflow-wrap: break-word; color: var(--g-ink-2); }
body.agt-v3 .ait-content table tr:last-child td { border-bottom: 0; }
body.agt-v3 .ait-content table tr:nth-child(even) { background: var(--g-tint-3); }
body.agt-v3 .ait-content table td:first-child { width: 30%; min-width: 7.25rem; font-weight: 500; color: var(--g-ink-2); overflow-wrap: normal; }
body.agt-v3 .ait-content table td:first-child strong { color: var(--g-ink); font-weight: 700; }
body.agt-v3 .ait-content .agt-fineprint { font-size: .9rem; color: var(--g-ink-3); }
body.agt-v3 .ait-content .ait-jump { background: linear-gradient(135deg, #ECFDF5, #ECFEFF) !important; border-color: var(--g-line) !important; }
body.agt-v3 .ait-content .ait-jump span { color: var(--g-teal-700) !important; font-size: .78rem !important; }
body.agt-v3 .ait-content .ait-jump-chip { color: var(--g-ink) !important; border-color: var(--g-line-2) !important; text-decoration: none !important; min-height: 36px; }
body.agt-v3 .ait-content .ait-jump-chip[style*="linear-gradient"] { background: var(--g-grad) !important; border-color: transparent !important; color: var(--g-on-grad) !important; }
body.agt-v3 .ait-content .ait-jump-chip[style*="linear-gradient"] span { color: var(--g-on-grad) !important; }
body.agt-v3 .ait-shot-frame { margin: 1.5rem 0 0; border-color: var(--g-line); border-radius: var(--g-r-l); box-shadow: var(--g-shadow-2); }

/* features, strengths and limits, FAQ, taxonomy */
body.agt-v3 .ait-features-vertical { background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r-l); box-shadow: var(--g-shadow-1); padding: .3rem 1.25rem; }
body.agt-v3 .ait-features-vertical li { align-items: flex-start; padding: 1rem .2rem; font-size: 1.02rem; line-height: 1.55; color: var(--g-ink-2); border-bottom-color: var(--g-line); }
body.agt-v3 .ait-features-vertical li:hover { padding-left: .6rem; }
body.agt-v3 .ait-feature-check { margin-top: .1rem; background: var(--g-grad); color: var(--g-on-grad); box-shadow: var(--g-glow); }
body.agt-v3 .ait-single-wrap .ait-proscons-grid { gap: .9rem; margin: 0; max-width: none; }
body.agt-v3 .ait-single-wrap .ait-pc-card { border: 1px solid var(--g-line); border-radius: var(--g-r-l); box-shadow: var(--g-shadow-1); }
body.agt-v3 .ait-single-wrap .ait-pc-card--pros { border-top: 4px solid var(--g-emerald); }
body.agt-v3 .ait-single-wrap .ait-pc-card--cons { border-top: 4px solid #F59E0B; }
body.agt-v3 .ait-single-wrap .ait-pc-head { font-family: var(--g-display); font-weight: 800; color: var(--g-ink); }
body.agt-v3 .ait-single-wrap .ait-pc-card--pros .ait-pc-icon { background: var(--g-grad); color: var(--g-on-grad); }
body.agt-v3 .ait-single-wrap .ait-pc-card--cons .ait-pc-icon { background: #FDE68A; color: #78350F; }
body.agt-v3 .ait-single-wrap .ait-pc-list li { font-size: 1.02rem; line-height: 1.6; color: var(--g-ink-2); border-bottom-color: var(--g-line); }
body.agt-v3 .ait-single-wrap .ait-pc-card--pros .ait-pc-list li::before { color: #047857; }
body.agt-v3 .ait-single-wrap .ait-pc-card--cons .ait-pc-list li::before { color: #B45309; }
@media (max-width: 760px) { body.agt-v3 .ait-single-wrap .ait-proscons-grid { grid-template-columns: minmax(0, 1fr); } }
body.agt-v3 .ait-faq-item { border-color: var(--g-line); border-radius: var(--g-r-m); box-shadow: var(--g-shadow-1); }
body.agt-v3 .ait-faq-item:hover, body.agt-v3 .ait-faq-item.ait-open { border-color: var(--g-line-2); box-shadow: var(--g-shadow-2); }
body.agt-v3 .ait-faq-q { min-height: 56px; font-family: var(--g-display); font-size: 1.04rem; font-weight: 700; color: var(--g-ink); transition: background-color .2s ease, color .2s ease; }
/* pointed at, focused or open: bright green bar with dark text (replaces the theme's dark grey button colour) */
body.agt-v3 .ait-faq-q:hover, body.agt-v3 .ait-faq-q:focus, body.agt-v3 .ait-faq-item.ait-open .ait-faq-q { color: var(--g-on-grad); background-color: #34D399; background-image: linear-gradient(120deg, #34D399 0%, #2DD4BF 100%); }
body.agt-v3 .ait-faq-icon { background: var(--g-tint); border-color: var(--g-line-2); color: var(--g-teal-700); }
body.agt-v3 .ait-faq-q:hover .ait-faq-icon, body.agt-v3 .ait-faq-q:focus .ait-faq-icon, body.agt-v3 .ait-faq-item.ait-open .ait-faq-icon { background: #fff; border-color: #fff; color: var(--g-teal-700); }
body.agt-v3 .ait-faq-a { font-size: 1.02rem; color: var(--g-ink-2); border-top-color: var(--g-line); padding-top: .9rem; }
body.agt-v3 .ait-tax-links { border-top-color: var(--g-line); color: var(--g-ink-3); }
body.agt-v3 .ait-tax-links + .ait-tax-links { margin-top: .9rem; padding-top: 0; border-top: 0; }
body.agt-v3 .ait-tax-links strong { color: var(--g-ink); }
body.agt-v3 .ait-tax-links a { min-height: 34px; display: inline-flex; align-items: center; color: var(--g-teal-700); background: #fff; border-color: var(--g-line-2); }
body.agt-v3 .ait-tax-links a:hover { background: var(--g-grad); border-color: transparent; color: var(--g-on-grad); }

@media (max-width: 600px) {
  body.agt-v3 .ait-logo { width: 68px; height: 68px; border-radius: 18px; }
  body.agt-v3 .ait-try-btn { width: 100%; justify-content: center; }
  body.agt-v3 .ait-content { padding: 1rem .9rem; }
  body.agt-v3 .ait-content table td:first-child { width: 36%; min-width: 7.1rem; }
  body.agt-v3 .ait-content table td, body.agt-v3 .ait-content table th { padding: .6rem .6rem; }
}
/* phones and tablets: a table with several columns scrolls sideways inside its
   frame (as on the current site) instead of squeezing words letter by letter */
@media (max-width: 900px) {
  body.agt-v3 .ait-content table { display: block; max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  body.agt-v3 .ait-content table td, body.agt-v3 .ait-content table th { min-width: 8.5rem; font-size: .94rem; }
  body.agt-v3 .ait-content table td:first-child, body.agt-v3 .ait-content table th:first-child { min-width: 7.1rem; }
}
/* while a table scrolls sideways, its first column (the row labels) stays in view */
body.agt-v3 .ait-content table.agt-scroll-x tr { background: #fff; }
body.agt-v3 .ait-content table.agt-scroll-x tr:nth-child(even) { background: var(--g-tint-3); }
body.agt-v3 .ait-content table.agt-scroll-x td:first-child, body.agt-v3 .ait-content table.agt-scroll-x th:first-child { position: sticky; left: 0; z-index: 1; background: inherit; box-shadow: 1px 0 0 var(--g-line); }
body.agt-v3 .ait-content table.agt-scroll-x:not(.agt-at-end) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), rgba(0,0,0,.25)); mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), rgba(0,0,0,.25)); }
/* "On this page" chips may wrap on narrow phones instead of running past the box */
body.agt-v3 .ait-content .ait-jump-chip { max-width: 100%; white-space: normal !important; }

/* desktop: review on the left, scorecard rail on the right (CSS placement only;
   HTML order — and so phone and screen-reader order — is unchanged) */
@media (min-width: 1100px) {
  body.agt-v3 .ait-single-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 1.75rem 184px 184px; column-gap: 0; grid-template-rows: auto auto auto auto auto auto minmax(0, 1fr); }
  body.agt-v3 .ait-single-wrap > * { grid-column: 1; }
  body.agt-v3 .ait-single-wrap > .ait-hero { grid-column: 1 / -1; grid-row: 1; }
  body.agt-v3 .ait-single-wrap > .ait-content { grid-row: 2 / 8; margin-top: 1.25rem; }
  body.agt-v3 .ait-single-wrap > .ait-content ~ * { grid-column: 1 / -1; }
  body.agt-v3 .ait-single-wrap > .ait-scores-grid { display: contents; }
  body.agt-v3 .ait-single-wrap .ait-score-card { margin: 0; }
  body.agt-v3 .ait-single-wrap .ait-score-card:first-child { grid-column: 3 / 5; grid-row: 2; margin-top: 1.25rem; }
  body.agt-v3 .ait-single-wrap > .ait-breakdown { grid-column: 3 / 5; grid-row: 3; margin: .9rem 0 0; }
  body.agt-v3 .ait-single-wrap > p:not(.ait-tax-links) { grid-column: 3 / 5; grid-row: 3; }
  /* rating and pricing read as one card with two halves */
  body.agt-v3 .ait-single-wrap .ait-score-card:nth-child(2) { grid-column: 3; grid-row: 4; margin: .9rem 0 0; padding: 1.2rem .7rem 1.3rem; border-right: 0; border-radius: var(--g-r-l) 0 0 var(--g-r-l); }
  body.agt-v3 .ait-single-wrap .ait-score-card:nth-child(3) { grid-column: 4; grid-row: 4; margin: .9rem 0 0; padding: 1.2rem .7rem 1.3rem; border-radius: 0 var(--g-r-l) var(--g-r-l) 0; }
  body.agt-v3 .ait-single-wrap .ait-score-card:nth-child(2):hover, body.agt-v3 .ait-single-wrap .ait-score-card:nth-child(3):hover { transform: none; }
  body.agt-v3 .ait-single-wrap .ait-score-number { font-size: 1.8rem; }
  body.agt-v3 .ait-single-wrap .ait-stars { font-size: .9rem; letter-spacing: 1px; }
  body.agt-v3 .ait-single-wrap .ait-pricing-pill { font-size: 1rem; padding: .5rem .8rem; }
  body.agt-v3 .ait-breakdown-head { flex-direction: column; align-items: flex-start; }
  body.agt-v3 .ait-single-wrap > :is(.ait-breakdown, p) + .ait-section-title { grid-column: 3 / 5; grid-row: 5; max-width: none; margin: 1.5rem 0 .7rem !important; font-size: 1.05rem !important; }
  body.agt-v3 .ait-single-wrap > :is(.ait-breakdown, p) + .ait-section-title::after { display: none !important; }
  body.agt-v3 .ait-single-wrap > :is(.ait-breakdown, p) + .ait-section-title + .ait-details-grid { grid-column: 3 / 5; grid-row: 6; grid-template-columns: 1fr; }
}

/* === 8. ALL OTHER PAGES (templates and editor pages, HTML unchanged) ===== */
/* The page box: the v3 background shows behind every page (the theme paints it white) */
body.agt-v3.one-container .site.container { background-color: transparent; }

/* 8a — the old palette, re-pointed to the v3 tokens. The templates already read
   these variables, so text, lines and accents follow the v3 range everywhere. */
body.agt-v3 .ait-blog-wrap, body.agt-v3 .ait-blog-single, body.agt-v3 .ait-blog-404,
body.agt-v3 .ait-compare, body.agt-v3 .ait-res-wrap, body.agt-v3 .ait-res-single, body.agt-v3 .ait-res-hero,
body.agt-v3 .ait-contact, body.agt-v3 .ait-about-hero, body.agt-v3 .ait-about-section, body.agt-v3 .ait-about-cards, body.agt-v3 .ait-legal {
  --ink: var(--g-ink); --ink-soft: var(--g-ink-2); --ink-faint: var(--g-ink-3); --line: var(--g-line);
  --emerald: var(--g-emerald); --teal: var(--g-teal-700); --cyan: var(--g-cyan);
  --radius: var(--g-r-l); --shadow-sm: var(--g-shadow-1); --shadow-md: var(--g-shadow-2);
}
body.agt-v3 .ait-compare { --cmp-ink: var(--g-ink); --cmp-soft: var(--g-ink-2); --cmp-faint: var(--g-ink-3); --cmp-teal: var(--g-teal-700); --cmp-line: var(--g-line); }
body.agt-v3 .agt-confirmation-page { --agt-teal: var(--g-teal-700); --agt-ink: var(--g-ink); --agt-soft: var(--g-ink-2); --agt-faint: var(--g-ink-3); --agt-line: var(--g-line); --agt-mint: var(--g-tint-3); }
body.agt-v3 .ait-blog-comments { --ait-teal: var(--g-teal-700); --ait-ink: var(--g-ink); --ait-ink-soft: var(--g-ink-2); --ait-ink-faint: var(--g-ink-3); --ait-line: var(--g-line); }

/* 8b — shared page hero (directory, categories, Compare, resources, blog categories) */
body.agt-v3 .ait-res-hero {
  position: relative; isolation: isolate; overflow: hidden; width: auto; max-width: var(--g-wrap);
  margin: clamp(1rem, 3vw, 2rem) auto 0; padding: clamp(2.25rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem);
  border-radius: clamp(20px, 3vw, 32px); border: 1px solid var(--g-line); box-shadow: var(--g-shadow-1); text-align: center;
  background: radial-gradient(60% 90% at 0% 0%, rgba(16,185,129,.16), transparent 62%), radial-gradient(60% 90% at 100% 0%, rgba(6,182,212,.18), transparent 62%), linear-gradient(180deg, #FFFFFF 0%, #F0FDFA 100%);
}
body.agt-v3 .ait-res-hero-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem; padding: .4rem .95rem; border-radius: 999px;
  font-family: var(--g-text); font-size: .86rem; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--g-teal-700); background: rgba(255,255,255,.85); border: 1px solid var(--g-line-2);
}
body.agt-v3 .ait-res-hero::before, body.agt-v3 .ait-cat-hero::before { content: none; display: none; } /* no grid of squares */
body.agt-v3 .ait-res-hero-eyebrow::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--g-grad); box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
body.agt-v3 .ait-res-hero-title { font-family: var(--g-display); font-weight: 800; color: var(--g-ink); font-size: clamp(2rem, 1rem + 3vw, 3.25rem); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
body.agt-v3 .ait-res-hero-sub { font-family: var(--g-text); font-weight: 400; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.6; letter-spacing: 0; color: var(--g-ink-2); }

/* 8c — buttons, chips and form fields shared by the templates */
body.agt-v3 .ait-compare-btn, body.agt-v3 .ait-blog-btn, body.agt-v3 .ait-res-btn, body.agt-v3 .ait-blog-hero-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.5rem; border: 0; border-radius: 999px;
  font-family: var(--g-display); font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none !important;
  color: var(--g-on-grad) !important; background: var(--g-grad); box-shadow: var(--g-glow); cursor: pointer;
}
body.agt-v3 .ait-blog-btn--ghost, body.agt-v3 .ait-res-btn--ghost:not(.ait-res-download-trigger) { color: var(--g-teal-700) !important; background: #fff; border: 1px solid var(--g-line-2); box-shadow: none; }
body.agt-v3 .ait-blog-btn--ghost:hover, body.agt-v3 .ait-res-btn--ghost:not(.ait-res-download-trigger):hover { background: var(--g-tint); border-color: var(--g-teal); }
body.agt-v3 .ait-res-btn.ait-res-download-trigger, body.agt-v3 .ait-res-btn.ait-res-download-trigger:hover { color: var(--g-on-grad) !important; background: var(--g-grad) !important; border: 0 !important; box-shadow: var(--g-glow) !important; }
/* no arrow on the "Download File" button of a resource (decorative span) */
body.agt-v3 .ait-res-download-trigger > span[aria-hidden="true"] { display: none; }
body.agt-v3 .ait-compare-btn:disabled { opacity: .5; box-shadow: none; }
body.agt-v3 .ait-blog-hero-cat, body.agt-v3 .ait-blog-card-cat, body.agt-v3 .ait-blog-single-cat, body.agt-v3 .ait-res-single-cat, body.agt-v3 .ait-compare-eyebrow, body.agt-v3 .ait-tax-count {
  display: inline-block; padding: .24rem .75rem; border-radius: 999px; font-family: var(--g-text); font-size: .8rem; font-weight: 700; line-height: 1.4;
  letter-spacing: 0; text-transform: none; color: var(--g-teal-700) !important; background: var(--g-tint); border: 1px solid var(--g-line);
}
body.agt-v3 .ait-filter-btn, body.agt-v3 .ait-blog-filter-btn {
  min-height: 44px; padding: .5rem 1.15rem; border-radius: 999px; font-family: var(--g-text); font-size: .92rem; font-weight: 600;
  color: var(--g-teal-700) !important; background: #fff; border: 1px solid var(--g-line-2); box-shadow: none;
}
body.agt-v3 .ait-filter-btn:hover, body.agt-v3 .ait-blog-filter-btn:hover { color: var(--g-ink) !important; background: var(--g-tint); border-color: var(--g-teal); }
body.agt-v3 .ait-filter-btn.is-active, body.agt-v3 .ait-blog-filter-btn.is-active { color: var(--g-on-grad) !important; background: var(--g-grad); border-color: transparent; box-shadow: var(--g-glow); }
body.agt-v3 .ait-blog-filter-count { font-size: .78rem; background: rgba(15,118,110,.1); color: var(--g-teal-700); }
body.agt-v3 .ait-blog-filter-btn.is-active .ait-blog-filter-count { background: rgba(255,255,255,.55); color: var(--g-on-grad); }
body.agt-v3 .ait-blog-filter-btn.is-empty { opacity: .7; }
body.agt-v3 .ait-blog-filter-btn[class*="agt-cat--"]:not(.is-active) { color: var(--cat-ink) !important; border-color: var(--cat-ring); background: linear-gradient(180deg, #fff 0%, var(--cat-tint) 160%); }
body.agt-v3 .ait-blog-filter-btn[class*="agt-cat--"]:not(.is-active):hover { background: var(--cat-tint); border-color: var(--cat); }
body.agt-v3 .ait-blog-filter-btn[class*="agt-cat--"]:not(.is-active) .ait-blog-filter-count { color: var(--cat-ink); background: var(--cat-tint); }
body.agt-v3 .ait-blog-seeall, body.agt-v3 .ait-res-seeall {
  min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; font-family: var(--g-display); font-size: .9rem; font-weight: 700;
  color: var(--g-teal-700) !important; background: #fff; border: 1px solid var(--g-line-2);
}
body.agt-v3 .ait-blog-seeall:hover, body.agt-v3 .ait-res-seeall:hover { background: var(--g-tint); border-color: var(--g-teal); }
body.agt-v3 .ait-blog-back, body.agt-v3 .ait-res-back, body.agt-v3 .ait-compare-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--g-teal-700) !important; font-weight: 700; }
body.agt-v3 .ait-subcat-select-label, body.agt-v3 .ait-compare-label { font-size: .92rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--g-ink); }
body.agt-v3 .ait-subcat-select, body.agt-v3 .ait-compare-select {
  min-height: 52px; font-size: 1rem; color: var(--g-ink); background-color: #fff; border: 1.5px solid var(--g-line-2); border-radius: var(--g-r-m);
  box-shadow: var(--g-shadow-1); -webkit-backdrop-filter: none; backdrop-filter: none;
}
body.agt-v3 .ait-subcat-select:focus, body.agt-v3 .ait-compare-select:focus { border-color: var(--g-teal); box-shadow: 0 0 0 4px rgba(13,148,136,.15); }
body.agt-v3 .ait-blog-pagination .page-numbers, body.agt-v3 .ait-res-pagination .page-numbers { min-width: 44px; height: 44px; border-radius: 12px; border-color: var(--g-line-2); color: var(--g-teal-700); background: #fff; }
body.agt-v3 .ait-blog-pagination .page-numbers:hover, body.agt-v3 .ait-blog-pagination .page-numbers.current,
body.agt-v3 .ait-res-pagination .page-numbers:hover, body.agt-v3 .ait-res-pagination .page-numbers.current { color: var(--g-on-grad); background: var(--g-grad); border-color: transparent; box-shadow: var(--g-glow); }

/* 8d — AI Tools directory and tool categories */
body.agt-v3 .ait-archive-wrap, body.agt-v3 .ait-tax-wrap { max-width: var(--g-wrap); padding-top: clamp(1.5rem, 4vw, 2.5rem); font-family: var(--g-text); color: var(--g-ink-2); }
body.agt-v3 .ait-archive-wrap .ait-search {
  flex-wrap: nowrap; align-items: center; gap: .5rem; max-width: 640px; margin: 0 auto 1.25rem; padding: .4rem .4rem .4rem 1.2rem;
  border-radius: 999px; border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--g-grad) border-box; box-shadow: var(--g-shadow-1);
}
body.agt-v3 .ait-archive-wrap .ait-search:focus-within { box-shadow: 0 0 0 4px rgba(13,148,136,.18), var(--g-shadow-1); }
body.agt-v3 .ait-archive-wrap .ait-search-input { flex: 1 1 auto; width: auto; min-width: 0; padding: .55rem .3rem; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 1.05rem; color: var(--g-ink); }
body.agt-v3 .ait-archive-wrap .ait-search-input::placeholder { color: var(--g-ink-3); opacity: 1; }
body.agt-v3 .ait-archive-wrap .ait-search-input:focus, body.agt-v3 .ait-archive-wrap .ait-search-input:focus-visible { outline: none !important; box-shadow: none; }
body.agt-v3 .ait-archive-wrap .ait-search-btn { flex: 0 0 auto; width: auto; min-height: 46px; padding: 0 1.5rem; border-radius: 999px; font-family: var(--g-display); font-size: .98rem; font-weight: 700; color: var(--g-on-grad); background: var(--g-grad); box-shadow: var(--g-glow); }
body.agt-v3 .ait-archive-wrap .ait-search-clear { flex: 0 0 auto; padding: 0 .5rem; font-size: .9rem; color: var(--g-teal-700); }
body.agt-v3 .ait-filter { gap: .5rem; margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }
body.agt-v3 .ait-grid { gap: 1.1rem; }
body.agt-v3 .ait-card {
  position: relative; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r-l); box-shadow: var(--g-shadow-1);
  transition: transform .22s var(--g-ease), box-shadow .22s ease, border-color .22s ease;
}
body.agt-v3 .ait-card::after { content: none; display: none; } /* no line on hover */
body.agt-v3 .ait-card:hover { transform: translateY(-3px); box-shadow: var(--g-shadow-2); border-color: var(--g-line-2); }
body.agt-v3 .ait-card__header { gap: .85rem; min-height: 52px; padding: 1.3rem 8.6rem .2rem 1.3rem; border-bottom: 0; }
body.agt-v3 .ait-card__logo, body.agt-v3 .ait-card__logo-placeholder { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--g-line); }
body.agt-v3 .ait-card__logo-placeholder { background: linear-gradient(140deg, #D1FAE5, #CFFAFE); }
body.agt-v3 .ait-card__title { font-family: var(--g-display); font-size: 1.1rem; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; color: var(--g-ink); }
body.agt-v3 .ait-card__title::first-letter { text-transform: uppercase; }
body.agt-v3 .ait-card__body { gap: .7rem; padding: .9rem 1.3rem 1rem; }
body.agt-v3 .ait-card__badges { display: flex; flex-wrap: wrap; gap: .4rem; }
body.agt-v3 .ait-badge { padding: .28rem .7rem; font-family: var(--g-text); font-size: .84rem; font-weight: 600; line-height: 1.4; color: var(--g-teal-700); background: var(--g-tint-3); border: 1px solid var(--g-line); }
body.agt-v3 .ait-badge::first-letter { text-transform: uppercase; }
/* the AiGreenTools Score: same chip as on the homepage cards */
body.agt-v3 .ait-card .ait-badge[class*="ait-badge--esg"] {
  position: absolute; top: 1.3rem; right: 1.3rem; padding: .3rem .8rem .3rem .65rem; border: 2px solid transparent;
  font-family: var(--g-display); font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.5; color: var(--g-ink);
  background: linear-gradient(#fff, #fff) padding-box, var(--g-grad) border-box; box-shadow: 0 4px 12px -6px rgba(20,184,166,.4);
}
body.agt-v3 .ait-card .ait-badge[class*="ait-badge--esg"] span { font-size: .7em; font-weight: 600; color: var(--g-ink-3); opacity: 1; }
body.agt-v3 .ait-card__best-for { max-height: 4.65em; font-size: .97rem; line-height: 1.55; color: var(--g-ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
body.agt-v3 .ait-card__best-for strong { color: var(--g-ink); font-weight: 700; }
body.agt-v3 .ait-card__excerpt { font-size: .95rem; color: var(--g-ink-2); }
body.agt-v3 .ait-card__footer {
  display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0 1.3rem 1.2rem; padding: .55rem 1rem; border: 1px solid var(--g-line-2); border-radius: 999px;
  font-family: var(--g-display); font-size: .92rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--g-teal-700); background: #fff;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
body.agt-v3 .ait-card:hover .ait-card__footer { color: var(--g-on-grad); background: var(--g-grad); border-color: transparent; }
body.agt-v3 .ait-tax-breadcrumb { font-size: .9rem; color: var(--g-ink-3); }
body.agt-v3 .ait-tax-breadcrumb a { color: var(--g-teal-700); font-weight: 600; }
body.agt-v3 .ait-tax-breadcrumb span { color: var(--cat-ink) !important; } /* the template colours it per category, inline (too pale to read); the darker shade of the same domain colour */
body.agt-v3.tax-tool-category .ait-tax-count { color: var(--cat-ink) !important; background: var(--cat-tint); border-color: var(--cat-ring); }
body.agt-v3.tax-tool-category .ait-res-hero-eyebrow { color: var(--cat-ink); background: linear-gradient(135deg, #fff 0%, var(--cat-tint) 100%); border-color: var(--cat-ring); }
body.agt-v3.tax-tool-category .ait-res-hero-eyebrow::before { background: var(--cat); box-shadow: 0 0 0 4px var(--cat-ring); }
body.agt-v3 .ait-tax-description { font-size: 1.05rem; color: var(--g-ink-2); }

/* 8e — Compare (choice page and result pages) */
body.agt-v3 .ait-compare { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
body.agt-v3 .ait-compare > form { max-width: 860px; margin: 0 auto; padding: clamp(1.25rem, 3.5vw, 2.25rem); background: #fff; border: 1px solid var(--g-line); border-radius: clamp(20px, 3vw, 28px); box-shadow: var(--g-shadow-1); }
body.agt-v3 .ait-compare-vs, body.agt-v3 .ait-compare .ait-cmp-banner-vs { color: var(--g-on-grad); background: var(--g-grad); box-shadow: var(--g-glow); }
body.agt-v3 .ait-compare .ait-cmp-banner {
  border: 1px solid var(--g-line-2); box-shadow: var(--g-shadow-1);
  background: radial-gradient(60% 120% at 0% 0%, rgba(52,211,153,.30), transparent 62%), radial-gradient(60% 120% at 100% 100%, rgba(34,211,238,.28), transparent 62%), linear-gradient(135deg, #ECFDF5 0%, #E6FAFB 100%);
}
body.agt-v3 .ait-compare .ait-cmp-banner::before { content: none; display: none; } /* no grid of squares */
body.agt-v3 .ait-compare .ait-cmp-banner-h1 { border: 1px solid var(--g-line); box-shadow: 0 18px 40px -22px rgba(13,148,136,.45); }
body.agt-v3 .ait-compare .ait-compare-intros { display: none !important; } /* the two short descriptions above the table are not shown */
body.agt-v3 .ait-compare .ait-cmp-table { border-color: var(--g-line); box-shadow: var(--g-shadow-2) !important; }
body.agt-v3 .ait-compare .ait-cmp-cell--label { color: var(--g-ink-2) !important; }
body.agt-v3 .ait-compare .ait-cmp-cell--label, body.agt-v3 .ait-compare .ait-cmp-label { text-transform: none; letter-spacing: 0; }
/* the "How it's calculated" link moves under the label when the column is narrow (no more words cut letter by letter) */
body.agt-v3 .ait-compare .ait-cmp-cell--label { flex-wrap: wrap; row-gap: .4rem; }
body.agt-v3 .ait-compare .ait-cmp-cell--label .ait-cmp-label { min-width: 0; }
body.agt-v3 .ait-compare .ait-cmp-cell--label .ait-cmp-method-link { flex: 0 0 auto; }
@media (max-width: 760px) { body.agt-v3 .ait-compare .ait-cmp-cell--label { font-size: .84rem !important; } body.agt-v3 .ait-compare .ait-cmp-method-link { font-size: .78rem !important; } }

/* readability on result pages: small labels at least 12.5 px, coloured figures darkened
   (same hue, so green / amber / blue still mean the same thing) */
body.agt-v3 .ait-compare .ait-cmp-method-link { font-size: .8rem !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--g-teal-700) !important; }
body.agt-v3 .ait-compare .ait-cmp-pill, body.agt-v3 .ait-compare .ait-cmp-scope, body.agt-v3 .ait-compare .ait-cmp-esg-num small, body.agt-v3 .ait-compare .ait-simbar-score small { font-size: .78rem !important; }
body.agt-v3 .ait-compare .ait-cmp-esg-num, body.agt-v3 .ait-compare .ait-simbar-tier, body.agt-v3 .ait-compare .ait-simbar-score { filter: brightness(.6); }
body.agt-v3 .ait-compare .ait-cmp-trophy { filter: brightness(1.65); }
body.agt-v3 .ait-compare .ait-simfact.is-on { color: var(--g-ink-2); }
body.agt-v3 .ait-compare .ait-simbar-why-label { color: var(--g-ink-3); }

/* 8f — blog home, blog categories and search results */
body.agt-v3 .ait-blog-wrap { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
body.agt-v3 .ait-blog-hero { overflow: hidden; color: var(--g-ink) !important; background: #fff; border: 1px solid var(--g-line); border-radius: clamp(20px, 3vw, 28px); box-shadow: var(--g-shadow-1); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.agt-v3 .ait-blog-hero:hover { box-shadow: var(--g-shadow-2); border-color: var(--g-line-2); }
body.agt-v3 .ait-blog-hero-media, body.agt-v3 .ait-blog-card-thumb { background: linear-gradient(140deg, #D1FAE5, #CFFAFE); }
body.agt-v3 .ait-blog-hero-title { font-family: var(--g-display); font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.1; letter-spacing: -.03em; color: var(--g-ink); text-wrap: balance; }
body.agt-v3 .ait-blog-hero-excerpt { color: var(--g-ink-2); }
body.agt-v3 .ait-blog-hero-btn { align-self: flex-start; margin-top: .4rem; }
body.agt-v3 .ait-blog-filter { border-bottom-color: var(--g-line); }
body.agt-v3 .ait-blog-section-title, body.agt-v3 .ait-res-section-title { margin: 0 0 1.75rem; }
/* the section head lets its title and its "See all" link take part in the section's own column,
   so the link can sit centred under the cards (HTML order unchanged) */
body.agt-v3 .ait-blog-section, body.agt-v3 .ait-res-section { display: flex; flex-direction: column; }
body.agt-v3 .ait-blog-section-head, body.agt-v3 .ait-res-section-head { display: contents; }
body.agt-v3 .ait-blog-section > :not(.ait-blog-section-head), body.agt-v3 .ait-res-section > :not(.ait-res-section-head) { order: 1; }
body.agt-v3 .ait-blog-seeall, body.agt-v3 .ait-res-seeall { order: 2; align-self: center; display: inline-flex; align-items: center; margin-top: 1.5rem; }
body.agt-v3 .ait-blog-grid { gap: 1.1rem; }
body.agt-v3 .ait-blog-card { overflow: hidden; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r-l); box-shadow: var(--g-shadow-1); -webkit-backdrop-filter: none; backdrop-filter: none; transition: transform .22s var(--g-ease), box-shadow .22s ease, border-color .22s ease; }
body.agt-v3 .ait-blog-card:hover { transform: translateY(-3px); box-shadow: var(--g-shadow-2); border-color: var(--g-line-2); }
body.agt-v3 .ait-blog-card-body { gap: .55rem; padding: 1.1rem 1.2rem 1.2rem; }
body.agt-v3 .ait-blog-card-title { font-family: var(--g-display); font-size: 1.1rem; line-height: 1.3; letter-spacing: -.015em; color: var(--g-ink); }
body.agt-v3 .ait-blog-card-excerpt { font-size: .97rem; line-height: 1.55; color: var(--g-ink-2); }
body.agt-v3 .ait-blog-card-meta { font-size: .9rem; color: var(--g-teal-700); }
body.agt-v3 .ait-blog-archive-title, body.agt-v3 .ait-res-archive-title { font-family: var(--g-display); color: var(--g-ink); letter-spacing: -.03em; }
body.agt-v3 .ait-blog-search-term { color: var(--g-teal-700); }

/* 8g — articles */
body.agt-v3 .ait-blog-single-hero { max-width: var(--g-wrap); margin: clamp(1rem, 3vw, 2rem) auto 0; border-radius: clamp(20px, 3vw, 28px); border: 1px solid var(--g-line); box-shadow: var(--g-shadow-1); background: linear-gradient(140deg, #D1FAE5, #CFFAFE); }
body.agt-v3 .ait-blog-single-title { font-family: var(--g-display); font-size: clamp(2rem, 1.2rem + 3vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; color: var(--g-ink); text-wrap: balance; }
body.agt-v3 .ait-blog-single-meta { font-size: .95rem; color: var(--g-ink-3); }
body.agt-v3 .ait-blog-single-content { color: var(--g-ink-2); }
body.agt-v3 .ait-blog-single-content > h2, body.agt-v3 .ait-blog-single-content > h3 { color: var(--g-ink); }
body.agt-v3 .ait-blog-share { border-color: var(--g-line); }
body.agt-v3 .ait-blog-share-label { color: var(--g-ink); }
body.agt-v3 .ait-blog-share-links a { min-height: 40px; display: inline-flex; align-items: center; color: var(--g-teal-700) !important; background: #fff; border: 1px solid var(--g-line-2); }
body.agt-v3 .ait-blog-share-links a:hover { color: var(--g-on-grad) !important; background: var(--g-grad); border-color: transparent; }
/* articles keep their own design; only colours that were hard to read are darkened */
body.agt-v3 .agt-post { --agt-teal: var(--g-teal-700); }
body.agt-v3 .agt-post .agt-chip {
  position: relative; overflow: hidden; color: #0B5F57; border: 1px solid #8EDCC7; padding: .36rem .9rem;
  background: linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.25) 48%, rgba(255,255,255,0) 50%), linear-gradient(135deg, #BDF5DD 0%, #B9F2EA 50%, #BDEFF7 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(13,148,136,.12), 0 8px 18px -10px rgba(13,148,136,.7), 0 1px 2px rgba(13,148,136,.15);
}
/* a soft light passes over the label once, when the page opens */
body.agt-v3 .agt-post .agt-chip::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-18deg); animation: agt-sheen 1.6s var(--g-ease) .6s 1 both; pointer-events: none; }
@keyframes agt-sheen { from { left: -60%; } to { left: 130%; } }
body.agt-v3 .agt-post .agt-wave-badge { color: var(--g-on-grad); background: var(--g-grad); }
body.agt-v3 .agt-post .agt-table caption { color: var(--g-ink); background: linear-gradient(135deg, #E7FBF3 0%, #E2F8FB 100%); border-bottom: 1px solid var(--g-line-2); box-shadow: inset 4px 0 0 #34D399; }
body.agt-v3 .agt-post .agt-table th { color: var(--g-ink-2); background: #F3FBF8; }
/* on wide screens a short table still fills its frame (the site lets every table scroll sideways, which suits phones) */
@media (min-width: 901px) { body.agt-v3 .agt-post .agt-table-wrap > .agt-table { display: table; white-space: normal; } }
body.agt-v3 .agt-post .agt-wave-badge .n, body.agt-v3 .agt-post .agt-wave-badge .y { color: var(--g-on-grad); }
body.agt-v3 .agt-post .agt-wave-badge .y { font-size: .76rem; opacity: 1; }
/* FAQ inside articles and resources: the same look as the FAQ of a tool profile —
   bright green bar with dark text when the question is pointed at, focused or open */
body.agt-v3 .agt-post .agt-faq { border-color: var(--g-line); border-radius: var(--g-r-m); box-shadow: var(--g-shadow-1); }
body.agt-v3 .agt-post .agt-faq:hover, body.agt-v3 .agt-post .agt-faq[open] { border-color: var(--g-line-2); box-shadow: var(--g-shadow-2); }
body.agt-v3 .agt-post .agt-faq summary { min-height: 56px; font-family: var(--g-display); font-size: 1.02rem; font-weight: 700; line-height: 1.4; color: var(--g-ink); transition: background-color .2s ease, color .2s ease; }
body.agt-v3 .agt-post .agt-faq summary:hover, body.agt-v3 .agt-post .agt-faq summary:focus-visible, body.agt-v3 .agt-post .agt-faq[open] > summary { color: var(--g-on-grad); background-color: #34D399; background-image: linear-gradient(120deg, #34D399 0%, #2DD4BF 100%); }
body.agt-v3 .agt-post .agt-faq summary::after { background: var(--g-tint); border-color: var(--g-line-2); color: var(--g-teal-700); }
body.agt-v3 .agt-post .agt-faq summary:hover::after, body.agt-v3 .agt-post .agt-faq summary:focus-visible::after, body.agt-v3 .agt-post .agt-faq[open] > summary::after { background: #fff; border-color: #fff; color: var(--g-teal-700); }
body.agt-v3 .agt-post .agt-faq-a { color: var(--g-ink-2); border-top-color: var(--g-line); }
body.agt-v3 .ait-blog-comments #submit { color: var(--g-on-grad) !important; background: var(--g-grad); border: 0; box-shadow: var(--g-glow); }

/* 8h — resources */
body.agt-v3 .ait-res-wrap { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
body.agt-v3 .ait-res-row {
  min-height: 76px; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--g-line); border-radius: 16px; box-shadow: var(--g-shadow-1);
  -webkit-backdrop-filter: none; backdrop-filter: none; transition: transform .22s var(--g-ease), box-shadow .22s ease, border-color .22s ease;
}
body.agt-v3 .ait-res-row:hover { transform: translateY(-3px); box-shadow: var(--g-shadow-2); border-color: var(--g-line-2); }
body.agt-v3 .ait-res-row-title { font-family: var(--g-display); font-size: 1.02rem; line-height: 1.3; color: var(--g-ink); }
body.agt-v3 .ait-res-row-excerpt { font-size: .93rem; color: var(--g-ink-2); }
body.agt-v3 .ait-res-row-arrow { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; opacity: 1; transform: none; color: var(--g-teal-700); background: var(--g-tint); box-shadow: inset 0 0 0 1px var(--g-line-2); transition: background .22s ease, color .22s ease, box-shadow .22s ease; }
body.agt-v3 .ait-res-row:hover .ait-res-row-arrow { color: var(--g-on-grad); background: var(--g-grad); box-shadow: var(--g-glow); }
/* the "→" character sat low in its circle: it is replaced by a drawn arrow, centred, that slides on hover */
body.agt-v3 :is(.ait-res-row-arrow, .agt-home .ait-home-cat-arrow) { position: relative; inset: auto; font-size: 0 !important; line-height: 0; }
body.agt-v3 :is(.ait-res-row-arrow, .agt-home .ait-home-cat-arrow)::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .25s var(--g-ease);
}
body.agt-v3 :is(.ait-res-row:hover .ait-res-row-arrow, .agt-home .ait-home-cat-card:hover .ait-home-cat-arrow)::before { transform: translateX(2px); }
body.agt-v3 .ait-res-single-title { font-family: var(--g-display); letter-spacing: -.03em; color: var(--g-ink); }
body.agt-v3 .ait-res-single-content { color: var(--g-ink-2); }
/* download form (pop-up): look only, the form and its script are unchanged */
body.agt-v3 .ait-gate-overlay { background: rgba(5,59,54,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
body.agt-v3 .ait-gate-modal { max-width: 440px; padding: 2.1rem 2rem 1.6rem; overflow: hidden; border-radius: 24px; border: 1px solid var(--g-line); box-shadow: 0 30px 80px -24px rgba(5,59,54,.5); font-family: var(--g-text); }
body.agt-v3 .ait-gate-modal::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--g-grad-3); }
body.agt-v3 .ait-gate-close, body.agt-v3 .ait-gate-close:hover, body.agt-v3 .ait-gate-close:focus { top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: 24px; color: var(--g-ink); background: var(--g-tint); }
body.agt-v3 .ait-gate-eyebrow { display: inline-block; margin-bottom: .7rem; padding: .24rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--g-teal-700); background: var(--g-tint); border: 1px solid var(--g-line); }
body.agt-v3 .ait-gate-heading { font-family: var(--g-display); font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: var(--g-ink); }
body.agt-v3 .ait-gate-sub { font-size: .98rem; color: var(--g-ink-2); }
body.agt-v3 .ait-gate-label { font-size: .92rem; font-weight: 600; color: var(--g-ink); }
body.agt-v3 .ait-gate-input { min-height: 48px; padding: .75rem 1rem; font-size: 1rem; color: var(--g-ink); background: #fff; border: 1.5px solid var(--g-line-2); border-radius: 12px; }
body.agt-v3 .ait-gate-input:focus { border-color: var(--g-teal); box-shadow: 0 0 0 4px rgba(13,148,136,.15); }
body.agt-v3 .ait-gate-submit, body.agt-v3 .ait-gate-submit:hover:not(:disabled), body.agt-v3 .ait-gate-submit:focus {
  min-height: 52px; border-radius: 999px; font-family: var(--g-display); font-size: 1.02rem; font-weight: 700; color: var(--g-on-grad); background: var(--g-grad); box-shadow: var(--g-glow);
}
body.agt-v3 .ait-gate-privacy { font-size: .85rem; color: var(--g-ink-3); }

/* 8i — not found, newsletter confirmation */
body.agt-v3 .ait-blog-404-code { background: var(--g-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.agt-v3 .ait-blog-404-title { font-family: var(--g-display); color: var(--g-ink); }
body.agt-v3 .agt-confirmation-page { max-width: 860px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--g-gutter) clamp(2.5rem, 6vw, 4rem); }
body.agt-v3 .agt-confirmation-page h1 { font-family: var(--g-display); font-weight: 800; color: var(--g-ink); letter-spacing: -.03em; }
body.agt-v3 .agt-confirmation-page .agt-eyebrow { padding: .32rem .85rem; font-size: .84rem; letter-spacing: 0; text-transform: none; color: var(--g-teal-700); background: var(--g-tint); border-color: var(--g-line); }
body.agt-v3 .agt-confirmation-page .agt-mailpoet-confirmation { background: linear-gradient(135deg, #D1FAE5 0%, #CFFAFE 100%); border-color: var(--g-line-2); box-shadow: var(--g-shadow-1); }
/* MailPoet may force its own colours with ID-scoped !important rules; ":is(…, #agt-boost)" gives these
   rules the weight of an ID (the ID itself does not need to exist), and the small script removes the
   style MailPoet writes on the field and the button. Look only. */
body.agt-v3 .agt-confirmation-page .agt-mailpoet-confirmation :is(.mailpoet_text, input[type="email"], #agt-boost) { box-sizing: border-box; width: 100% !important; height: auto !important; min-height: 50px; margin: 0 !important; padding: .9rem 1.3rem !important; border: 1.5px solid var(--g-line-2) !important; border-radius: 999px !important; color: var(--g-ink) !important; background: #fff !important; font-family: var(--g-text) !important; font-size: 1rem !important; line-height: 1.4 !important; }
body.agt-v3 .agt-confirmation-page .agt-mailpoet-confirmation :is(.mailpoet_submit, input[type="submit"], button[type="submit"], #agt-boost) { box-sizing: border-box; width: 100% !important; height: auto !important; min-height: 50px; margin: .7rem 0 0 !important; padding: .9rem 1.6rem !important; border: 0 !important; border-radius: 999px !important; color: var(--g-on-grad) !important; background: var(--g-grad) !important; box-shadow: var(--g-glow); font-family: var(--g-display) !important; font-size: 1.02rem !important; font-weight: 700 !important; line-height: 1.2 !important; cursor: pointer; }
body.agt-v3 .agt-confirmation-page :is(p, li) > a:not([class]) { color: var(--g-teal-700); text-underline-offset: 3px; }

/* 8j — pages written in the editor (About, Contact, Methodology, legal pages).
   Light touch only, at the lowest strength (:where), so any section that already
   has its own style keeps it. */
/* side margins for plain page content (the site sets them to 0); full-width sections still reach the screen edges.
   The content column is as wide as the header's, so page edges line up with the logo and the menu. */
body.agt-v3.page:not(.home) .inside-article { max-width: calc(var(--g-wrap) + 2 * var(--g-gutter)); margin-inline: auto; padding-inline: var(--g-gutter); }
:where(body.agt-v3.page:not(.home)) .entry-header { padding-top: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1.25rem; }
:where(body.agt-v3.page:not(.home)) .entry-title { font-family: var(--g-display); font-weight: 800; font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem); color: var(--g-ink); letter-spacing: -.035em; line-height: 1.08; }
:where(body.agt-v3.page:not(.home)) .entry-content > :where(h2, h3, h4) { font-family: var(--g-display); color: var(--g-ink); letter-spacing: -.02em; }
/* section titles written straight in the page (not inside a legal text box): centred, line under them */
:where(body.agt-v3.page:not(.home)) .entry-content > h2 { margin: 2.75rem 0 1.4rem; text-align: center; text-wrap: balance; font-weight: 800; font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.15rem); line-height: 1.12; letter-spacing: -.03em; }
:where(body.agt-v3.page:not(.home)) .entry-content > :where(figure.wp-block-image:not(.alignleft, .alignright, .alignwide, .alignfull)) { margin: 2rem auto 2.5rem; text-align: center; }
:where(body.agt-v3.page:not(.home)) .entry-content > :where(figure.wp-block-image) img { display: block; margin-inline: auto; border-radius: 20px; }
:where(body.agt-v3.page:not(.home)) .entry-content > h2::after { content: ""; display: block; width: 56px; height: 5px; margin: .9rem auto 0; border-radius: 5px; background: var(--g-grad-3); }

/* 8k — About page. The site's photo hero was sized on the whole screen
   (100vw); inside the page column it ran past the right edge. It now fills
   the column, with the same rounded corners as the other page heroes. */
body.agt-v3 .ait-about-hero { width: auto !important; max-width: none !important; min-height: 0; margin: clamp(1rem, 3vw, 2rem) 0 0 !important; padding: clamp(2.75rem, 7vw, 5rem) clamp(1.25rem, 6vw, 5rem) !important; border-radius: clamp(20px, 3vw, 32px) !important; box-shadow: var(--g-shadow-2); }
body.agt-v3 .ait-about-hero :is(.wp-block-cover__image-background, .wp-block-cover__background) { border-radius: inherit !important; }
body.agt-v3 .ait-about-hero .wp-block-cover__inner-container { max-width: 62rem; }
body.agt-v3 .ait-about-hero p, body.agt-v3 .ait-about-hero .wp-block-paragraph { max-width: 60ch !important; font-size: clamp(1.05rem, .92rem + .62vw, 1.4rem) !important; line-height: 1.6 !important; }
body.agt-v3 .ait-about-hero p + p { margin-top: .9rem !important; }
body.agt-v3 .ait-about-section h2 { text-align: center; text-wrap: balance; font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.15rem) !important; line-height: 1.12 !important; letter-spacing: -.03em; color: var(--g-ink) !important; margin: 0 0 1.4rem !important; }
body.agt-v3 .ait-about-section h2::after { width: 56px; height: 5px; margin: .9rem auto 0; border-radius: 5px; background: var(--g-grad-3); }
body.agt-v3 .ait-about-section :is(figure, .wp-block-image) { margin: 2rem auto 0 !important; text-align: center; }
body.agt-v3 .ait-about-section img { display: block; margin-inline: auto; border-radius: 20px; box-shadow: var(--g-shadow-2); }
body.agt-v3 .ait-about-section h2:not(:first-child) { margin-top: 3rem !important; }
body.agt-v3 .ait-about-section + .ait-about-cards { margin-top: 0 !important; }
body.agt-v3 .ait-about-section:has(+ .ait-about-cards) { margin-bottom: 1.75rem !important; }
/* "Our Values" cards: the same white cards as the rest of the site */
body.agt-v3 .ait-about-cards .wp-block-column, body.agt-v3 .ait-about-card { position: relative; overflow: hidden; background: #fff !important; -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid var(--g-line); border-radius: var(--g-r-l); box-shadow: var(--g-shadow-1); }
body.agt-v3 .ait-about-cards .wp-block-column::before, body.agt-v3 .ait-about-card::before { content: none; display: none; }
body.agt-v3 .ait-about-cards .wp-block-column:hover, body.agt-v3 .ait-about-card:hover { border-color: var(--g-line-2); box-shadow: var(--g-shadow-2); }
body.agt-v3 .ait-about-cards p, body.agt-v3 .ait-about-card p { font-size: 1rem; color: var(--g-ink-2); }

/* labels that name a domain (articles, blog) take its colour — the class is added by the small script */
body.agt-v3 :is(.ait-home-article-cat, .ait-blog-card-cat, .ait-blog-hero-cat, .ait-blog-single-cat)[class*="agt-cat--"] { color: var(--cat-ink) !important; background: var(--cat-tint); border-color: var(--cat-ring); }
:where(body.agt-v3.page:not(.home)) .entry-content > :where(p, ul, ol) { color: var(--g-ink-2); }
:where(body.agt-v3.page:not(.home)) .entry-content :where(p, li) > a:not([class]) { color: var(--g-teal-700); }
:where(body.agt-v3.page:not(.home)) .entry-content > :where(table, .wp-block-table table) { border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r-m); }
:where(body.agt-v3.page:not(.home)) .entry-content > table :where(th) { color: var(--g-ink); background: var(--g-tint); }

/* === 9. MOTION =========================================================== */
@media (prefers-reduced-motion: reduce) {
  body.agt-v3 *, body.agt-v3 *::before, body.agt-v3 *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  html.agt-motion body.agt-v3 .ait-reveal { opacity: 1 !important; transform: none !important; }
}
@media print {
  body.agt-v3 .site-header, body.agt-v3 .ait-footer, body.agt-v3 .agt-news3, body.agt-v3 .ait-hero__cta, body.agt-v3 .agt-mascot { display: none !important; }
  body.agt-v3 .ait-single-wrap { display: block; }
  body.agt-v3 .ait-faq-a { display: block !important; }
}
