.agc-home { --h-primary: #2b5b43; --h-primary-dk: #214836; --h-fg: #fbfaf4; --h-cream: #f4f4ea; --h-card: #fff; --h-muted: #5d6b62; --h-border: #dfe3d6; --h-text: #1f2e26;
  color: var(--h-text); font-size: 1rem; line-height: 1.6; }
@supports (color: oklch(0 0 0)) { .agc-home { --h-primary: oklch(0.38 0.075 155); --h-primary-dk: oklch(0.31 0.07 155); --h-cream: oklch(0.965 0.012 100); --h-text: oklch(0.24 0.02 150); --h-muted: oklch(0.47 0.02 150); } }
.agc-home *, .agc-home *::before, .agc-home *::after { box-sizing: border-box; }
.agc-home :where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
.agc-home :where(ul, ol) { list-style: none; }
.agc-home a { color: inherit; }
.agc-wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.agc-narrow { width: min(760px, 100% - 2.5rem); }

/* Hero */
.agc-hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem); text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0, var(--h-cream), #fff 75%); border-bottom: 1px solid var(--h-border); }
.agc-kicker { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: var(--h-cream); border: 1px solid var(--h-border); color: var(--h-primary); font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.agc-hero h1 { margin: 1rem auto 0; max-width: 20ch; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; color: var(--h-primary-dk); text-wrap: balance; }
.agc-lead { margin: 1.1rem auto 0; max-width: 46ch; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--h-muted); text-wrap: balance; }
.agc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.4rem; }
.agc-chips li { padding: .3rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--h-border); font-size: .85rem; color: var(--h-text); }
.agc-hero-calc { margin-top: 2rem; text-align: left; scroll-margin-top: 1.5rem; }
.agc-hero-calc .agc-calc { margin-top: 0; box-shadow: 0 30px 60px -30px rgba(23, 60, 42, .5); }

/* Sections */
.agc-sec { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.agc-alt { background: var(--h-cream); border-block: 1px solid var(--h-border); }
.agc-sec .agc-wrap > h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; color: var(--h-primary-dk); }
.agc-sub { margin-top: .6rem; max-width: 60ch; color: var(--h-muted); }
.agc-sec .agc-wrap > h2 + :is(ul, ol, div, .agc-chart-wrap) { margin-top: 1.8rem; }
.agc-sub + :is(ul, ol, div) { margin-top: 1.8rem; }

/* Species cards */
.agc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.agc-card { display: grid; gap: .2rem; height: 100%; padding: 1.2rem 1.2rem 1.1rem; border: 1px solid var(--h-border); border-radius: 20px; background: var(--h-card); text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s; }
.agc-card:hover, .agc-card:focus-visible { transform: translateY(-3px); border-color: var(--h-primary); box-shadow: 0 16px 30px -18px rgba(23, 60, 42, .5); }
.agc-card:focus-visible { outline: 2px solid var(--h-primary); outline-offset: 3px; }
.agc-card-name { font-weight: 600; font-size: 1.05rem; }
.agc-card-num { font-size: 2.4rem; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; color: var(--h-primary); }
.agc-card-num small { font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--h-muted); }
.agc-card-meta { font-size: .85rem; color: var(--h-muted); }

/* Categories */
.agc-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.agc-cat { padding: 1.3rem; border: 1px solid var(--h-border); border-radius: 20px; background: var(--h-card); }
.agc-cat h3 { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-size: 1.1rem; font-weight: 600; }
.agc-cat h3 span { padding: .05rem .55rem; border-radius: 999px; background: var(--h-cream); color: var(--h-primary); font-size: .8rem; font-weight: 600; }
.agc-cat ul { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.agc-cat li a { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--h-border); border-radius: 999px; font-size: .9rem; text-decoration: none; }
.agc-cat li a:hover, .agc-cat li a:focus-visible { background: var(--h-primary); border-color: var(--h-primary); color: var(--h-fg); }
.agc-more-note { margin-top: .8rem; font-size: .82rem; color: var(--h-muted); }

/* Comparison bars */
.agc-bars { display: grid; gap: .6rem; margin-bottom: 2.2rem; }
.agc-bars li { display: grid; grid-template-columns: minmax(5.5rem, 9rem) 1fr 3rem; align-items: center; gap: .8rem; }
.agc-bar-name { font-size: .95rem; font-weight: 500; }
.agc-bar-track { height: 14px; border-radius: 999px; background: #e7e9dc; overflow: hidden; }
.agc-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--h-primary); }
.agc-bar-val { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.agc-sec .agc-chart-wrap { margin-top: 0; }

/* Features */
.agc-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem 2rem; }
.agc-feats li { display: grid; gap: .35rem; align-content: start; }
.agc-feats svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--h-border); color: var(--h-primary); }
.agc-feats h3 { margin-top: .5rem; font-size: 1.1rem; font-weight: 600; }
.agc-feats p { color: var(--h-muted); }

/* Steps */
.agc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.5rem; counter-reset: none; }
.agc-steps li { display: grid; gap: .3rem; align-content: start; padding-top: 1.2rem; border-top: 2px solid var(--h-primary); }
.agc-steps b { color: var(--h-primary); font-size: .9rem; letter-spacing: .1em; }
.agc-steps h3 { font-size: 1.15rem; font-weight: 600; }
.agc-steps p { color: var(--h-muted); }

/* Why */
.agc-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 2rem; }
.agc-why h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .4rem; }
.agc-why p { color: var(--h-muted); }

/* Herd section keeps the calculator card look */
#agc-herd .agc-calc { margin-top: 0; max-width: 860px; margin-inline: 0; }
#agc-herd .agc-title { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; color: inherit; }

/* FAQ */
.agc-narrow .agc-faq { max-width: none; margin: 1.5rem 0 0; }
.agc-narrow .agc-q { border-bottom-color: var(--h-border); }
.agc-narrow .agc-q summary { padding: 1rem 0; font-size: 1.05rem; }

/* CTA */
.agc-cta { padding: clamp(3rem, 7vw, 5rem) 0; text-align: center; background: var(--h-primary-dk); color: var(--h-fg); }
.agc-cta h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; color: var(--h-fg); }
.agc-btn { display: inline-block; margin-top: 1.5rem; padding: .85rem 1.8rem; border-radius: 999px; background: var(--h-fg); color: var(--h-primary-dk) !important; font-weight: 700; text-decoration: none; }
.agc-btn:hover { background: #fff; }
.agc-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.agc-disc { margin: 1.5rem auto 0; max-width: 52ch; font-size: .85rem; opacity: .8; }

@media (max-width: 560px) { .agc-bars li { grid-template-columns: 5rem 1fr 2.4rem; gap: .5rem; } }
@media (prefers-reduced-motion: reduce) { .agc-card { transition: none; } .agc-card:hover { transform: none; } html { scroll-behavior: auto; } }
html { scroll-behavior: smooth; }

/* Editable species pages (built from normal blocks): centred, full-width, card layout */
.agc-sp .agc-sec .agc-narrow { width: min(1120px, 100% - 2.5rem); }
.agc-sp .agc-sec { padding: clamp(3rem, 6vw, 5rem) 0; }
.agc-sp .agc-sec h2 { text-align: center; margin: 0 auto; max-width: 28ch; text-wrap: balance; }
.agc-sp .agc-sec .agc-wrap > h2::after { content: ""; display: block; width: 3rem; height: 3px; margin: .9rem auto 0; border-radius: 3px; background: var(--h-primary); opacity: .35; }
.agc-sp .agc-sec .agc-wrap > h2 + * { margin-top: 2rem; }
.agc-sp .agc-sec .wp-block-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.agc-sp .agc-sec .wp-block-list > li { margin: 0; padding: 1.2rem 1.4rem; border: 1px solid var(--h-border); border-radius: 18px; background: var(--h-cream); line-height: 1.55; }
.agc-sp .agc-sec.agc-alt .wp-block-list > li { background: var(--h-card); }
.agc-sp .agc-sec .wp-block-list > li strong { display: block; margin-bottom: .3rem; font-size: 1.05rem; font-weight: 700; color: var(--h-primary-dk); }
.agc-sp .agc-sec .wp-block-list:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.agc-sp .agc-sec .wp-block-list:not(:has(> li:nth-child(3):last-child)) > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* plain items (care, warnings) get a tick */
.agc-sp .agc-sec .wp-block-list > li:not(:has(strong)):not(:has(> a:only-child)) { position: relative; padding-left: 3.1rem; }
.agc-sp .agc-sec .wp-block-list > li:not(:has(strong)):not(:has(> a:only-child))::before { content: ""; position: absolute; left: 1.35rem; top: 1.45rem; width: 6px; height: 11px; border: solid var(--h-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* vet warning box */
.agc-sp .agc-alert { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 24px; background: #fbf3d3; border: 1px solid #ead98c; color: #4a3a07; }
.agc-sp .agc-alert h2 { color: #4a3a07; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.agc-sp .agc-alert h2::after { background: #8a6a0c; }
.agc-sp .agc-alert .wp-block-list > li { background: rgba(255, 255, 255, .6); border-color: #ead98c; }
.agc-sp .agc-alert .wp-block-list > li::before { border-color: #8a6a0c; }
/* FAQ */
.agc-sp .agc-faq { max-width: 860px; margin: 2rem auto 0; }
.agc-sp .agc-q { background: var(--h-card); border: 1px solid var(--h-border); border-radius: 16px; margin-bottom: .7rem; padding: 0 1.3rem; }
.agc-sp .agc-q summary { padding: 1.1rem 0; font-size: 1.05rem; font-weight: 600; }
.agc-sp .agc-q .agc-a { padding-bottom: 1.1rem; }
/* related links as pills */
.agc-sp .agc-sec .wp-block-list:has(> li > a:only-child) { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.agc-sp .agc-sec .wp-block-list > li:has(> a:only-child) { padding: 0; border: 0; background: none; grid-column: auto; }
.agc-sp .agc-sec .wp-block-list > li > a:only-child { display: inline-block; padding: .6rem 1.3rem; border: 1px solid var(--h-border); border-radius: 999px; background: var(--h-card); color: var(--h-primary-dk); font-weight: 600; text-decoration: none; }
.agc-sp .agc-sec .wp-block-list > li > a:only-child:hover, .agc-sp .agc-sec .wp-block-list > li > a:only-child:focus-visible { background: var(--h-primary); border-color: var(--h-primary); color: var(--h-fg); }
.agc-sp .agc-disc { text-align: center; max-width: 60ch; margin: 0 auto; font-size: .85rem; color: var(--h-muted); }
@media (max-width: 560px) { .agc-sp .agc-sec .wp-block-list > li { padding: 1rem 1.1rem; } .agc-sp .agc-sec .wp-block-list > li:not(:has(strong)):not(:has(> a:only-child)) { padding-left: 2.8rem; } .agc-sp .agc-sec .wp-block-list > li:not(:has(strong)):not(:has(> a:only-child))::before { left: 1.05rem; top: 1.3rem; } }

/* Visual polish for species pages: stat tiles, icon badges, numbered cards */
.agc-sp .agc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; max-width: 720px; margin: 2rem auto 0; }
.agc-sp .agc-stat { padding: 1rem .8rem; border: 1px solid var(--h-border); border-radius: 18px; background: var(--h-card); box-shadow: 0 10px 24px -16px rgba(23, 60, 42, .45); text-align: center; }
.agc-sp .agc-stat p { margin: 0; }
.agc-sp .agc-stat .agc-stat-v { font-size: clamp(1.35rem, 4vw, 2rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--h-primary-dk); }
.agc-sp .agc-stat .agc-stat-l { margin-top: .35rem; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--h-muted); }
.agc-sp .agc-kicker { font-size: .95rem; padding: .4rem 1rem; }
.agc-sp .agc-h::before { content: var(--i); display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin: 0 auto 1rem; border-radius: 18px; background: var(--h-cream); border: 1px solid var(--h-border); font-size: 1.6rem; line-height: 1; }
.agc-sp .agc-alt .agc-h::before, .agc-sp .agc-alert .agc-h::before { background: var(--h-card); }
.agc-sp .agc-alert .agc-h::before { border-color: #ead98c; }
.agc-h-signs { --i: "\1F50D"; } .agc-h-confirm { --i: "\1FA7A"; } .agc-h-care { --i: "\1F49A"; } .agc-h-after { --i: "\1F501"; }
.agc-h-vet { --i: "\26A0\FE0F"; } .agc-h-faq { --i: "\2753"; } .agc-h-rel { --i: "\1F43E"; }
.agc-sp .agc-sec .wp-block-list { counter-reset: agcn; }
.agc-sp .agc-sec .wp-block-list > li:has(strong)::before { counter-increment: agcn; content: counter(agcn); display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: .7rem; border-radius: 50%; background: var(--h-primary); color: var(--h-fg); font-size: .85rem; font-weight: 700; }
.agc-sp .agc-sec .wp-block-list > li { transition: transform .18s ease, box-shadow .18s ease; }
.agc-sp .agc-sec .wp-block-list > li:not(:has(> a:only-child)):hover { transform: translateY(-3px); box-shadow: 0 16px 28px -18px rgba(23, 60, 42, .5); }
@media (prefers-reduced-motion: reduce) { .agc-sp .agc-sec .wp-block-list > li { transition: none; } .agc-sp .agc-sec .wp-block-list > li:hover { transform: none; } }
@media (max-width: 480px) { .agc-sp .agc-stats { gap: .5rem; } .agc-sp .agc-stat { padding: .8rem .4rem; } }

/* Species page hero: deep green band, white stat tiles, calculator card overlapping the band's lower edge */
.agc-sp .agc-stats > .agc-stat { margin: 0 !important; }
.agc-sp .agc-stat > p { margin: 0 !important; }
.agc-sp .agc-hero { position: relative; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); border-bottom: 0;
  background: radial-gradient(ellipse 60% 70% at 85% 0, rgba(255, 255, 255, .14), transparent 60%), radial-gradient(ellipse 50% 60% at 8% 100%, rgba(255, 255, 255, .09), transparent 60%), linear-gradient(160deg, var(--h-primary-dk), var(--h-primary)); color: var(--h-fg); }
.agc-sp .agc-hero .agc-kicker { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); color: var(--h-fg); }
.agc-sp .agc-hero h1 { color: #fff; font-size: clamp(2rem, 5.4vw, 3.4rem); max-width: min(100%, 28ch); }
.agc-sp .agc-hero .agc-lead { color: rgba(255, 255, 255, .85); max-width: min(100%, 820px); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.agc-sp .agc-stat { border-color: transparent; box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .45); }
.agc-sp .agc-hero .agc-hero-calc { position: relative; z-index: 1; margin-top: 2.2rem; }
.agc-sp .agc-hero-calc .agc-calc { box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .55); }
.agc-h-chart { --i: "\1F4C5"; }

/* Important notice at the foot of species pages */
.agc-sp .agc-notice { max-width: 860px; margin: 0 auto; padding: 1.2rem 1.5rem; border: 1px solid var(--h-border); border-left: 4px solid var(--h-primary); border-radius: 14px; background: var(--h-cream); font-size: .92rem; line-height: 1.6; color: var(--h-text); }
.agc-sp .agc-notice p { margin: 0; }
.agc-sp .agc-notice strong { color: var(--h-primary-dk); }

/* Reserve the calculator's space on desktop so content below it does not jump when the script draws it. */
@media (min-width: 900px) { .agc-hero-calc { min-height: 900px; } }

/* Centre intro text under the centred section headings, at a readable width. */
.agc-sp .agc-sec .agc-wrap > p { text-align: center; max-width: 68ch; margin-inline: auto; }
.agc-sp .agc-sec .agc-wrap > p + p { margin-top: .9rem; }
.agc-sp .agc-sec .agc-wrap > .wp-block-list + p { margin-top: 1.6rem; }

/* Closing block (links + notice) under the final call-to-action: tighter and aligned. */
.agc-sp .agc-cta + .agc-sec { padding: 2rem 0 2.5rem; }
.agc-sp .agc-cta + .agc-sec .agc-notice { max-width: 760px; margin: 1.2rem auto 0; }

/* Cards in a grid: the theme adds a top margin to every block after the first, which pushed the right-hand cards down. */
.agc-types > *, .agc-sp .agc-sec .wp-block-group.is-layout-flow[class*="agc-"] > .agc-tcard { margin-block-start: 0; }
