/*
 * AI Momentum Guild curriculum - [aimg_guild_curriculum].
 * Palette and type follow the ai-momentum-ai theme presets.
 * All selectors are prefixed .amg-curr- to avoid theme collisions.
 */

.amg-curr {
  --amg-ink: #0E0E0E;
  --amg-ink-soft: #51524E;
  --amg-base: #FFFFFF;
  --amg-cream: #F5F5F0;
  --amg-border: #E2E2D9;
  --amg-mist: #D0D1CD;
  --amg-sage: #495148;
  --amg-sage-wash: #E5F0E4;
  --amg-lime: #CEF453;
  --amg-lime-deep: #B9E22F;
  --amg-blue: #0175AD;
  --amg-blue-deep: #015D8A;
  --amg-blue-wash: #E8F4FA;
  --amg-orange: #E8642C;
  --amg-font: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  font-family: var(--amg-font);
  color: var(--amg-ink);
  background: var(--amg-base);
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  line-height: 1.55;
  font-size: clamp(1rem, 0.96rem + 0.21vw, 1.125rem);
  box-sizing: border-box;
}
.amg-curr *, .amg-curr *::before, .amg-curr *::after { box-sizing: inherit; }

/* Hero: the theme's .is-style-am-hero supplies the cream card and lime top
   edge; these only settle spacing inside the curriculum wrapper. */
.amg-curr-hero { margin: 0 0 2rem; }
.amg-curr-hero h1 { margin: .35rem 0 .6rem; }
/* The theme caps .am-lead at 800px site-wide for line length; this lead is
   two lines, so it fills the hero instead (Simon, 2026-09-24). */
.amg-curr-hero .am-lead { margin: 0; max-width: none; }

/* Sections */
.amg-curr-section { margin: 0 0 3rem; }
.amg-curr-section h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.85vw, 1.75rem);
  margin: 0 0 .35rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2;
}
.amg-curr-section .amg-curr-sub { margin: 0 0 1.5rem; color: var(--amg-ink-soft); font-size: .95em; }
.amg-curr-section h3 { font-size: 1.05em; margin: 2rem 0 .5rem; font-weight: 700; }
.amg-curr-section p { margin: 0 0 1rem; }

/* Tier colour key: one colour per group, used on the section nav dots and on
   every module card's top edge. Never the only signal: each carries its
   group's name in text (the nav label, the card badge). */
/* Theme tokens (theme.json), chosen with Simon 2026-09-24 and checked under
   simulated red-green colour blindness: lime, royal blue and orange stay
   clearly apart (lime and orange differ in lightness, blue in hue). */
.amg-curr-tier--tier1 {
  --amg-tier: var(--wp--preset--color--lime, #CEF453);
  /* Lime is very pale on white (1.26:1): fine as a 4px edge, but a small dot
     needs the deeper shade to be seen. */
  --amg-tier-dot: var(--wp--preset--color--lime-deep, #B9E22F);
}
.amg-curr-tier--tier2 { --amg-tier: var(--wp--preset--color--royal-blue, #2E5BFF); }
.amg-curr-tier--specialism { --amg-tier: var(--wp--preset--color--orange, #E8642C); }

/* The section nav is the theme's .am-anchor-nav component; the tier colour
   becomes its key dot. Nothing else about the nav is styled here. */
.amg-curr .am-anchor-nav a { --am-anchor-dot: var(--amg-tier-dot, var(--amg-tier)); }

.amg-curr-intro { margin-bottom: 1rem; }
.amg-curr-intro .amg-curr-sub { margin-bottom: 0; }

/* Module grid */
.amg-curr-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .amg-curr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .amg-curr-grid { grid-template-columns: repeat(3, 1fr); } }

.amg-curr-mod-card {
  border: 1px solid var(--amg-border); border-top: 4px solid var(--amg-tier, var(--amg-mist)); border-radius: 8px;
  padding: 1.15rem 1.2rem; background: var(--amg-base);
  display: flex; flex-direction: column;
}
.amg-curr-mod-badge {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: var(--amg-ink-soft); margin-bottom: .5rem;
}
.amg-curr-mod-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 700; }
.amg-curr-mod-covers { margin: 0 0 1rem; font-size: .93em; color: var(--amg-ink-soft); flex-grow: 1; }

.amg-curr-mod-gap p { margin: 0 0 .4rem; }
.amg-curr-requests { margin: 0 0 .5rem; padding-left: 1.1rem; }
.amg-curr-requests li { margin: 0 0 .2rem; }
.amg-curr-request-votes { color: var(--amg-ink-soft); white-space: nowrap; }
.amg-curr-request-link { font-weight: 700; color: var(--amg-ink); }
.amg-curr-mod-gap {
  background: var(--amg-cream); border-left: 4px solid var(--amg-mist);
  padding: .85rem 1rem; border-radius: 0 6px 6px 0; margin: 0; font-size: .93em;
}
.amg-curr-gap-label {
  display: block; font-weight: 700; text-transform: uppercase; font-size: .74rem;
  letter-spacing: .05em; color: var(--amg-ink-soft); margin-bottom: .3rem;
}

.amg-curr-mod-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  flex-wrap: wrap; margin-top: auto;
}
.amg-curr-mod-counts { font-size: .85em; color: var(--amg-ink-soft); }

.amg-curr-mod-toggle {
  appearance: none; border: 1px solid var(--amg-sage); background: var(--amg-base);
  color: var(--amg-sage); font-family: var(--amg-font); font-weight: 600;
  font-size: .85em; padding: .5rem .9rem; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s;
}
.amg-curr-mod-toggle:hover { background: var(--amg-sage-wash); }
.amg-curr-mod-toggle:focus-visible { outline: 3px solid var(--amg-blue); outline-offset: 2px; }
.amg-curr-mod-toggle[aria-expanded="true"] { background: var(--amg-sage); color: #fff; }

.amg-curr-mod-detail {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--amg-border);
  display: grid; gap: .5rem;
}
.amg-curr-mod-detail[hidden] { display: none; }

.amg-curr-resource {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  flex-wrap: wrap; padding: .55rem .7rem; background: var(--amg-cream); border-radius: 6px;
}
.amg-curr-resource-main { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.amg-curr-mod-foot {
  margin: .35rem 0 0; padding-top: .6rem; border-top: 1px solid var(--amg-border);
  font-size: .88em; color: var(--amg-ink-soft);
}
.amg-curr-mod-foot a { font-weight: 700; color: var(--amg-ink); }
/* The lime pill makes the prompt stand out, as the eyebrow badges do; ink on
   lime keeps full contrast. */
.amg-curr-mod-foot-label {
  display: inline-block; padding: .1rem .45rem; border-radius: 5px;
  background: var(--wp--preset--color--lime, #CEF453); color: var(--amg-ink); font-weight: 700;
}
.amg-curr-type-icon { width: 14px; height: 14px; flex-shrink: 0; }
.amg-curr-resource-type {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--amg-ink-soft);
}
.amg-curr-resource-title { font-size: .93em; font-weight: 600; color: var(--amg-ink); text-decoration: none; }
a.amg-curr-resource-title:hover { text-decoration: underline; }
span.amg-curr-resource-title { color: var(--amg-ink-soft); font-weight: 500; }

.amg-curr-lock {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: var(--amg-ink-soft); border: 1px solid var(--amg-mist); border-radius: 999px;
  padding: .2rem .55rem .2rem .4rem; white-space: nowrap;
}
.amg-curr-lock-icon { width: 13px; height: 13px; flex-shrink: 0; }

.amg-curr-foot {
  margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--amg-border);
  font-size: .85em; color: var(--amg-ink-soft);
}
