/* ==========================================================================
   Ava's Garden Tips — main.css
   Every text-capable colour below carries its measured WCAG 2.x ratio.
   Ratios were computed, not eyeballed. Do not change a hex without recomputing.
   HARD RULES
     · --rule and --*-decor-* are DECORATION ONLY. Never type, never a meaningful border.
     · --marigold is a GROUND ONLY. As text on paper it is 1.50:1.
     · In-body links are underlined by default: --fern-600 against --ink is 1.56:1,
       so colour alone would fail WCAG 1.4.1.
     · No two tokens in different roles share a hex.
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-stretch: 84% 100%;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched fallbacks. Without these the 131 KB swap reflows every paragraph;
   the overrides were measured against the real faces, not guessed. */
@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Georgia'), local('Times New Roman'), local('serif');
  size-adjust: 103%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Instrument Sans Fallback';
  src: local('Helvetica Neue'), local('Arial'), local('sans-serif');
  size-adjust: 101%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* ----------------------------------------------------------------- tokens */
:root {
  /* grounds */
  --paper:        #FBF8F3;   /* page ground — never #FFFFFF, so ad creatives read as separate objects */
  --sand:         #F1EADF;   /* cards, alternating sections, the ad plate */

  /* type */
  --ink:          #23342B;   /* body            12.41:1 on paper · 11.00:1 on sand */
  --fern-900:     #1F3D31;   /* headings, footer 11.20:1 on paper */
  --fern-600:     #2C5545;   /* links            7.95:1 on paper ·  7.05:1 on sand */
  --fern-500:     #356B57;   /* hover, focus     5.84:1 on paper */
  --meta:         #5A5147;   /* bylines, captions 7.33:1 on paper · 6.50:1 on sand */
  --accent:       #6B2A45;   /* oxblood — punctuation only  9.71:1 on paper */
  --visited:      #5B3A63;   /*                   8.89:1 on paper */
  --error:        #8E2F26;   /*                   7.67:1 on paper */

  /* grounds that carry type */
  --marigold:     #F2C94C;   /* GROUND ONLY — ink on it 8.28:1 */

  /* lines */
  --rule:         #E3DACB;   /* DECORATIVE ONLY  1.31:1 */
  --border-ui:    #8A8073;   /* meaningful borders, form fields, ad frame  3.66:1 paper · 3.25:1 sand */

  /* decoration only — named so they cannot be mistaken for text colours */
  --fern-decor-300: #8FB3A3; /* 2.17:1 — never text */
  --rust-decor:     #B8863B; /* 3.04:1 — 3px+ strokes only, never text */

  /* category tokens — all clear AA on paper and on sand */
  --cat-vegetable-garden:   #2C5545;  /* 7.95:1 */
  --cat-container-gardening:#4A4A2E;  /* 8.58:1 */
  --cat-raised-beds:        #23342B;  /* 12.41:1 */
  --cat-planting-calendar:  #7A4A12;  /* 7.04:1 */
  --cat-houseplants:        #1B4552;  /* 9.81:1 */
  --cat-flower-garden:      #6B2A45;  /* 9.71:1 */
  --cat-soil-compost:       #9C3F26;  /* 6.29:1 */
  --cat-garden-problems:    #6B3B0F;  /* 8.78:1 */
  --cat-pollinators-wildlife:#4B3A6B; /* 9.37:1 */
  --cat-default:            #2C5545;

  /* type system */
  --font-head: 'Fraunces', 'Fraunces Fallback', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body: 'Instrument Sans', 'Instrument Sans Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --step-0:  1.125rem;                                        /* 18px — this audience skews older */
  --step-1:  clamp(1.25rem, 1.18rem + 0.35vw, 1.4375rem);
  --step-2:  clamp(1.5rem, 1.36rem + 0.7vw, 1.9375rem);
  --step-3:  clamp(1.875rem, 1.6rem + 1.35vw, 2.625rem);
  --step-4:  clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);

  /* layout */
  --measure: 68ch;
  --wide: 1200px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --radius: 4px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #16221C;
    --sand:       #202A25;
    --ink:        #E9E4DA;   /* 12.95:1 on ground · 11.68:1 on sand */
    --fern-900:   #E9E4DA;
    --fern-600:   #9FC4B2;   /*  8.61:1 */
    --fern-500:   #B9D6C7;
    --meta:       #B7B0A5;   /*  7.63:1 */
    --accent:     #D9A9BE;   /*  8.10:1 */
    --visited:    #C5AEDA;
    --error:      #F0A79E;
    --marigold:   #4A3C14;   /* ground; ink on it 8.51:1 */
    --rule:       #2E3A33;   /* decorative only */
    --border-ui:  #7E8C84;   /*  4.67:1 on ground */
    --fern-decor-300: #4B6B5D;
    --rust-decor: #8A6733;

    --cat-vegetable-garden:    #9FC4B2;
    --cat-container-gardening: #BFC08E;
    --cat-raised-beds:         #D8D2C6;
    --cat-planting-calendar:   #D9AE7A;
    --cat-houseplants:         #8FBECD;
    --cat-flower-garden:       #D9A9BE;
    --cat-soil-compost:        #E39A7A;
    --cat-garden-problems:     #D2A276;
    --cat-pollinators-wildlife:#B7A8D9;
    --cat-default:             #9FC4B2;
  }
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

/* ------------------------------------------------------------------- type */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-variation-settings: 'SOFT' 30, 'WONK' 0;
  font-optical-sizing: auto;
  color: var(--fern-900);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 .5em;
  letter-spacing: -0.012em;
}
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; margin-top: 1.8em; }
h3 { font-size: var(--step-2); font-weight: 600; margin-top: 1.6em; }
h4 { font-size: var(--step-1); font-weight: 600; margin-top: 1.4em; }
p, ul, ol, dl, table, figure, blockquote, pre { margin: 0 0 1.15em; }
p { text-wrap: pretty; }
li + li { margin-top: .35em; }
strong, b { font-weight: 600; }
small { font-size: var(--step--1); }

/* Underlined by default, in both themes: --fern-600 against --ink is 1.56:1,
   which fails WCAG 1.4.1 if colour is the only cue. */
a {
  color: var(--fern-600);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--fern-500); text-decoration-thickness: 2px; }
a:visited { color: var(--visited); }
:focus-visible {
  /* Two-tone: the inner halo guarantees 3:1 against a dark ground (the topbar and the
     whole footer sit on --fern-900), the outer ring against a light one. */
  outline: 3px solid var(--fern-500);
  outline-offset: 2px;
  border-radius: 2px;
  box-shadow: 0 0 0 2px var(--paper);
}
.agt-topbar :focus-visible,
.agt-footer :focus-visible {
  outline-color: var(--paper);
  box-shadow: 0 0 0 2px var(--fern-900);
}

/* -------------------------------------------------------------- structure */
.agt-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--fern-900); color: var(--paper);
  padding: .75rem 1.25rem; text-decoration: none; font-weight: 600;
}
.agt-skip:focus { left: .5rem; top: .5rem; color: var(--paper); }

.agt-wrap { width: min(100% - (2 * var(--gutter)), var(--wide)); margin-inline: auto; }
.agt-measure { width: min(100%, var(--measure)); margin-inline: auto; }

/* ----------------------------------------------------------------- header */
.agt-topbar {
  background: var(--fern-900);
  color: var(--paper);
  font-size: var(--step--1);
}
.agt-topbar a { color: var(--paper); text-decoration-color: rgba(251,248,243,.45); }
.agt-topbar a:hover, .agt-topbar a:visited { color: var(--paper); }
.agt-topbar__inner { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; padding: .5rem 0; }
.agt-topbar ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.agt-topbar li { margin: 0; }

.agt-masthead { padding: 1.5rem 0 1rem; }
.agt-masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.agt-logo { display: inline-flex; align-items: center; text-decoration: none; }
.agt-logo img, .agt-logo svg { width: clamp(190px, 26vw, 260px); height: auto; }
.agt-logo--text { font-family: var(--font-head); font-weight: 700; font-size: var(--step-2); color: var(--fern-900); }
.agt-tagline { color: var(--meta); font-size: var(--step--1); margin: .35rem 0 0; }

.agt-nav { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.agt-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; }
.agt-nav li { margin: 0; }
.agt-nav a {
  display: block; padding: .8rem 0;
  font-weight: 600; font-size: 0.9375rem;   /* 15px — the condensed floor is 14px */
  font-stretch: 88%;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fern-900); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.agt-nav a:hover, .agt-nav a:focus-visible { color: var(--fern-600); border-bottom-color: var(--fern-600); }
.agt-nav .current-menu-item > a, .agt-nav .current-category-ancestor > a { border-bottom-color: var(--accent); color: var(--fern-900); }
.agt-nav__toggle { display: none; }

/* The collapsed mobile menu only applies once the enhancement script has run — otherwise
   a reader without JavaScript loses the whole section navigation below 860px. */
@media (max-width: 860px) {
  .agt-js .agt-nav__toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    margin: .6rem 0; padding: .6rem 1rem; min-height: 44px;
    background: var(--sand); color: var(--fern-900);
    border: 1px solid var(--border-ui); border-radius: var(--radius);
    font: inherit; font-weight: 600; cursor: pointer;
  }
  .agt-nav ul { flex-direction: column; gap: 0; padding-bottom: .5rem; }
  .agt-js .agt-nav ul { display: none; }
  .agt-js .agt-nav[data-open='true'] ul { display: flex; }
  .agt-nav a { padding: .75rem 0; border-bottom: 1px solid var(--rule); min-height: 44px; }
}

/* ------------------------------------------------------------------- main */
.agt-main { padding: 2rem 0 3rem; }
.agt-page-head { margin-bottom: 2rem; }
.agt-page-head h1 { margin-bottom: .35em; }
.agt-page-head__intro { color: var(--ink); font-size: var(--step-1); max-width: 62ch; line-height: 1.5; }

/* ------------------------------------------------------------------ cards */
.agt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
  margin: 0; padding: 0; list-style: none;
}
.agt-card { display: flex; flex-direction: column; margin: 0; }
.agt-card__media {
  position: relative; display: block;
  aspect-ratio: 4 / 5;                       /* one 4:5 source serves the card and the pin */
  background: var(--sand);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--rule);
}
.agt-card__media img { width: 100%; height: 100%; object-fit: cover; }
.agt-card__body { padding-top: .75rem; }
.agt-card__title { font-size: var(--step-1); margin: .3rem 0 .35rem; line-height: 1.22; }
.agt-card__title a { color: var(--fern-900); text-decoration: none; }
.agt-card__title a:hover { color: var(--fern-600); text-decoration: underline; }
.agt-card__excerpt { color: var(--meta); font-size: var(--step--1); margin: 0; line-height: 1.5; }

.agt-chip {
  display: inline-block;
  font-size: 0.8125rem;                      /* 13px, but not condensed — the floor applies to condensed caps */
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cat-default); text-decoration: none;
}
.agt-chip:hover { text-decoration: underline; }
.agt-chip--pill {
  padding: .35rem .7rem; border: 1px solid currentColor; border-radius: 999px;
  font-size: 0.875rem; letter-spacing: 0.05em; min-height: 32px; line-height: 1.4;
}

/* ------------------------------------------------------------- chip colours */
.cat-vegetable-garden    { color: var(--cat-vegetable-garden); }
.cat-container-gardening { color: var(--cat-container-gardening); }
.cat-raised-beds         { color: var(--cat-raised-beds); }
.cat-planting-calendar   { color: var(--cat-planting-calendar); }
.cat-houseplants         { color: var(--cat-houseplants); }
.cat-flower-garden       { color: var(--cat-flower-garden); }
.cat-soil-compost        { color: var(--cat-soil-compost); }
.cat-garden-problems     { color: var(--cat-garden-problems); }
.cat-pollinators-wildlife{ color: var(--cat-pollinators-wildlife); }

/* --------------------------------------------------------- category tiles */
.agt-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(1rem, .8rem + 1vw, 1.75rem); list-style: none; margin: 0; padding: 0; }
.agt-cat {
  display: flex; flex-direction: column;
  background: var(--sand); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; margin: 0;
}
.agt-cat__media { aspect-ratio: 4 / 3; background: var(--sand); }
.agt-cat__media img { width: 100%; height: 100%; object-fit: cover; }
.agt-cat__body { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.agt-cat__name { font-family: var(--font-head); font-weight: 700; font-size: var(--step-1); margin: 0; line-height: 1.2; }
.agt-cat__name a { color: var(--fern-900); text-decoration: none; }
.agt-cat__name a:hover { text-decoration: underline; }
.agt-cat__desc { color: var(--meta); font-size: var(--step--1); margin: 0; line-height: 1.5; }
.agt-cat__count { color: var(--meta); font-size: .8125rem; margin: 0; }

/* ----------------------------------------------------------------- single */
.agt-article { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 1040px) {
  .agt-article--sidebar { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .agt-sidebar { position: sticky; top: 1.5rem; }
}
.agt-entry { max-width: var(--measure); }
.agt-entry > * { margin-inline: auto; }
.agt-entry h2, .agt-entry h3, .agt-entry h4 { scroll-margin-top: 1.5rem; }
.agt-entry ul, .agt-entry ol { padding-left: 1.35em; }
.agt-entry figure { margin-block: 1.75rem; }
.agt-entry figcaption { color: var(--meta); font-size: var(--step--1); margin-top: .5rem; line-height: 1.45; }
.agt-entry blockquote {
  border-left: 3px solid var(--accent);
  padding: .25rem 0 .25rem 1.15rem; margin-left: 0;
  font-family: var(--font-head); font-variation-settings: 'SOFT' 60, 'WONK' 0;
  font-size: var(--step-1); color: var(--fern-900);
}
.agt-entry hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem auto; }

.agt-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .9rem;
  color: var(--meta); font-size: var(--step--1);
  margin: 0 0 1.5rem;
}
.agt-byline__avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.agt-byline a { color: var(--meta); }
.agt-byline__sep { color: var(--border-ui); }

.agt-hero { margin: 0 0 1.75rem; }
.agt-hero img { width: 100%; border-radius: var(--radius); border: 1px solid var(--rule); }

/* ------------------------------------------------------ signature blocks */
/* 1. Measured plan — inline two-colour SVG, --fern-900 line, one --accent highlight. */
.agt-plan {
  margin: 2rem auto; padding: 1.25rem;
  background: var(--sand); border: 1px solid var(--border-ui); border-radius: var(--radius);
}
.agt-plan svg { width: 100%; height: auto; display: block; }
.agt-plan__line { stroke: var(--fern-900); fill: none; }
.agt-plan__fill { fill: var(--fern-decor-300); }
.agt-plan__hi   { stroke: var(--accent); fill: none; }
.agt-plan__label { fill: var(--ink); font-family: var(--font-body); font-size: 13px; font-weight: 500; }
.agt-plan__caption { color: var(--meta); font-size: var(--step--1); margin: .85rem 0 0; }
.agt-plan__scalebar { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; color: var(--meta); font-size: .8125rem; }
.agt-plan__scalebar i { display: block; width: 1in; height: 8px; border: 1px solid var(--border-ui); border-top: 0; }

/* 2. Zone & timing strip. */
.agt-zonestrip {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  padding: .8rem 1rem; margin: 0 auto 1.75rem;
  background: var(--sand); border-left: 4px solid var(--fern-600); border-radius: var(--radius);
  font-size: var(--step--1);
}
.agt-zonestrip dt { color: var(--meta); font-weight: 600; margin: 0; }
.agt-zonestrip dd { margin: 0 0 0 .4rem; color: var(--ink); }
.agt-zonestrip > div { display: flex; align-items: baseline; }

/* 3. "What I Got Wrong" — marigold ground, oxblood mark. Only ever rendered when the
      field holds something that actually happened, and never within two blocks of an ad. */
.agt-wrong {
  position: relative; margin: 2rem auto; padding: 1.35rem 1.4rem 1.4rem;
  background: var(--marigold); border-radius: var(--radius);
  color: var(--ink);
}
.agt-wrong__head {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 700; font-size: var(--step-1);
  color: var(--ink); margin: 0 0 .5rem;
}
.agt-wrong__head svg { width: 26px; height: 26px; flex: none; }
.agt-wrong p:last-child { margin-bottom: 0; }

/* 4. Safety blocks. */
.agt-safety {
  margin: 1.75rem auto; padding: 1rem 1.15rem;
  background: var(--sand); border: 1px solid var(--border-ui); border-left-width: 4px;
  border-left-color: var(--error); border-radius: var(--radius);
  font-size: var(--step--1); line-height: 1.55;
}
.agt-safety__title {
  display: block; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; font-size: .8125rem; color: var(--error); margin-bottom: .35rem;
}
.agt-safety p:last-child { margin-bottom: 0; }
.agt-safety--disclosure { border-left-color: var(--meta); }
.agt-safety--disclosure .agt-safety__title { color: var(--meta); }
.agt-safety--source { border-left-color: var(--fern-600); }
.agt-safety--source .agt-safety__title { color: var(--fern-600); }

/* 5. Ad slot. Space is reserved in CSS: collapsing an unfilled slot causes as much
      layout shift as inserting one. Frame clears 3:1 on both grounds. */
.agt-ad {
  margin: 2.25rem auto; padding: .6rem;
  background: var(--sand); border: 1px solid var(--border-ui); border-radius: var(--radius);
  text-align: center;
}
.agt-ad__label {
  display: block; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 11px; font-weight: 600; color: var(--meta); margin-bottom: .5rem;
}
.agt-ad__inner { min-height: 280px; display: block; }
.agt-ad--leaderboard .agt-ad__inner { min-height: 100px; }
.agt-ad--sidebar .agt-ad__inner { min-height: 600px; }
@media (max-width: 700px) { .agt-ad--sidebar .agt-ad__inner { min-height: 280px; } }

/* --------------------------------------------------------------- almanac */
.agt-almanac { background: var(--sand); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border: 1px solid var(--rule); }
.agt-almanac__kicker { text-transform: uppercase; letter-spacing: 0.1em; font-size: .8125rem; font-weight: 600; color: var(--accent); margin: 0 0 .35rem; }
.agt-almanac h2 { margin-top: 0; }
.agt-almanac__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.25rem 2rem; }
.agt-almanac h3 { font-size: var(--step-1); margin: 0 0 .5rem; }
.agt-almanac ul { margin: 0; padding-left: 1.15em; }
.agt-almanac__note { color: var(--meta); font-size: var(--step--1); margin: 1.25rem 0 0; }

/* ----------------------------------------------------------- promise strip */
.agt-promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.5rem 2rem; padding: 2rem 0; border-block: 1px solid var(--rule); }
.agt-promise__item h3 { font-size: var(--step-1); margin: .5rem 0 .35rem; }
.agt-promise__item p { color: var(--meta); font-size: var(--step--1); margin: 0; }
.agt-promise__item svg { width: 34px; height: 34px; }

/* -------------------------------------------------------------- Ava card */
.agt-ava {
  display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap;
  background: var(--sand); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.35rem 1.5rem; margin: 2.5rem auto 0;
}
.agt-ava__avatar { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.agt-ava__body { flex: 1 1 260px; }
.agt-ava__body h2, .agt-ava__body h3 { margin: 0 0 .4rem; font-size: var(--step-1); }
.agt-ava__body p { margin: 0 0 .6rem; font-size: var(--step--1); color: var(--ink); }
.agt-ava__body p:last-child { margin-bottom: 0; }
.agt-ava__disclosure { color: var(--meta); }

/* ------------------------------------------------------------ save button */
.agt-save {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 44px; min-width: 44px; padding: .5rem .9rem;
  background: var(--accent); color: var(--paper);
  border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .875rem; font-weight: 600; text-decoration: none;
}
.agt-save:hover, .agt-save:visited { color: var(--paper); }
.agt-save svg { width: 18px; height: 18px; fill: currentColor; }

/* ------------------------------------------------------------ breadcrumbs */
.agt-crumbs { font-size: var(--step--1); color: var(--meta); margin: 0 0 1.25rem; }
.agt-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.agt-crumbs li { margin: 0; display: flex; gap: .35rem; align-items: center; }
.agt-crumbs li + li::before { content: '/'; color: var(--border-ui); }
.agt-crumbs a { color: var(--meta); }

/* ------------------------------------------------------------- pagination */
.agt-pagination { margin: 2.5rem 0 0; }
.agt-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.agt-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 .6rem;
  border: 1px solid var(--border-ui); border-radius: var(--radius);
  color: var(--fern-600); text-decoration: none; font-weight: 600;
}
.agt-pagination .page-numbers:hover { background: var(--sand); }
.agt-pagination .page-numbers.current { background: var(--fern-600); color: var(--paper); border-color: var(--fern-600); }
.agt-pagination .page-numbers.dots { border-color: transparent; }

/* ------------------------------------------------------------------ forms */
input[type='text'], input[type='email'], input[type='search'], input[type='url'], textarea, select {
  width: 100%; padding: .7rem .8rem; min-height: 44px;
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--border-ui); border-radius: var(--radius);
}
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--fern-500); }
label { display: block; font-weight: 600; font-size: var(--step--1); margin-bottom: .3rem; }
.agt-field { margin-bottom: 1.1rem; }
.agt-field__hint { color: var(--meta); font-size: var(--step--1); font-weight: 400; }
.agt-check { display: flex; gap: .6rem; align-items: flex-start; }
.agt-check input { width: 20px; height: 20px; min-height: 20px; margin-top: .25rem; flex: none; }
.agt-check label { font-weight: 400; margin: 0; }
.agt-error { color: var(--error); font-weight: 600; }
.button, button[type='submit'], input[type='submit'] {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .7rem 1.4rem;
  background: var(--fern-600); color: var(--paper);
  border: 0; border-radius: var(--radius);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.button:hover, button[type='submit']:hover { background: var(--fern-500); color: var(--paper); }
.button:visited { color: var(--paper); }
.agt-notice { padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--sand); border-left: 4px solid var(--fern-600); margin-bottom: 1.5rem; }

.agt-search { display: flex; gap: .5rem; max-width: 460px; }
.agt-search input[type='search'] { flex: 1; }

/* --------------------------------------------------------------- comments */
.agt-comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.agt-comments ol { list-style: none; margin: 0; padding: 0; }
.agt-comments .children { list-style: none; margin: 1rem 0 0 1.5rem; padding: 0; border-left: 2px solid var(--rule); padding-left: 1.25rem; }
.agt-comments article { margin-bottom: 1.75rem; }
.agt-comments .comment-meta { display: flex; align-items: center; gap: .6rem; color: var(--meta); font-size: var(--step--1); margin-bottom: .5rem; }
.agt-comments .comment-meta img { width: 34px; height: 34px; border-radius: 50%; }
.agt-avatar-initial {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fern-900); color: var(--paper);
  font-weight: 700; font-size: .9rem; font-family: var(--font-head);
}

/* --------------------------------------------------------------- footer */
.agt-footer { background: var(--fern-900); color: #E8DCCB; margin-top: 4rem; padding: 3rem 0 2rem; }
@media (prefers-color-scheme: dark) { .agt-footer { background: #101A15; color: var(--ink); } }
.agt-footer a { color: #E8DCCB; text-decoration-color: rgba(232,220,203,.45); }
.agt-footer a:hover, .agt-footer a:visited { color: #FBF8F3; }
@media (prefers-color-scheme: dark) {
  .agt-footer a, .agt-footer a:visited { color: var(--ink); }
}
.agt-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 2rem; }
.agt-footer h2 { color: inherit; font-size: var(--step-1); margin: 0 0 .75rem; }
.agt-footer ul { list-style: none; margin: 0; padding: 0; font-size: var(--step--1); }
.agt-footer li { margin: 0 0 .45rem; }
.agt-footer__logo img, .agt-footer__logo svg { width: 190px; }
.agt-footer__note { color: #A9C7B8; font-size: var(--step--1); margin: 1rem 0 0; max-width: 46ch; line-height: 1.55; }
@media (prefers-color-scheme: dark) { .agt-footer__note { color: var(--meta); } }
.agt-footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(232,220,203,.22); display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; font-size: var(--step--1); }
.agt-footer__bottom p { margin: 0; }
.agt-cookie-btn { background: none; border: 1px solid currentColor; color: inherit; border-radius: var(--radius); padding: .45rem .9rem; min-height: 36px; font: inherit; font-size: var(--step--1); cursor: pointer; }

/* -------------------------------------------------------------- utilities */
.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; white-space: nowrap;
}
.screen-reader-text:focus {
  clip-path: none; height: auto; width: auto; padding: .75rem 1.25rem;
  background: var(--paper); color: var(--fern-900); z-index: 100;
}
.agt-empty { background: var(--sand); border: 1px dashed var(--border-ui); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--meta); }
.agt-empty svg { width: 72px; height: 72px; margin: 0 auto 1rem; display: block; }
.agt-section { margin: 3rem 0; }
.agt-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.agt-section__head h2 { margin: 0; }
.agt-sr-list { list-style: none; margin: 0; padding: 0; }
.agt-columns-2 { columns: 2; column-gap: 2.5rem; }
@media (max-width: 640px) { .agt-columns-2 { columns: 1; } }
.agt-sitemap h2 { margin-top: 2rem; }
.agt-sitemap ul { margin-bottom: 1.5rem; }

/* ------------------------------------------------- core block adjustments */
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--border-ui); padding: .6rem .7rem; text-align: left; vertical-align: top; }
.wp-block-table thead th { background: var(--sand); font-weight: 600; }
.wp-block-table tbody tr:nth-child(even) { background: var(--sand); }
.wp-block-table { overflow-x: auto; }
.wp-block-separator { border: 0; border-top: 1px solid var(--rule); }
.wp-block-image img { border-radius: var(--radius); }
.wp-block-quote { border-left: 3px solid var(--accent); padding-left: 1.15rem; margin-left: 0; }
.has-marigold-background-color { color: var(--ink); }

/* The block-editor palette is registered as literal light-mode hexes, so WordPress emits
   static custom properties. Re-point them at the theme tokens, which are theme-aware. */
:root {
  --wp--preset--color--paper: var(--paper);
  --wp--preset--color--sand: var(--sand);
  --wp--preset--color--ink: var(--ink);
  --wp--preset--color--fern-900: var(--fern-900);
  --wp--preset--color--fern-600: var(--fern-600);
  --wp--preset--color--meta: var(--meta);
  --wp--preset--color--accent: var(--accent);
  --wp--preset--color--marigold: var(--marigold);
}
.has-marigold-background-color,
.has-sand-background-color,
.has-paper-background-color { color: var(--ink); }
.has-fern-900-background-color,
.has-fern-600-background-color,
.has-accent-background-color { color: var(--paper); }
