/* ==========================================================================
   MindShift Guru — Core stylesheet
   --------------------------------------------------------------------------
   1. Design tokens (custom properties)
   2. Fonts
   3. Reset & base
   4. Typography
   5. Layout primitives
   6. Brand marks (wordmark / compact mark)
   7. Buttons
   8. Forms
   9. Header & navigation
  10. Footer
  11. Editorial section patterns
  12. Cards (principles, resources, programs, events)
  13. Empty & notice states
  14. Decorative art
  15. Utilities
  ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* --- Brand palette (bright, positive, light. No dark backgrounds) --- */
  --color-background: #f7f8f2;   /* Soft Ivory   */
  --color-surface: #ffffff;      /* Pure White   */
  --color-primary: #287a50;      /* Growth Green */
  --color-primary-heading: #28583c; /* Heading Green */
  --color-sage: #dcefe3;         /* Fresh Sage   */
  --color-gold: #e8c77e;         /* Champagne    */
  --color-blush: #f5e7e1;        /* Soft Blush   */
  --color-body: #42634d;         /* Body text    */
  --color-border: #dde8dc;       /* Subtle line  */
  --color-cream: #fff9eb;        /* Light cream  */
  --color-pale: #eef5e9;         /* Pale green   */

  /* --- Derived tints & shades (kept inside the light system) ----------- */
  --color-primary-soft: #3a9061;
  --color-primary-deep: #1f5e3c;
  --color-primary-ink: #1b4a31;   /* deepest green used for text emphasis */
  --color-gold-deep: #c79f4d;
  --color-gold-wash: #fbf1d9;
  --color-sage-wash: #eaf5ee;
  --color-on-primary: #ffffff;
  --color-on-deep: #f2f8f3;

  /* --- Typography ------------------------------------------------------ */
  --font-display: "Playfair Display", "Iowan Old Style", "Palatino Linotype",
    Palatino, Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale — clamp keeps mobile from breaking */
  --fs-display: clamp(2.6rem, 1.35rem + 4.6vw, 5.05rem);
  --fs-h1: clamp(2.1rem, 1.35rem + 2.7vw, 3.65rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem);
  --fs-h3: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem);
  --fs-h4: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.24rem);
  --fs-body: clamp(1rem, 0.97rem + 0.14vw, 1.06rem);
  --fs-small: 0.925rem;
  --fs-tiny: 0.79rem;

  --lh-tight: 1.12;
  --lh-snug: 1.32;
  --lh-body: 1.72;

  --tracking-eyebrow: 0.19em;

  /* --- Spacing --------------------------------------------------------- */
  --space-3xs: 0.35rem;
  --space-2xs: 0.55rem;
  --space-xs: 0.85rem;
  --space-sm: 1.15rem;
  --space-md: 1.6rem;
  --space-lg: 2.3rem;
  --space-xl: 3.2rem;
  --space-2xl: 4.4rem;
  --space-3xl: 6rem;
  --section-y: clamp(3.5rem, 2.2rem + 5vw, 7rem);
  --container: 1220px;
  --container-narrow: 860px;
  --gutter: clamp(1.15rem, 0.6rem + 2.2vw, 2.75rem);

  /* --- Shape ----------------------------------------------------------- */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-pill: 999px;

  /* Soft, green-tinted elevation — never grey/black */
  --shadow-xs: 0 2px 8px rgba(40, 90, 60, 0.05);
  --shadow-sm: 0 6px 18px rgba(40, 90, 60, 0.07);
  --shadow-md: 0 14px 34px rgba(40, 90, 60, 0.09);
  --shadow-lg: 0 26px 60px rgba(40, 90, 60, 0.12);
  --shadow-gold: 0 12px 30px rgba(199, 159, 77, 0.16);

  --ring: 0 0 0 3px rgba(40, 122, 80, 0.28);
  --ring-gold: 0 0 0 3px rgba(199, 159, 77, 0.32);

  /* --- Motion ---------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 0.68, 0.32, 1);
  --ease-soft: cubic-bezier(0.4, 0.14, 0.3, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 560ms;

  --header-h: 76px;
}

/* ==========================================================================
   2. FONTS
   ==========================================================================
   Loaded non-blockingly with preconnect + display=swap; the fallback stack in
   --font-display / --font-body renders immediately if fonts are unavailable.
   ========================================================================== */

/* ==========================================================================
   3. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor targets clear the sticky header. */
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* guard against accidental horizontal scroll */
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
picture,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Light-background media should never sit on white */
img {
  background-color: var(--color-pale);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease-soft);
}

a:hover {
  color: var(--color-primary-ink);
}

ul,
ol {
  padding-left: 1.15rem;
}

li + li {
  margin-top: 0.4rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-lg) 0;
}

::selection {
  background: var(--color-sage);
  color: var(--color-primary-ink);
}

/* Visible, on-brand focus for every interactive element */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Keyboard users get a clear non-sticky jump link */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: 0.75rem 1.4rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-small);
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: var(--color-on-primary);
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-primary-heading);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.012em;
  margin: 0 0 var(--space-sm);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
}
h4 {
  font-size: var(--fs-h4);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

.display {
  font-size: var(--fs-display);
  line-height: 1.06;
  letter-spacing: -0.024em;
}

p {
  margin: 0 0 var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.66;
  color: var(--color-body);
}

.small {
  font-size: var(--fs-small);
}

.muted {
  color: var(--color-primary-soft);
}

/* Editorial eyebrow / kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 var(--space-sm);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-deep));
  flex: none;
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--plain::before {
  display: none;
}

/* Accented word inside a headline */
.accent-gold {
  color: var(--color-gold-deep);
  font-style: italic;
}

.accent-underline {
  position: relative;
  white-space: nowrap;
}

.accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.2em;
  border-radius: 999px;
  background: var(--color-gold-wash);
  z-index: -1;
}

/* ==========================================================================
   5. LAYOUT PRIMITIVES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: calc(var(--section-y) * 0.62);
}

.section--sage {
  background: var(--color-sage-wash);
}

.section--sage-solid {
  background: var(--color-sage);
}

.section--cream {
  background: var(--color-cream);
}

.section--blush {
  background: var(--color-blush);
}

.section--surface {
  background: var(--color-surface);
}

.section--bordered {
  border-top: 1px solid var(--color-border);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-xl);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  color: var(--color-body);
}

.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--space-lg);
  align-items: end;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stack > * + * {
  margin-top: var(--space-sm);
}

.stack-lg > * + * {
  margin-top: var(--space-lg);
}

/* Two-column editorial split (hero, about, philosophy intros) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.split--wide-left {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.split--reverse > :first-child {
  order: 2;
}

/* ==========================================================================
   6. BRAND MARKS
   ========================================================================== */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
  color: var(--color-primary);
  line-height: 1;
}

.wordmark__mark {
  width: 40px;
  height: 42px;
  flex: none;
  object-fit: contain;
}

.wordmark__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wordmark__name {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-primary-ink);
}

.wordmark__tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
}

.wordmark--light .wordmark__name {
  color: var(--color-on-deep);
}

.wordmark--light .wordmark__tag {
  color: var(--color-gold);
}

/* Compact mark (favicon-adjacent, social, footer) */
.mark-only {
  width: 44px;
  height: 44px;
  flex: none;
}

/* ==========================================================================
   7. BUTTONS
   ========================================================================== */

.btn {
  --btn-bg: var(--color-primary);
  --btn-fg: var(--color-on-primary);
  --btn-border: var(--btn-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px; /* comfortable touch target */
  padding: 0.78rem 1.6rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.015em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease-soft),
    border-color var(--dur) var(--ease-soft),
    color var(--dur) var(--ease-soft),
    box-shadow var(--dur) var(--ease-soft),
    transform var(--dur) var(--ease-soft);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  --btn-bg: var(--color-primary-soft);
  --btn-border: var(--color-primary-soft);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--color-primary);
  --btn-border: var(--color-primary);
}

.btn--outline:hover {
  --btn-bg: var(--color-sage-wash);
  --btn-fg: var(--color-primary-ink);
}

.btn--gold {
  --btn-bg: var(--color-gold);
  --btn-fg: var(--color-primary-ink);
  --btn-border: var(--color-gold);
}

.btn--gold:hover {
  --btn-bg: var(--color-gold-deep);
  --btn-border: var(--color-gold-deep);
  color: #fffdf7;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--color-primary);
  --btn-border: transparent;
  padding-inline: 0.5rem;
}

.btn--ghost:hover {
  --btn-bg: var(--color-sage-wash);
}

.btn--sm {
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  font-size: var(--fs-tiny);
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Inline text link with an arrow that nudges on hover */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: var(--fs-small);
  text-decoration: none;
  color: var(--color-primary);
}

.link-arrow .link-arrow__icon {
  transition: transform var(--dur) var(--ease-out);
}

.link-arrow:hover .link-arrow__icon {
  transform: translateX(4px);
}

/* ==========================================================================
   8. FORMS
   ========================================================================== */

.form {
  display: grid;
  gap: var(--space-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--color-primary-heading);
}

.field .req {
  color: var(--color-gold-deep);
  margin-left: 0.15rem;
}

.field .hint {
  font-size: var(--fs-tiny);
  color: var(--color-primary-soft);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.78rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-primary-heading);
  font-size: 1rem; /* prevents iOS zoom-on-focus */
  transition: border-color var(--dur) var(--ease-soft),
    box-shadow var(--dur) var(--ease-soft);
}

.input::placeholder,
.textarea::placeholder {
  color: #9bb3a3;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #c6dcc8;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--ring);
}

.textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23287A50' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
}

/* Validation: colour + icon + message, never colour alone */
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: #b4453a;
  background: #fdf4f2;
}

.field.has-error .input:focus,
.field.has-error .select:focus,
.field.has-error .textarea:focus {
  box-shadow: 0 0 0 3px rgba(180, 69, 58, 0.22);
}

.error-msg {
  display: none;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: var(--fs-tiny);
  font-weight: 700;
  color: #a33f34;
}

.field.has-error .error-msg {
  display: flex;
}

/* Checkbox / consent */
.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: var(--fs-small);
  line-height: 1.55;
}

.check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--color-primary);
  flex: none;
  cursor: pointer;
}

.check a {
  font-weight: 700;
}

/* Honeypot — visually and programmatically removed from the a11y tree */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Form status messages */
.form-status {
  display: none;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  line-height: 1.55;
  border: 1px solid transparent;
}

.form-status.is-visible {
  display: flex;
}

.form-status[data-state="success"] {
  background: var(--color-sage-wash);
  border-color: #b9ddc6;
  color: var(--color-primary-ink);
}

.form-status[data-state="error"] {
  background: #fdf4f2;
  border-color: #e8bdb6;
  color: #8f362c;
}

.form-status[data-state="info"] {
  background: var(--color-cream);
  border-color: #ecd9ac;
  color: #8a6b28;
}

.form-status__icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

/* Spinner shown while a request is in flight */
.btn.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: var(--color-on-primary);
  animation: msg-spin 700ms linear infinite;
}

.btn--outline.is-loading::after,
.btn--ghost.is-loading::after {
  border-color: rgba(40, 122, 80, 0.3);
  border-top-color: var(--color-primary);
}

/* ==========================================================================
   9. HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--dur) var(--ease-soft),
    background var(--dur) var(--ease-soft);
}

.site-header.is-stuck {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.96);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 0.1rem + 0.7vw, 0.9rem);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.15rem, 0rem + 0.55vw, 0.7rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list li + li {
  margin-top: 0;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 0.5rem 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary-heading);
  text-decoration: none;
  border-radius: var(--radius-xs);
  transition: color var(--dur) var(--ease-soft);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 0.18rem;
  height: 2px;
  border-radius: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--color-primary);
}

.site-nav__link:hover::after {
  transform: scaleX(1);
}

/* Current page — colour + underline + aria-current (never colour alone) */
.site-nav__link[aria-current="page"] {
  color: var(--color-primary);
}

.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--color-primary);
}

.site-header__cta {
  flex: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  color: var(--color-primary-heading);
}

.nav-toggle__bars {
  position: relative;
  width: 20px;
  height: 14px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out),
    opacity var(--dur-fast) var(--ease-soft);
}

.nav-toggle__bars span:nth-child(1) {
  top: 0;
}
.nav-toggle__bars span:nth-child(2) {
  top: 6px;
}
.nav-toggle__bars span:nth-child(3) {
  top: 12px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- Mobile drawer --- */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  visibility: hidden;
  pointer-events: none;
}

.nav-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(40, 90, 60, 0.22); /* light green wash, never black */
  opacity: 0;
  transition: opacity var(--dur) var(--ease-soft);
}

.nav-drawer.is-open .nav-drawer__scrim {
  opacity: 1;
}

.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(370px, 88vw);
  padding: calc(var(--header-h) + var(--space-md)) var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.nav-drawer.is-open .nav-drawer__panel {
  transform: translateX(0);
}

.nav-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.nav-drawer__list li + li {
  margin-top: 0;
}

.nav-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0.2rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--color-primary-heading);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}

.nav-drawer__link[aria-current="page"] {
  color: var(--color-primary);
}

.nav-drawer__link[aria-current="page"]::after {
  content: "•";
  color: var(--color-gold-deep);
}

.nav-drawer__foot {
  margin-top: var(--space-md);
  display: grid;
  gap: var(--space-xs);
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--color-sage-wash);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-2xl) var(--space-lg);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr);
  gap: var(--space-xl) var(--space-lg);
}

.site-footer__contact .site-footer__social {
  margin-top: 0;
}

.footer-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-primary-heading);
  text-decoration: none;
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 2px;
}

.footer-phone:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.site-footer__logo {
  display: block;
  width: min(320px, 100%);
  height: auto;
  margin-bottom: var(--space-sm);
}

.site-footer__brand p {
  margin-top: var(--space-sm);
  max-width: 38ch;
  font-size: var(--fs-small);
}

.site-footer__title {
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary-heading);
  margin-bottom: var(--space-sm);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links li + li {
  margin-top: 0.5rem;
}

.site-footer__links a {
  font-size: var(--fs-small);
  color: var(--color-body);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: var(--fs-tiny);
  font-weight: 700;
  color: var(--color-primary-heading);
  text-decoration: none;
  transition: background var(--dur) var(--ease-soft),
    border-color var(--dur) var(--ease-soft), transform var(--dur) var(--ease-soft);
}

.social-link:hover {
  background: var(--color-sage);
  border-color: #bcdcc6;
  transform: translateY(-2px);
}

.site-footer__bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-tiny);
  color: var(--color-primary-soft);
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__disclaimer {
  max-width: 72ch;
  line-height: 1.6;
}

/* ==========================================================================
   FLOATING ACTION BUTTONS — call, WhatsApp, back to top
   ==========================================================================
   A single fixed stack at the bottom-right. On pointer devices the buttons
   expand to show a text label on hover/focus; on small screens they stay as
   icon-only circles so they never cover content or overflow the viewport.
   ========================================================================== */

/* Contact page: direct contact card */
.contact-card {
  margin-top: 1.8rem;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-sage-wash) 0%, var(--color-cream) 100%);
  border: 1px solid #cfe6d6;
}

.contact-card__phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--color-primary-heading);
  text-decoration: none;
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease-soft);
}

.contact-card__phone:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Float action buttons */
.fab-stack {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.6rem);
  bottom: clamp(0.75rem, 2vw, 1.6rem);
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 52px;
  min-width: 52px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-primary-heading);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out), background var(--dur) var(--ease-soft),
    color var(--dur) var(--ease-soft), padding var(--dur) var(--ease-out);
}

.fab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* Label is collapsed by default and revealed on hover/focus.
   `max-width` + `overflow:hidden` keep the width transition smooth. */
.fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: max-width var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease-soft);
}

.fab:hover,
.fab:focus-visible {
  transform: translateY(-2px);
  padding-inline: 1rem 1.15rem;
}

.fab:hover .fab__label,
.fab:focus-visible .fab__label {
  max-width: 9rem;
  opacity: 1;
}

/* --- Call: primary green --- */
.fab--call {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

.fab--call:hover,
.fab--call:focus-visible {
  background: var(--color-primary-soft);
  border-color: var(--color-primary-soft);
  color: var(--color-on-primary);
}

/* --- WhatsApp: brand green, the expected convention --- */
.fab--whatsapp {
  background: #1f8f4e;
  border-color: #1a7a42;
  color: #ffffff;
}

.fab--whatsapp:hover,
.fab--whatsapp:focus-visible {
  background: #24a95c;
  border-color: #24a95c;
  color: #ffffff;
}

/* --- Back to top: hidden until scrolled --- */
.fab--top {
  background: var(--color-surface);
  color: var(--color-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.fab--top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* The call/WhatsApp pair only appears after a short scroll, so it never
   competes with the page content at the top of a fresh visit. */
.fab--call,
.fab--whatsapp {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.fab-stack.is-scrolled .fab--call,
.fab-stack.is-scrolled .fab--whatsapp {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================================================
   11. EDITORIAL SECTION PATTERNS
   ========================================================================== */

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-background) 100%);
  border-bottom: 1px solid var(--color-border);
  padding-block: clamp(2.8rem, 1.8rem + 4vw, 5rem) clamp(2.6rem, 1.8rem + 3vw, 4.2rem);
  position: relative;
  overflow: hidden;
}

.page-hero__inner {
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.page-hero p {
  font-size: var(--fs-lead);
  max-width: 62ch;
}

.page-hero__deco {
  position: absolute;
  right: -80px;
  top: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--color-sage) 0%, transparent 68%);
  opacity: 0.7;
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0 0 var(--space-sm);
  padding: 0;
  font-size: var(--fs-tiny);
  font-weight: 600;
  color: var(--color-primary-soft);
}

.breadcrumb li + li {
  margin-top: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.45rem;
  color: var(--color-gold-deep);
}

.breadcrumb a {
  color: var(--color-primary-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Numbered process / framework steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

.steps--row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  counter-reset: step;
}

.step {
  position: relative;
  padding: var(--space-md) var(--space-sm) var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-2xs);
  border-radius: 50%;
  background: var(--color-sage);
  color: var(--color-primary-heading);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.step__num svg {
  width: 20px;
  height: 20px;
}

.step h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.step p {
  font-size: var(--fs-small);
  line-height: 1.62;
  margin: 0;
}

/* Pull quote / statement band */
.statement {
  background: var(--color-primary);
  color: var(--color-on-deep);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  text-align: center;
}

.statement h2,
.statement h3 {
  color: #ffffff;
}

.statement p {
  color: rgba(242, 248, 243, 0.9);
  max-width: 60ch;
  margin-inline: auto;
  font-size: var(--fs-lead);
}

.statement .eyebrow {
  color: var(--color-gold);
}

.statement .eyebrow::before {
  background: var(--color-gold);
}

.statement__mark {
  width: 54px;
  height: 54px;
  margin: 0 auto var(--space-sm);
}

/* Two-column feature list (philosophy "why it matters") */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
}

.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: var(--fs-small);
  line-height: 1.65;
}

.feature-list li + li {
  margin-top: 0;
}

.feature-list__icon {
  width: 26px;
  height: 26px;
  margin-top: 2px;
  color: var(--color-primary);
  flex: none;
}

/* Long-form prose (article body, policy pages) */
.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xs);
}

.prose h3 {
  font-family: var(--font-body);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-2xs);
}

.prose p,
.prose li {
  font-size: 1.05rem;
  line-height: 1.78;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg);
  border-left: 3px solid var(--color-gold);
  background: var(--color-cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--color-primary-heading);
}

.prose blockquote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
}

.callout {
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  background: var(--color-sage-wash);
  border: 1px solid #c9e3d1;
  border-radius: var(--radius);
}

.callout h4 {
  margin-bottom: 0.3rem;
}

.callout p {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.68;
}

.exercise {
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  background: var(--color-cream);
  border: 1px solid #ecd9ac;
  border-radius: var(--radius);
}

.exercise h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-xs);
}

.exercise ol {
  margin: 0;
  padding-left: 1.2rem;
}

.exercise li {
  font-size: var(--fs-small);
  line-height: 1.65;
}

/* Definition/term blocks used on philosophy + about */
.data-block {
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius);
}

.data-block dt {
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.data-block dd {
  margin: 0.25rem 0 0;
  color: var(--color-body);
}

/* --- Philosophy page: sticky principle aside + body --- */
.principle {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
}

.principle + .principle {
  margin-top: var(--section-y);
  padding-top: var(--section-y);
  border-top: 1px solid var(--color-border);
}

.principle__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.principle__badge {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: var(--space-sm);
}

.principle__icon {
  width: 62px;
  height: 62px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--color-sage);
  color: var(--color-primary);
}

.principle__icon svg {
  width: 30px;
  height: 30px;
}

.principle__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-gold);
}

.principle__anchor {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: var(--fs-tiny);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-soft);
  text-decoration: none;
}

.principle__anchor:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.principle__body > * + * {
  margin-top: var(--space-md);
}

.principle__label {
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.reflection {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--color-blush);
  border: 1px solid #e9d3c9;
  border-radius: var(--radius);
}

.reflection h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  color: #8c5c4a;
}

.reflection p {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.68;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  color: #6f4738;
}

.reflection svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Index rail for the philosophy page */
.principle-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.principle-index a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: var(--fs-tiny);
  font-weight: 700;
  color: var(--color-primary-heading);
  text-decoration: none;
  transition: background var(--dur) var(--ease-soft),
    border-color var(--dur) var(--ease-soft), transform var(--dur) var(--ease-soft);
}

.principle-index a:hover {
  background: var(--color-sage);
  border-color: #bcdcc6;
  transform: translateY(-2px);
}

/* ==========================================================================
   12. CARDS
   ========================================================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.card--hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #c6dcc8;
}

/* Make the whole card clickable without nesting interactive elements */
.card__link {
  color: inherit;
  text-decoration: none;
}

.card__link:hover,
.card__link:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card__link:focus-visible {
  outline: none;
}

.card__link:focus-visible::after {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* --- Principle cards (home) --- */
.principle-card {
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.principle-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #bcdcc6;
}

.principle-card__icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-sage-wash);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  transition: background var(--dur) var(--ease-soft),
    color var(--dur) var(--ease-soft);
}

.principle-card:hover .principle-card__icon {
  background: var(--color-sage);
}

.principle-card__icon svg {
  width: 26px;
  height: 26px;
}

.principle-card__num {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-md);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-sage);
  line-height: 1;
  transition: color var(--dur) var(--ease-soft);
}

.principle-card:hover .principle-card__num {
  color: var(--color-gold);
}

.principle-card h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.principle-card p {
  font-size: var(--fs-small);
  line-height: 1.65;
  margin-bottom: var(--space-xs);
}

.principle-card__more {
  font-size: var(--fs-tiny);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Tint variants — used sparingly for rhythm */
.tint-sage {
  background: var(--color-sage-wash);
}
.tint-cream {
  background: var(--color-cream);
}
.tint-blush {
  background: var(--color-blush);
}
.tint-white {
  background: var(--color-surface);
}

/* --- Media / figure blocks --- */
.figure {
  position: relative;
  margin: 0;
}

.figure__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-sage);
  box-shadow: var(--shadow-sm);
}

.figure__frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.figure__frame--wide img {
  aspect-ratio: 16 / 10;
}

.figure__caption {
  margin-top: var(--space-xs);
  font-size: var(--fs-tiny);
  color: var(--color-primary-soft);
}

/* Decorative gold ring behind portrait */
.figure--ringed .figure__frame {
  box-shadow: var(--shadow-md), 0 0 0 1px var(--color-border);
}

.figure--ringed::before {
  content: "";
  position: absolute;
  top: -22px;
  right: -22px;
  width: 120px;
  height: 120px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  opacity: 0.55;
  pointer-events: none;
}

.figure--ringed::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--color-gold-wash);
  opacity: 0.85;
  z-index: -1;
  pointer-events: none;
}

/* Stat-free credential chips (factual labels only) */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--color-sage-wash);
  border: 1px solid #cfe6d6;
  font-size: var(--fs-tiny);
  font-weight: 700;
  color: var(--color-primary-heading);
}

.chip svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

/* --- Resource / article cards --- */
.res-card__media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-sm);
  background: var(--color-sage);
}

.res-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.res-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: var(--space-2xs);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary-soft);
}

.tag {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--color-sage);
  color: var(--color-primary-ink);
  font-size: var(--fs-tiny);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag--gold {
  background: var(--color-gold-wash);
  color: #8a6b28;
}

.tag--blush {
  background: var(--color-blush);
  color: #8c5c4a;
}

.res-card h3 {
  font-size: var(--fs-h4);
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 0.4rem;
}

.res-card p {
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--color-body);
}

/* Resource filter bar */
.filter-bar {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field .input {
  padding-left: 2.9rem;
}

.search-field__icon {
  position: absolute;
  left: 1rem;
  width: 20px;
  height: 20px;
  color: var(--color-primary-soft);
  pointer-events: none;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-chip {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-background);
  color: var(--color-primary-heading);
  font-size: var(--fs-tiny);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur) var(--ease-soft),
    border-color var(--dur) var(--ease-soft), color var(--dur) var(--ease-soft);
}

.filter-chip:hover {
  background: var(--color-sage-wash);
  border-color: #bcdcc6;
}

.filter-chip[aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

.result-count {
  font-size: var(--fs-small);
  color: var(--color-primary-soft);
  font-weight: 600;
}

/* --- Program / event cards --- */
.program-card__meta,
.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-bottom: var(--space-xs);
  font-size: var(--fs-tiny);
  font-weight: 700;
  color: var(--color-primary-soft);
}

.event-card__date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 74px;
  padding: 0.55rem 0.3rem;
  border-radius: var(--radius-sm);
  background: var(--color-sage);
  color: var(--color-primary-ink);
  flex: none;
}

.event-card__date .day {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}

.event-card__date .mon {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ==========================================================================
   13. EMPTY & NOTICE STATES
   ========================================================================== */

.empty-state {
  text-align: center;
  padding: clamp(2.4rem, 1.6rem + 3vw, 4rem) var(--space-md);
  background: var(--color-surface);
  border: 1px dashed #c6dcc8;
  border-radius: var(--radius-lg);
}

.empty-state__icon {
  width: 66px;
  height: 66px;
  margin: 0 auto var(--space-sm);
  color: var(--color-primary);
  opacity: 0.85;
}

.empty-state h3 {
  margin-bottom: 0.4rem;
}

.empty-state p {
  max-width: 54ch;
  margin: 0 auto var(--space-md);
  font-size: var(--fs-small);
}

.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Small inline notice (e.g. "content not yet verified") */
.notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  border: 1px solid #ecd9ac;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: #7d6224;
}

.notice svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
}

.notice--sage {
  background: var(--color-sage-wash);
  border-color: #c9e3d1;
  color: var(--color-primary-ink);
}

/* Placeholder block for content awaiting verification (public-facing) */
.pending {
  padding: var(--space-md);
  border: 1px dashed #c6dcc8;
  border-radius: var(--radius);
  background: var(--color-pale);
}

/* ==========================================================================
   14. DECORATIVE ART
   ========================================================================== */

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.blob--sage {
  background: radial-gradient(circle at 35% 35%, var(--color-sage), transparent 70%);
}

.blob--gold {
  background: radial-gradient(circle at 40% 40%, var(--color-gold-wash), transparent 70%);
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, var(--color-cream) 0%, var(--color-sage-wash) 55%, var(--color-background) 100%);
  padding-block: clamp(3rem, 1.8rem + 5vw, 6.5rem) clamp(3rem, 2rem + 4vw, 5.5rem);
}

.hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Thin gold arc — the "shift" motif */
.shift-arc {
  position: absolute;
  border: 1px solid rgba(199, 159, 77, 0.42);
  border-radius: 50%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__visual {
  position: relative;
  z-index: 2;
}

/* Portrait composition: sage panel + organic shape + gold accents */
.portrait {
  position: relative;
  padding: clamp(1rem, 0.5rem + 2vw, 2rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--color-sage) 0%, var(--color-pale) 100%);
  overflow: hidden;
}

.portrait__inner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.portrait__inner img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.portrait__leaf {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 150px;
  height: 150px;
  border-radius: 50% 0 0 0;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-deep) 100%);
  opacity: 0.28;
}

.portrait__caption {
  position: relative;
  margin-top: var(--space-sm);
  padding: 0.55rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  font-size: var(--fs-tiny);
  font-weight: 700;
  color: var(--color-primary-heading);
}

.portrait__caption svg {
  width: 14px;
  height: 14px;
  color: var(--color-gold-deep);
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-soft) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(2.2rem, 1.5rem + 3vw, 4rem);
  text-align: center;
  color: var(--color-on-deep);
}

.cta-band h2,
.cta-band h3 {
  color: #ffffff;
}

.cta-band p {
  color: rgba(242, 248, 243, 0.9);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--space-md);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cta-band .btn--outline {
  --btn-fg: #ffffff;
  --btn-border: rgba(255, 255, 255, 0.7);
}

.cta-band .btn--outline:hover {
  --btn-bg: rgba(255, 255, 255, 0.14);
  --btn-fg: #ffffff;
}

.cta-band .eyebrow {
  color: var(--color-gold);
}

.cta-band .eyebrow::before {
  background: var(--color-gold);
}

/* Newsletter */
.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.6rem, 1rem + 3vw, 3.5rem);
  align-items: center;
  padding: clamp(1.8rem, 1.2rem + 3vw, 3.2rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-sage-wash) 0%, var(--color-cream) 100%);
  border: 1px solid #cfe6d6;
}

.newsletter__aside h2 {
  margin-bottom: 0.5rem;
}

.newsletter__points {
  list-style: none;
  margin: var(--space-sm) 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.newsletter__points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  font-size: var(--fs-small);
}

.newsletter__points li + li {
  margin-top: 0;
}

.newsletter__points svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--color-primary);
}

.newsletter__form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.newsletter .input {
  background: var(--color-background);
}

/* Newsletter stacked variant (join.html) */
.newsletter--stacked {
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
  justify-items: center;
}

.newsletter--stacked .newsletter__aside p,
.newsletter--stacked .newsletter__points {
  margin-inline: auto;
}

.newsletter--stacked .newsletter__points {
  max-width: 46ch;
  text-align: left;
}

.newsletter--stacked .newsletter__form {
  width: min(560px, 100%);
}

/* Article page */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}

.article-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: var(--space-md);
}

.toc {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.toc__title {
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-heading);
  margin-bottom: var(--space-xs);
}

.toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc__list li + li {
  margin-top: 0.35rem;
}

.toc__link {
  display: block;
  padding: 0.3rem 0;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--color-body);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: color var(--dur) var(--ease-soft),
    border-color var(--dur) var(--ease-soft);
}

.toc__link:hover,
.toc__link.is-active {
  color: var(--color-primary);
  border-left-color: var(--color-gold);
}

/* Reading progress bar */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  z-index: 120;
  pointer-events: none;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.article-head {
  max-width: 760px;
  margin-bottom: var(--space-lg);
}

.article-head__title {
  margin-bottom: var(--space-sm);
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  align-items: center;
  font-size: var(--fs-small);
  color: var(--color-primary-soft);
}

.byline__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-sage);
  color: var(--color-primary-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--fs-tiny);
  flex: none;
}

.byline__dot {
  color: var(--color-border);
}

/* ==========================================================================
   15. UTILITIES
   ========================================================================== */

.text-center {
  text-align: center;
}
.text-start {
  text-align: left;
}
.mt-0 {
  margin-top: 0 !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mt-md {
  margin-top: var(--space-md);
}
.mt-lg {
  margin-top: var(--space-lg);
}
.mt-xl {
  margin-top: var(--space-xl);
}
.mx-auto {
  margin-inline: auto;
}
.max-60 {
  max-width: 60ch;
}
.flex-center {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.wrap {
  flex-wrap: wrap;
}
.justify-center {
  justify-content: center;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.no-scroll-x {
  overflow-x: hidden;
}
